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 \stoptext ****************************************************** gives ------------------ blabla framed{essai} blabla framed{essai} blabla ------------------ I expected ------------------ blabla framed{essai} blabla framed{essai} blabla ------------------ Is it anything to do ?
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
\inframed{essai} blabla \stoptext ****************************************************** gives
------------------ blabla framed{essai} blabla framed{essai} blabla ------------------
I expected ------------------ blabla framed{essai} blabla framed{essai} blabla ------------------
Is it anything to do ?
\dontleavehmode\inframed 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. Best wishes, Peter
___________________________________________________________________________________ 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
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 to be backward compatible everywhere. 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. Cheers, Peter -- http://pmrb.free.fr/contact/
On Wed, Aug 20, 2008 at 8:32 PM, 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 to be backward compatible everywhere.
You forgot cases where this behavious is wanted and you would use one \framed block on top of another one.
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 is exactly what \framed does. \starttext \framed{text} \framed{text} \hbox{text} \hbox{text} \stoptext What you want produce also unwanted results in other commands. \starttext \placefigure {Centered?} {\dontleavehmode\framed{No!}} \stoptext Wolfgang
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 is exactly what \framed does.
\starttext \framed{text} \framed{text} \hbox{text} \hbox{text} \stoptext
Oh, you're right, I was pretty sure, that \hbox behaved like a normal letter... Ok, then I would rather like to compare this with \parbox and \includegraphics from LaTeX: they behave like normal letters. Perhaps I've just spent too much of my life-time with LaTeX... :(
What you want produce also unwanted results in other commands.
\starttext \placefigure {Centered?} {\dontleavehmode\framed{No!}} \stoptext
I don't know, why this is not centred, but I would say, that \placefigure{Centred?}{\framed{test}} and \placefigure{Centred?}{test} should behave the same way. Cheers, Peter -- http://pmrb.free.fr/contact/
On Thu, Aug 21, 2008 at 11:23 AM, 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 is exactly what \framed does.
\starttext \framed{text} \framed{text} \hbox{text} \hbox{text} \stoptext
Oh, you're right, I was pretty sure, that \hbox behaved like a normal letter...
AFAIK this was also in one of the exercises in the TeXbook, a \hbox in vertical let you remain in vertical mode.
Ok, then I would rather like to compare this with \parbox and \includegraphics from LaTeX: they behave like normal letters. Perhaps I've just spent too much of my life-time with LaTeX... :(
What you want produce also unwanted results in other commands.
\starttext \placefigure {Centered?} {\dontleavehmode\framed{No!}} \stoptext
I don't know, why this is not centred, but I would say, that \placefigure{Centred?}{\framed{test}} and \placefigure{Centred?}{test} should behave the same way.
In this yes but in my example the \dontleavehmodein front of \framed forced TeX to go in horizontal mode and to use \hsize as width for the float box. \starttext \ruledvbox{\hbox{text}} \ruledvbox{\dontleavehmode\hbox{text}} \stoptext Wolfgang
participants (4)
-
Eric DÉTREZ
-
Peter Münster
-
Peter Rolf
-
Wolfgang Schuster