From: "Procházka Lukáš Ing." <LPr@pontex.cz>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Columns with non-equal width; nested columns
Date: Wed, 25 Sep 2019 11:39:05 +0200 [thread overview]
Message-ID: <op.z8n2ffow62epfj@lpr.pontex.local> (raw)
In-Reply-To: <151EEE29-CC25-4780-A379-0D31FBF1F041@fiee.net>
[-- 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
___________________________________________________________________________________
next prev parent reply other threads:[~2019-09-25 9:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-24 13:44 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. [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.z8n2ffow62epfj@lpr.pontex.local \
--to=lpr@pontex.cz \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).