[NTG-context] \setupcolumnsetlines does not work

Sytse Knypstra sytse.knypstra at home.nl
Sat Aug 17 21:03:58 CEST 2019


Thank you, Denis and Wolfgang.
Wolfgang, your sentence 
> No, you set relative numbers (I checked it) but the first columnset
> environment ends on the third page because you leave just enough
> space on the second page to fit the text which produces an empty
> third page.
is not clear to me.
If \setupcolumnsetlines has to be specified before \starttext and if the second parameter denotes the absolute page number of the column to be limited, then the following example still does not work correctly for the second page (ouput consists of two pages).

\definecolumnset[Two][n=2]

\setupcolumnsetlines[Two][1][1][9]

\setupcolumnsetlines[Two][2][1][9]

\starttext

	\startcolumnset[Two]

		\input knuth

	\stopcolumnset

	\startcolumnset[Two]

		\input knuth

	\stopcolumnset

\stoptext

Sytse

> Op 17 augustus 2019 om 15:14 schreef Denis Maier <maier.de at gmail.com>:
> 
> 
> Ok, have tried it now. No change ...
> 
> Am Sa., 17. Aug. 2019 um 13:33 Uhr schrieb Denis Maier <maier.de at gmail.com>:
> 
> > Also, what about \setupcolumnsetlines[Two][2][1][9]?
> >
> > Denis Maier <maier.de at gmail.com> schrieb am Sa., 17. Aug. 2019, 13:32:
> >
> >> If I am remembering correctly, the documentation has \setupcolumnsetlines
> >> before \starttext.
> >>
> >> Sytse Knypstra <sytse.knypstra at home.nl> schrieb am Sa., 17. Aug. 2019,
> >> 12:59:
> >>
> >>> In an effort to balance columns in a columnset layout, I found that in
> >>> the following minimal example this effect is not obtained.
> >>> After commenting out the first three lines after \starttext the result
> >>> is ok.
> >>> I am wondering what I overlooked this time.
> >>>
> >>> \definecolumnset[Two][n=2]
> >>> \starttext
> >>>    \startcolumnset[Two]
> >>>       \input knuth
> >>>    \stopcolumnset
> >>>    \page
> >>>    \setupcolumnsetlines[Two][1][1][9]
> >>>    \startcolumnset[Two]
> >>>       \input knuth
> >>>    \stopcolumnset
> >>> \stoptext
> >>>
> >>> Thank you for your suggestions,
> >>>
> >>> Sytse Knypstra
> >>>
> >>> ___________________________________________________________________________________
> >>> If your question is of interest to others as well, please add an entry
> >>> to the Wiki!
> >>>
> >>> maillist : ntg-context at ntg.nl /
> >>> http://www.ntg.nl/mailman/listinfo/ntg-context
> >>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> >>> archive  : https://bitbucket.org/phg/context-mirror/commits/
> >>> wiki     : http://contextgarden.net
> >>>
> >>> ___________________________________________________________________________________
> >>>
> >>

