ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Small problems with my columns
@ 2015-07-30 17:37 Fabrice Couvreur
  2015-07-30 18:04 ` Pablo Rodriguez
  2015-07-30 18:11 ` Wolfgang Schuster
  0 siblings, 2 replies; 4+ messages in thread
From: Fabrice Couvreur @ 2015-07-30 17:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1431 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2194 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Small problems with my columns
  2015-07-30 17:37 Small problems with my columns Fabrice Couvreur
@ 2015-07-30 18:04 ` Pablo Rodriguez
  2015-07-30 18:11 ` Wolfgang Schuster
  1 sibling, 0 replies; 4+ messages in thread
From: Pablo Rodriguez @ 2015-07-30 18:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Small problems with my columns
  2015-07-30 17:37 Small problems with my columns Fabrice Couvreur
  2015-07-30 18:04 ` Pablo Rodriguez
@ 2015-07-30 18:11 ` Wolfgang Schuster
  2015-07-31  7:27   ` Fabrice
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2015-07-30 18:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 304 bytes --]

> Fabrice Couvreur <mailto:fabrice1.couvreur@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

[-- Attachment #1.2: Type: text/html, Size: 1756 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Small problems with my columns
  2015-07-30 18:11 ` Wolfgang Schuster
@ 2015-07-31  7:27   ` Fabrice
  0 siblings, 0 replies; 4+ messages in thread
From: Fabrice @ 2015-07-31  7:27 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-31  7:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-30 17:37 Small problems with my columns Fabrice Couvreur
2015-07-30 18:04 ` Pablo Rodriguez
2015-07-30 18:11 ` Wolfgang Schuster
2015-07-31  7:27   ` Fabrice

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).