Re: [NTG-context] columns yet again

2020-09-20 Thread Hans Hagen

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
___


Re: [NTG-context] columns yet again

2020-09-20 Thread Thomas A. Schmitz

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
___


Re: [NTG-context] columns yet again

2020-09-17 Thread Hans Hagen

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
___


[NTG-context] columns yet again

2020-09-13 Thread Thomas A. Schmitz

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
___


[NTG-context] Columns: rule=on not working?

2020-05-22 Thread context

Hello,

the following code doesn't produce vertical rule between columns:


\starttext
  \startsimplecolumns[n=2,rule=on]
\input knuth
  \stopsimplecolumns

  \blank

  \startcolumns[rule=on]
\input knuth
\column
\input knuth
  \stopcolumns
\stoptext


My fault? Bug?

Best regards,

Lukas\starttext
  \startsimplecolumns[n=2,rule=on]
\input knuth
  \stopsimplecolumns

  \blank

  \startcolumns[rule=on]
\input knuth
\column
\input knuth
  \stopcolumns
\stoptext



ColsRuleOn~.pdf
Description: Adobe PDF document
open source > level 1, order 1, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2020.05.08 20:46 MKIV beta  fmt: 2020.5.14  
int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'

system  > jobfiles > using path: d:/Lukas/ConTeXt/Styles
system  > files > jobname 'ColsRuleOn~', input 
'D:/Lukas/ConTeXt/Test/!Ctx/ColsRuleOn~.mkiv', result 'ColsRuleOn~'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name 
'D:/Lukas/ConTeXt/Test/!Ctx/ColsRuleOn~.mkiv'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
open source > level 3, order 4, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/sample/common/knuth.tex'

Overfull \hbox (9.70074pt too wide) in paragraph at lines 6--11
<1: lmroman12-regular @ 12.0pt> po-nents would have hurt T[]X sig-nif-i-cantly.

\hbox(8.44336+2.58458)x204.3937, glue set - 1.0, direction TLT
.<1: lmroman12-regular @ 12.0pt> p
.\kern0.32382 (font)
.<1: lmroman12-regular @ 12.0pt> o
.\discretionary (penalty 50) []
.<1: lmroman12-regular @ 12.0pt> n
.etc.


Overfull \hbox (2.17146pt too wide) in paragraph at lines 6--11
<1: lmroman12-regular @ 12.0pt> cause I would never have thought of them

\hbox(8.44336+2.45865)x204.3937, glue set - 1.0, direction TLT
.<1: lmroman12-regular @ 12.0pt> c
.<1: lmroman12-regular @ 12.0pt> a
.<1: lmroman12-regular @ 12.0pt> u
.<1: lmroman12-regular @ 12.0pt> s
.<1: lmroman12-regular @ 12.0pt> e
.etc.

close source> level 3, order 4, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/sample/common/knuth.tex'
open source > level 3, order 5, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/sample/common/knuth.tex'

Overfull \hbox (9.70073pt too wide) in paragraph at lines 6--11
<1: lmroman12-regular @ 12.0pt> po-nents would have hurt T[]X sig-nif-i-cantly.

\hbox(8.44336+2.58458)x204.39372, glue set - 1.0, direction TLT
.<1: lmroman12-regular @ 12.0pt> p
.\kern0.32382 (font)
.<1: lmroman12-regular @ 12.0pt> o
.\discretionary (penalty 50) []
.<1: lmroman12-regular @ 12.0pt> n
.etc.


Overfull \hbox (2.17145pt too wide) in paragraph at lines 6--11
<1: lmroman12-regular @ 12.0pt> cause I would never have thought of them

\hbox(8.44336+2.45865)x204.39372, glue set - 1.0, direction TLT
.<1: lmroman12-regular @ 12.0pt> c
.<1: lmroman12-regular @ 12.0pt> a
.<1: lmroman12-regular @ 12.0pt> u
.<1: lmroman12-regular @ 12.0pt> s
.<1: lmroman12-regular @ 12.0pt> e
.etc.

close source> level 3, order 5, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/sample/common/knuth.tex'
open source > level 3, order 6, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/sample/common/knuth.tex'

Overfull \hbox (9.70073pt too wide) in paragraph at lines 6--11
<1: lmroman12-regular @ 12.0pt> po-nents would have hurt T[]X sig-nif-i-cantly.

\hbox(8.44336+2.58458)x204.39372, glue set - 1.0, direction TLT
.<1: lmroman12-regular @ 12.0pt> p
.\kern0.32382 (font)
.<1: lmroman12-regular @ 12.0pt> o
.\discretionary (penalty 50) []
.<1: lmroman12-regular @ 12.0pt> n
.etc.


Overfull \hbox (2.17145pt too wide) in paragraph at lines 6--11
<1: lmroman12-regular @ 12.0pt> cause I would never have thought of them

\hbox(8.44336+2.45865)x204.39372, glue set - 1.0, direction TLT
.<1: lmroman12-regular @ 12.0pt> c
.<1: lmroman12-regular @ 12.0pt> a
.<1: lmroman12-regular @ 12.0pt> u
.<1: lmroman12-regular @ 12.0pt> s
.<1: lmroman12-regular @ 12.0pt> e
.etc.

close source> level 3, order 6, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/sample/common/knuth.tex'
backend > xmp > using file 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1, subpage 1
close source> level 2, order 6, name 
'D:/Lukas/ConTeXt/Test/!Ctx/ColsRuleOn~.mkiv'
close source> level 1, order 6, name 
'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

system  > start used files

system  > text: ColsRul

Re: [NTG-context] Columns: rule=on not working?

2020-05-22 Thread Wolfgang Schuster

cont...@vivaldi.net schrieb am 22.05.2020 um 14:54:

Hello,

the following code doesn't produce vertical rule between columns:


\starttext
   \startsimplecolumns[n=2,rule=on]
     \input knuth
   \stopsimplecolumns

   \blank

   \startcolumns[rule=on]
     \input knuth
     \column
     \input knuth
   \stopcolumns
\stoptext


My fault? Bug?


Yes and no.

Simplecolumns are as the name implies a few very simple mechanism and 
don't support vertical lines between the columns.


The normal columns environment uses the mixedcolumns code where you have 
to use "separator=rule" to get a vertical line between columns.


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
___


Re: [NTG-context] columns and footnotes

2019-10-21 Thread Hans Hagen

Hi,

just a remark:

\startlinecorrection
\stoplinecorrection

is meant for stuff like

\startlinecorrection
\framed{}
\stoplinecorrection

\startlinecorrection
\externalfigure[...]
\stoplinecorrection

\startlinecorrection
\startMPcode
...
\stopMPcode
\stoplinecorrection

in the main text flow, i.e. boxed material with some visual boundary, 
which then gets boxed again with some heuristic before/after spacing and 
therefore it will not work well when hooked into before/after for heads 
and such that do their own spacing ... it's simply not meant for that 
(and its behaviour will not change)


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
___


Re: [NTG-context] columns and footnotes

2019-10-21 Thread Hans Hagen

On 10/20/2019 3:51 PM, Henning Hraban Ramm wrote:

Hi again,
I’m testing columns again, and before I publish an article on the subject, I’d 
like to check with you.

Find attached my testing environment, env_test.tex, and columns.tex, a 
"product", as well as the result of compiling with —mode=oldcolumns,grid and 
—mode=grid

The "oldcolumns" example shows the result of \usemodule[old-columns] and looks 
like it should. The new columns code still has errors:

Previously it wasn’t possible to start (new) columns mid-page, i.e. after an 
image or chapter/intro like in the example.
This works now (progress!), but the pre-columns stuff is still shifted to the 
right. (And I don’t know where the yellow box comes from.)

Additionally, footnotes in old-columns use the whole width and don’t interfere 
with the text columns, while in new columns, footnotes start in their column 
but use the whole width anyway and thus interfere with the main text.
I tried \setupnotes[footnote][location=columns] (and other options) but saw no 
change.

Many more options to check…
yes but best check them indepedently (i have to turn these into small 
simple examples only settigm things that matter)


anyway, the shift at the top is a side effect of tracing options enabled:

\gdef\page_grids_add_to_mix_indeed#1%
  {\begingroup
   \resetvisualizers
   \global\setbox#1\vpack{\noindent\backgroundline[layout:mix]{\box#1}}%
   \endgroup}

needs an \noindent (or maybe a forgetall elsewhere but that is more 
drastic)


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
___


Re: [NTG-context] columns and footnotes

2019-10-20 Thread luigi scarso
On Mon, Oct 21, 2019 at 8:24 AM Henning Hraban Ramm  wrote:

> Hi again,
> I’m testing columns again, and before I publish an article on the subject,
> I’d like to check with you.
> Best, Hraban
>

Hi Hraban,
the attachment are  >100K,  I have made an exception but please try to stay
under 100K next time.

-- 
luigi
___
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
___


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

2019-09-25 Thread Henning Hraban Ramm

> 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

___
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
___


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

2019-09-25 Thread Procházka Lukáš Ing .

Hello Hraban,

On Wed, 25 Sep 2019 13:07:50 +0200, Henning Hraban Ramm  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:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@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
___


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

2019-09-25 Thread Henning Hraban Ramm
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

___
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
___


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

2019-09-25 Thread Procházka Lukáš Ing .

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  wrote:




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:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

t4.mkiv
Description: Binary data


t4.pdf
Description: Adobe PDF document
___
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
___


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

2019-09-24 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 24.09.2019 um 18:47:

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
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
___


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

2019-09-24 Thread 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
---
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
___


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

2019-09-24 Thread Procházka Lukáš Ing .

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:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@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
___


Re: [NTG-context] columns unexpected (odd) results

2018-08-02 Thread Hans Hagen

On 8/1/2018 12:37 PM, Pablo Rodriguez wrote:

On 08/01/2018 11:48 AM, Henri Menke wrote:

Cannot reproduce with TL2018 or latest beta.


Hi Henri,

I’m afraid that Floris is right. With latest beta and a simple
improvement to your file, I get wrong output:

 \starttext
 \startlines
Testing 1971-04-26
\startcolumns[n=3]
  \dorecurse{200}{+ 17271 \rightarrow\  2018-08-08
  }
\stopcolumns
 \stoplines
 \stoptext

If the closing parenthesis is on the same line, the plus sign is
misplaced in the last item.

With the previous sample, the second page gets a wrong interline space
(between the third and the fourth item from the first column).

quick hack:

\unprotect

\unexpanded\def\page_otr_synchronize_page_indeed
  {\ifx\currentoutputroutine\s!multicolumn\else\clf_synchronizepage\fi
   \glet\page_otr_synchronize_page\page_otr_synchronize_page_yes}

\protect

Actually I don't see it here because i have

\definemixedcolumns
  [\v!columns]
  [\c!balance=\v!yes,
   \c!blank={\v!line,\v!fixed}]

\unexpanded\def\setupcolumns
  {\setupmixedcolumns[\v!columns]}

in a local test file (already for years so maybe it's time time to make 
that default)


(btw, pagecolumns are an other alternative)

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
___

Re: [NTG-context] columns unexpected (odd) results

2018-08-02 Thread Wolfgang Schuster

Floris van Manen schrieb am 01.08.18 um 22:16:

Not sure as how to tell why it is misusing the line environment.
But the suggested \par solution does not work.


I took only a brief look at Henris example where I saw only the wrong 
alignment
before \stopcolumns. What you can do to fix the vertical alignment 
without enabling

the grid is to add \strut at the begin of each line.

\starttext

Testing 1971-04-26

\startcolumns[n=3]
\startlines[command=\strut]
+ 17271 \rightarrow\  2018-08-08
...
+ 17271 \rightarrow\  2018-08-08
\stoplines
\stopcolumns

\stoptext

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
___

Re: [NTG-context] columns unexpected (odd) results

2018-08-02 Thread Wolfgang Schuster



Pablo Rodriguez schrieb am 02.08.18 um 09:42:

On 08/01/2018 10:16 PM, Floris van Manen wrote:

Not sure as how to tell why it is misusing the line environment.
But the suggested \par solution does not work.

.F


On 1 Aug 2018, at 21:28, Wolfgang Schuster wrote:

Ending each line in a proper (e.g. by adding \par to finish the paragraph)
without the misuse the lines environment fixes the problem as well.

Wolfgang,

as Florian reported, this doesn’t solve the issue.

On the second page, interline space between the third and fourth lines
from the first column is wrong.


I saw only the wrong alignment of the last text line before \stopcolumns 
which can be fixed with \par.



The only way to fix it seems to enable grid composition. I don’t know
whether this might be a bug in ConTeXt.


Adding \strut at the begin of each text line does also fix the spacing.

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
___

Re: [NTG-context] columns unexpected (odd) results

2018-08-02 Thread Pablo Rodriguez
On 08/01/2018 10:16 PM, Floris van Manen wrote:
> Not sure as how to tell why it is misusing the line environment.
> But the suggested \par solution does not work.
> 
> .F
> 
>> On 1 Aug 2018, at 21:28, Wolfgang Schuster wrote:
>>
>> Ending each line in a proper (e.g. by adding \par to finish the paragraph)
>> without the misuse the lines environment fixes the problem as well.

Wolfgang,

as Florian reported, this doesn’t solve the issue.

On the second page, interline space between the third and fourth lines
from the first column is wrong.

The only way to fix it seems to enable grid composition. I don’t know
whether this might be a bug in ConTeXt.

Many thanks for your help,

Pablo



>> \starttext
>>
>> Testing 1971-04-26
>>
>> \startcolumns[n=3]
>> \dorecurse{200}{+ 17271 \rightarrow\  2018-08-08\par}
>> \stopcolumns
>>
>> \stoptext
>>
>> Wolfgang

-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] columns unexpected (odd) results

2018-08-01 Thread Floris van Manen
Not sure as how to tell why it is misusing the line environment.
But the suggested \par solution does not work.

.F


> On 1 Aug 2018, at 21:28, Wolfgang Schuster 
>  wrote:
> 
> Ending each line in a proper (e.g. by adding \par to finish the paragraph)
> without the misuse the lines environment fixes the problem as well.
> 
> \starttext
> 
> Testing 1971-04-26
> 
> \startcolumns[n=3]
> \dorecurse{200}{+ 17271 \rightarrow\  2018-08-08\par}
> \stopcolumns
> 
> \stoptext
> 
> Wolfgang
> 
> 
> Taco Hoekwater schrieb am 01.08.18 um 13:04:
>> Hi,
>> 
>> Same problem I had.
>> 
>> As a workaround,
>> 
>> \setuplayout[grid=yes]
>> 
>> helps.
>> 
>>> On 1 Aug 2018, at 12:37, Pablo Rodriguez  wrote:
>>> 
>>> On 08/01/2018 11:48 AM, Henri Menke wrote:
 Cannot reproduce with TL2018 or latest beta.
>>> Hi Henri,
>>> 
>>> I’m afraid that Floris is right. With latest beta and a simple
>>> improvement to your file, I get wrong output:
>>> 
>>>\starttext
>>>\startlines
>>>   Testing 1971-04-26
>>>   \startcolumns[n=3]
>>> \dorecurse{200}{+ 17271 \rightarrow\  2018-08-08
>>> }
>>>   \stopcolumns
>>>\stoplines
>>>\stoptext
>>> 
>>> If the closing parenthesis is on the same line, the plus sign is
>>> misplaced in the last item.
>>> 
>>> With the previous sample, the second page gets a wrong interline space
>>> (between the third and the fourth item from the first column).
>>> 
>>> Pablo
>>> --
>>> http://www.ousia.tk
>>> ___
>>> 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
>>> ___
>> Taco Hoekwater
>> Elvenkind BV
>> 
>> 
>> 
>> 
>> ___
>> 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
>> ___
> 
> ___
> 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
> ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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
___

Re: [NTG-context] columns unexpected (odd) results

2018-08-01 Thread Wolfgang Schuster

Ending each line in a proper (e.g. by adding \par to finish the paragraph)
without the misuse the lines environment fixes the problem as well.

\starttext

Testing 1971-04-26

\startcolumns[n=3]
\dorecurse{200}{+ 17271 \rightarrow\  2018-08-08\par}
\stopcolumns

\stoptext

Wolfgang


Taco Hoekwater schrieb am 01.08.18 um 13:04:

Hi,

Same problem I had.

As a workaround,

\setuplayout[grid=yes]

helps.


On 1 Aug 2018, at 12:37, Pablo Rodriguez  wrote:

On 08/01/2018 11:48 AM, Henri Menke wrote:

Cannot reproduce with TL2018 or latest beta.

Hi Henri,

I’m afraid that Floris is right. With latest beta and a simple
improvement to your file, I get wrong output:

\starttext
\startlines
   Testing 1971-04-26
   \startcolumns[n=3]
 \dorecurse{200}{+ 17271 \rightarrow\  2018-08-08
 }
   \stopcolumns
\stoplines
\stoptext

If the closing parenthesis is on the same line, the plus sign is
misplaced in the last item.

With the previous sample, the second page gets a wrong interline space
(between the third and the fourth item from the first column).

Pablo
--
http://www.ousia.tk
___
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
___

Taco Hoekwater
Elvenkind BV




___
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
___


___
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
___

Re: [NTG-context] columns unexpected (odd) results

2018-08-01 Thread Floris van Manen
that works indeed.
thank you

.F


> On 1 Aug 2018, at 13:04, Taco Hoekwater  wrote:
> 
> Hi,
> 
> Same problem I had.
> 
> As a workaround,
> 
> \setuplayout[grid=yes]
> 
> helps.
> 
>> On 1 Aug 2018, at 12:37, Pablo Rodriguez  wrote:
>> 
>> On 08/01/2018 11:48 AM, Henri Menke wrote:
>>> Cannot reproduce with TL2018 or latest beta.
>> 
>> Hi Henri,
>> 
>> I’m afraid that Floris is right. With latest beta and a simple
>> improvement to your file, I get wrong output:
>> 
>>   \starttext
>>   \startlines
>>  Testing 1971-04-26
>>  \startcolumns[n=3]
>>\dorecurse{200}{+ 17271 \rightarrow\  2018-08-08
>>}
>>  \stopcolumns
>>   \stoplines
>>   \stoptext
>> 
>> If the closing parenthesis is on the same line, the plus sign is
>> misplaced in the last item.
>> 
>> With the previous sample, the second page gets a wrong interline space
>> (between the third and the fourth item from the first column).
>> 
>> Pablo
>> --
>> http://www.ousia.tk
>> ___
>> 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
>> ___
> 
> Taco Hoekwater
> Elvenkind BV
> 
> 
> 
> 
> ___
> 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
> ___



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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
___

Re: [NTG-context] columns unexpected (odd) results

2018-08-01 Thread Taco Hoekwater
Hi,

Same problem I had. 

As a workaround,

\setuplayout[grid=yes]

helps.

> On 1 Aug 2018, at 12:37, Pablo Rodriguez  wrote:
> 
> On 08/01/2018 11:48 AM, Henri Menke wrote:
>> Cannot reproduce with TL2018 or latest beta.
> 
> Hi Henri,
> 
> I’m afraid that Floris is right. With latest beta and a simple
> improvement to your file, I get wrong output:
> 
>\starttext
>\startlines
>   Testing 1971-04-26
>   \startcolumns[n=3]
> \dorecurse{200}{+ 17271 \rightarrow\  2018-08-08
> }
>   \stopcolumns
>\stoplines
>\stoptext
> 
> If the closing parenthesis is on the same line, the plus sign is
> misplaced in the last item.
> 
> With the previous sample, the second page gets a wrong interline space
> (between the third and the fourth item from the first column).
> 
> Pablo
> -- 
> http://www.ousia.tk
> ___
> 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
> ___

Taco Hoekwater
Elvenkind BV




___
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
___

Re: [NTG-context] columns unexpected (odd) results

2018-08-01 Thread Pablo Rodriguez
On 08/01/2018 11:48 AM, Henri Menke wrote:
> Cannot reproduce with TL2018 or latest beta.

Hi Henri,

I’m afraid that Floris is right. With latest beta and a simple
improvement to your file, I get wrong output:

\starttext
\startlines
   Testing 1971-04-26
   \startcolumns[n=3]
 \dorecurse{200}{+ 17271 \rightarrow\  2018-08-08
 }
   \stopcolumns
\stoplines
\stoptext

If the closing parenthesis is on the same line, the plus sign is
misplaced in the last item.

With the previous sample, the second page gets a wrong interline space
(between the third and the fourth item from the first column).

Pablo
-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] columns unexpected (odd) results

2018-08-01 Thread Henri Menke

Cannot reproduce with TL2018 or latest beta.  MWE below:

\starttext
\startlines
  Testing 1971-04-26
  \startcolumns[n=3]
\dorecurse{200}{+ 17271 \rightarrow\  2018-08-08 }
  \stopcolumns
\stoplines
\stoptext

On 01/08/18 21:34, Floris van Manen wrote:
Has anyone a solution / hint as how to get the linespacing correct when 
using columns ?


The first page works as expected,
but all the following pages have an unexpected mis-alignment  in the 
first column






The document itself is plain vanilla:


\starttext
\startlines
Testing 1971-04-26
\startcolumns[n=3]

+ 17271 \rightarrow\  2018-08-08
+ 17300 \rightarrow\  2018-09-06
+ 17371 \rightarrow\  2018-11-16

…


+ 39900 \rightarrow\  2080-07-22
+ 39993 \rightarrow\  2080-10-23
+ 4 \rightarrow\  2080-10-30
\stopcolumns
\stoplines
\stoptext


___
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
___


___
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
___

[NTG-context] columns unexpected (odd) results

2018-08-01 Thread Floris van Manen
Has anyone a solution / hint as how to get the linespacing correct when using 
columns ?

The first page works as expected,
but all the following pages have an unexpected mis-alignment  in the first 
column





The document itself is plain vanilla:


\starttext
\startlines
Testing 1971-04-26
\startcolumns[n=3]

+ 17271 \rightarrow\  2018-08-08
+ 17300 \rightarrow\  2018-09-06
+ 17371 \rightarrow\  2018-11-16

…


+ 39900 \rightarrow\  2080-07-22
+ 39993 \rightarrow\  2080-10-23
+ 4 \rightarrow\  2080-10-30
\stopcolumns
\stoplines
\stoptext


signature.asc
Description: Message signed with OpenPGP using GPGMail
___
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
___

Re: [NTG-context] Columns with different width.

2017-02-28 Thread Henning Hraban Ramm
Am 2017-02-26 um 16:10 schrieb Jose Luis Arellano :

> Thanks for the answer Henning. Can you please write an example?
> 
> 2017-02-24 9:47 GMT-03:00 Henning Hraban Ramm :
> Am 2017-02-24 um 10:05 schrieb Jose Luis Arellano :
> 
> > Dear list,
> > Is there any way to write a document in columns with different width?
> 
> You can use column sets, see 
> http://www.pragma-ade.com/general/manuals/columns.pdf

Please don’t top post.

While I requested this feature several years ago, I never used it so far.
Please read the manual and try yourself.


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
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
___

Re: [NTG-context] Columns with different width.

2017-02-26 Thread Alan Braslau
You should refer to the manual that Hraban gave as a link.

Alan


On Sun, 26 Feb 2017 12:10:52 -0300
Jose Luis Arellano  wrote:

> Thanks for the answer Henning. Can you please write an example?
> 
> 2017-02-24 9:47 GMT-03:00 Henning Hraban Ramm :
> 
> > Am 2017-02-24 um 10:05 schrieb Jose Luis Arellano
> >  > >:
> >
> > > Dear list,
> > > Is there any way to write a document in columns with different
> > > width?
> >
> > You can use column sets, see http://www.pragma-ade.com/
> > general/manuals/columns.pdf
> >
> > Greetlings, Hraban

___
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
___

Re: [NTG-context] Columns with different width.

2017-02-26 Thread Pablo Rodriguez
On 02/26/2017 04:10 PM, Jose Luis Arellano wrote:
> Thanks for the answer Henning. Can you please write an example?

Hi José Luis,

there is a sample on page 32 (from the document [or 34, from the PDF
viewer]): http://www.pragma-ade.com/general/manuals/columns.pdf#page=34.

Sorry, but my current PDF viewer doesn’t seem to copy from PDF.