> Op 17 augustus 2019 om 15:50 schreef Denis Maier <maier.de at gmail.com>:
> 
> 
> This here works for the first columnset, but not for the second one:
> 
> =================================
> \usemodule[newcolumnsets]
> 
> \definecolumnset[One][n=2]
> 
> \setupcolumnsetlines[One][1][1][9]
> \setupcolumnsetlines[One][1][2][9]
> \setupcolumnsetlines[One][2][1][9]
> \setupcolumnsetlines[One][2][2][9]
> 
> \definecolumnset[Two][n=2]
> \setupcolumnsetlines[Two][1][1][9]
> \setupcolumnsetlines[Two][1][2][9]
> \setupcolumnsetlines[Two][2][1][9]
> \setupcolumnsetlines[Two][2][2][9]
> 
> \starttext
>    \startcolumnset[One]
>       \input knuth
> 
>       \input knuth
> \stopcolumnset
> 
> \startcolumnset[Two]
>       \input knuth
> 
>   \input knuth
> \stopcolumnset
> \stoptext
> ===================================
> 
> Am Sa., 17. Aug. 2019 um 15:14 Uhr schrieb Denis Maier <maier.de at gmail.com>:
> 
> > Ok, have tried it now. No change ...
> >
> > Am Sa., 17. Aug. 2019 um 13:33 Uhr schrieb Denis Maier <maier.de at gmail.com
> > >:
> >
> >> Also, what about \setupcolumnsetlines[Two][2][1][9]?
> >>
> >> Denis Maier <maier.de at gmail.com> schrieb am Sa., 17. Aug. 2019, 13:32:
> >>
> >>> If I am remembering correctly, the documentation has
> >>> \setupcolumnsetlines before \starttext.
> >>>
> >>> Sytse Knypstra <sytse.knypstra at home.nl> schrieb am Sa., 17. Aug. 2019,
> >>> 12:59:
> >>>
> >>>> In an effort to balance columns in a columnset layout, I found that in
> >>>> the following minimal example this effect is not obtained.
> >>>> After commenting out the first three lines after \starttext the result
> >>>> is ok.
> >>>> I am wondering what I overlooked this time.
> >>>>
> >>>> \definecolumnset[Two][n=2]
> >>>> \starttext
> >>>>    \startcolumnset[Two]
> >>>>       \input knuth
> >>>>    \stopcolumnset
> >>>>    \page
> >>>>    \setupcolumnsetlines[Two][1][1][9]
> >>>>    \startcolumnset[Two]
> >>>>       \input knuth
> >>>>    \stopcolumnset
> >>>> \stoptext
> >>>>
> >>>> Thank you for your suggestions,
> >>>>
> >>>> Sytse Knypstra
> >>>>
> >>>> ___________________________________________________________________________________
> >>>> If your question is of interest to others as well, please add an entry
> >>>> to the Wiki!
> >>>>
> >>>> maillist : ntg-context at ntg.nl /
> >>>> http://www.ntg.nl/mailman/listinfo/ntg-context
> >>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> >>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
> >>>> wiki     : http://contextgarden.net
> >>>>
> >>>> ___________________________________________________________________________________
> >>>>
> >>>

> Op 17 augustus 2019 om 16:24 schreef Wolfgang Schuster <wolfgang.schuster.lists at gmail.com>:
> 
> 
> Denis Maier schrieb am 17.08.2019 um 15:50:
> > This here works for the first columnset, but not for the second one:
> >
> > =================================
> > \usemodule[newcolumnsets]
> The new code base is used by default and you don't have to load the module.
> > \definecolumnset[One][n=2]
> >
> > \setupcolumnsetlines[One][1][1][9]
> > \setupcolumnsetlines[One][1][2][9]
> > \setupcolumnsetlines[One][2][1][9]
> > \setupcolumnsetlines[One][2][2][9]
> >
> > \definecolumnset[Two][n=2]
> > \setupcolumnsetlines[Two][1][1][9]
> > \setupcolumnsetlines[Two][1][2][9]
> > \setupcolumnsetlines[Two][2][1][9]
> > \setupcolumnsetlines[Two][2][2][9]
> The second argument expects the page number of the column where want
> to change the number of lines. In your example the second environment
> starts at page 3 but you change the lines only for the first and second 
> page.
> 
> Wolfgang
> 
> 

> Op 17 augustus 2019 om 17:00 schreef Wolfgang Schuster <wolfgang.schuster.lists at gmail.com>:
> 
> 
> Denis Maier schrieb am 17.08.2019 um 16:45:
> > Ok. So no need to load the module first. Good.
> >
> > So the second argument is an absolute pagenumber, not relative to 
> > where to columnset starts... But then, this here should work:
> No, you set relative numbers (I checked it) but the first columnset
> environment ends on the third page because you leave just enough
> space on the second page to fit the text which produces an empty
> third page.
> 
> Wolfgang
> 
>


More information about the ntg-context mailing list