Re: [NTG-context] Small problems with my columns

2015-07-31 Thread Fabrice

Hi Wolfgang and Pablo,
Thank you for your suggestions, it works perfectly.
Fabrice
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Small problems with my columns

2015-07-30 Thread Fabrice Couvreur
Hi,
In the code below, how to make the line hyphenation is in the first column and
not in the second.
Thank You.
Fabrice

\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
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Small problems with my columns

2015-07-30 Thread Pablo Rodriguez
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
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Small problems with my columns

2015-07-30 Thread Wolfgang Schuster

Fabrice Couvreur mailto:fabrice1.couvr...@gmail.com
30. Juli 2015 19:37
Hi,
In the code below, how to make the line hyphenation is in the first 
column and not in the second.



You can add

\setuptolerance[verytolerant]

to give ConTeXt more freedom where it breaks the lines.

Wolfgang
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___