Just in case it helps,

Pablo


> 2017-02-24 9:47 GMT-03:00 Henning Hraban Ramm:
> 
> Am 2017-02-24 um 10:05 schrieb Jose Luis Arellano:
> 
> > Dear list,
> > Is there any way to write a document in columns with different width?
> 
> You can use column sets, see
> http://www.pragma-ade.com/general/manuals/columns.pdf
> 
> 
> Greetlings, Hraban


-- 
http://www.ousia.tk
___
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
___

Re: [NTG-context] Columns with different width.

2017-02-26 Thread Jose Luis Arellano
Thanks for the answer Henning. Can you please write an example?

2017-02-24 9:47 GMT-03:00 Henning Hraban Ramm :

> Am 2017-02-24 um 10:05 schrieb Jose Luis Arellano  >:
>
> > Dear list,
> > Is there any way to write a document in columns with different width?
>
> You can use column sets, see http://www.pragma-ade.com/
> general/manuals/columns.pdf
>
> Greetlings, Hraban
> ---
> http://www.fiee.net
> http://wiki.contextgarden.net
> 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
> 
> ___
___
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
___

Re: [NTG-context] Columns with different width.

2017-02-24 Thread Henning Hraban Ramm
Am 2017-02-24 um 10:05 schrieb Jose Luis Arellano :

> Dear list,
> Is there any way to write a document in columns with different width?

You can use column sets, see 
http://www.pragma-ade.com/general/manuals/columns.pdf

Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
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
___

[NTG-context] Columns with different width.

2017-02-24 Thread Jose Luis Arellano
Dear list,
Is there any way to write a document in columns with different width?

Thanks in advance.

jl
___
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
___

Re: [NTG-context] Columns and itemize not showing up as expected

2015-03-21 Thread Mikael P. Sundqvist
On Sat, Mar 21, 2015 at 2:54 PM, Norbert Melzer  wrote:
> This one works. Thank you!
>
>  Is there a way to have other column count than 2?

\startitemize[columns,three]

seems to give three columns.

/Mikael
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Columns and itemize not showing up as expected

2015-03-21 Thread Norbert Melzer
2015-03-21 14:33 GMT+01:00 Mikael P. Sundqvist :
>
>\startitemize[columns]
>   \item a
>   \item b
>   \item c
>   \item d
>   \item e
>   \item f
> \stopitemize
> \stoptext
>

This one works. Thank you!

 Is there a way to have other column count than 2?
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Columns and itemize not showing up as expected

2015-03-21 Thread Mikael P. Sundqvist
On Sat, Mar 21, 2015 at 1:38 PM, Norbert Melzer  wrote:
>   \startcolumns[n=2]
> \startitemize
>   \item a
>   \item b
>   \item c
>   \item d
>   \item e
>   \item f
> \stopitemize
>   \stopcolumns


Try

\starttext
  \startcolumns[n=2]
\startitemize
  \item a
  \item b
  \item c
  \item d
  \item e
  \item f
\stopitemize
  \stopcolumns

   \startitemize[columns]
  \item a
  \item b
  \item c
  \item d
  \item e
  \item f
\stopitemize
\stoptext

/Mikael
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Columns and itemize not showing up as expected

2015-03-21 Thread Norbert Melzer
The MWE at the end of this mail typesets something like this:

* a  * e
* b  * f
* c
* d

But I'd expect something like this:

* a  * d
* b  * e
* c  * f

How can I get expected output?

```tex
\starttext
  \startcolumns[n=2]
\startitemize
  \item a
  \item b
  \item c
  \item d
  \item e
  \item f
\stopitemize
  \stopcolumns
\stoptext
```
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Columns and clubpenalty problem

2014-03-07 Thread Thomas Floeren

On 04.02.2014, at 14:52, Thomas Floeren  wrote:

> Hi,
> 
> with the recent Betas, and the Current, I have a problem with columns and 
> clubpenalty. In the following minimal the long item (item 1) will introduce 
> a column break (instead of a simple line break):
> 
> \def \defaultclubpenalty{\plustenthousand}
> 
> \starttext
> \startitemize [columns]
> \item This is just a long line and should stay in the left column. 
> \dorecurse{10}{\item bla bla bla}
> \stopitemize
> \stoptext
> 
> Older ConTeXt versions work as expected (no column break in item 1), for 
> example 
> Beta 2013.11.13 12:28 or Current 2013.05.28 00:36.
> 
> 

Thank you, Hans. It’s fine now, with the new Beta from today :-)


Best wishes
Thomas


ConTeXt 2014.03.07 11:42; LuaTeX beta-0.78.2 (TeX Live 2014/dev) (rev 4746)

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Columns and clubpenalty problem

2014-02-28 Thread Thomas Floeren
> Hi all,
> 
> I've the same problem, w/o solution.
> An alternative is a double line brake, but it's not a durable solution…
> 
> Pierre Bovet
> 
> Le 4 févr. 2014 à 14:52, Thomas Floeren  a écrit :
> 

Sorry for bumping, but the bug is still there in the current Beta (2014.02.14 
17:07).

Or, is it not a bug, and I’m doing something wrong?
In that case any hint is appreciated.

Thank you
-- 
Thomas




On 17.02.2014, at 15:48, Pierre Bovet  wrote:

> Hi all,
> 
> I've the same problem, w/o solution.
> An alternative is a double line brake, but it's not a durable solution…
> 
> Pierre Bovet
> 
> Le 4 févr. 2014 à 14:52, Thomas Floeren  a écrit :
> 
>> Hi,
>> 
>> with the recent Betas, and the Current, I have a problem with columns and 
>> clubpenalty. In the following minimal the long item (item 1) will introduce 
>> a column break (instead of a simple line break):
>> 
>> \def \defaultclubpenalty{\plustenthousand}
>> 
>> \starttext
>> \startitemize [columns]
>> \item This is just a long line and should stay in the left column. 
>> \dorecurse{10}{\item bla bla bla}
>> \stopitemize
>> \stoptext
>> 
>> Older ConTeXt versions work as expected (no column break in item 1), for 
>> example 
>> Beta 2013.11.13 12:28 or Current 2013.05.28 00:36.
>> 
>> 
>> Thomas Floeren
>> 
>> ___
>> 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://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>> ___
> 
> ___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Columns and clubpenalty problem

2014-02-17 Thread Pierre Bovet
Hi all,

I've the same problem, w/o solution.
An alternative is a double line brake, but it's not a durable solution…

Pierre Bovet

Le 4 févr. 2014 à 14:52, Thomas Floeren  a écrit :

> Hi,
> 
> with the recent Betas, and the Current, I have a problem with columns and 
> clubpenalty. In the following minimal the long item (item 1) will introduce 
> a column break (instead of a simple line break):
> 
> \def \defaultclubpenalty{\plustenthousand}
> 
> \starttext
> \startitemize [columns]
> \item This is just a long line and should stay in the left column. 
> \dorecurse{10}{\item bla bla bla}
> \stopitemize
> \stoptext
> 
> Older ConTeXt versions work as expected (no column break in item 1), for 
> example 
> Beta 2013.11.13 12:28 or Current 2013.05.28 00:36.
> 
> 
> Thomas Floeren
> 
> ___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Columns and clubpenalty problem

2014-02-04 Thread Thomas Floeren
Hi,

with the recent Betas, and the Current, I have a problem with columns and 
clubpenalty. In the following minimal the long item (item 1) will introduce 
a column break (instead of a simple line break):

\def \defaultclubpenalty{\plustenthousand}

\starttext
\startitemize [columns]
\item This is just a long line and should stay in the left column. 
\dorecurse{10}{\item bla bla bla}
\stopitemize
\stoptext

Older ConTeXt versions work as expected (no column break in item 1), for 
example 
Beta 2013.11.13 12:28 or Current 2013.05.28 00:36.


Thomas Floeren

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns

2013-10-03 Thread luigi scarso
On Thu, Oct 3, 2013 at 6:55 PM, Hans Hagen  wrote:

> On 10/3/2013 12:35 PM, Wolfgang Schuster wrote:
>
>>
>> Am 03.10.2013 um 12:26 schrieb H. van der Meer :
>>
>>  If I remember well, framedtext sets a localhsize for the width of its
>>> content. I guess that is why boxedcolumns stays within the width specified.
>>> But is there a specific reason why mixedcolumns in general does not?
>>>
>>
>> The global settings for mixedcolumns are
>>
>> \setupmixedcolumns
>>   [maxwidth=\makeupwidth]
>>
>> which forces columns to use the width of the textblock but boxedcolumns
>> uses this
>>
>> \definemixedcolumns
>>   [boxedcolumns]
>>   [maxwidth=\availablehsize]
>>
>> where the width of the columns depends on the available width of the
>> environment,
>> e.g. in a narrower environment or in a frame the you get shorter columns.
>>
>
> also, boxedcolumns, as the name says, are for use in boxes while by
> default mixedcolumns (unless set up as boxed) are operating at the page
> level (the so called mvl)
>
> For the curious:
mvl is the main vertical list ,
see
books.google.com
"The advanced Texbook"
pag 295


-- 
luigi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] columns

2013-10-03 Thread Hans Hagen

On 10/3/2013 12:35 PM, Wolfgang Schuster wrote:


Am 03.10.2013 um 12:26 schrieb H. van der Meer :


If I remember well, framedtext sets a localhsize for the width of its content. 
I guess that is why boxedcolumns stays within the width specified. But is there 
a specific reason why mixedcolumns in general does not?


The global settings for mixedcolumns are

\setupmixedcolumns
  [maxwidth=\makeupwidth]

which forces columns to use the width of the textblock but boxedcolumns uses 
this

\definemixedcolumns
  [boxedcolumns]
  [maxwidth=\availablehsize]

where the width of the columns depends on the available width of the 
environment,
e.g. in a narrower environment or in a frame the you get shorter columns.


also, boxedcolumns, as the name says, are for use in boxes while by 
default mixedcolumns (unless set up as boxed) are operating at the page 
level (the so called mvl)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns

2013-10-03 Thread Wolfgang Schuster

Am 03.10.2013 um 12:26 schrieb H. van der Meer :

> If I remember well, framedtext sets a localhsize for the width of its 
> content. I guess that is why boxedcolumns stays within the width specified. 
> But is there a specific reason why mixedcolumns in general does not?

The global settings for mixedcolumns are

   \setupmixedcolumns
 [maxwidth=\makeupwidth]

which forces columns to use the width of the textblock but boxedcolumns uses 
this

   \definemixedcolumns
 [boxedcolumns]
 [maxwidth=\availablehsize]

where the width of the columns depends on the available width of the 
environment,
e.g. in a narrower environment or in a frame the you get shorter columns.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns

2013-10-03 Thread H. van der Meer
If I remember well, framedtext sets a localhsize for the width of its content. 
I guess that is why boxedcolumns stays within the width specified. But is there 
a specific reason why mixedcolumns in general does not?

Hans van der Meer



On 3 okt. 2013, at 12:07, Wolfgang Schuster 
 wrote:

> 
> Am 03.10.2013 um 12:02 schrieb "H. van der Meer" :
> 
>> Thanks, 
>> 
>> But I think mixedcolumns has to solve a problem width the width of the 
>> frametext. Whereas boxedcolumns honors the width of the enclosing 
>> framedtext, mixedcolumns does not. See the example.
> 
> Boxedcolumns are a instance of mixedcolumns and are defined as
> 
>   \definemixedcolumns[boxedcolumns]
> 
> 
> You can also use them this way:
> 
>   \startmixedcolumns[boxedcolumns]
>   …
>   \stopmixedcolumns
> 
> 
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns

2013-10-03 Thread Wolfgang Schuster

Am 03.10.2013 um 12:02 schrieb "H. van der Meer" :

> Thanks, 
> 
> But I think mixedcolumns has to solve a problem width the width of the 
> frametext. Whereas boxedcolumns honors the width of the enclosing framedtext, 
> mixedcolumns does not. See the example.

Boxedcolumns are a instance of mixedcolumns and are defined as

   \definemixedcolumns[boxedcolumns]


You can also use them this way:

   \startmixedcolumns[boxedcolumns]
   …
   \stopmixedcolumns


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns

