[NTG-context] Columns with non-equal width; nested columns

Procházka Lukáš Ing. LPr at pontex.cz
Wed Sep 25 11:39:05 CEST 2019


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 at fiee.net> wrote:

>
>> Am 2019-09-24 um 15:44 schrieb Procházka Lukáš Ing. <LPr at 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 at pontex.cz
Pontex s. r. o.      | mailto:pontex at pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t4.mkiv
Type: application/octet-stream
Size: 668 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190925/5edc8026/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t4.pdf
Type: application/pdf
Size: 47453 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190925/5edc8026/attachment-0001.pdf>


More information about the ntg-context mailing list