* Columns with non-equal width; nested columns
@ 2019-09-24 13:44 Procházka Lukáš Ing.
2019-09-24 16:47 ` Henning Hraban Ramm
0 siblings, 1 reply; 9+ messages in thread
From: Procházka Lukáš Ing. @ 2019-09-24 13:44 UTC (permalink / raw)
To: ConTeXt
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
___________________________________________________________________________________
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] 9+ messages in thread
* Re: Columns with non-equal width; nested columns
2019-09-24 13:44 Columns with non-equal width; nested columns Procházka Lukáš Ing.
@ 2019-09-24 16:47 ` Henning Hraban Ramm
2019-09-24 16:52 ` Wolfgang Schuster
2019-09-25 9:39 ` Procházka Lukáš Ing.
0 siblings, 2 replies; 9+ messages in thread
From: Henning Hraban Ramm @ 2019-09-24 16:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 2019-09-24 um 15:44 schrieb Procházka Lukáš Ing. <LPr@pontex.cz>:
>
> 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
___________________________________________________________________________________
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] 9+ messages in thread
* Re: Columns with non-equal width; nested columns
2019-09-24 16:47 ` Henning Hraban Ramm
@ 2019-09-24 16:52 ` Wolfgang Schuster
2019-09-25 9:39 ` Procházka Lukáš Ing.
1 sibling, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2019-09-24 16:52 UTC (permalink / raw)
To: mailing list for ConTeXt users, Henning Hraban Ramm
Henning Hraban Ramm schrieb am 24.09.2019 um 18:47:
>> Am 2019-09-24 um 15:44 schrieb Procházka Lukáš Ing. <LPr@pontex.cz>:
>>
>> 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
paragraphs or a table is another way to achieve this layout.
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Columns with non-equal width; nested columns
2019-09-24 16:47 ` Henning Hraban Ramm
2019-09-24 16:52 ` Wolfgang Schuster
@ 2019-09-25 9:39 ` Procházka Lukáš Ing.
2019-09-25 11:07 ` Henning Hraban Ramm
1 sibling, 1 reply; 9+ messages in thread
From: Procházka Lukáš Ing. @ 2019-09-25 9:39 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 2650 bytes --]
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 <texml@fiee.net> wrote:
>
>> Am 2019-09-24 um 15:44 schrieb Procházka Lukáš Ing. <LPr@pontex.cz>:
>>
>> 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
[-- Attachment #2: t4.mkiv --]
[-- Type: application/octet-stream, Size: 668 bytes --]
\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
[-- Attachment #3: t4.pdf --]
[-- Type: application/pdf, Size: 47453 bytes --]
[-- Attachment #4: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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] 9+ messages in thread
* Re: Columns with non-equal width; nested columns
2019-09-25 9:39 ` Procházka Lukáš Ing.
@ 2019-09-25 11:07 ` Henning Hraban Ramm
2019-09-25 11:48 ` Procházka Lukáš Ing.
0 siblings, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2019-09-25 11:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 2019-09-25 um 11:39 schrieb Procházka Lukáš Ing. <LPr@pontex.cz>:
>
> - 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
___________________________________________________________________________________
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] 9+ messages in thread
* Re: Columns with non-equal width; nested columns
2019-09-25 11:07 ` Henning Hraban Ramm
@ 2019-09-25 11:48 ` Procházka Lukáš Ing.
2019-09-25 12:06 ` Henning Hraban Ramm
0 siblings, 1 reply; 9+ messages in thread
From: Procházka Lukáš Ing. @ 2019-09-25 11:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hello Hraban,
On Wed, 25 Sep 2019 13:07:50 +0200, Henning Hraban Ramm <texml@fiee.net> wrote:
> 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
___________________________________________________________________________________
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] 9+ messages in thread
* Re: Columns with non-equal width; nested columns
2019-09-25 11:48 ` Procházka Lukáš Ing.
@ 2019-09-25 12:06 ` Henning Hraban Ramm
2019-09-25 20:29 ` Options for \column (was: Columns with non-equal width; nested columns) Procházka Lukáš Ing.
0 siblings, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2019-09-25 12:06 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 2019-09-25 um 13:48 schrieb Procházka Lukáš Ing. <LPr@pontex.cz>:
>
> 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
___________________________________________________________________________________
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] 9+ messages in thread
* Options for \column (was: Columns with non-equal width; nested columns)
2019-09-25 12:06 ` Henning Hraban Ramm
@ 2019-09-25 20:29 ` Procházka Lukáš Ing.
2019-09-25 20:41 ` Henning Hraban Ramm
0 siblings, 1 reply; 9+ messages in thread
From: Procházka Lukáš Ing. @ 2019-09-25 20:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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] 9+ messages in thread
* Re: Options for \column (was: Columns with non-equal width; nested columns)
2019-09-25 20:29 ` Options for \column (was: Columns with non-equal width; nested columns) Procházka Lukáš Ing.
@ 2019-09-25 20:41 ` Henning Hraban Ramm
0 siblings, 0 replies; 9+ messages in thread
From: Henning Hraban Ramm @ 2019-09-25 20:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 2019-09-25 um 22:29 schrieb Procházka Lukáš Ing. <LPr@pontex.cz>:
>
> 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
___________________________________________________________________________________
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] 9+ messages in thread
end of thread, other threads:[~2019-09-25 20:41 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-24 13:44 Columns with non-equal width; nested columns Procházka Lukáš Ing.
2019-09-24 16:47 ` Henning Hraban Ramm
2019-09-24 16:52 ` Wolfgang Schuster
2019-09-25 9:39 ` Procházka Lukáš Ing.
2019-09-25 11:07 ` Henning Hraban Ramm
2019-09-25 11:48 ` Procházka Lukáš Ing.
2019-09-25 12:06 ` Henning Hraban Ramm
2019-09-25 20:29 ` Options for \column (was: Columns with non-equal width; nested columns) Procházka Lukáš Ing.
2019-09-25 20:41 ` 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).