2013-10-03 Thread H. van der Meer
Thanks, 

But I think mixedcolumns has to solve a problem width the width of the 
frametext. Whereas boxedcolumns honors the width of the enclosing framedtext, 
mixedcolumns does not. See the example.

% NOT OK WIDTH NOT RESPECTED
\startframedtext[width=.8\makeupwidth,align=verytolerant]
\startmixedcolumns[n=2,separator=rule,balance=yes]
\input tufte
\stopmixedcolumns
\stopframedtext
\blank
% OK
\startframedtext[width=.8\makeupwidth,align=verytolerant]
\startboxedcolumns[n=2,separator=rule,balance=yes]
\input tufte
\stopboxedcolumns
\stopframedtext

Hans van der Meer



columns-inside.pdf
Description: Adobe PDF document

On 3 okt. 2013, at 11:09, Wolfgang Schuster  wrote:

> 
> Am 03.10.2013 um 10:21 schrieb H. van der Meer :
> 
>> I have some difficulties with columns inside a framedtext. The example below 
>> shows that columns does not work inside framedtext, whereas simplecolumns 
>> does. However, the latter does not show rules between the columns. Can I 
>> have both?
>> 
>> Is columns definitely not working here or is it temporarily until something 
>> is fixed? Or will simplecolumns be extended to show the rules?
>> 
>> % test columns within framedtext
>> \starttext
>> \startframedtext[width=\makeupwidth]
>> \startcolumns[n=2,rule=on,balance=yes]
>> \input tufte
>> \stopcolumns
>> \stopframedtext
>> \startframedtext[width=\makeupwidth]
>> \blank
>> \startsimplecolumns[n=2,rule=on,balance=yes]
>> \input tufte
>> \stopsimplecolumns
>> \stopframedtext
>> \stoptext
> 
> The new mixedcolumns environment can be used to the typeset columns in a 
> frame.
> 
> There is also a predefined bolxedcolumns environment which changes the width 
> of
> the columns when you use it in \startframed etc.
> 
> \setupalign[verytolerant]
> 
> \starttext
> 
> \startboxedcolumns[separator=rule]
> \input tufte
> \stopboxedcolumns
> 
> \startframedtext[width=max,align=verytolerant]
> \startboxedcolumns[separator=rule]
> \input tufte
> \stopboxedcolumns
> \stopframedtext
> 
> \stoptext
> 
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] columns

2013-10-03 Thread Wolfgang Schuster

Am 03.10.2013 um 10:21 schrieb H. van der Meer :

> I have some difficulties with columns inside a framedtext. The example below 
> shows that columns does not work inside framedtext, whereas simplecolumns 
> does. However, the latter does not show rules between the columns. Can I have 
> both?
> 
> Is columns definitely not working here or is it temporarily until something 
> is fixed? Or will simplecolumns be extended to show the rules?
> 
> % test columns within framedtext
> \starttext
> \startframedtext[width=\makeupwidth]
> \startcolumns[n=2,rule=on,balance=yes]
> \input tufte
> \stopcolumns
> \stopframedtext
> \startframedtext[width=\makeupwidth]
> \blank
> \startsimplecolumns[n=2,rule=on,balance=yes]
> \input tufte
> \stopsimplecolumns
> \stopframedtext
> \stoptext

The new mixedcolumns environment can be used to the typeset columns in a frame.

There is also a predefined bolxedcolumns environment which changes the width of
the columns when you use it in \startframed etc.

\setupalign[verytolerant]

\starttext

\startboxedcolumns[separator=rule]
\input tufte
\stopboxedcolumns

\startframedtext[width=max,align=verytolerant]
\startboxedcolumns[separator=rule]
\input tufte
\stopboxedcolumns
\stopframedtext

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] columns

2013-10-03 Thread H. van der Meer
I have some difficulties with columns inside a framedtext. The example below 
shows that columns does not work inside framedtext, whereas simplecolumns does. 
However, the latter does not show rules between the columns. Can I have both?

Is columns definitely not working here or is it temporarily until something is 
fixed? Or will simplecolumns be extended to show the rules?

% test columns within framedtext
\starttext
\startframedtext[width=\makeupwidth]
\startcolumns[n=2,rule=on,balance=yes]
\input tufte
\stopcolumns
\stopframedtext
\startframedtext[width=\makeupwidth]
\blank
\startsimplecolumns[n=2,rule=on,balance=yes]
\input tufte
\stopsimplecolumns
\stopframedtext
\stoptext


Hans van der Meer


column-sinside.pdf
Description: Adobe PDF document




___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] columns vs. paragraphs, and a question about fillinrule

2013-09-15 Thread Pavneet Arora
Sorry, I should have been more clear about the intended output.

In the most common case, I simply wanted side by side output:  witnesses 
in the left column, and testator in the right column.  Rarely, is it 
expected to traverse a page.  The paragraph method does this; \paragraph 
goes to the top of the next column.  The columns method does not:  
\column, at least for this combination of input, does not go to the top 
of the next column, but rather pushes the subsequent input to the top of 
the next page, which is not the intention.

So, the paragraph method produces the expected "two-column layour" 
output while the columns method does not.

However, your tabulate method is perfect fine especially if one needs 
the output to cross page boundaries.

Any idea to make fillinrules behave like a list, i.e., with the indices 
hanging to the left of equal sized rules?

Thanks for your help.

On 14Sep13, Aditya Mahajan wrote:
> On Thu, 12 Sep 2013, Pavneet Arora wrote:
> 
> >As part of this legal document set that I have been working to put
> >together, I needed side-by-side text.  Looking at the wiki, I noticed
> >that there are at least 3 methods:  columns, paragraphs, columnsets.
> >
> >I only attempted two, but they seem to have quite different results.  I
> >understood that columns were for simple cases.  However, in my MWE
> >below, the \column command breaks the "columns" in unusual way.
> >
> >One can also swap out the order of the paragraphs and columns methods;
> >the results are similar.  Also, one can adjust the dorecurse command
> >with additional lorems to see where the "columns" land on the page.
> >Again results are similar.
> >
> >Any suggestions?
> 
> What is the desired output? Do you want the left "column" to
> continue on to the next page? Is so, you could use the tabulate
> environment.
> 
> \setuppaper[A5, landscape]
> \starttext
> \startalignment[middle]
> {\tfc AN IMPORTANT LEGAL DOCUMENT}
> \stopalignment
> 
> \starttabulate[|p(0.5\textwidth)|p(0.1\textwidth)|p(0.4\textwidth)|]
>   \NC WITNESSES:
> \fillinrules[n=15,interlinespace=small,width=broad,separator=]{1.}
> \fillinrules[n=15,interlinespace=small,width=broad,separator=]{2.}
> \fillinrules[n=15,interlinespace=small,width=broad,separator=]{3.}
> \fillinrules[n=15,interlinespace=small,width=broad,separator=]{4.}
> \fillinrules[n=15,interlinespace=small,width=broad,separator=]{5.}
>   \NC
>   \NC
>   (TESTATOR)\crlf
>   Ms. B.E. Def
>   \NC
>   \NR
>   \NC WITNESSES:
> \fillinrules[n=15,interlinespace=small,width=broad,separator=]{1.}
> \fillinrules[n=15,interlinespace=small,width=broad,separator=]{2.}
> \fillinrules[n=15,interlinespace=small,width=broad,separator=]{3.}
> \fillinrules[n=15,interlinespace=small,width=broad,separator=]{4.}
> \fillinrules[n=15,interlinespace=small,width=broad,separator=]{5.}
>   \NC
>   \NC
>   (TESTATOR)\crlf
>   Ms. B.E. Def
>   \NC
>   \NR
> \stoptabulate
> 
> \stoptext

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns vs. paragraphs, and a question about fillinrule

2013-09-14 Thread Aditya Mahajan

On Thu, 12 Sep 2013, Pavneet Arora wrote:


As part of this legal document set that I have been working to put
together, I needed side-by-side text.  Looking at the wiki, I noticed
that there are at least 3 methods:  columns, paragraphs, columnsets.

I only attempted two, but they seem to have quite different results.  I
understood that columns were for simple cases.  However, in my MWE
below, the \column command breaks the "columns" in unusual way.

One can also swap out the order of the paragraphs and columns methods;
the results are similar.  Also, one can adjust the dorecurse command
with additional lorems to see where the "columns" land on the page.
Again results are similar.

Any suggestions?


What is the desired output? Do you want the left "column" to continue on 
to the next page? Is so, you could use the tabulate environment.


\setuppaper[A5, landscape]
\starttext
\startalignment[middle]
{\tfc AN IMPORTANT LEGAL DOCUMENT}
\stopalignment

\starttabulate[|p(0.5\textwidth)|p(0.1\textwidth)|p(0.4\textwidth)|]
  \NC WITNESSES:
\fillinrules[n=15,interlinespace=small,width=broad,separator=]{1.}
\fillinrules[n=15,interlinespace=small,width=broad,separator=]{2.}
\fillinrules[n=15,interlinespace=small,width=broad,separator=]{3.}
\fillinrules[n=15,interlinespace=small,width=broad,separator=]{4.}
\fillinrules[n=15,interlinespace=small,width=broad,separator=]{5.}
  \NC
  \NC
  (TESTATOR)\crlf
  Ms. B.E. Def
  \NC
  \NR
  \NC WITNESSES:
\fillinrules[n=15,interlinespace=small,width=broad,separator=]{1.}
\fillinrules[n=15,interlinespace=small,width=broad,separator=]{2.}
\fillinrules[n=15,interlinespace=small,width=broad,separator=]{3.}
\fillinrules[n=15,interlinespace=small,width=broad,separator=]{4.}
\fillinrules[n=15,interlinespace=small,width=broad,separator=]{5.}
  \NC
  \NC
  (TESTATOR)\crlf
  Ms. B.E. Def
  \NC
  \NR
\stoptabulate

\stoptext
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] columns vs. paragraphs, and a question about fillinrule

2013-09-12 Thread Pavneet Arora
As part of this legal document set that I have been working to put 
together, I needed side-by-side text.  Looking at the wiki, I noticed 
that there are at least 3 methods:  columns, paragraphs, columnsets.

I only attempted two, but they seem to have quite different results.  I 
understood that columns were for simple cases.  However, in my MWE 
below, the \column command breaks the "columns" in unusual way.

One can also swap out the order of the paragraphs and columns methods; 
the results are similar.  Also, one can adjust the dorecurse command 
with additional lorems to see where the "columns" land on the page.  
Again results are similar.

Any suggestions?

Another question:  I am trying to have the numbers in the \fillinrule 
command to be hanging so that the rules are lined up.  Is this possible, 
and if so how best to do it?

advTHANKSance.

MWE:

\setuppapersize[letter]
\setuplayout[header=0in,footer=0in,topspace=0.75in,height=9.5in,backspace=1.25in,width=6in]
\setuppagenumbering[location=]
\usemodule[simplefonts]
\setmainfont[gentiumalt]
\setupbodyfont[11pt]
\setupinterlinespace[line=3.2ex]
\setupwhitespace[big]

\starttext
\startalignment[middle]
{\tfc AN IMPORTANT LEGAL DOCUMENT}
\stopalignment
\blank[2*big]

\dorecurse{1}{\input lorem\par}

\blank[2*big]

{\tt paragraphs} method:

\defineparagraphs[mypar][n=3,before={\blank},after={\blank}]
\setupparagraphs[mypar][1][width=.5\textwidth]
\setupparagraphs[mypar][2][width=.1\textwidth]
\setupparagraphs[mypar][3][width=.4\textwidth]

\startmypar
WITNESSES:
\fillinrules[n=3,interlinespace=small,width=broad,separator=]{1.}
\fillinrules[n=3,interlinespace=small,width=broad,separator=]{2.}
\mypar
\mypar
(TESTATOR)\crlf
Ms. B.E. Def\crlf
\stopmypar

{\tt columns} method:

\startcolumns[n=2]
WITNESSES:
\fillinrules[n=3,interlinespace=small,width=broad,separator=]{1.}
\fillinrules[n=3,interlinespace=small,width=broad,separator=]{2.}
\column
(TESTATOR)\crlf
Mr. B.E. Def\crlf
\stopcolumns

\stoptext

