I have some difficulties with columns inside a framedtext. The example below shows that columns does not work inside framedtext, whereas simplecolumns does. However, the latter does not show rules between the columns. Can I have both? Is columns definitely not working here or is it temporarily until something is fixed? Or will simplecolumns be extended to show the rules? % test columns within framedtext \starttext \startframedtext[width=\makeupwidth] \startcolumns[n=2,rule=on,balance=yes] \input tufte \stopcolumns \stopframedtext \startframedtext[width=\makeupwidth] \blank \startsimplecolumns[n=2,rule=on,balance=yes] \input tufte \stopsimplecolumns \stopframedtext \stoptext Hans van der Meer
Am 03.10.2013 um 10:21 schrieb H. van der Meer
I have some difficulties with columns inside a framedtext. The example below shows that columns does not work inside framedtext, whereas simplecolumns does. However, the latter does not show rules between the columns. Can I have both?
Is columns definitely not working here or is it temporarily until something is fixed? Or will simplecolumns be extended to show the rules?
% test columns within framedtext \starttext \startframedtext[width=\makeupwidth] \startcolumns[n=2,rule=on,balance=yes] \input tufte \stopcolumns \stopframedtext \startframedtext[width=\makeupwidth] \blank \startsimplecolumns[n=2,rule=on,balance=yes] \input tufte \stopsimplecolumns \stopframedtext \stoptext
The new mixedcolumns environment can be used to the typeset columns in a frame. There is also a predefined bolxedcolumns environment which changes the width of the columns when you use it in \startframed etc. \setupalign[verytolerant] \starttext \startboxedcolumns[separator=rule] \input tufte \stopboxedcolumns \startframedtext[width=max,align=verytolerant] \startboxedcolumns[separator=rule] \input tufte \stopboxedcolumns \stopframedtext \stoptext Wolfgang
Thanks,
But I think mixedcolumns has to solve a problem width the width of the frametext. Whereas boxedcolumns honors the width of the enclosing framedtext, mixedcolumns does not. See the example.
% NOT OK WIDTH NOT RESPECTED
\startframedtext[width=.8\makeupwidth,align=verytolerant]
\startmixedcolumns[n=2,separator=rule,balance=yes]
\input tufte
\stopmixedcolumns
\stopframedtext
\blank
% OK
\startframedtext[width=.8\makeupwidth,align=verytolerant]
\startboxedcolumns[n=2,separator=rule,balance=yes]
\input tufte
\stopboxedcolumns
\stopframedtext
Hans van der Meer
On 3 okt. 2013, at 11:09, Wolfgang Schuster
Am 03.10.2013 um 10:21 schrieb H. van der Meer
: I have some difficulties with columns inside a framedtext. The example below shows that columns does not work inside framedtext, whereas simplecolumns does. However, the latter does not show rules between the columns. Can I have both?
Is columns definitely not working here or is it temporarily until something is fixed? Or will simplecolumns be extended to show the rules?
% test columns within framedtext \starttext \startframedtext[width=\makeupwidth] \startcolumns[n=2,rule=on,balance=yes] \input tufte \stopcolumns \stopframedtext \startframedtext[width=\makeupwidth] \blank \startsimplecolumns[n=2,rule=on,balance=yes] \input tufte \stopsimplecolumns \stopframedtext \stoptext
The new mixedcolumns environment can be used to the typeset columns in a frame.
There is also a predefined bolxedcolumns environment which changes the width of the columns when you use it in \startframed etc.
\setupalign[verytolerant]
\starttext
\startboxedcolumns[separator=rule] \input tufte \stopboxedcolumns
\startframedtext[width=max,align=verytolerant] \startboxedcolumns[separator=rule] \input tufte \stopboxedcolumns \stopframedtext
\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 ___________________________________________________________________________________
Am 03.10.2013 um 12:02 schrieb "H. van der Meer"
Thanks,
But I think mixedcolumns has to solve a problem width the width of the frametext. Whereas boxedcolumns honors the width of the enclosing framedtext, mixedcolumns does not. See the example.
Boxedcolumns are a instance of mixedcolumns and are defined as \definemixedcolumns[boxedcolumns] You can also use them this way: \startmixedcolumns[boxedcolumns] … \stopmixedcolumns Wolfgang
If I remember well, framedtext sets a localhsize for the width of its content. I guess that is why boxedcolumns stays within the width specified. But is there a specific reason why mixedcolumns in general does not?
Hans van der Meer
On 3 okt. 2013, at 12:07, Wolfgang Schuster
Am 03.10.2013 um 12:02 schrieb "H. van der Meer"
: Thanks,
But I think mixedcolumns has to solve a problem width the width of the frametext. Whereas boxedcolumns honors the width of the enclosing framedtext, mixedcolumns does not. See the example.
Boxedcolumns are a instance of mixedcolumns and are defined as
\definemixedcolumns[boxedcolumns]
You can also use them this way:
\startmixedcolumns[boxedcolumns] … \stopmixedcolumns
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 ___________________________________________________________________________________
Am 03.10.2013 um 12:26 schrieb H. van der Meer
If I remember well, framedtext sets a localhsize for the width of its content. I guess that is why boxedcolumns stays within the width specified. But is there a specific reason why mixedcolumns in general does not?
The global settings for mixedcolumns are \setupmixedcolumns [maxwidth=\makeupwidth] which forces columns to use the width of the textblock but boxedcolumns uses this \definemixedcolumns [boxedcolumns] [maxwidth=\availablehsize] where the width of the columns depends on the available width of the environment, e.g. in a narrower environment or in a frame the you get shorter columns. Wolfgang
On 10/3/2013 12:35 PM, Wolfgang Schuster wrote:
Am 03.10.2013 um 12:26 schrieb H. van der Meer
: If I remember well, framedtext sets a localhsize for the width of its content. I guess that is why boxedcolumns stays within the width specified. But is there a specific reason why mixedcolumns in general does not?
The global settings for mixedcolumns are
\setupmixedcolumns [maxwidth=\makeupwidth]
which forces columns to use the width of the textblock but boxedcolumns uses this
\definemixedcolumns [boxedcolumns] [maxwidth=\availablehsize]
where the width of the columns depends on the available width of the environment, e.g. in a narrower environment or in a frame the you get shorter columns.
also, boxedcolumns, as the name says, are for use in boxes while by default mixedcolumns (unless set up as boxed) are operating at the page level (the so called mvl) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 10/3/2013 12:35 PM, Wolfgang Schuster wrote:
Am 03.10.2013 um 12:26 schrieb H. van der Meer
: If I remember well, framedtext sets a localhsize for the width of its
content. I guess that is why boxedcolumns stays within the width specified. But is there a specific reason why mixedcolumns in general does not?
The global settings for mixedcolumns are
\setupmixedcolumns [maxwidth=\makeupwidth]
which forces columns to use the width of the textblock but boxedcolumns uses this
\definemixedcolumns [boxedcolumns] [maxwidth=\availablehsize]
where the width of the columns depends on the available width of the environment, e.g. in a narrower environment or in a frame the you get shorter columns.
also, boxedcolumns, as the name says, are for use in boxes while by default mixedcolumns (unless set up as boxed) are operating at the page level (the so called mvl)
For the curious: mvl is the main vertical list , see books.google.com "The advanced Texbook"
On Thu, Oct 3, 2013 at 6:55 PM, Hans Hagen
participants (4)
-
H. van der Meer
-
Hans Hagen
-
luigi scarso
-
Wolfgang Schuster