Line numbering in two column layout conflicts with marking
Dear list members, line numbering in a two column layout apparently conflicts with the marking mechanism. Consider the following example: \setupcolumns[n=2] \setuplinenumbering [ step=5, method=page, align=flushright, ] \definemarking[Test] \setupheadertexts[{\fetchmark[Test][top] -- \fetchmark[Test][bottom]}] \startbuffer \dorecurse{12}{words } \stopbuffer \starttext \startcolumns \startlinenumbering \marking[Test]{ONE}ONE \dorecurse{12}{\getbuffer}\par \marking[Test]{TWO}TWO \dorecurse{29}{\getbuffer}\par \marking[Test]{THREE}THREE \dorecurse{12}{\getbuffer}\par \stoplinenumbering \stopcolumns \stoptext In the result, the header of the first page reads "ONE -- THREE", despite marking "THREE" being placed in the third line of the second page. Without linenumbering, the header of the first page reads "ONE -- TWO", as is to be expected. Best regards, Oliver -- Dr. Oliver von Criegern Referat für IT und Digital Humanities Bayerische Akademie der Wissenschaften Alfons-Goppel-Str. 11 80539 München Tel.: 089-23031-1310
Any suggestions, how to solve this problem? Am 02.12.19 um 20:06 schrieb Oliver von Criegern:
Dear list members,
line numbering in a two column layout apparently conflicts with the marking mechanism.
Consider the following example:
\setupcolumns[n=2]
\setuplinenumbering [ step=5, method=page, align=flushright, ]
\definemarking[Test]
\setupheadertexts[{\fetchmark[Test][top] -- \fetchmark[Test][bottom]}]
\startbuffer \dorecurse{12}{words } \stopbuffer
\starttext \startcolumns \startlinenumbering \marking[Test]{ONE}ONE \dorecurse{12}{\getbuffer}\par \marking[Test]{TWO}TWO \dorecurse{29}{\getbuffer}\par \marking[Test]{THREE}THREE \dorecurse{12}{\getbuffer}\par \stoplinenumbering \stopcolumns \stoptext
In the result, the header of the first page reads "ONE -- THREE", despite marking "THREE" being placed in the third line of the second page.
Without linenumbering, the header of the first page reads "ONE -- TWO", as is to be expected.
Best regards, Oliver
-- Dr. Oliver von Criegern Referat für IT und Digital Humanities Bayerische Akademie der Wissenschaften Alfons-Goppel-Str. 11 80539 München Tel.: 089-23031-1310
So there seems to be no solution for this? Am 09.12.19 um 15:18 schrieb Oliver von Criegern:
Any suggestions, how to solve this problem?
Am 02.12.19 um 20:06 schrieb Oliver von Criegern:
Dear list members,
line numbering in a two column layout apparently conflicts with the marking mechanism.
Consider the following example:
\setupcolumns[n=2]
\setuplinenumbering [ step=5, method=page, align=flushright, ]
\definemarking[Test]
\setupheadertexts[{\fetchmark[Test][top] -- \fetchmark[Test][bottom]}]
\startbuffer \dorecurse{12}{words } \stopbuffer
\starttext \startcolumns \startlinenumbering \marking[Test]{ONE}ONE \dorecurse{12}{\getbuffer}\par \marking[Test]{TWO}TWO \dorecurse{29}{\getbuffer}\par \marking[Test]{THREE}THREE \dorecurse{12}{\getbuffer}\par \stoplinenumbering \stopcolumns \stoptext
In the result, the header of the first page reads "ONE -- THREE", despite marking "THREE" being placed in the third line of the second page.
Without linenumbering, the header of the first page reads "ONE -- TWO", as is to be expected.
Best regards, Oliver
-- Dr. Oliver von Criegern Referat für IT und Digital Humanities Bayerische Akademie der Wissenschaften Alfons-Goppel-Str. 11 80539 München Tel.: 089-23031-1310
Using \definepagecolumns[xyz][n=2] instead of \setupcolumns[n=2] and \startpagecolumns[xyz] etc. instead of \startcolumns etc. seems to do what I want, except that the columns of the last page aren't balanced any more. Anyway, pagecolumns seems to be experimental. The manual says "Don't use page columns in production". Am 23.12.19 um 12:02 schrieb Wolfgang Schuster:
Oliver von Criegern schrieb am 18.12.2019 um 17:39:
So there seems to be no solution for this?
Not a solution but pagecolumns show the correct marks even with line numbering.
Wolfgang
-- Dr. Oliver von Criegern Referat für IT und Digital Humanities Bayerische Akademie der Wissenschaften Alfons-Goppel-Str. 11 80539 München Tel.: 089-23031-1310
Using \definepagecolumns[xyz][n=2] instead of \setupcolumns[n=2] and \startpagecolumns[xyz] etc. instead of \startcolumns etc. seems to do what I want, except that the columns of the last page aren't balanced any more.
Anyway, pagecolumns seems to be experimental. The manual says "Don't use page columns in production". as long as you keep in mind that they might 'improve' you can just use
On 1/7/2020 1:26 PM, Oliver von Criegern wrote: them (they are just not tested a lot) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Oliver von Criegern
-
Wolfgang Schuster