-- 

Pavneet Arora   m: 647.406.6843
Waroc Informatikt: 416.937.9276
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns in latest beta

2012-07-19 Thread Hans Hagen

On 19-7-2012 16:51, Thomas A. Schmitz wrote:


What does this "bad register code" mean? I don't even know where to
begin to look for an error - there is one \start - \stopcolumns
environment earlier in my document, which does appear to work normally.
Any pointers?


a box / dimen mixup .. fixing it now

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns in latest beta

2012-07-19 Thread Hans Hagen

On 19-7-2012 17:12, Thomas A. Schmitz wrote:

On 07/19/2012 05:03 PM, Wolfgang Schuster wrote:

I can’t give a answer without more information but you can try to use
the new columns mechanism with “\definemixedcolumns[columns]” at the
begin of your document.


Yes, this one works OK, thanks Wolfgang! I'll see if I can find a
minimal example that triggers the error...


keep in mind that mixed columns is work in progress (e.g. I need to add 
some footnote handling qas currently all notes end in their column


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] columns in latest beta

2012-07-19 Thread Thomas A. Schmitz

On 07/19/2012 05:03 PM, Wolfgang Schuster wrote:

I can’t give a answer without more information but you can try to use the new 
columns mechanism with “\definemixedcolumns[columns]” at the begin of your 
document.


Yes, this one works OK, thanks Wolfgang! I'll see if I can find a 
minimal example that triggers the error...


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] columns in latest beta

2012-07-19 Thread Wolfgang Schuster

Am 19.07.2012 um 16:51 schrieb Thomas A. Schmitz:

> I was writing a reply to Dalyoung, but Wolfgang beat me to it. So I'm going 
> to ask a question myself:
> 
> I'm a bit desperate about columns. I want nothing fancy, just a simple 
> two-columns layout for a few pages. Unfortunately, the two betas I have on my 
> computer both have trouble. 2012-06-30 complains about \column: "undefined 
> control sequence." 2012-07-19 throws an error which I've never seen before:
> 
> system  > tex > error on line 901 in file reader.tex: Bad register 
> code ...
> 
> That's the line where I have \stopcolumns. The full error is this:
> 
> 
> \page_mul_flush_preceding_ongrid ...ceding_height
>  -\dp \d_page_mul_preceding...
> \page_mul_flush_packaged_columns_indeed ...ongrid
>  \else \page_mul_flush_prec...
> \page_mul_flush_packaged_columns_continued ...eed
>  \box \columnpagebox \egroup
> \page_mul_routine_continue ...d_columns_continued
> }\page_otr_construct_and_s...
> \page_otr_command_routine ...mul_routine_continue
>  \or \page_mul_routine_bala...
> \page_otr_triggered_output_routine ...and_routine
>  \fi
> 
> What does this "bad register code" mean? I don't even know where to begin to 
> look for an error - there is one \start - \stopcolumns environment earlier in 
> my document, which does appear to work normally. Any pointers?

I can’t give a answer without more information but you can try to use the new 
columns mechanism with “\definemixedcolumns[columns]” at the begin of your 
document.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] columns in latest beta

2012-07-19 Thread Thomas A. Schmitz
I was writing a reply to Dalyoung, but Wolfgang beat me to it. So I'm 
going to ask a question myself:


I'm a bit desperate about columns. I want nothing fancy, just a simple 
two-columns layout for a few pages. Unfortunately, the two betas I have 
on my computer both have trouble. 2012-06-30 complains about \column: 
"undefined control sequence." 2012-07-19 throws an error which I've 
never seen before:


system  > tex > error on line 901 in file reader.tex: Bad 
register code ...


That's the line where I have \stopcolumns. The full error is this:


\page_mul_flush_preceding_ongrid ...ceding_height
  -\dp 
\d_page_mul_preceding...

\page_mul_flush_packaged_columns_indeed ...ongrid
  \else 
\page_mul_flush_prec...

\page_mul_flush_packaged_columns_continued ...eed
  \box \columnpagebox 
\egroup

\page_mul_routine_continue ...d_columns_continued

}\page_otr_construct_and_s...
\page_otr_command_routine ...mul_routine_continue
  \or 
\page_mul_routine_bala...

\page_otr_triggered_output_routine ...and_routine
  \fi

What does this "bad register code" mean? I don't even know where to 
begin to look for an error - there is one \start - \stopcolumns 
environment earlier in my document, which does appear to work normally. 
Any pointers?


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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] columns behaviour

2011-07-08 Thread Hans van der Meer
Is it normal that after \setupcolumns[balance=no] the dividing line is not 
fully drawn in the case where the column at the left is shorter than the one to 
the right.
And furthermore that balance=no inserts a pagebreak, whereas balance=yes does 
not?
Below a minimal example.

Hans van der Meer

\setupcolumns[rule=on,balance=no]
\starttext
\startcolumns
Short leftcolumn.
\column
Long rightcolumn.
Long rightcolumn.
Long rightcolumn.
Long rightcolumn.
Long rightcolumn.
Long rightcolumn.
Long rightcolumn.
Long rightcolumn.
\stopcolumns
\hairline
\startcolumns
Long leftcolumn.
Long leftcolumn.
Long leftcolumn.
Long leftcolumn.
Long leftcolumn.
Long leftcolumn.
Long leftcolumn.
Long leftcolumn.
\column
Short rightcolumn.
\stopcolumns
\stoptext



columns2.pdf
Description: Adobe PDF document


___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Columns and figures in MKIV

2011-07-01 Thread Jason Earl

On Thu, Jun 30 2011, Willi Egger wrote:

> Columnsets provide you the possibility to place column spanning pictures:

Thank you for the advice.  I was hoping to avoid having to learn about
columnsets, but I suppose learning is good.  Any hints on getting
columnsets and footnotes to play nicely?  Here's an example of how I
would normally use footnotes, but the footnote is obscured by the text.

--8<---cut here---start->8---
\definecolumnset[Doublecoltext][n=2,balance=no]
\setupcolumnset[Doublecoltext][2][distance=5mm]
\starttext
\chapter[chap:testing]{Testing}

\startcolumnset[Doublecoltext]

  This is a short paragraph.  I think it should have a
  footnote.\footnote{And so it shall!  Unfortunately you won't be able
to see it because it is covered up with the text in the
columnsets.}

\input knuth

%\startpostponing
 \placefigure
   [btlr][fig:foo]
   {none}
   {\externalfigure[mill][width=1.5\textwidth,height=5cm]}
%\stoppostponing

\input tufte

\input knuth

\input tufte

\input knuth

\input tufte

\stopcolumnset
\stoptext
--8<---cut here---end--->8---

Once again, I am sorry if my question is naive.  I am working through
the examples in the Columnset manual to try and wrap my head around
them, but it is becoming pretty clear to me that it is a tool for layout
designers far more accomplished than I am.

Jason
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Columns and figures in MKIV

2011-06-30 Thread Willi Egger
Columnsets provide you the possibility to place column spanning pictures:

Willi

\definecolumnset[Doublecoltext][n=2,balance=no]
\setupcolumnset[Doublecoltext][2][distance=5mm]
\starttext
\startcolumnset[Doublecoltext]
\chapter[chap:testing]{Testing}


\input knuth

%\startpostponing
 \placefigure
   [btlr][fig:foo]
   {none}
   {\externalfigure[mill][width=1.5\textwidth,height=5cm]}
%\stoppostponing

\input tufte

\input knuth

\input tufte

\input knuth

\input tufte

\stopcolumnset
\stoptext



On 30 Jun 2011, at 01:24, Jason Earl wrote:

> \starttext
> \startcolumns
> \chapter[chap:testing]{Testing}
> 
> \startcolumns[n=2, tolerant=verytolerant]
> \input knuth
> 
> %\startpostponing
>  \placefigure
>[center][fig:foo]
>{none}
>{\externalfigure[foo][]
>  [width=1.5\textwidth]}
> %\stoppostponing
> 
> \input tufte
> 
> \input knuth
> 
> \input tufte
> 
> \input knuth
> 
> \input tufte
> 
> \stopcolumns
> \stoptext

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Columns and figures in MKIV

2011-06-29 Thread Jason Earl

I am trying to upgrade an existing document from using texexec and
pdftex to context and luatex.  Unfortunately, the document relies pretty
heavily on columns (using \startcolumns[n=2,tolerant=verytolerant]) and
the idea that figures that are too wide to place in a column float to
the top of the next page.

Unfortunately, this does not seem to be the case with the current
minimals.  The following example works fine for texexec (even if I
comment out the \startpostponing \stoppostponing code).  The figure is
placed (centered) at the top of page 2.  With MKIV, however, the figure
stays in the first column and bleeds over into the second column (the
postponing code does change it to the next page, but it doesn't force it
out of the column).

--8<---cut here---start->8---
\enableregime[utf-8]

\starttext
\startcolumns
\chapter[chap:testing]{Testing}

\startcolumns[n=2, tolerant=verytolerant]
\input knuth

%\startpostponing
  \placefigure
[center][fig:foo]
{none}
{\externalfigure[foo][]
  [width=1.5\textwidth]}
%\stoppostponing

\input tufte

\input knuth

\input tufte

\input knuth

\input tufte

\stopcolumns
\stoptext--8<---cut here---end--->8---

I am using the Context minimal distribution (on Linux) and context
reports that the current version as:

current version: 2011.06.29 09:57

It is quite likely that I am simply doing this wrong, but I have read:

http://wiki.contextgarden.net/Columns

and it appears to support what I am trying to do.  I have experimented a
bit with columnsets, but they appear to be overkill for my use.  Then
again, I am probably doing it wrong.  Any advice would be appreciated.

Jason Earl
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns and whitespace

2010-03-08 Thread Hans Hagen

On 4-3-2010 23:56, James Fisher wrote:

There was a thread about columns and whitespace ~ 2 weeks ago, but I wasn't
a subscriber then.  I've just come across it independently myself.  I'm not
sure what conclusion was come to.  From a few tests, I'd characterize the
problem code in \startcolumns as: "if whitespace has been set to more than
none, set whitespace to 'line'."

Try it by uncommenting various lines:


%\setupwhitespace[none]
%\setupwhitespace[small]

\starttext

\startcolumns[n=2]
%\setupwhitespace[small]
\input knuth
\stopcolumns

\stoptext


Do people agree with that characterization; has the bug been found; what's
being done about it?  I don't want to have to re-setup whitespace every time
I go to columns.


\startcolumns[n=2,blank=medium]
\input knuth
\stopcolumns

it's not a bug as by default columns are set up with

blank={line,fixed}

this has always been the case; as columns can be mixed with no columns 
we want the lines to align


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns and whitespace

2010-03-04 Thread Wolfgang Schuster

Am 04.03.10 23:56, schrieb James Fisher:
There was a thread about columns and whitespace ~ 2 weeks ago, but I 
wasn't a subscriber then.  I've just come across it independently 
myself.  I'm not sure what conclusion was come to.  From a few tests, 
I'd characterize the problem code in \startcolumns as: "if whitespace 
has been set to more than none, set whitespace to 'line'."

ConTeXt does this to keep the lines on the grid.

\setupwhitespace[medium]

\starttext

\startcolumns
\input knuth
\stopcolumns

\startcolumns[blank=medium]
\input knuth
\stopcolumns

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] columns and whitespace

2010-03-04 Thread James Fisher
There was a thread about columns and whitespace ~ 2 weeks ago, but I wasn't
a subscriber then.  I've just come across it independently myself.  I'm not
sure what conclusion was come to.  From a few tests, I'd characterize the
problem code in \startcolumns as: "if whitespace has been set to more than
none, set whitespace to 'line'."

Try it by uncommenting various lines:


%\setupwhitespace[none]
%\setupwhitespace[small]

\starttext

\startcolumns[n=2]
%\setupwhitespace[small]
\input knuth
\stopcolumns

\stoptext


Do people agree with that characterization; has the bug been found; what's
being done about it?  I don't want to have to re-setup whitespace every time
I go to columns.



James
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns and whitespace

2010-02-16 Thread Wolfgang Werners-Lucchini
Hallo Wolfgang,

