Columns with non-equal width; nested columns
Hello, I need to get columns like this: | | 1b | | 1a | | +-------------+ | | 2a | 2b | | | | | | I tried the following: ---- \starttext \startcolumns[n=2] % How to tell that ratio between columns should be 2:1? \input knuth % Be 1a \startcolumns[n=2] \input ward % Be 2a \column \input ward % Be 2b \stopcolumns \column \input knuth % Be 1b \stopcolumns \stoptext ---- - Is it possible to nest columns? - If not, is there another solution? - How to specify ratio of widths of columns? Best regards, Lukas -- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396
Am 2019-09-24 um 15:44 schrieb Procházka Lukáš Ing.
: I need to get columns like this:
| | 1b | | 1a | | +-------------+ | | 2a | 2b | | | | | |
I tried the following:
---- \starttext \startcolumns[n=2] % How to tell that ratio between columns should be 2:1? \input knuth % Be 1a
Such a layout is not possible with simple old columns. Try columnsets or page columns (see manuals of the same name). Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
Am 2019-09-24 um 15:44 schrieb Procházka Lukáš Ing.
: I need to get columns like this:
| | 1b | | 1a | | +-------------+ | | 2a | 2b | | | | | |
I tried the following:
---- \starttext \startcolumns[n=2] % How to tell that ratio between columns should be 2:1? \input knuth % Be 1a Such a layout is not possible with simple old columns. Try columnsets or page columns (see manuals of the same name). When the text for each column will never go into another column
Henning Hraban Ramm schrieb am 24.09.2019 um 18:47: paragraphs or a table is another way to achieve this layout. Wolfgang
Hello,
thanks for reaction - so I'm starting with column sets (@Wolfgang: text from column 2a may flow into 2b).
My code so far:
----
\definecolumnset[example][n=3,balancing=no]
\definecolumnsetspan[wide][n=2,background=contrast]
\setupexternalfigures[location=default]
\setuphead[subsubsubsubsubject][style=bold]
\starttext
\startcolumnset[example]
\startcolumnsetspan[wide]
\externalfigure[hacker][width=95mm]
\stopcolumnsetspan
\dorecurse{2}{
\subsubsubsubsubject{Sub}
\input ward
}
\column
\column
\darkred
\starttabulate[|rB|lp|]
\NC a
\NC
AA
\NC\NR
\NC aa
\NC
AAA
\NC\NR
\stoptabulate
\stopcolumnset
\stoptext
----
produces overlapping lines at the end of the first column.
- How to avoid this?
- Being in a columnset environment, is there a way to tell context "go to third column" (regardless in which column I am currently typing)?
- Altough I found some wiki material about column sets (e.g. https://wiki.contextgarden.net/Command/setupcolumnsetstart or columns.pdf), I found nothing about "page columns" - can you give me a link?
- All wiki examples use "1" at the place of "nesting level":
"
\setupcolumnsetstart[...][...][...][...]
[...] columnset name
[...] nesting level
[...] number of individual column in columnset
[...] starting line (1 = start at the top)
...
\setupcolumnsetstart[three][1][1][15]
^
| ---------- HERE
"
Is there a sample which would use an other number? - I'm asking as I guess my task has to do with nested column sets.
Best regards,
Lukas
On Tue, 24 Sep 2019 18:47:18 +0200, Henning Hraban Ramm
Am 2019-09-24 um 15:44 schrieb Procházka Lukáš Ing.
: I need to get columns like this:
| | 1b | | 1a | | +-------------+ | | 2a | 2b | | | | | |
I tried the following:
---- \starttext \startcolumns[n=2] % How to tell that ratio between columns should be 2:1? \input knuth % Be 1a
Such a layout is not possible with simple old columns. Try columnsets or page columns (see manuals of the same name).
Greetlings, Hraban
-- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396
Am 2019-09-25 um 11:39 schrieb Procházka Lukáš Ing.
- Altough I found some wiki material about column sets (e.g. https://wiki.contextgarden.net/Command/setupcolumnsetstart or columns.pdf), I found nothing about "page columns" - can you give me a link?
Sorry, the wiki is very outdated and confusing in this regard. I’m planning to research and document columns better (my talk in Bassenge covered only a few aspects of old/new columns and columnsets), but have a lot of other things at hand… If your ConTeXt installation is quite recent, you have texmf-context/doc/context/documents/general/manuals/pagecolumns.pdf This is quite new and I don’t know how usable. (Hint for everyone: the "manuals" directory is a tresure trove!) Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
Hello Hraban,
On Wed, 25 Sep 2019 13:07:50 +0200, Henning Hraban Ramm
If your ConTeXt installation is quite recent, you have texmf-context/doc/context/documents/general/manuals/pagecolumns.pdf This is quite new and I don’t know how usable.
useful, thanks.
(Hint for everyone: the "manuals" directory is a tresure trove!)
(I can confirm!) BTW, following "columnsets.pdf", \column has many options, unfortunately not so clear for me; so: \column -> go to next column? \column[] -> = \column? \column[yes] -> = \column? \column[page] -> go to first column on the new page? \column[3] -> go to 3rd column - or skip 3 columns? \column[first] -> go to first column, also go to next page if currently on 2+th column? \column[last] -> go to last column? \column[3*5] -> ??? Any explanation would be nice. Best regards, Lukas
Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
-- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396
Am 2019-09-25 um 13:48 schrieb Procházka Lukáš Ing.
: BTW, following "columnsets.pdf", \column has many options, unfortunately not so clear for me; so:
\column -> go to next column? \column[] -> = \column? \column[yes] -> = \column? \column[page] -> go to first column on the new page? \column[3] -> go to 3rd column - or skip 3 columns? \column[first] -> go to first column, also go to next page if currently on 2+th column? \column[last] -> go to last column? \column[3*5] -> ???
Any explanation would be nice.
Please try it and report back, i.e. document it in the wiki. Someone has to do it… I only ever used plain \column. Maybe the source helps further: https://source.contextgarden.net/tex/context/base/mkiv/page-cst.mkiv Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
Hello, I extended the "Description" section at https://wiki.contextgarden.net/Command/column#Description by an incomplete list of options.
Please try it and report back, i.e. document it in the wiki. Someone has to do it…
The only effect I can see is when I use \column (= go to next column) and \column[last] (go to last column); just guessing what other options mean; and no idea what [3*5] does.
I only ever used plain \column.
So did I. And I tried \column[last] this time, too. So - anyone with better knowledge to fill meaning of the unknown \column options? BTW, what effect has using \column more times than \startcolumns[n=...] predicts? Best, Lukas NB: I've noticed many changes on wiki (https://wiki.contextgarden.net/Special:RecentChanges) in last days issued by you, Hraban, so thank you for maintaining wiki.
Maybe the source helps further: https://source.contextgarden.net/tex/context/base/mkiv/page-cst.mkiv
Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
-- Ing. Lukáš Procházka | mailto:LPr@pontex.cz Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn Bezová 1658 147 14 Praha 4 Mob.: +420 702 033 396
Am 2019-09-25 um 22:29 schrieb Procházka Lukáš Ing.
: NB: I've noticed many changes on wiki (https://wiki.contextgarden.net/Special:RecentChanges) in last days issued by you, Hraban, so thank you for maintaining wiki.
You’re welcome! I’m working on my ConTeXt book as well as two books typeset with ConTeXt, so I use the wiki a lot. If I see something’s wrong or missing, I change that – if it’s not too much work, that is: Therefore, columns are a big todo. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD
participants (3)
-
Henning Hraban Ramm
-
Procházka Lukáš Ing.
-
Wolfgang Schuster