[NTG-context] Small problems with my columns

Pablo Rodriguez oinos at gmx.es
Thu Jul 30 20:04:47 CEST 2015


On 07/30/2015 07:37 PM, Fabrice Couvreur wrote:
> Hi,
> In the code below, how to make the line hyphenation is in the first
> column and not in the second.

Hi Fabrice,

you could replace \column with \column\setupalign[nothyphenated].

It does the job, although it seems not very elegant to me.

Pablo


> 
> \setupcolors[state=start]
> \definemixedcolumns
>   [mycolumn]
>   [
>     n=2,
>     separator=rule,
>     rulecolor=gray,
>     rulethickness=1pt,
>     balance=yes,
>   ]
> \setuppapersize[A4][A4]
> 
> \setuplayout[
>         backspace=15mm,
>         width=middle,
>         topspace=15mm,
>         height=middle,
>         header=0pt,
>         footer=0pt,
>             ]
> \loadtypescriptfile[mathdesign]
>  
> \definetypeface [mainface] [rm] [serif] [palatino] [default]
> \definetypeface [mainface] [tt] [mono]  [modern] [default] [rscale=0.9]
> \definetypeface [mainface] [mm] [math]  [xits] [default]
> 
> \setupbodyfont[mainface,11pt]
> 
> \starttext
> \startmycolumn
> \startitemize[n][stopper={)},style=bold]
> \item
> \startitemize[a][stopper={)},style=bold]
> \item
> \item 
> \item \'Emettre une conjecture sur la nature de la transformation
> correspondant à l'enchaînement de ces deux translations.
> \startframedtext[frame=on,background=color,backgroundcolor=lightgray,width=local]
> On notera $\vec{u} + \vec{v}$ les caractéristiques de cette nouvelle
> transformation.
> \stopframedtext
> \stopitemize
> \column
> \item
> \startitemize[a][stopper={)},style=bold]
> \item
> \item
> \item
> \stopitemize
> \item
> \startitemize[a][stopper={)},style=bold]
> \item
> \item
> \item
> \stopitemize
> \stopitemize
> \stopmycolumn
> \stoptext



-- 
http://www.ousia.tk


More information about the ntg-context mailing list