> > Neither \setupwhitespace[halfline]nor
> \setupcolumns[blank=halfline]is
> > working. Grid is off by default, isn't it?
> >
> Set the whitespace after \startcolumns.
 

This works, but shouldn't be the whitespace a global setting?

I found an other ?solution? 

When BOTH

\setupwhitespace[small]
\setupcolumns[blank=halfline]

is set then halfline is accepted. But halfline > small.

I like context very much, but finding the right option is often a 
game of pure chance.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns and whitespace

2010-02-15 Thread Wolfgang Schuster

Am 15.02.10 13:56, schrieb Wolfgang Werners-Lucchini:

Neither \setupwhitespace[halfline]nor \setupcolumns[blank=halfline]is
working. Grid is off by default, isn't it?
   

Set the whitespace after \startcolumns.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns and whitespace

2010-02-15 Thread Wolfgang Werners-Lucchini
> > is it possible to get a half line space after paragraphs in
> columns?
> > The default is no space. And
> >
> > \setupwhitespace[small]
> >
> > produces a whole line of space.
> 
> halfline should work unless the grid is forced (although in mkiv 
> different rules apply than in mkii)
> 
> Hans

Neither \setupwhitespace[halfline]nor \setupcolumns[blank=halfline]is 
working. Grid is off by default, isn't it?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns and whitespace

2010-02-14 Thread Hans Hagen

On 14-2-2010 20:49, Wolfgang Werners-Lucchini wrote:

Hallo,

is it possible to get a half line space after paragraphs in columns?
The default is no space. And

\setupwhitespace[small]

produces a whole line of space.


halfline should work unless the grid is forced (although in mkiv 
different rules apply than in mkii)


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] columns and whitespace

2010-02-14 Thread Wolfgang Werners-Lucchini
Hallo,

is it possible to get a half line space after paragraphs in columns?
The default is no space. And

\setupwhitespace[small]

produces a whole line of space.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] columns and footnotes

2010-02-14 Thread Wolfgang Werners-Lucchini
Hallo,

I use:

ConTeXt  ver: 2009.11.24 10:13 MKII  fmt: 2009.11.24  int: 
english/english

and I have many problems with columns and footnotes.

Is there a possibility to set footnotes in two columns too?

I tried 

\setupfootnotes[location=columns]

but I can not see any difference to

\setupfootnotes[location=lastcolumn]

In the moment I use 

\setupfootnotes[location=page]

and it is often the case that footnotes are printed one page to 
early. It is sometimes the case that the columns and the footnote 
area overlapp. 

What can I do to avoid these problems?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Columns within a layer

2010-01-02 Thread Oliver Buerschaper
> But the frame from setlayerframed has not the measures of the text,
> to get the correct size you need textbackground.

Ah, I see! The reason I asked is I didn't see any frame with your code... I 
presume I need to hook some MP overlay into textbackground?


> \definelayer[test][width=\paperwidth,height=\paperheight]
> 
> \setupbackgrounds[page][background=test]
> 
> \starttext
> 
> \startbuffer[test]
> \hsize=12cm
> \startsimplecolumns
> \input zapf
> \stopsimplecolumns
> \stopbuffer
> 
> \setlayerframed
>  [test]
>  [x=5cm,y=10cm]
>  [width=12cm]
>  {\getbuffer[test]}
> 
> \page[empty]
> 
> \stoptext

No, that doesn't solve my problem :-( Compare the two buffers and watch the 
space between the frame's top border and the first line of text:

---
\definelayer
[test]
[width=\paperwidth,
 height=\paperheight]

\setupbackgrounds
[page]
[background=test]

\starttext

\startbuffer[test]
\hsize=12cm
\startsimplecolumns
\input zapf
\stopsimplecolumns
\stopbuffer

\startbuffer[test2]
\input zapf
\stopbuffer

\setlayerframed
[test]
[x=5cm,
 y=10cm]
[width=12cm,
% align=normal,
 offset=none]
{\getbuffer[test]}
%{\getbuffer[test2]}

\page[empty]


\stoptext
---

Also, I forgot to mention that I need three columns... my apologies.


> You can set \textheight in the streamlayer settings and disable the balancing 
> for columns.

I managed to disable the balancing but I can't get the text height right. I'm 
probably not seeing the obvious but neither

\textheight{10cm}

nor

\overloadtextwidth{10cm}

between \startsetups and \stopsetups do the job :-( Please advise...

Oliver
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Columns within a layer

2010-01-02 Thread Wolfgang Schuster

Am 02.01.2010 um 11:18 schrieb Oliver Buerschaper:

>> You need textbackground to draw the frame around the text
> 
> That's the funny thing ... apparently I don't! See the code in my previous 
> mail. There I seem to get the frame from the \setlayerframed command alone.

But the frame from setlayerframed has not the measures of the text,
to get the correct size you need textbackground.

>> When you want only text in two columns \startsimplecolumns ... 
>> \stopsimplecolumns
>> is a alternative to the normal columns environment and it works also in 
>> \framed
>> (which is used in \setlayerframed).
> 
> I'm afraid that doesn't make the vertial space vanish :-( Any ideas?

\definelayer[test][width=\paperwidth,height=\paperheight]

\setupbackgrounds[page][background=test]

\starttext

\startbuffer[test]
\hsize=12cm
\startsimplecolumns
\input zapf
\stopsimplecolumns
\stopbuffer

\setlayerframed
  [test]
  [x=5cm,y=10cm]
  [width=12cm]
  {\getbuffer[test]}

\page[empty]

\stoptext

> Also, can I force the streamlayer to have a fixed height? In the example I'd 
> like the first column to be filled all the way down to the visible bottom 
> frame and then the remaining text should be broken to the second column. At 
> the moment both columns are filled with roughly equal amounts of text...

You can set \textheight in the streamlayer settings and disable the balancing 
for columns.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Columns within a layer

2010-01-02 Thread Oliver Buerschaper
> You need textbackground to draw the frame around the text

That's the funny thing ... apparently I don't! See the code in my previous 
mail. There I seem to get the frame from the \setlayerframed command alone.


> You can still write the text in a buffer and use the buffer in the 
> streamlayer.

OK.


> When you want only text in two columns \startsimplecolumns ... 
> \stopsimplecolumns
> is a alternative to the normal columns environment and it works also in 
> \framed
> (which is used in \setlayerframed).

I'm afraid that doesn't make the vertial space vanish :-( Any ideas?

Also, can I force the streamlayer to have a fixed height? In the example I'd 
like the first column to be filled all the way down to the visible bottom frame 
and then the remaining text should be broken to the second column. At the 
moment both columns are filled with roughly equal amounts of text...

Oliver
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Columns within a layer

2010-01-01 Thread Wolfgang Schuster

Am 01.01.2010 um 15:07 schrieb Oliver Buerschaper:

> Observations:
> 
> 1. One can even do without the textbackground material for some reason.

You need textbackground to draw the frame around the text

> 2. \placestreamlayer apparently can only be used once (try uncommenting the 
> last lines). So it doesn't nearly behave like a buffer...

You can still write the text in a buffer and use the buffer in the streamlayer.

> 3. There's some vertical space between the frame and the first line of text. 
> Is this some \topskip thing? How can I get rid of this space?

When you want only text in two columns \startsimplecolumns ... 
\stopsimplecolumns
is a alternative to the normal columns environment and it works also in \framed
(which is used in \setlayerframed).

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Columns within a layer

2010-01-01 Thread Oliver Buerschaper
> width:
> 
> \startsetups streamlayer:test:settings
>  \overloadtextwidth{12cm}
> \stopsetups
> 
> frame:
> 
> \definetextbackground[testframe]
> 
> \startstreamlayer[test]
> \starttextbackground[testframe]
> ...
> \stoptextbackground
> \stopstreamlayer

That's exactly what I need! Based on your example I kept experimenting a bit 
and got to:

---
\usemodule[streams]

\definestreamlayer
[columns]
[method=overlay]

\startsetups streamlayer:columns:settings
\overloadtextwidth{12cm}
\stopsetups

\setupbackgrounds
[page]
[background=columns]



\starttext

\startstreamlayer[columns]
\startcolumns
\input knuth
\stopcolumns
\stopstreamlayer

\setlayerframed
[columns]
[x=2cm,
 y=3cm]
[width=12cm,
 height=8cm,
 align=normal,
 offset=none,
 framecolor=gray]
{\placestreamlayer[columns]}

%\setlayer
%[columns]
%[x=1cm,
% y=10cm]
%{\placestreamlayer[columns]}

\stoptext
---

Observations:

1. One can even do without the textbackground material for some reason.
2. \placestreamlayer apparently can only be used once (try uncommenting the 
last lines). So it doesn't nearly behave like a buffer...
3. There's some vertical space between the frame and the first line of text. Is 
this some \topskip thing? How can I get rid of this space?

Many thanks again for your suggestions and a happy new year,
Oliver
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Columns within a layer

2009-12-26 Thread Wolfgang Schuster

Am 26.12.2009 um 12:50 schrieb Oliver Buerschaper:

>> \usemodule[streams]
>> 
>> \definestreamlayer[test][method=overlay]
>> 
>> \setupbackgrounds[page][background=test]
>> 
>> \starttext
>> 
>> \startstreamlayer[test]
>> \startcolumns
>> \input knuth
>> \stopcolumns
>> \stopstreamlayer
>> 
>> \setlayer[test][x=5cm,y=10cm]{\placestreamlayer[test]}
>> 
>> \stoptext
> 
> Many thanks! Now if only you could tell me how to set the width and height of 
> the box and give it a frame ... I tried

width:

\startsetups streamlayer:test:settings
  \overloadtextwidth{12cm}
\stopsetups

frame:

\definetextbackground[testframe]

\startstreamlayer[test]
\starttextbackground[testframe]
...
\stoptextbackground
\stopstreamlayer

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Columns within a layer

2009-12-26 Thread Oliver Buerschaper
> \usemodule[streams]
> 
> \definestreamlayer[test][method=overlay]
> 
> \setupbackgrounds[page][background=test]
> 
> \starttext
> 
> \startstreamlayer[test]
> \startcolumns
> \input knuth
> \stopcolumns
> \stopstreamlayer
> 
> \setlayer[test][x=5cm,y=10cm]{\placestreamlayer[test]}
> 
> \stoptext

Many thanks! Now if only you could tell me how to set the width and height of 
the box and give it a frame ... I tried

\setlayerframed
[test]
[x=5cm,
 y=10cm]
[width=10cm,
 height=5cm]
{\placestreamlayer[test]}

but didn't get quite what I was hoping for :-(

Oliver
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Columns within a layer

2009-12-25 Thread Wolfgang Schuster

Am 25.12.2009 um 20:25 schrieb Oliver Buerschaper:

> Dear all,
> 
> how can I get columns within a layer? I tried
> 
> ---
> \setupbackgrounds
>[page]
>[background=text]
> 
> \definelayer
>[text]
>[width=\paperwidth,
> height=\paperheight]
> 
> \startbuffer[test]
> \startcolumns[n=2]
> \input zapf
> \stopcolumns
> \stopbuffer
> 
> 
> 
> \starttext
> 
> 
> \startstandardmakeup
> 
> \setlayerframed
>[text]
>[x=1cm,
> y=3cm]
>[width=12cm,
> height=6cm,
> align=normal,
> offset=none,
> framecolor=gray]
>{\getbuffer[test]}
> 
> \stopstandardmakeup
> 
> 
> \stoptext
> ---
> 
> with no success :-( I'm running MkIV, by the way.

\usemodule[streams]

\definestreamlayer[test][method=overlay]

\setupbackgrounds[page][background=test]

\starttext

\startstreamlayer[test]
\startcolumns
\input knuth
\stopcolumns
\stopstreamlayer

\setlayer[test][x=5cm,y=10cm]{\placestreamlayer[test]}

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Columns within a layer

2009-12-25 Thread Oliver Buerschaper
Dear all,

how can I get columns within a layer? I tried

---
\setupbackgrounds
[page]
[background=text]

\definelayer
[text]
[width=\paperwidth,
 height=\paperheight]

\startbuffer[test]
\startcolumns[n=2]
\input zapf
\stopcolumns
\stopbuffer



\starttext


\startstandardmakeup

\setlayerframed
[text]
[x=1cm,
 y=3cm]
[width=12cm,
 height=6cm,
 align=normal,
 offset=none,
 framecolor=gray]
{\getbuffer[test]}

\stopstandardmakeup


\stoptext
---

with no success :-( I'm running MkIV, by the way.

Any help much appreciated!

Best wishes,
Oliver
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns with unequal width

2009-09-11 Thread Aditya Mahajan

On Sat, 12 Sep 2009, Vyatcheslav Yatskovsky wrote:


Hello,

Can I create columns with unequal width with \startcolumns? (Say, first 
column is 75% and second is 25%)


AFAIK, no.

To create columns with different widths, you need to use columsets.

Aditya
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] columns with unequal width

2009-09-11 Thread Vyatcheslav Yatskovsky

Hello,

Can I create columns with unequal width with \startcolumns? (Say, first 
column is 75% and second is 25%)


Regards,
Vaytcheslav


___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns(ets) and itemize[columns]

2009-05-18 Thread Hans Hagen

Alan BRASLAU wrote:

Great! This is somewhat what I suspected (columns mechanism is the older one). 


older but also conceptually different

Is there good reason to keep both mechanisms? That is, does the startcolumns 
mechanism have advantages? Can't one mix one column and multicolumns text on a 
page using columnsets?


yes, and there might be even more variants in the future as there is not 
one solution


May I suggest that \startitemize[columns] internally use such a mechanism, 
perhaps when under a columns or columnset environment. Of course, this may be 
a bit tricky according to the following remark:


no, the current itemize columns work nicely in the main vertical liust 
while simple columns are a box


future mkiv versions might have better mechamisms

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns(ets) and itemize[columns]

2009-05-18 Thread Alan BRASLAU
On Monday 18 May 2009 08:45:16 Wolfgang Schuster wrote:
> Am 17.05.2009 um 23:31 schrieb Alan BRASLAU:
> > Two questions, first:
> > What is the real difference between columns and columnset?
> > I am a bit confused* about their coexistence. Is this purposeful or
> > necessary
> > (or is it simply historical)? Is \startcolumns simply an unnamed,
> > "default"
> > columnset?
>
> columns and columnset are two different mechanism two produce a document
> with text and two or more columns. the columns mechanism is the older
> one
> with limited control about the placement of figures but allows you to
> mix
> one column and multicolumns text on a page. columnsets are a new version
> of the column mechanism with more control about the placement of figures
> and other features like spanned columns etc. (look at the manual for
> more)
> and is better suited for magazine like layouts (Vit Zyka posted a few
> nice
> examples a few years ago).

Great! This is somewhat what I suspected (columns mechanism is the older one). 
Is there good reason to keep both mechanisms? That is, does the startcolumns 
mechanism have advantages? Can't one mix one column and multicolumns text on a 
page using columnsets?

> > (*and the wiki page needs to be clarified...)
>
> the wiki is from users for users, feel free to correct the articles

Of course, as soon as I feel that I understand the subject.

> > Second question, maybe a bug?
> > \startitemize[columns] does not interact well:
> > I suspect that it could or should use paragraphs internally rather
> > than
> > columns so as to work within a column(set).
>
> that's a limitation in tex, when you use the 'columns' key for itemize
> the items are typeset with a \startcolumns / \stopcolumns before and
> after the environment and you can nest columns /columnset environments
> (a tex limitation) but in normal one column text this is not the case
> and you can use multicolumn items in most cases but you can
>
> \startcolumns
> \startsimplecolumns
> \startitemize
> \item one
> \item two
> ...
> \stopitemize
> \stopsimplecolumns
> \stopcolumns

page-mul.tex
...
%D Undocumented and still under development.
\def\startsimplecolumns
...

May I suggest that \startitemize[columns] internally use such a mechanism, 
perhaps when under a columns or columnset environment. Of course, this may be 
a bit tricky according to the following remark:

> (in a few cases streamlayer are necessary, e.g. within framedtext)

Indeed!
Inside framed text I used paragraphs to manually typset into columns; now I 
get to learn about streamlayers...

Alan

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns(ets) and itemize[columns]

2009-05-17 Thread Wolfgang Schuster


Am 17.05.2009 um 23:31 schrieb Alan BRASLAU:


Hello,

I just completed a "big" project making heavy use of columnset,  
columnsetspan

and paragraphs. Very powerful!

Two questions, first:
What is the real difference between columns and columnset?
I am a bit confused* about their coexistence. Is this purposeful or  
necessary
(or is it simply historical)? Is \startcolumns simply an unnamed,  
"default"

columnset?


columns and columnset are two different mechanism two produce a document
with text and two or more columns. the columns mechanism is the older  
one
with limited control about the placement of figures but allows you to  
mix

one column and multicolumns text on a page. columnsets are a new version
of the column mechanism with more control about the placement of figures
and other features like spanned columns etc. (look at the manual for  
more)
and is better suited for magazine like layouts (Vit Zyka posted a few  
nice

examples a few years ago).


(*and the wiki page needs to be clarified...)


the wiki is from users for users, feel free to correct the articles


Second question, maybe a bug?
\startitemize[columns] does not interact well:
I suspect that it could or should use paragraphs internally rather  
than

columns so as to work within a column(set).


that's a limitation in tex, when you use the 'columns' key for itemize
the items are typeset with a \startcolumns / \stopcolumns before and
after the environment and you can nest columns /columnset environments
(a tex limitation) but in normal one column text this is not the case
and you can use multicolumn items in most cases (in a few cases
streamlayer are necessary, e.g. within framedtext) but you can

\startcolumns
\startsimplecolumns
\startitemize
\item one
\item two
...
\stopitemize
\stopsimplecolumns
\stopcolumns

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] columns(ets) and itemize[columns]

2009-05-17 Thread Alan BRASLAU
Hello,

I just completed a "big" project making heavy use of columnset, columnsetspan 
and paragraphs. Very powerful!

Two questions, first:
What is the real difference between columns and columnset?
I am a bit confused* about their coexistence. Is this purposeful or necessary 
(or is it simply historical)? Is \startcolumns simply an unnamed, "default" 
columnset?

(*and the wiki page needs to be clarified...)

Second question, maybe a bug?
\startitemize[columns] does not interact well:
I suspect that it could or should use paragraphs internally rather than 
columns so as to work within a column(set).

Minimal example:

\starttext

\startitemize[columns] \item first \item second \item third \stopitemize

\startcolumns[n=2]

\startitemize[columns] \item forth \item fifth \item sixth \stopitemize

\column

\startitemize[columns] \item seventh \item eighth \item nineth \stopitemize

\stopcolumns

\stoptext

Gives something like:

•_first_•_third
•_second

•_forth•_seventh
•_fifth_•_eighth
•_sixth•_nineth

Whereas I was expecting:

•_first_•_third
•_second

•_forth__•_sixth___•_seventh_•_nineth
•_fifth_•_eighth

Alan

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] columns in footnotes broken

2008-11-02 Thread Michael Green
The manual describes a way to set footnotes in columns:  
\setupfootnotes[n=number] (Context: the manual (Nov. 12, 2001), pp.  
101-2)

That has caused errors for me in the 2008-10-23 or 2008-10-31 releases.

mjg

TEST DOCUMENT:

\setupfootnotes[n=2]

\starttext

First sentence here.\footnote{Note one.} Second sentence here. 
\footnote{Note two.} Third sentence here.\footnote{Note three.}

\stoptext

ERROR MESSAGE

ConTeXt  ver: 2008.10.31 13:58 MKIV  fmt: 2008.11.1  int: english/ 
english

[snip]

fonts  : using map file: original-public-lm
{/Users/michaelgreen/Applications/context/tex/texmf-context/fonts/map/ 
pdftex/context/original-public-lm.map}
! Missing } inserted.

 }

