Re: [NTG-context] Using \startframedtext with \startcombination

2014-10-03 Thread Fabrice

Hi Wolfgang,
Your explanations are once again very clear, I fully understand the 
mechanism.

Thank you very much,
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
___

Re: [NTG-context] Using \startframedtext with \startcombination

2014-10-01 Thread Wolfgang Schuster

Am 30.09.2014 um 21:52 schrieb Couvreur Fabrice couvreur.fabr...@wanadoo.fr:

 Hello Wolfgang,
 Thank you for the answer, but I did not understand everything.

I try ti explain it with a few examples. When you text in a framedtext 
environment context creates a box with the given width (which is shown with the 
red frame), this box is then put into another box (which is shown which a black 
frame) which has the width of the text area. The large outer box is necessary 
when you want to align the inner box to the left, middle or right of the text 
block.


\setupframedtext[width=8cm,framecolor=red,frameoffset=-1ex]

\starttext

\ruledhbox\bgroup
\startframedtext[left]
\input ward
\stopframedtext
\egroup

\blank

\ruledhbox\bgroup
\startframedtext[middle]
\input ward
\stopframedtext
\egroup

\blank

\ruledhbox\bgroup
\startframedtext[right]
\input ward
\stopframedtext
\egroup

\blank

\ruledhbox\bgroup
\startframedtext[none]
\input ward
\stopframedtext
\egroup

\stoptext


When you use now a combination with a framedtext environment each cell of the 
combination is too wide to show more than one cell on the page. You can see in 
the following example that the second cell is positioned outside of the visible 
page area.


\setuppapersize[A4][A3,landscape]

\showframe

\setupframedtext[width=8cm,framecolor=red,frameoffset=-1ex]

\starttext

\startcombination
\startcontent
\ruledhbox\bgroup
\startframedtext[left]
\input ward
\stopframedtext
\egroup
\stopcontent
\startcaption
Left aligned!
\stopcaption
\startcontent
\ruledhbox\bgroup
\startframedtext[right]
\input ward
\stopframedtext
\egroup
\stopcontent
\startcaption
Right aligned!
\stopcaption
\stopcombination

\stoptext


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
___

Re: [NTG-context] Using \startframedtext with \startcombination

2014-09-30 Thread Couvreur Fabrice
Hello Wolfgang,
Thank you for the answer, but I did not understand everything.
Fabrice

Envoyé de mon iPad
___
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] Using \startframedtext with \startcombination

2014-09-29 Thread Wolfgang Schuster

Am 29.09.2014 um 18:52 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com:

 Hi, 
 Why the second frame is not displayed ? 

You need “location=none” on your framedtexts. With the values left and right 
you’re using now
context reserves a horizontal space which covers the whole text width for each 
frame which
is needed when you want to align the content on the left or right margins in 
the text.

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
___