[NTG-context] framedtext

Alan BRASLAU alan.braslau at cea.fr
Mon Apr 11 18:13:00 CEST 2016


Would it not be better to use ConTeXt alignment, rather than the TeX
primitives \hfil and \hfill?

\starttext

\startframedtext[left][frame=on,offset=0pt,width=broad,align=flushleft]
left
\stopframedtext

\startframedtext[middle][frame=on,offset=0pt,width=broad,align=middle]
centered
\stopframedtext

\startframedtext[right][frame=on,offset=0pt,width=broad,align=flushright]
right
\stopframedtext

\stoptext





On Mon, 11 Apr 2016 13:28:47 +0300
Mari Voipio <mari.voipio at iki.fi> wrote:

> On Mon, Apr 11, 2016 at 1:08 PM, Meer, Hans van der
> <H.vanderMeer at uva.nl> wrote:
> 
> > \startframedtext[middle][frame=on,offset=0pt,width=broad]
> > \hfil centered\hfil
> > \stopframedtext
> > \startframedtext[middle][frame=on,offset=0pt,width=broad]
> > \hfill centered\hfill
> > \stopframedtext
> 
> One has \hfil with one l and the other has \hfill with two l:s. \hfil
> with one l seems to produce centering, while \hfill with two l:s makes
> the text end up on the right.
> 
> Don't know if this is a feature or a bug, but this is the reason to
> why those lines differ.



More information about the ntg-context mailing list