\unvbox
\doplacenoteinserts ...ing \unvcopy \else \unvbox
   \fi  
\currentnoteins \fi \s...
\next3 ...oprocessnotes {\doplacenoteinserts }{#1}
   \doprocesscommaitem
 \relax footnote,
endnote,linenote
\doprocesscommalist ...aitem \gobbleoneargument #1
   ,]\relax \global  
\advance ...
...
l.7 \stoptext

?


___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns and \definemakeup

2008-04-29 Thread Wolfgang Schuster
On Tue, Apr 29, 2008 at 7:22 PM, Suno Ano <[EMAIL PROTECTED]> wrote:
>  >| On Tue, 29 Apr 2008 13:40:59 +0200,
>  >| Wolfgang Schuster
>  >| who can be reached at: [EMAIL PROTECTED]
>  >| (whose comments are cited below with " Wolfgang> "),
>  >| had this to say in article <[EMAIL PROTECTED]>
>  >| in newsgroups gmane.comp.tex.context
>  >| concerning the subject of Re: columns and \definemakeup
>  >| (see <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> for more details)
>
>  Wolfgang> Alternative solution:
>
>  Wolfgang> \Definelayout
>  Wolfgang>   [titlepage]
>  Wolfgang>   [header=0pt,
>  Wolfgang>footer=0pt,
>  Wolfgang>backspace=4cm,
>  Wolfgang>width=12cm]
>
> [skipping a lot of lines ...]
>
>
> Thank you Wolfgang, it works! However, I tried but did not figure out
> how to also change the fontsize from within the \definelayout block. Is
> it possible?

No possible, \definelayout is resposible for margings, textheight and width ...
not for the fontsize

> I want to change the fontsize to 11pt. I know I could use
> \switchtobodyfont but I would rather save myself some typing in the
> future and put it in the \definelayout block -- or something else that
> does not require me typing it over and over again if \definelayout is
> the wrong way to go here altogether (/me is still a novice to ConTeXt).

Not within \definelayout but see below.

> Same as for the fontsize -- can I "demand" two columns from within the
> \definelayout block instead of always putting \startcolumns[n=2]
> respectively \stopcolumns in the actual source?

\definestartstop
 [titlepage]
 [before={\setuplayout[titlepage]\bgroup\switchtobodyfont[11pt]\startcolumns},
  after={\stopcolumns\egroup\page[right]\setuplayout[reset]}]


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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns and \definemakeup

2008-04-29 Thread Suno Ano
 >| On Tue, 29 Apr 2008 13:40:59 +0200,
 >| Wolfgang Schuster
 >| who can be reached at: [EMAIL PROTECTED]
 >| (whose comments are cited below with " Wolfgang> "),
 >| had this to say in article <[EMAIL PROTECTED]>
 >| in newsgroups gmane.comp.tex.context
 >| concerning the subject of Re: columns and \definemakeup
 >| (see <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> for more details)

 Wolfgang> Alternative solution:

 Wolfgang> \Definelayout
 Wolfgang>   [titlepage]
 Wolfgang>   [header=0pt,
 Wolfgang>footer=0pt,
 Wolfgang>backspace=4cm,
 Wolfgang>width=12cm]

[skipping a lot of lines ...] 


Thank you Wolfgang, it works! However, I tried but did not figure out
how to also change the fontsize from within the \definelayout block. Is
it possible?

I want to change the fontsize to 11pt. I know I could use
\switchtobodyfont but I would rather save myself some typing in the
future and put it in the \definelayout block -- or something else that
does not require me typing it over and over again if \definelayout is
the wrong way to go here altogether (/me is still a novice to ConTeXt).

Same as for the fontsize -- can I "demand" two columns from within the
\definelayout block instead of always putting \startcolumns[n=2]
respectively \stopcolumns in the actual source?

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns and \definemakeup

