* columnsets messed up
@ 2021-07-01 18:04 Henning Hraban Ramm
2021-07-02 6:51 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm @ 2021-07-01 18:04 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
I’m working at the current CG journal whose layout uses columnsets. They aren’t usable any more. Same in current LMTX and MkIV.
- the first line can start one or more lines lower
- then the same number of lines is printed over each other at the bottom
- it gets worse with footnotes (looks like their space isn’t considered at all)
- if the column set doesn’t start at the top of the page, the second column does
Hraban
\definecolumnset[cgjcolset][n=2]
\starttext
\chapter{This is a chapter about column sets}
\startcolumnset[cgjcolset]
\dorecurse{20}{
\samplefile{sapolsky}\par
}
\stopcolumnset
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: columnsets messed up
2021-07-01 18:04 columnsets messed up Henning Hraban Ramm
@ 2021-07-02 6:51 ` Hans Hagen
2021-07-02 9:03 ` Henning Hraban Ramm
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2021-07-02 6:51 UTC (permalink / raw)
To: mailing list for ConTeXt users, Henning Hraban Ramm
On 7/1/2021 8:04 PM, Henning Hraban Ramm wrote:
> Hi,
> I’m working at the current CG journal whose layout uses columnsets. They aren’t usable any more. Same in current LMTX and MkIV.
>
> - the first line can start one or more lines lower
> - then the same number of lines is printed over each other at the bottom
> - it gets worse with footnotes (looks like their space isn’t considered at all)
> - if the column set doesn’t start at the top of the page, the second column does
>
>
> Hraban
>
>
> \definecolumnset[cgjcolset][n=2]
>
> \starttext
>
> \chapter{This is a chapter about column sets}
>
> \startcolumnset[cgjcolset]
>
> \dorecurse{20}{
> \samplefile{sapolsky}\par
> }
>
> \stopcolumnset
>
> \stoptext
Personally I'd never use columnsets for anything else than very
controlled situations because that's what they were made for. Not to be
mixed with the normal pagebuilder. So, first of all you need to operate
on the grid (i can probably get rid of some side effects and maigt even
force that but not now). Then, \chapter itself flushes pages so that
should be disabled.
Here is a simple example:
\setuplayout[lines=40,grid=yes]
\definecolumnset[cgjcolset][n=2]
\starttext
\definecolumnsetspan
[chapter]
[background=color,
backgroundcolor=red]
\setuphead[chapter][page=no,after=,before=]
\startcolumnset[cgjcolset]
\startcolumnsetspan[chapter]
\chapter{This is a chapter about column sets}
\stopcolumnsetspan
\dorecurse{20}{
\samplefile{sapolsky}\par
}
\stopcolumnset
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: columnsets messed up
2021-07-02 6:51 ` Hans Hagen
@ 2021-07-02 9:03 ` Henning Hraban Ramm
2021-07-02 9:25 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm @ 2021-07-02 9:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 02.07.2021 um 08:51 schrieb Hans Hagen <j.hagen@xs4all.nl>:
>
> On 7/1/2021 8:04 PM, Henning Hraban Ramm wrote:
>> Hi,
>> I’m working at the current CG journal whose layout uses columnsets. They aren’t usable any more. Same in current LMTX and MkIV.
>> - the first line can start one or more lines lower
>> - then the same number of lines is printed over each other at the bottom
>> - it gets worse with footnotes (looks like their space isn’t considered at all)
>> - if the column set doesn’t start at the top of the page, the second column does
>> Hraban
>> \definecolumnset[cgjcolset][n=2]
>> \starttext
>> \chapter{This is a chapter about column sets}
>> \startcolumnset[cgjcolset]
>> \dorecurse{20}{
>> \samplefile{sapolsky}\par
>> }
>> \stopcolumnset
>> \stoptext
> Personally I'd never use columnsets for anything else than very controlled situations because that's what they were made for. Not to be mixed with the normal pagebuilder. So, first of all you need to operate on the grid (i can probably get rid of some side effects and maigt even force that but not now). Then, \chapter itself flushes pages so that should be disabled.
Thank you, I got it mostly working now.
The CGJ layout doesn’t actually use \chapter but its own convoluted \startArticle. Until last issue it tried to be flexible and setup three different column modes. Now I eliminated the last leftovers of that. I still struggle to understand some pecularities...
What I did wrong:
* \setuplayout[grid=yes] is important
* you can’t start a columnsetspan before the columnset
Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: columnsets messed up
2021-07-02 9:03 ` Henning Hraban Ramm
@ 2021-07-02 9:25 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2021-07-02 9:25 UTC (permalink / raw)
To: mailing list for ConTeXt users, Henning Hraban Ramm
On 7/2/2021 11:03 AM, Henning Hraban Ramm wrote:
>
>> Am 02.07.2021 um 08:51 schrieb Hans Hagen <j.hagen@xs4all.nl>:
>>
>> On 7/1/2021 8:04 PM, Henning Hraban Ramm wrote:
>>> Hi,
>>> I’m working at the current CG journal whose layout uses columnsets. They aren’t usable any more. Same in current LMTX and MkIV.
>>> - the first line can start one or more lines lower
>>> - then the same number of lines is printed over each other at the bottom
>>> - it gets worse with footnotes (looks like their space isn’t considered at all)
>>> - if the column set doesn’t start at the top of the page, the second column does
>>> Hraban
>>> \definecolumnset[cgjcolset][n=2]
>>> \starttext
>>> \chapter{This is a chapter about column sets}
>>> \startcolumnset[cgjcolset]
>>> \dorecurse{20}{
>>> \samplefile{sapolsky}\par
>>> }
>>> \stopcolumnset
>>> \stoptext
>> Personally I'd never use columnsets for anything else than very controlled situations because that's what they were made for. Not to be mixed with the normal pagebuilder. So, first of all you need to operate on the grid (i can probably get rid of some side effects and maigt even force that but not now). Then, \chapter itself flushes pages so that should be disabled.
>
> Thank you, I got it mostly working now.
>
> The CGJ layout doesn’t actually use \chapter but its own convoluted \startArticle. Until last issue it tried to be flexible and setup three different column modes. Now I eliminated the last leftovers of that. I still struggle to understand some pecularities...
>
> What I did wrong:
> * \setuplayout[grid=yes] is important
> * you can’t start a columnsetspan before the columnset
leter this year i will into the several column mechanisms (maybe also
some mechanism to warn for mixed usage or use of features that interfere
.. doing columns is hairy in tex)
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: columnsets messed up
2021-07-02 12:49 ` Fwd: " Henning Hraban Ramm
@ 2021-07-04 8:40 ` Henning Hraban Ramm
0 siblings, 0 replies; 5+ messages in thread
From: Henning Hraban Ramm @ 2021-07-04 8:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 02.07.2021 um 14:49 schrieb Henning Hraban Ramm <texml@fiee.net>:
> In several articles I get a problem, and I can’t (yet) reproduce it in a MWE:
>
> The text in a two-column columnset suddenly breaks at the end of a left column, the end is missing.
>
> Here’s an example PDF:
> https://sedna.fiee.net/f/24d54a952b0243a98775/?dl=1
>
> What could case that?
Even curioser:
If there isn’t a \page after \stopcolumnset, the second-to-last section (subject) disappears and the last one is typeset completely.
(Later:)
Ok, found it:
\def\stopArticle{%
\par\signArticle
\doif{\getvariable{CG-Journal}{NOFColumns}}{>1}
{\stopcolumnset}
\page
}
--> \stopcolumnset is never executed, since \doif can’t handle ">1". – Did it ever or is this a regression?
Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-07-04 8:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-01 18:04 columnsets messed up Henning Hraban Ramm
2021-07-02 6:51 ` Hans Hagen
2021-07-02 9:03 ` Henning Hraban Ramm
2021-07-02 9:25 ` Hans Hagen
[not found] <233FE0DA-C7E2-4629-A764-3B23B5A9D859@fiee.net>
2021-07-02 12:49 ` Fwd: " Henning Hraban Ramm
2021-07-04 8:40 ` Henning Hraban Ramm
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).