Re: [NTG-context] Bug in \framed and \inframed

2021-05-06 Thread Aditya Mahajan
> > > This \inframed{works} fine. > > \inframed{But} this not. > > \stoptext https://wiki.contextgarden.net/FAQ#Why_is_there_a_line-break_in_the_output_after_some_commands.3F Aditya ___ If yo

[NTG-context] Bug in \framed and \inframed

2021-05-06 Thread Johann Birnick
There is a bug with \framed and related commands: If this is the first object in a line, a linebreak is inserted! See the following example: \starttext This \inframed{works} fine. \inframed{But} this not. \stoptext Thank

Re: [NTG-context] Strange behavior with the command \inframed{}

2018-10-23 Thread Fabrice Couvreur
on, 22 Oct 2018, Fabrice Couvreur wrote: >> >> > Hi, >> > When I use the \inframed{} command twice, they are not on the same >> baseline. >> > Thank you. >> > Fabrice >> > >> > \starttext >> Add \dontleavehmode >> >

Re: [NTG-context] Strange behavior with the command \inframed{}

2018-10-23 Thread Fabrice Couvreur
Hi Aditya, Thanks. Fabrice Le lun. 22 oct. 2018 à 12:45, Aditya Mahajan a écrit : > On Mon, 22 Oct 2018, Fabrice Couvreur wrote: > > > Hi, > > When I use the \inframed{} command twice, they are not on the same > baseline. > > Thank you. > > Fabrice > &g

Re: [NTG-context] Strange behavior with the command \inframed{}

2018-10-22 Thread Aditya Mahajan
On Mon, 22 Oct 2018, Fabrice Couvreur wrote: Hi, When I use the \inframed{} command twice, they are not on the same baseline. Thank you. Fabrice \starttext Add \dontleavehmode \inframed{\m{I\times X=A^{-1}\times B}} ; \inframed{\m{A^{-1}\times A \times X=A^{-1}\times B}} \stoptext See

[NTG-context] Strange behavior with the command \inframed{}

2018-10-22 Thread Fabrice Couvreur
Hi, When I use the \inframed{} command twice, they are not on the same baseline. Thank you. Fabrice \starttext \inframed{\m{I\times X=A^{-1}\times B}} ; \inframed{\m{A^{-1}\times A \times X=A^{-1}\times B}} \stoptext

Re: [NTG-context] about the baseline of \inframed{text} in the enumerations

2018-01-04 Thread Jeong Dal
Dear Hans, Deleting “height=“ fixes the problem. Thank you so much. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / ht

Re: [NTG-context] about the baseline of \inframed{text} in the enumerations

2018-01-04 Thread Hans Hagen
On 1/4/2018 10:11 AM, Jeong Dal wrote: numbercommand={\inframed[corner=round, framecolor=dYellow, loffset=1ex, roffset=1ex, height=1.3em, background=color,backgroundcolor=dGreen]}, just omit the height key

[NTG-context] about the baseline of \inframed{text} in the enumerations

2018-01-04 Thread Jeong Dal
Dear all, First, Happy New Year! In the output of the following sample code, the baseline of the framed text “Example” is slightly lower than the following sentences. But, in the wiki, \inframed is set center-aligned. Please tell me how to fix it. Thank you for reading. Best regards

Re: [NTG-context] about \inframed[] in \defineenumeration