2008-04-29 Thread Wolfgang Schuster
On Tue, Apr 29, 2008 at 1:32 PM, Wolfgang Schuster
<[EMAIL PROTECTED]> wrote:
>
> On Tue, Apr 29, 2008 at 12:54 PM, Suno Ano <[EMAIL PROTECTED]> wrote:
> > Hi Folks!
> >
> > I am in the curse of setting up the environment plus a project structure
> > for a book. My problem is with a few pages like for example colofon
> > where I used
> >
> > ,[ content from comp_colophon.tex ]
> > | \startcomponent comp_colophon
> > | \product prod_back_matter
> > | \project proj_a_book
> > |
> > | \startstandardmakeup[doublesided=no, page=right]
> > |
> > | \startalignment[flushleft]
> > |   \ssd Colophon\par
> > |   \blank[1mm]
> > |   \ssa \title\par
> > | \stopalignment
> > |
> > | \hairline
> > |
> > | \stopstandardmakeup
> > |
> > | % ---
> > |
> > | \startstandardmakeup[doublesided=no, page=left]
> > | \stopstandardmakeup
> > |
> > |
> > | \stopcomponent
> > `
> >
> > Now I want the text to be in columns -- two that is ... However, I tried
> > with
> >
> > ,
> > | \startcolumns[n=2]
> > |  
> > | \stopcolumns
> > `
> >
> > and
> >
> > ,
> > | \definecolumnset[example][n=2]
> > |
> > | \starttext
> > | \startcolumnset[example]
> > | \dorecurse{15}{\fakewords{100}{200}\par}
> > | \stopcolumnset
> > | \stoptext
> > `
> >
> > but I just get one column in both cases. Can anyone tell me how I would
> > for example use \definemakeup in order to get exactly what
> > \startstandardmakeup and \stopstandardmakeup provides me with PLUS the
> > text gets typeset into two columns? Maybe if it is not possible with
> > \definemakeup what else could I do? Tia!
>
> Try this:
>
> \starttext
> \startstandardmakeup
> \startsimplecolumns
> \dorecurse{3}{\input knuth\par}
> \stopsimplecolumns
> \stopstandardmakeup
> \stoptext

Alternative solution:

\definelayout
  [titlepage]
  [header=0pt,
   footer=0pt,
   backspace=4cm,
   width=12cm]

\definestartstop
  [titlepage]
  [before={\setuplayout[titlepage]},
   after={\page[right]\setuplayout[reset]}]

\starttext

\starttitlepage

\startcolumns
\dorecurse{3}{\input knuth\par}
\stopcolumns

\stoptitlepage

\input knuth

\stoptext

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns and \definemakeup

2008-04-29 Thread Wolfgang Schuster
On Tue, Apr 29, 2008 at 12:54 PM, Suno Ano <[EMAIL PROTECTED]> wrote:
> Hi Folks!
>
> I am in the curse of setting up the environment plus a project structure
> for a book. My problem is with a few pages like for example colofon
> where I used
>
> ,[ content from comp_colophon.tex ]
> | \startcomponent comp_colophon
> | \product prod_back_matter
> | \project proj_a_book
> |
> | \startstandardmakeup[doublesided=no, page=right]
> |
> | \startalignment[flushleft]
> |   \ssd Colophon\par
> |   \blank[1mm]
> |   \ssa \title\par
> | \stopalignment
> |
> | \hairline
> |
> | \stopstandardmakeup
> |
> | % ---
> |
> | \startstandardmakeup[doublesided=no, page=left]
> | \stopstandardmakeup
> |
> |
> | \stopcomponent
> `
>
> Now I want the text to be in columns -- two that is ... However, I tried
> with
>
> ,
> | \startcolumns[n=2]
> |  
> | \stopcolumns
> `
>
> and
>
> ,
> | \definecolumnset[example][n=2]
> |
> | \starttext
> | \startcolumnset[example]
> | \dorecurse{15}{\fakewords{100}{200}\par}
> | \stopcolumnset
> | \stoptext
> `
>
> but I just get one column in both cases. Can anyone tell me how I would
> for example use \definemakeup in order to get exactly what
> \startstandardmakeup and \stopstandardmakeup provides me with PLUS the
> text gets typeset into two columns? Maybe if it is not possible with
> \definemakeup what else could I do? Tia!

Try this:

\starttext
\startstandardmakeup
\startsimplecolumns
\dorecurse{3}{\input knuth\par}
\stopsimplecolumns
\stopstandardmakeup
\stoptext

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] columns and \definemakeup

2008-04-29 Thread Suno Ano
Hi Folks!

I am in the curse of setting up the environment plus a project structure
for a book. My problem is with a few pages like for example colofon
where I used 

,[ content from comp_colophon.tex ]
| \startcomponent comp_colophon
| \product prod_back_matter
| \project proj_a_book
| 
| \startstandardmakeup[doublesided=no, page=right]
| 
| \startalignment[flushleft]
|   \ssd Colophon\par
|   \blank[1mm] 
|   \ssa \title\par
| \stopalignment
| 
| \hairline
| 
| \stopstandardmakeup
| 
| % --- 
| 
| \startstandardmakeup[doublesided=no, page=left]
| \stopstandardmakeup
| 
| 
| \stopcomponent
`

Now I want the text to be in columns -- two that is ... However, I tried
with

,
| \startcolumns[n=2]
|  
| \stopcolumns
`

and

,
| \definecolumnset[example][n=2]
| 
| \starttext
| \startcolumnset[example]
| \dorecurse{15}{\fakewords{100}{200}\par}
| \stopcolumnset
| \stoptext
`

but I just get one column in both cases. Can anyone tell me how I would
for example use \definemakeup in order to get exactly what
\startstandardmakeup and \stopstandardmakeup provides me with PLUS the
text gets typeset into two columns? Maybe if it is not possible with
\definemakeup what else could I do? Tia!


___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Columns and colour background [urgent]

2007-07-25 Thread Saji Njarackalazhikam Hameed
Oliver,

adding the option=background may help

\setupcolumns[option=background]

saji
..

* Oliver Buerschaper <[EMAIL PROTECTED]> [2007-07-24 14:16:34 +0200]:

> Dear folks,
> 
> I'm reposting this because I haven't got any answers so far and also  
> because this is somewhat urgent for me. I need this for a scientific  
> poster which is due rather soon ... Please share your valuable advice  
> with me :-)
> 
> Oliver
> 
> 
> 
> Consider this:
> 
> ---
> 
> \setupcolors
>   [state=start]
> 
> \setupcolumns
>   [background=color,
>backgroundcolor=red]
> 
> 
> \starttext
> 
> \startcolumns[n=2]
> \dorecurse{4}{\input tufte}
> \stopcolumns
> 
> \framed[background=color,backgroundcolor=red]{Test}
> 
> \stoptext
> 
> ---
> 
> Shouldn't the background of my columns be painted red? According to
> the manual \setupcolumns inherits from \setupframed which does work ...
> ___
> 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://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

-- 
Saji N. Hameed

APEC Climate Center +82 51 668 7470
National Pension Corporation Busan Building 12F 
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 [EMAIL PROTECTED]
KOREA
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Columns and colour background [urgent]

2007-07-24 Thread Oliver Buerschaper
Thanks, Taco! That workes even better than I thought ... a column gap  
without color is more a feature to me than anything else ;-)

Oliver

P.S. Why's the option=background necessary from an interface point of  
view? Doesn't everything else (especially \framed) do without it  
happily?



> Try adding option=background to the \setupcolumns. It may not do
> precisely what you want though, as the column gap will not be
> colored. If you want that, use textbackgrounds instead
>
> Best wishes,
> Taco
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Columns and colour background [urgent]

2007-07-24 Thread Taco Hoekwater


Oliver Buerschaper wrote:
> Dear folks,
> 
> I'm reposting this because I haven't got any answers so far and also  
> because this is somewhat urgent for me. I need this for a scientific  
> poster which is due rather soon ... Please share your valuable advice  
> with me :-)

Try adding option=background to the \setupcolumns. It may not do
precisely what you want though, as the column gap will not be
colored. If you want that, use textbackgrounds instead

Best wishes,
Taco

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Columns and colour background [urgent]

2007-07-24 Thread Oliver Buerschaper
Dear folks,

I'm reposting this because I haven't got any answers so far and also  
because this is somewhat urgent for me. I need this for a scientific  
poster which is due rather soon ... Please share your valuable advice  
with me :-)

Oliver



Consider this:

---

\setupcolors
[state=start]

\setupcolumns
[background=color,
 backgroundcolor=red]


\starttext

\startcolumns[n=2]
\dorecurse{4}{\input tufte}
\stopcolumns

\framed[background=color,backgroundcolor=red]{Test}

\stoptext

---

Shouldn't the background of my columns be painted red? According to
the manual \setupcolumns inherits from \setupframed which does work ...
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Columns and colour background

2007-07-16 Thread Oliver Buerschaper
Dear folks,

consider this:

---

\setupcolors
[state=start]

\setupcolumns
[background=color,
 backgroundcolor=red]


\starttext

\startcolumns[n=2]
\dorecurse{4}{\input tufte}
\stopcolumns

\framed[background=color,backgroundcolor=red]{Test}

\stoptext

---

Shouldn't the background of my columns be painted red? According to  
the manual \setupcolumns inherits from \setupframed which does work ...

Oliver
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns

2007-07-03 Thread Patrick Gundlach
Hi,

(repost - anybody got an idea on this question?)


> Is it possible that align=yes/no is incorrect? See 
>
> http://source.contextgarden.net/tex/context/base/page-mul.tex?search=%40%40klalign
>
> (search for @@klalign)


\setupcolumns accept align=yes,no,text but the source seem to indicate
that only 'text' is allowed which will be passed to \setupalign -
which itself does not accept 'yes' or 'no'.

Any comments?

Patrick
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns/blank=

2007-07-01 Thread Patrick Gundlach
Hello Wolfgang,

probably I didn't understand your answer correctly. I was wondering
_why_ the ctxparskip has to be > 0pt for setupwhitespace to take
effect.

Patrick

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns/blank=

2007-07-01 Thread Wolfgang Schuster
On Fri, 29 Jun 2007 20:01:11 +0200
Patrick Gundlach <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> what is the rationale behind
> 
>\setupblank[\@@klblank]%
>\ifdim\ctxparskip>\zeropoint\relax
>  \setupwhitespace[\@@klblank]%
>\fi
> 
> in page-mul.tex (columns)? It seems to me that blank=line inside a
> startcolumn does not work if ctxparskip = 0pt, which is the default.
> So when I'd like to have setupwhitespace[line] to get paragraphs
> separated by blank lines inside a column, I have to do this some other
> way?!?
> 
> Patrick

Hi Patrick,

both setups are indpendent from the other one, they use only the same
value inside columns.

1. \setupblank[\@@klblank]%

   use the value from \setupcolumns[blank=..] for every simple blank
   command inside columns. The default value for blank is line and
   this value is used. You can use other value like small, big or
   dimen without problems with a complex blank.
   
   simple blank: \blank
   complex blank: \blank[small|dimen|...]

2. \ifdim\ctxparskip>\zeropoint\relax
 \setupwhitespace[\@@klblank]%
   \fi

   look if the user has set parskip, if the answer is yes overwrite the
   global value from the user and use the local value for columns.
   The local comes also from the columns key \setupcolumns[blank=...]

   You can change the parskip value inside columns either with
   \setupcolumns[blank=...] or you write \setupwhitespace[...] after
   \startcolumns.


A testfile would also help, you see I set parskip to ConTeXts small
value but I get a line in columns.

\showgrid
\setupwhitespace[small]

\starttext

\startcolumns
\input knuth

\input knuth
\blank
\input knuth
\stopcolumns

text\par
text

\stoptext


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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns

2007-06-29 Thread Aditya Mahajan
Quoting Patrick Gundlach <[EMAIL PROTECTED]>:

>
> [...]
>
>>> in \setupcolumns, what is ntop=
>>
>>  From the source: the minimum number op balanced top lines
>>
>> Consider
>> \starttext
>> \startcolumns[n=2,ntop=15,balance=yes]
>>   \dorecurse{20}{This is a test line to check for balancing. }
>> \stopcolumns
>> \page
>> \startcolumns[n=2,ntop=5,balance=yes]
>>   \dorecurse{20}{This is a test line to check for balancing. }
>> \stopcolumns
>> \stoptext
>
> This seems to be a binary switch, right? no difference in your example
> between ntop=15 and ntop=13.

Yes. The way I understand this is: if the number of lines in the column 
after balancing are greater than ntop, do column balancing (if enabled) 
otherwise not. For example,

\showgrid
\starttext
\dostepwiserecurse{5}{15}{1}{
\section{\recurselevel}
\startcolumns[n=2,ntop=\recurselevel,balance=yes]
  \dorecurse{20}{This is a test line to check for balancing. }
\stopcolumns
\page}
\stoptext

Aditya
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  1   2   >