[NTG-context] How to make startalignment middle not change the linewidth

Aditya Mahajan adityam at umich.edu
Wed Aug 16 03:00:56 CEST 2006


On Tue, 15 Aug 2006, Aditya Mahajan wrote:

> Hi,
>  It seems that startalignment[middle] does not like long lines.
> Consider the following example (not strictly minimal, but I can not
> get such a marginal case with default setup).
>
> \setuppapersize[letter][letter]
>
> \setuplayout[
>                  width=middle,
>                 height=middle,
>               location=middle,
>               topspace=.75in,
>            bottomspace=0.75in,
>              backspace=0.75in,
>               cutspace=0.75in,
>             leftmargin=0in,
>            rightmargin=0in,
>     leftmargindistance=0in,
>    rightmargindistance=0in,
>                 header=0in,
>                 footer=0in,
>          headerdistace=0in,
>         footerdistance=0in,
>       ]
>
> \definetypeface[ieee] [rm]  [serif] [times]     [texansi]
> \definetypeface[ieee] [mm]  [maths] [modern]    [texansi]

Duh, I need to learn how to do font setup correctly and without typos. 
Even with the correction,

\definetypeface[ieee] [rm]  [serif] [times]     [default] [texnansi]
\definetypeface[ieee] [mm]  [maths] [modern]    [default] [texnansi]

the linebreaking is the same as before.

> \setupbodyfont[ieee,10pt]
>
> \definefont[TitleFont]   [Regular at 24pt]
>
> \setvariables[paper]
>   [ title={Optimal Performance of Feedback Control Systems with
>            Limited Communication over Noisy Channels}]
>
> \starttext
> {\TitleFont\setupinterlinespace
> \getvariable{paper}{title}
> \blank[1.0em]\endgraf}
>
> \startalignment[middle]
>     {\TitleFont\setupinterlinespace
>     \getvariable{paper}{title}
>     \blank[1.0em]\endgraf}
> \stopalignment
> \stoptext
>
> How can I get the same linebreaking as the first case, but with each
> line middle aligned?
>
> Aditya
> _______________________________________________
> ntg-context mailing list
> ntg-context at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
>

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008


More information about the ntg-context mailing list