2017-12-05 Thread Jeong Dal
. Best regards, Dalyoung > you need "numbercommand": > > \defineenumeration >[Example] >[headcommand={\framed[background=color,backgroundcolor=red]}, > > numbercommand={\inframed[height=2ex,background=color,backgroundcolor=green]}, > > titlecom

Re: [NTG-context] about \inframed[] in \defineenumeration

2017-12-05 Thread Hans Hagen
you for reading. Best regards, Dalyoung %%% minimal example %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] \defineenumeration[Example] [command={\inframed[corner=round, background=color, backgroundcolor=darkgreen,height=1.3em]}, text=Example, prefix=yes

[NTG-context] about \inframed[] in \defineenumeration

2017-12-04 Thread Jeong Dal
%%% minimal example %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] \defineenumeration[Example] [command={\inframed[corner=round, background=color, backgroundcolor=darkgreen,height=1.3em]}, text=Example, prefix=yes, prefixsegments=chapter, way=bychapter

Re: [NTG-context] \framed versus \inframed

2014-07-22 Thread Hans Hagen
On 7/22/2014 2:13 PM, Herbert Voss wrote: I'd expect a double frame for a nested \inframed, too. And also fog in the last row always on the baseline fort \inframed. \starttext foo\framed{\framed{foo}} \inframed{\inframed{foo}} foo fog\framed{\framed{fog}} \inframed{\inframed{fog}

[NTG-context] \framed versus \inframed

2014-07-22 Thread Herbert Voss
I'd expect a double frame for a nested \inframed, too. And also fog in the last row always on the baseline fort \inframed. \starttext foo\framed{\framed{foo}} \inframed{\inframed{foo}} foo fog\framed{\framed{fog}} \inframed{\inframed{fog}} fog \setupframed[strut=no] fog\framed{\frame

Re: [NTG-context] Bug in inframed

2013-09-12 Thread H. Özoguz
Salam, @Idris, Aditya: Thank you very much, works perfect for me. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/list

Re: [NTG-context] Bug in inframed

2013-09-12 Thread Idris Samawi Hamid ادريس سماوي حامد
Salaam, On Thu, 12 Sep 2013 06:09:46 -0600, H. Özoguz wrote: I found the following bug in \inframed, getting problems with inframing arabic words, try the following example \definefont[arab][name:arial*arabic at 18pt] \define[1]\awort{{\hbox{\setupalign[r2l]\arab#1}}} \starttext \awort

Re: [NTG-context] Bug in inframed

2013-09-12 Thread Aditya Mahajan
On Thu, 12 Sep 2013, "H. Özoguz" wrote: I found the following bug in \inframed, getting problems with inframing arabic words, try the following example \definefont[arab][name:arial*arabic at 18pt] \define[1]\awort{{\hbox{\setupalign[r2l]\arab#1}}} Untested, but why not \definefr

[NTG-context] Bug in inframed

2013-09-12 Thread H. Özoguz
I found the following bug in \inframed, getting problems with inframing arabic words, try the following example \definefont[arab][name:arial*arabic at 18pt] \define[1]\awort{{\hbox{\setupalign[r2l]\arab#1}}} \starttext \awort{بِالصَّالِحِينَ}\blank \awort{\inframed{بِالصَّالِحِينَ}} \stoptext

Re: [NTG-context] Lua & inmargin & inframed

2013-01-04 Thread Wolfgang Schuster
Am 04.01.2013 um 16:51 schrieb Procházka Lukáš Ing. - Pontex s. r. o. : > On Fri, 04 Jan 2013 16:48:45 +0100, Wolfgang Schuster > wrote: > >> \starttext >> >> \inmargin{\inframed{A}} >> \input knuth >> >> \blank >> >> \ctxlua{contex

Re: [NTG-context] Lua & inmargin & inframed

2013-01-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
On Fri, 04 Jan 2013 16:48:45 +0100, Wolfgang Schuster wrote: \starttext \inmargin{\inframed{A}} \input knuth \blank \ctxlua{context.inmargin(context.nested.inframed("B"))} \input knuth \stoptext Wolfgang Great, thanks! Any info about usage of ".nested" or &q

Re: [NTG-context] Lua & inmargin & inframed

2013-01-04 Thread Wolfgang Schuster
Am 04.01.2013 um 16:22 schrieb Procházka Lukáš Ing. - Pontex s. r. o. : > Hello, > > the inframed "B" in margin created by Lua doesn't appear, although > corresponding Ctx code works: > > > \starttext > \inmargin{\inframed{A}} > \input knuth &

[NTG-context] Lua & inmargin & inframed

2013-01-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the inframed "B" in margin created by Lua doesn't appear, although corresponding Ctx code works: \starttext \inmargin{\inframed{A}} \input knuth \blank \directlua{context.inmargin(context.delayed.inframed("B")); context("Test.")} \stoptex

Re: [NTG-context] about \framed and \inframed

2011-03-05 Thread Wolfgang Schuster
yes, > prefixsegments=chapter, > way=bychapter, > width=broad, > number=yes, > before={\blank[big]}, > after=\blank] > > The problem is that the bottom of the framed text is aligned just below the > center of the following text lines. The vertical center is a little

[NTG-context] about \framed and \inframed

2011-03-04 Thread Jeong Dalyoung
\blank[big]}, after=\blank] The problem is that the bottom of the framed text is aligned just below the center of the following text lines. The vertical center is a little bit higher than that of the following lines. If I use "\inframed", then the top line of the frame is a little bit highe

Re: [NTG-context] about the line break after \inframed

2011-02-22 Thread Jeong Dalyoung
Dear Hongwen, \dontleavehmode make it work. The answer is always around me but not for my eyes. Thank you. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to the W

Re: [NTG-context] about the line break after \inframed

2011-02-22 Thread Hongwen Qiu
[leopard][\uniqueMPgraphic{lions b}] \def\nota#1 {\inframed[frame=off,background=leopard]{#1}} \starttext \nota{test 1:} This is a test for line separation. %\midaligned{\nota{test 2}} \stoptext Change the definition of \nota, and it just works: \startuseMPgraphic{lions b} picture pic; path p ; p

[NTG-context] about the line break after \inframed

2011-02-22 Thread Jeong Dalyoung
\defineoverlay[leopard][\uniqueMPgraphic{lions b}] \def\nota#1 {\inframed[frame=off,background=leopard]{#1}} \starttext \nota{test 1:} This is a test for line separation. %\midaligned{\nota{test 2}} \stoptext Then the sentence "This is a test." is written in a new line as following. test 1:

Re: [NTG-context] How to move an inframed block?

2009-08-15 Thread Wolfgang Schuster
Am 14.08.2009 um 09:12 schrieb rrvhassel: Hello Everybody, Hans reacted on the question of how to move a framed text relative to another framed text by: "search for 'layers' on the wiki; they provide precise positioning" Looking to the wiki site, I read at the first sentence: "Layers are ConT

Re: [NTG-context] How to move an inframed block?

2009-08-15 Thread rrvhassel
Hello Everybody, Hans reacted on the question of how to move a framed text relative to another framed text by: "search for 'layers' on the wiki; they provide precise positioning" Looking to the wiki site, I read at the first sentence: "Layers are ConTeXt's mechanism for absolute positioning of

Re: [NTG-context] How to move an inframed block?

2009-08-13 Thread Hans Hagen
rene hassel wrote: Hello Everybody, does somebody know how to move an inframed text, or framed text, RELATIVE to another framed text ( or inframed text). Minimal example: ### begin example: \setupcolors[state=start] \starttext \framed{\inframed{Hello} Everybody} \stoptext ### end

[NTG-context] How to move an inframed block?

2009-08-13 Thread rene hassel
Hello Everybody, does somebody know how to move an inframed text, or framed text, RELATIVE to another framed text ( or inframed text). Minimal example: ### begin example: \setupcolors[state=start] \starttext \framed{\inframed{Hello} Everybody} \stoptext ### end example. How to move

Re: [NTG-context] horizontal space in \inframed and \hskip

2009-01-15 Thread luigi scarso
On Thu, Jan 15, 2009 at 6:44 AM, Michael Green wrote: > On Thu, Jan 15, 2009 at 1:04 AM, Luigi Scarso wrote: > > There is a space in between \ClassDate{..} and \ClassTopic{..}: >> \ClassDate{Monday, January 26} \ClassTopic{glaucon's challenge} >> >> Is my pdf right ? >> >> -- luigi >> > > > Oh th

Re: [NTG-context] horizontal space in \inframed and \hskip

2009-01-14 Thread Michael Green
On Thu, Jan 15, 2009 at 1:04 AM, Luigi Scarso wrote: There is a space in between \ClassDate{..} and \ClassTopic{..}: \ClassDate{Monday, January 26} \ClassTopic{glaucon's challenge} Is my pdf right ? -- luigi Oh thank you, that's exactly what I wanted. It's hard to believe that didn't occu

Re: [NTG-context] horizontal space in \inframed and \hskip

2009-01-14 Thread luigi scarso
On Thu, Jan 15, 2009 at 1:04 AM, Michael Green wrote: > I am having some trouble with horizontal spacing. I'm trying to set one > width for \inframed and \hskip but the two are coming out different. > > Here is an example. It is a syllabus for a college course. I would like

[NTG-context] horizontal space in \inframed and \hskip

2009-01-14 Thread Michael Green
I am having some trouble with horizontal spacing. I'm trying to set one width for \inframed and \hskip but the two are coming out different. Here is an example. It is a syllabus for a college course. I would like the entries for topics (e.g. “Glaucon’s challenge”), descriptions

Re: [NTG-context] inframed : makes a newline

2008-08-21 Thread Wolfgang Schuster
On Thu, Aug 21, 2008 at 11:23 AM, Peter Münster <[EMAIL PROTECTED]> wrote: > On Thu, Aug 21 2008, Wolfgang Schuster wrote: > >> > For beginners (especially former LaTeX users), this is a real headache: >> > \framed, \externalfigure and so on start sometimes a new paragraph, and >> > sometimes not.

Re: [NTG-context] inframed : makes a newline

2008-08-21 Thread Peter Münster
On Thu, Aug 21 2008, Wolfgang Schuster wrote: > > For beginners (especially former LaTeX users), this is a real headache: > > \framed, \externalfigure and so on start sometimes a new paragraph, and > > sometimes not. In my opinion, these commands should behave like a simple > > hbox. > > But this

Re: [NTG-context] inframed : makes a newline

2008-08-21 Thread Wolfgang Schuster
On Wed, Aug 20, 2008 at 8:32 PM, Peter Münster <[EMAIL PROTECTED]> wrote: > On Wed, Aug 20 2008, Peter Rolf wrote: > >> A \framed at the beginning of a paragraph starts in vertical mode (stuff >> is ordered vertically). The macro \dontleavehmode ensures, that the >> horizontal mode is used. > > Hel

Re: [NTG-context] inframed : makes a newline

2008-08-20 Thread Peter Münster
On Wed, Aug 20 2008, Peter Rolf wrote: > A \framed at the beginning of a paragraph starts in vertical mode (stuff > is ordered vertically). The macro \dontleavehmode ensures, that the > horizontal mode is used. Hello, Could you now change this behaviour please in MKIV? I think MKIV does not need

Re: [NTG-context] inframed : makes a newline

2008-08-20 Thread Peter Rolf
Eric DÉTREZ schrieb: > Hello > > When I use a inframed command at the start of a line it doesn't allow > to be continued by text : > > ** > \starttext > blabla \inframed{essai} blabla > > &g

[NTG-context] inframed : makes a newline

2008-08-20 Thread Eric DÉTREZ
Hello When I use a inframed command at the start of a line it doesn't allow to be continued by text : ** \starttext blabla \inframed{essai} blabla \inframed{essai} blabla \sto

RE: [NTG-context] Combining \inframed with \items

2003-07-23 Thread Hans Hagen
ers - and be able to call them anywhere in the document. If I \setupframed with just the definition of one of them then all my \inframed will come out one way. Is there a way of naming a setupframed definition so that I can set up, for example, \circleframed{} and \highlightframed{} commands? \sta

Re: [NTG-context] Combining \inframed with \items

2003-07-23 Thread Hans Hagen
At 16:21 23/07/2003 +0200, you wrote: Hi Duncan, > Is there a way of naming a setupframed definition so that I can set up, for > example, \circleframed{} and \highlightframed{} commands? > Yopu can always define your own commands e.g. \define[1]\CircleFramed{% \inframed[linecorrection=on

RE: [NTG-context] Combining \inframed with \items

2003-07-23 Thread Duncan Hothersall
Hi Willi > You can always define your own commands e.g. > > \define[1]\CircleFramed{% > ... Aah! My eyes are opened. Thank you very much. That will be useful in a number of areas. Duncan [EMAIL PROTECTED] ___ ntg-context mailing list [EMAIL PROTECTED]

Re: [NTG-context] Combining \inframed with \items

2003-07-23 Thread Willi Egger
Hi Duncan, > Is there a way of naming a setupframed definition so that I can set up, for > example, \circleframed{} and \highlightframed{} commands? > Yopu can always define your own commands e.g. \define[1]\CircleFramed{% \inframed[linecorrection=on,frame=on,corner=round,radius=3mm,o

RE: [NTG-context] Combining \inframed with \items

2003-07-23 Thread Duncan Hothersall
in the document. If I \setupframed with just the definition of one of them then all my \inframed will come out one way. Is there a way of naming a setupframed definition so that I can set up, for example, \circleframed{} and \highlightframed{} commands? Thanks again! Duncan [EMAIL PROTECTED]

Re: [NTG-context] Combining \inframed with \items

2003-07-19 Thread Hans Hagen
At 02:55 18/07/2003 +0100, you wrote: Alternatively is it possible to get "horizontal" lists any other way? \startitemize[text] \item test \item test \stopitemize Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Combining \inframed with \items

2003-07-18 Thread Willi Egger
Hi Duncan, > I have the following test file: > > -- > \setupoutput[pdftex]\setupcolor[rgb]\starttext > > \items[symbol=none,location=top]{{\inframed[frame=on,corner=round,radius=3mm > ,offset=1mm]{demand-pull > inflation}},{\inframed[frame=on,corner=round,radius=3mm,off

[NTG-context] Combining \inframed with \items

2003-07-18 Thread Duncan Hothersall
I have the following test file: -- \setupoutput[pdftex]\setupcolor[rgb]\starttext \items[symbol=none,location=top]{{\inframed[frame=on,corner=round,radius=3mm ,offset=1mm]{demand-pull inflation}},{\inframed[frame=on,corner=round,radius=3mm,offset=1mm]{in comparison}},capital-intensive} \items