columns unexpected (odd) results
Has anyone a solution / hint as how to get the linespacing correct when using columns ? The first page works as expected, but all the following pages have an unexpected mis-alignment in the first column The document itself is plain vanilla: \starttext \startlines Testing 1971-04-26 \startcolumns[n=3] + 17271 \rightarrow\ 2018-08-08 + 17300 \rightarrow\ 2018-09-06 + 17371 \rightarrow\ 2018-11-16 … + 39900 \rightarrow\ 2080-07-22 + 39993 \rightarrow\ 2080-10-23 + 40000 \rightarrow\ 2080-10-30 \stopcolumns \stoplines \stoptext
Cannot reproduce with TL2018 or latest beta. MWE below: \starttext \startlines Testing 1971-04-26 \startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08 } \stopcolumns \stoplines \stoptext On 01/08/18 21:34, Floris van Manen wrote:
Has anyone a solution / hint as how to get the linespacing correct when using columns ?
The first page works as expected, but all the following pages have an unexpected mis-alignment in the first column
The document itself is plain vanilla:
\starttext \startlines Testing 1971-04-26 \startcolumns[n=3]
+ 17271 \rightarrow\ 2018-08-08 + 17300 \rightarrow\ 2018-09-06 + 17371 \rightarrow\ 2018-11-16
…
+ 39900 \rightarrow\ 2080-07-22 + 39993 \rightarrow\ 2080-10-23 + 40000 \rightarrow\ 2080-10-30 \stopcolumns \stoplines \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 ___________________________________________________________________________________
On 08/01/2018 11:48 AM, Henri Menke wrote:
Cannot reproduce with TL2018 or latest beta.
Hi Henri, I’m afraid that Floris is right. With latest beta and a simple improvement to your file, I get wrong output: \starttext \startlines Testing 1971-04-26 \startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08 } \stopcolumns \stoplines \stoptext If the closing parenthesis is on the same line, the plus sign is misplaced in the last item. With the previous sample, the second page gets a wrong interline space (between the third and the fourth item from the first column). Pablo -- http://www.ousia.tk
Hi, Same problem I had. As a workaround, \setuplayout[grid=yes] helps.
On 1 Aug 2018, at 12:37, Pablo Rodriguez
wrote: On 08/01/2018 11:48 AM, Henri Menke wrote:
Cannot reproduce with TL2018 or latest beta.
Hi Henri,
I’m afraid that Floris is right. With latest beta and a simple improvement to your file, I get wrong output:
\starttext \startlines Testing 1971-04-26 \startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08 } \stopcolumns \stoplines \stoptext
If the closing parenthesis is on the same line, the plus sign is misplaced in the last item.
With the previous sample, the second page gets a wrong interline space (between the third and the fourth item from the first column).
Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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 ___________________________________________________________________________________
Taco Hoekwater Elvenkind BV
that works indeed. thank you .F
On 1 Aug 2018, at 13:04, Taco Hoekwater
wrote: Hi,
Same problem I had.
As a workaround,
\setuplayout[grid=yes]
helps.
On 1 Aug 2018, at 12:37, Pablo Rodriguez
wrote: On 08/01/2018 11:48 AM, Henri Menke wrote:
Cannot reproduce with TL2018 or latest beta.
Hi Henri,
I’m afraid that Floris is right. With latest beta and a simple improvement to your file, I get wrong output:
\starttext \startlines Testing 1971-04-26 \startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08 } \stopcolumns \stoplines \stoptext
If the closing parenthesis is on the same line, the plus sign is misplaced in the last item.
With the previous sample, the second page gets a wrong interline space (between the third and the fourth item from the first column).
Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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 ___________________________________________________________________________________
Taco Hoekwater Elvenkind BV
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Ending each line in a proper (e.g. by adding \par to finish the paragraph) without the misuse the lines environment fixes the problem as well. \starttext Testing 1971-04-26 \startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08\par} \stopcolumns \stoptext Wolfgang Taco Hoekwater schrieb am 01.08.18 um 13:04:
Hi,
Same problem I had.
As a workaround,
\setuplayout[grid=yes]
helps.
On 1 Aug 2018, at 12:37, Pablo Rodriguez
wrote: On 08/01/2018 11:48 AM, Henri Menke wrote:
Cannot reproduce with TL2018 or latest beta. Hi Henri,
I’m afraid that Floris is right. With latest beta and a simple improvement to your file, I get wrong output:
\starttext \startlines Testing 1971-04-26 \startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08 } \stopcolumns \stoplines \stoptext
If the closing parenthesis is on the same line, the plus sign is misplaced in the last item.
With the previous sample, the second page gets a wrong interline space (between the third and the fourth item from the first column).
Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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 ___________________________________________________________________________________ Taco Hoekwater Elvenkind BV
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Not sure as how to tell why it is misusing the line environment. But the suggested \par solution does not work. .F
On 1 Aug 2018, at 21:28, Wolfgang Schuster
wrote: Ending each line in a proper (e.g. by adding \par to finish the paragraph) without the misuse the lines environment fixes the problem as well.
\starttext
Testing 1971-04-26
\startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08\par} \stopcolumns
\stoptext
Wolfgang
Taco Hoekwater schrieb am 01.08.18 um 13:04:
Hi,
Same problem I had.
As a workaround,
\setuplayout[grid=yes]
helps.
On 1 Aug 2018, at 12:37, Pablo Rodriguez
wrote: On 08/01/2018 11:48 AM, Henri Menke wrote:
Cannot reproduce with TL2018 or latest beta. Hi Henri,
I’m afraid that Floris is right. With latest beta and a simple improvement to your file, I get wrong output:
\starttext \startlines Testing 1971-04-26 \startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08 } \stopcolumns \stoplines \stoptext
If the closing parenthesis is on the same line, the plus sign is misplaced in the last item.
With the previous sample, the second page gets a wrong interline space (between the third and the fourth item from the first column).
Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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 ___________________________________________________________________________________ Taco Hoekwater Elvenkind BV
___________________________________________________________________________________ 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 ___________________________________________________________________________________
___________________________________________________________________________________ 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 ___________________________________________________________________________________
On 08/01/2018 10:16 PM, Floris van Manen wrote:
Not sure as how to tell why it is misusing the line environment. But the suggested \par solution does not work.
.F
On 1 Aug 2018, at 21:28, Wolfgang Schuster wrote:
Ending each line in a proper (e.g. by adding \par to finish the paragraph) without the misuse the lines environment fixes the problem as well.
Wolfgang, as Florian reported, this doesn’t solve the issue. On the second page, interline space between the third and fourth lines from the first column is wrong. The only way to fix it seems to enable grid composition. I don’t know whether this might be a bug in ConTeXt. Many thanks for your help, Pablo
\starttext
Testing 1971-04-26
\startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08\par} \stopcolumns
\stoptext
Wolfgang
Pablo Rodriguez schrieb am 02.08.18 um 09:42:
On 08/01/2018 10:16 PM, Floris van Manen wrote:
Not sure as how to tell why it is misusing the line environment. But the suggested \par solution does not work.
.F
On 1 Aug 2018, at 21:28, Wolfgang Schuster wrote:
Ending each line in a proper (e.g. by adding \par to finish the paragraph) without the misuse the lines environment fixes the problem as well. Wolfgang,
as Florian reported, this doesn’t solve the issue.
On the second page, interline space between the third and fourth lines from the first column is wrong.
I saw only the wrong alignment of the last text line before \stopcolumns which can be fixed with \par.
The only way to fix it seems to enable grid composition. I don’t know whether this might be a bug in ConTeXt.
Adding \strut at the begin of each text line does also fix the spacing. Wolfgang
Floris van Manen schrieb am 01.08.18 um 22:16:
Not sure as how to tell why it is misusing the line environment. But the suggested \par solution does not work.
I took only a brief look at Henris example where I saw only the wrong alignment before \stopcolumns. What you can do to fix the vertical alignment without enabling the grid is to add \strut at the begin of each line. \starttext Testing 1971-04-26 \startcolumns[n=3] \startlines[command=\strut] + 17271 \rightarrow\ 2018-08-08 ... + 17271 \rightarrow\ 2018-08-08 \stoplines \stopcolumns \stoptext Wolfgang
On 8/1/2018 12:37 PM, Pablo Rodriguez wrote:
On 08/01/2018 11:48 AM, Henri Menke wrote:
Cannot reproduce with TL2018 or latest beta.
Hi Henri,
I’m afraid that Floris is right. With latest beta and a simple improvement to your file, I get wrong output:
\starttext \startlines Testing 1971-04-26 \startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08 } \stopcolumns \stoplines \stoptext
If the closing parenthesis is on the same line, the plus sign is misplaced in the last item.
With the previous sample, the second page gets a wrong interline space (between the third and the fourth item from the first column). quick hack:
\unprotect \unexpanded\def\page_otr_synchronize_page_indeed {\ifx\currentoutputroutine\s!multicolumn\else\clf_synchronizepage\fi \glet\page_otr_synchronize_page\page_otr_synchronize_page_yes} \protect Actually I don't see it here because i have \definemixedcolumns [\v!columns] [\c!balance=\v!yes, \c!blank={\v!line,\v!fixed}] \unexpanded\def\setupcolumns {\setupmixedcolumns[\v!columns]} in a local test file (already for years so maybe it's time time to make that default) (btw, pagecolumns are an other alternative) 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 (6)
-
Floris van Manen
-
Hans Hagen
-
Henri Menke
-
Pablo Rodriguez
-
Taco Hoekwater
-
Wolfgang Schuster