ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* columns yet again
@ 2020-09-13  8:54 Thomas A. Schmitz
  2020-09-17 13:23 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas A. Schmitz @ 2020-09-13  8:54 UTC (permalink / raw)
  To: ntg-context

Hi all,

I hope everybody made it back home safely after the meeting. It was 
great listening in, even if I couldn't be there in person, unfortunately!

Today's question is an old one, but I'm confused. What I need: two 
columns, of unequal width, the left column has line numbering; two 
column layout starts in the middle of pages. What I tried so far:

1. \defineparagraphs  allows to have two paragraphs of unequal width, 
but the line numbering isn't visible:

\setuppapersize[A4,landscape][A4,landscape]

\setuplayout[grid=yes]

\definelinenumbering
    [original]
	[step=2,location=text,align=flushright,distance=0.4cm,style=small,color=magenta]

\defineparagraphs [Half] [n=2]
\setupparagraphs [Half] [before=,after=,align=verytolerant]

\setupparagraphs [Half]
                  [1]
                  [width=0.45\textwidth]

\starttext

\startlinenumbering [original] [start=4]
Poetry

One

Word

Per

Line

is

Poetic

\stoplinenumbering

\nextHalf

Prose translation

\stopHalf

\stoptext

2. columnsets:\usemodule[old-columnsets]: unequal width, but no line 
numbering:

\usemodule [old-columnsets]

\setuppapersize [A4,landscape][A4,landscape]

\setuplayout [grid=yes]

\definecolumnset [numbered] [n=2]
\setupcolumnset [numbered] [distance=0.5cm,frame=on]
\setupcolumnset [numbered:1] [width=4cm]
\setupcolumnset [numbered:2] [width=10cm]

\starttext

\startcolumnset [numbered]

\startlinenumbering[step=1,location=left]
Poetry

One

Word

Per

Line

is

Poetic\par % needed, otherwise last line is not indented correctly
\stoplinenumbering

\column

Two
\stopcolumnset

\stoptext

3. Same example without the first line: line numbers, but width is 
ignored; both columns are of width 0.5\textwidth.

4. page columns: always start at new page.

5. \startcolumns: like 3.; equal width.

In addition, for reasons that are completely unclear to me, the example 
from the columnsets manual (p. 32) does not compile:

\setuppapersize[A4,landscape][A4,landscape]

\setuplayout[grid=yes]

\showframe
\definecolumnset[example][n=3,page=left]
\setupbackgrounds[text][text][background=contrast]
\setupcolumnset[frame=on,framecolor=color-4,rulethickness=1mm]
\definecolor[fakerulecolor][white]
\setupcolumnset[example:1][width=2cm]
\setupcolumnset[example:2][width=4cm]
\setupcolumnset[example:3][width=3cm]
\setupcolumnset[example:4][width=3cm]
\setupcolumnset[example:5][width=4cm]
\setupcolumnset[example:6][width=6cm]
\starttext
\startcolumnset[example]
\dorecurse{5}{
\dorecurse{3}{\fakewords{10}{15}\par}
\column[yes]
}
\stopcolumnset
\stoptext

ends in "tex error       > tex error on line 23 in file /tmp/test.tex: ! 
Undefined control sequence

So I'm a bit confused: what I should use? What is the current status of 
the diverse columns environments?

Have a nice Sunday!

Thomas
___________________________________________________________________________________
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] 4+ messages in thread

* Re: columns yet again
  2020-09-13  8:54 columns yet again Thomas A. Schmitz
@ 2020-09-17 13:23 ` Hans Hagen
  2020-09-20 12:48   ` Thomas A. Schmitz
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2020-09-17 13:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Thomas A. Schmitz

On 9/13/2020 10:54 AM, Thomas A. Schmitz wrote:
> Hi all,
> 
> I hope everybody made it back home safely after the meeting. It was 
> great listening in, even if I couldn't be there in person, unfortunately!
> 
> Today's question is an old one, but I'm confused. What I need: two 
> columns, of unequal width, the left column has line numbering; two 
> column layout starts in the middle of pages. What I tried so far:
\setuplayout[width=16cm]

\starttext

\enabledirectives[tabulate.linenumbers]

\showframe

\starttabulate[|p(7cm)|A{verytolerant}i2p(\dimexpr9cm-2em\relax)|]
     \NC
         \startlinenumbering
             \dorecurse{10}{\input ward \par}
         \stoplinenumbering
     \NC
         \dorecurse{3}{\input tufte \par}
     \NC \NR
\stoptabulate

\disabledirectives[tabulate.linenumbers]

\starttabulate[|p(7cm)|A{verytolerant}i2p(\dimexpr9cm-2em\relax)|]
     \NC
         \startlinenumbering
             \dorecurse{10}{\input ward \par}
         \stoplinenumbering
     \NC
         \dorecurse{3}{\input tufte \par}
     \NC \NR
\stoptabulate

\stoptext

I'm not sure why there is no key / value interface ... probably because 
I made it one for someone as fast hack.

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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 4+ messages in thread

* Re: columns yet again
  2020-09-17 13:23 ` Hans Hagen
@ 2020-09-20 12:48   ` Thomas A. Schmitz
  2020-09-20 14:28     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas A. Schmitz @ 2020-09-20 12:48 UTC (permalink / raw)
  To: Hans Hagen, ntg-context

On 9/17/20 3:23 PM, Hans Hagen wrote:
> \setuplayout[width=16cm]
> 
> \starttext
> 
> \enabledirectives[tabulate.linenumbers]
> 
> \showframe
> 
> \starttabulate[|p(7cm)|A{verytolerant}i2p(\dimexpr9cm-2em\relax)|]
>      \NC
>          \startlinenumbering
>              \dorecurse{10}{\input ward \par}
>          \stoplinenumbering
>      \NC
>          \dorecurse{3}{\input tufte \par}
>      \NC \NR
> \stoptabulate
> 
> \disabledirectives[tabulate.linenumbers]
> 
> \starttabulate[|p(7cm)|A{verytolerant}i2p(\dimexpr9cm-2em\relax)|]
>      \NC
>          \startlinenumbering
>              \dorecurse{10}{\input ward \par}
>          \stoplinenumbering
>      \NC
>          \dorecurse{3}{\input tufte \par}
>      \NC \NR
> \stoptabulate
> 
> \stoptext
> 
> I'm not sure why there is no key / value interface ... probably because 
> I made it one for someone as fast hack.


Thank you, Hans, I had no idea this existed. It looks very fascinating. 
But as far as I could see in the source, there is no possibility of 
setting things up (font, size, start, etc.)?
___________________________________________________________________________________
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] 4+ messages in thread

* Re: columns yet again
  2020-09-20 12:48   ` Thomas A. Schmitz
@ 2020-09-20 14:28     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2020-09-20 14:28 UTC (permalink / raw)
  To: Thomas A. Schmitz, ntg-context

On 9/20/2020 2:48 PM, Thomas A. Schmitz wrote:

> Thank you, Hans, I had no idea this existed. It looks very fascinating. 
> But as far as I could see in the source, there is no possibility of 
> setting things up (font, size, start, etc.)?

setuplinennumbering should do that but i suppose we can make it nicer

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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2020-09-20 14:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-13  8:54 columns yet again Thomas A. Schmitz
2020-09-17 13:23 ` Hans Hagen
2020-09-20 12:48   ` Thomas A. Schmitz
2020-09-20 14:28     ` Hans Hagen

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).