ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sytse Knypstra <sytse.knypstra@home.nl>
To: ntg-context@ntg.nl
Subject: Re: \setupcolumnsetlines does not work
Date: Sat, 17 Aug 2019 21:03:58 +0200 (CEST)	[thread overview]
Message-ID: <1850226779.2596255.1566068638530@mail.ziggo.nl> (raw)
In-Reply-To: <mailman.865.1566054029.1208.ntg-context@ntg.nl>

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@gmail.com>:
> 
> 
> Ok, have tried it now. No change ...
> 
> Am Sa., 17. Aug. 2019 um 13:33 Uhr schrieb Denis Maier <maier.de@gmail.com>:
> 
> > Also, what about \setupcolumnsetlines[Two][2][1][9]?
> >
> > Denis Maier <maier.de@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@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@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@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@gmail.com>:
> 
> > Ok, have tried it now. No change ...
> >
> > Am Sa., 17. Aug. 2019 um 13:33 Uhr schrieb Denis Maier <maier.de@gmail.com
> > >:
> >
> >> Also, what about \setupcolumnsetlines[Two][2][1][9]?
> >>
> >> Denis Maier <maier.de@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@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@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@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@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
> 
>
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

       reply	other threads:[~2019-08-17 19:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.865.1566054029.1208.ntg-context@ntg.nl>
2019-08-17 19:03 ` Sytse Knypstra [this message]
     [not found] <mailman.874.1566068640.1208.ntg-context@ntg.nl>
2019-08-17 21:54 ` Sytse Knypstra
2019-08-17 10:59 Sytse Knypstra
2019-08-17 11:32 ` Denis Maier
2019-08-17 11:33   ` Denis Maier
2019-08-17 13:14     ` Denis Maier
2019-08-17 13:50       ` Denis Maier
2019-08-17 14:24         ` Wolfgang Schuster
     [not found]           ` <CAMXdeGE++3DccdgFz_PKMdZE2kS6dM5BYqbUK3U3CNUE46c1PQ@mail.gmail.com>
2019-08-17 15:00             ` Wolfgang Schuster
     [not found]               ` <CAMXdeGFbc=U7NuMC0Aqj7uF+n5eKO728EoYvykxWbyekvViWkA@mail.gmail.com>
2019-08-17 16:07                 ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1850226779.2596255.1566068638530@mail.ziggo.nl \
    --to=sytse.knypstra@home.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).