[NTG-context] Re: \startcolumns and \startcolumnset

2024-02-08 Thread Otared Kavian
Dear Dalyoung,Have you tried \startsimplecolumns\stopsimplecolumns instead of the columnset mechanism?In your example I put the above commands and I got the attached PDF: is this what you want to obtain?Best regards: Otared

columns-figures.pdf
Description: Adobe PDF document
On 9 Feb 2024, at 02:22, Jeong Dal via ntg-context <ntg-context@ntg.nl> wrote:Dear all,I have a little problem to use “columns” in the following example.If I use “\startcolumnset”, then I have the following problems:	1. The figures is aligned left even though I use \startplacefigure[].	2. In the second column, the first item located at the end of the page.However, \vfill works, so I managed the items evenly spaced vertically.If I use “\startcolumns”, then I have the following problems:	1. \vfill doesn’t works, but \blank[] works. So, it isn’t easy to locate the items evenly spaced vertically.Here are sample code and its outputs of two cases for comparison.Any suggestions are welcomed.Tomorrow is the New Years day in Lunar calendar.Happy new year, again.Best regards,Dalyoung%%%\startuseMPgraphic{mark}path p;p := unitsquare scaled 3cm;draw p;draw (point 0 of p)--(point 2 of p);draw (point 1 of p)--(point 3 of p);\stopuseMPgraphic\startuseMPgraphic{verticalrule3}   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: shifted(-2mm,0) fi ;   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: shifted(2mm,0) fi ; draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;   draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;\stopuseMPgraphic\defineoverlay  [verticalrule]  [\useMPgraphic{verticalrule3}]\setuppagenumbering[state=stop]\setupexternalfigures[location={local,defalut}]\definecolumnset  [quiz]  [n=2,background=verticalrule]\setupbodyfont[bonum, rm, 11pt]\starttext %\startcolumns[n=2,background="">\startcolumnset[quiz]\startitemize[n]  \item Solve the following linear equations.  \startitemize[r]\item equation%\blank[3.5cm]\vfill\item equation%\blank[3.5cm]\vfill\item equation\blank[3.5cm]\item equation\blank[3.5cm]\item equation\blank[3.5cm]  \stopitemize  \hrule\column  \item Draw the graph of the following linear function.\startitemize[r]\item $2x +3y = 6$\startplacefigure[location={here,none},]\useMPgraphic{mark}\stopplacefigure  \item $y = 2x - 1$  \startplacefigure[location={here,none}]\useMPgraphic{mark}\stopplacefigure\stopitemize  \item Find the formula of the line 1:  \vfill  \item Find the formula of the line 2:  \vfill\stopitemize\stopcolumnset\stoptext%%___If your question is of interest to others as well, please add an entry to the Wiki!maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nlwebpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)archive  : https://github.com/contextgarden/contextwiki : https://wiki.contextgarden.net___
Otared Kaviane-mail: ota...@gmail.comPhone: +33 6 88 26 70 95

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] \startcolumns and \startcolumnset

2024-02-08 Thread Jeong Dal via ntg-context
Dear all,I have a little problem to use “columns” in the following example.If I use “\startcolumnset”, then I have the following problems:	1. The figures is aligned left even though I use \startplacefigure[].	2. In the second column, the first item located at the end of the page.However, \vfill works, so I managed the items evenly spaced vertically.If I use “\startcolumns”, then I have the following problems:	1. \vfill doesn’t works, but \blank[] works. So, it isn’t easy to locate the items evenly spaced vertically.Here are sample code and its outputs of two cases for comparison.Any suggestions are welcomed.Tomorrow is the New Years day in Lunar calendar.Happy new year, again.Best regards,Dalyoung%%%\startuseMPgraphic{mark}path p;p := unitsquare scaled 3cm;draw p;draw (point 0 of p)--(point 2 of p);draw (point 1 of p)--(point 3 of p);\stopuseMPgraphic\startuseMPgraphic{verticalrule3}   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: shifted(-2mm,0) fi ;   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: shifted(2mm,0) fi ; draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;   draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;\stopuseMPgraphic\defineoverlay  [verticalrule]  [\useMPgraphic{verticalrule3}]\setuppagenumbering[state=stop]\setupexternalfigures[location={local,defalut}]\definecolumnset  [quiz]  [n=2,background=verticalrule]\setupbodyfont[bonum, rm, 11pt]\starttext %\startcolumns[n=2,background="">\startcolumnset[quiz]\startitemize[n]  \item Solve the following linear equations.  \startitemize[r]\item equation%\blank[3.5cm]\vfill\item equation%\blank[3.5cm]\vfill\item equation\blank[3.5cm]\item equation\blank[3.5cm]\item equation\blank[3.5cm]  \stopitemize  \hrule\column  \item Draw the graph of the following linear function.\startitemize[r]\item $2x +3y = 6$\startplacefigure[location={here,none},]\useMPgraphic{mark}\stopplacefigure  \item $y = 2x - 1$  \startplacefigure[location={here,none}]\useMPgraphic{mark}\stopplacefigure\stopitemize  \item Find the formula of the line 1:  \vfill  \item Find the formula of the line 2:  \vfill\stopitemize\stopcolumnset\stoptext%%

testColumns.pdf
Description: Adobe PDF document


testColumnset.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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] How to Create Asymmetrical Continuous Columns in ConTeXt?

2024-01-18 Thread seyal . zavira
Hi all,

I have a lengthy text that I wish to seamlessly incorporate using the 
\input{mytext} command in ConTeXt. 
Additionally, I aim to present it in asymmetrical continuous columns, where the 
text flows over several pages.

I have tried paragraphs and columns, but in paragraphs, I can't flow text 
across several pages without manually breaking it, and in columns, I haven't 
found a way to implement asymmetric columns.

How can I achieve this layout in ConTeXt? this is a MWE but it does not work 
properly:

\definecolumnset[mymixedcolumn][n=2]
\setupcolumnset[mymixedcolumn:1][width=4cm]
\setupcolumnset[mymixedcolumn:2][width=7cm]

\starttext
\startcolumnset[mymixedcolumn]
\dorecurse{5}{
\input{knuth}
}
\stopcolumnset
\stoptext

also is there a mechanism to automatically continue text between desired 
frames? For example, is there a way to write a function that, if the text 
reaches the end of the line and there is not enough space for another line in 
that frame, it continues the text in another frame that is already specified? 
in other word How do you make text flow to another part of a page?

Thanks in advance.
Best regards,
Seyal
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] page floats don’t work in columnsets

2023-09-21 Thread Henning Hraban Ramm
I had no luck with page floats in columnsets; according to the manual 
they should work.


Hraban


\setuppapersize[A5,landscape]
\useMPlibrary[dum]
\definecolumnset[Two][n=2]

\starttext
\startcolumnset[Two]

\dorecurse{5}{1\recurselevel\samplefile{lorem}\par}

\startplacefigure[location=page,title={my caption}]%
\externalfigure[dummy][width=2\textwidth,height=.95\textheight]%
\stopplacefigure

\dorecurse{5}{2\recurselevel\samplefile{lorem}\par}
\stopcolumnset

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Parallel columns using start/stop setups

2023-08-08 Thread Thangalin
Two concurrent situations can happen, which I'd like to typeset as two
parallel columns while keeping the overall page layout (i.e., headers,
footers, margins, and such).

current version: 2023.07.18 22:07

I'd like to find a way to set up start/stop environments, if possible, to
come up with a general-purpose solution (i.e., the prose itself is not
changed).

Here are a few examples. In the first, a "concurrent" environment is
created with two "timelines":

% SOT
\definestartstop[concurrent][
  before={\startcolumns[n=2, align={verytolerant,stretch}, separator=rule]},
  after=\stopcolumns,
]

\definestartstop[timelinea][
  after=\column,
]

\definestartstop[timelineb][]

\starttext
  \startconcurrent
\starttimelinea
  \dorecurse{5}{\input ward}
\stoptimelinea

\starttimelineb
  \dorecurse{5}{\input knuth}
\stoptimelineb
  \stopconcurrent
\stoptext
% EOT

The ward and knuth texts end up in the same column because one is shorter
than the other. Here's another attempt:

% SOT
\defineparagraphs[concurrent][n=2]

\definestartstop[timelinea][
  before=\concurrent,
  after=\concurrent,
]

\definestartstop[timelineb][
  before=\concurrent,
]

\starttext
  \startconcurrent
\starttimelinea
  \dorecurse{5}{\input ward}
\stoptimelinea

\starttimelineb
  \dorecurse{5}{\input knuth}
\stoptimelineb
  \stopconcurrent
\stoptext
% EOT

This loses much of the input text.

Can this be accomplished using LMTX and what would be the best approach?
Would this setupparagraphs, definecolumnset, synchronizestreams, or
possibly incomplete/experimental functionality?

Thank you!
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

Re: [NTG-context] error in column sets

2023-06-20 Thread Henning Hraban Ramm via ntg-context

Am 19.06.23 um 21:59 schrieb Henning Hraban Ramm via ntg-context:

In a minimal example like this:

\setuppapersize[A5]
\definecolumnset[TwoColumns][n=2]

\starttext
\startcolumnset [TwoColumns]
    \dorecurse{10}{\samplefile{knuth}}
\stopcolumnset

\stoptext

… many columns start one line too low and overwrite their last line.

...
Also I seem to remember that column sets would enforce grid mode, but 
they clearly don’t.


If you enable \setuplayout[grid=yes], lines get placed correctly.
Also floats work well (here and top).

But some columnsetspans still disappear, and footnotes get overwritten. 
(I know, that tricky inset stuff…)


Hraban

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] error in column sets

2023-06-19 Thread Henning Hraban Ramm via ntg-context

In a minimal example like this:

\setuppapersize[A5]
\definecolumnset[TwoColumns][n=2]

\starttext
\startcolumnset [TwoColumns]
   \dorecurse{10}{\samplefile{knuth}}
\stopcolumnset

\stoptext

… many columns start one line too low and overwrite their last line.


An extended example (nearly the same as in the manual) shows that some 
column set spans don’t appear:


\showgrid\showframe

\definecolumnset[Beispiel][n=3]
\definecolumnsetspan[Zwei][n=2,color=blue]
\definecolumnsetspan[Drei][n=3,color=red]

\starttext
\startcolumnset[Beispiel]
\startcolumnsetspan[Drei]% this works
{\bfd Überschrift}

Anleser: \dorecurse{2}{#1: \samplefile{knuth}\par}
\stoptitle
\stopcolumnsetspan

Zwischen: \samplefile{tufte}\par

\startcolumnsetspan[Zwei]% This never shows up!
Zwei: \dorecurse{2}{#1: \samplefile{lorem}\par}
\stopcolumnsetspan

Nach: \dorecurse{15}{#1: \samplefile{knuth}\par}
\stopcolumnset
\stoptext

Also I seem to remember that column sets would enforce grid mode, but 
they clearly don’t.


(BTW the old \startcolumns mode works better than I remembered.)

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] \startcolumnset ... \stopcolumnset is working.

2022-09-14 Thread Jeong Dal via ntg-context
Dear all,

I didn’t test “\startcolumnset … \stopcolumnset” for some time, because I got 
error whenever I tested it under Mac OS Big Sur. 

However, two days ago, I tested it, and found that it was working.
I install updated version today and run a test file again.
Finally, I get an output without error!

I don't know what is happened, but it is a good news.

Here is a sample file which I simplified one that is given by one of the 
experts.
Someone may modify it better.

Thanks to ConTeXt team.

Best regards,

Dalyoung


\startuseMPgraphic{squareBox}
   draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
   draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
   draw rightboundary OverlayBox shifted (1mm,0); 
   draw leftboundary OverlayBox shifted (-1mm,0); 
\stopuseMPgraphic
\defineoverlay
  [headerBox]
  [\useMPgraphic{squareBox}]

\startuseMPgraphic{verticalrule3}
   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: 
shifted(-2mm,0) fi ;
   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: 
shifted(2mm,0) fi ;  
   draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
 \stopuseMPgraphic

\defineoverlay
  [verticalrule]
  [\useMPgraphic{verticalrule3}]

\definecolumnset
  [exam]
  [n=2,
   background=verticalrule]


\setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm]
\setupheader[before=\vfil, after=\vfil]
\setupbackgrounds[header][text][frame=off, background=headerBox, 
align=lohi]%topframe=
\setupbackgrounds[footer][text][frame=off, background=screen]

\define[3]\headTitle{\setupheadertexts[][\bf #1  \hfill #2  \hfill #3  \hfill 
ID:  \hskip 2cm Name: \hskip 2cm]}

\setupmathematics[autopunctuation=no, integral=nolimits]
\setupbodyfont[rm,10pt]
\setuppagenumbering[location=footer]
\setupcolors[state=start]
%\setupexternalfigure[directory={/Users/graph/Documents/figures,}]

\headTitle{2021. 12. 12.}{Set Theory}{Final Exam}

\starttext

\startcolumnset[exam]

\startitemize[n]
  \item The first problem.
  \column

  \item The second problem.
  \column

  \item The third problem.
  \column
  \item The third problem.


\stopitemize
\stopcolumnset

\stoptext

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-27 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Henning
> Hraban Ramm via ntg-context
> Gesendet: Freitag, 26. August 2022 23:27
> An: Denis Maier via ntg-context 
> Cc: Henning Hraban Ramm 
> Betreff: Re: [NTG-context] Parallel texts: verse with blanks between stanzas
> via tabulate
> 
> Am 26.08.22 um 22:00 schrieb Denis Maier via ntg-context:
> > Hi,
> >
> > I need to typeset two poems side by side. Usually, I use the tabulate
> > environment for typesetting parallel texts. However, for poems this
> > does not quite work as tabulate does not seem to allow blanks between
> > the stanzas. See MWE below. Am I missing someting? Is there a better
> > way to achieve this?
> 
> How about columnsets or paragraphs?
> 
> \definecolumnset[Zwei][n=2]
> \startcolumnset[Zwei]
> \startlines
> Starlight, star bright,
> first star I see tonight;
> \stoplines
> \column
> \startlines
> I wish I may, I wish I might
> have the wish I wish tonight.
> \stoplines
> \stopcolumnset
> 
> 
> \defineparagraphs[Zwei][n=2]
> \setupparagraphs[Zwei][1][
>width=.45\textwidth, distance=2em,
>align={verytolerant,stretch}]
> % width of 2nd column is calculated automatically
> 
> \startZwei
> ...
> \nextZwei
> ...
> \stopZwei
> 
> 

Ok, I've had a chance to look into this. Maybe I'm missing something, but 
paragraphs cannot be split across pages. Is that correct? That's a bit of a 
problem.

As for columnsets, they seem to change the output routine for the entire page. 
Also not ideal in this case.

Denis
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-27 Thread Denis Maier via ntg-context
Thanks. I'll try that. But, iirc, these had some other drawbacks I'll check 
if it works for my use case.

Is there a way to have blanks in the tabulate?
Denis




Von: ntg-context  im Auftrag von Henning Hraban 
Ramm via ntg-context 
Gesendet: Freitag, 26. August 2022 23:26:56
An: Denis Maier via ntg-context
Cc: Henning Hraban Ramm
Betreff: Re: [NTG-context] Parallel texts: verse with blanks between stanzas 
via tabulate

Am 26.08.22 um 22:00 schrieb Denis Maier via ntg-context:
> Hi,
>
> I need to typeset two poems side by side. Usually, I use the tabulate
> environment for typesetting parallel texts. However, for poems this does
> not quite work as tabulate does not seem to allow blanks between the
> stanzas. See MWE below. Am I missing someting? Is there a better way to
> achieve this?

How about columnsets or paragraphs?

\definecolumnset[Zwei][n=2]
\startcolumnset[Zwei]
\startlines
Starlight, star bright,
first star I see tonight;
\stoplines
\column
\startlines
I wish I may, I wish I might
have the wish I wish tonight.
\stoplines
\stopcolumnset


\defineparagraphs[Zwei][n=2]
\setupparagraphs[Zwei][1][
   width=.45\textwidth, distance=2em,
   align={verytolerant,stretch}]
% width of 2nd column is calculated automatically

\startZwei
...
\nextZwei
...
\stopZwei


Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Parallel texts: verse with blanks between stanzas via tabulate

2022-08-26 Thread Henning Hraban Ramm via ntg-context

Am 26.08.22 um 22:00 schrieb Denis Maier via ntg-context:

Hi,

I need to typeset two poems side by side. Usually, I use the tabulate 
environment for typesetting parallel texts. However, for poems this does 
not quite work as tabulate does not seem to allow blanks between the 
stanzas. See MWE below. Am I missing someting? Is there a better way to 
achieve this?


How about columnsets or paragraphs?

\definecolumnset[Zwei][n=2]
\startcolumnset[Zwei]
\startlines
Starlight, star bright,
first star I see tonight;
\stoplines
\column
\startlines
I wish I may, I wish I might
have the wish I wish tonight.
\stoplines
\stopcolumnset


\defineparagraphs[Zwei][n=2]
\setupparagraphs[Zwei][1][
  width=.45\textwidth, distance=2em,
  align={verytolerant,stretch}]
% width of 2nd column is calculated automatically

\startZwei
...
\nextZwei
...
\stopZwei


Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] small fontsize and \definecolumnsetspan cause columns to jump (bug?)

2022-06-12 Thread a badin via ntg-context
Hi,

if the fontsize is smaller than ~11pt and there is \startcolumnsetspan used,
then the two first lines of the second column are not aligned to the
grid (they jump). Making the font bigger, or deleting the
\startcolumnsetspan can both fix the problem. It seems like a bug to
me, but maybe I'm doing something wrong. Any idea about how to align
all the lines in this specific table? I'm using it in a whole chapter
in a small book with poems and on a small format the jump is visible.

\showgrid
\setupbodyfont[10pt]
%\setupbodyfont[12pt] % works ok

\setuppapersize[A8] % just to make this visible
\setuplayout[grid=yes]

\definecolumnset[example2][n=6, width=20mm]
\definecolumnsetspan[title][n=6]

\starttext
\startcolumnset[example2]
\startcolumnsetspan[title]
Jumpy table \blank[line]
\stopcolumnsetspan

\input ward
\stoptext

Andrej
___
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] Problems with column sets?

2022-05-25 Thread Ben Moon via ntg-context
I've had a similar issue since December (posted here: 
https://www.mail-archive.com/ntg-context@ntg.nl/msg101228.html) and trying the 
examples from the columnsets manual today and the version that worked for 
Hraban I get the same error (ConTeXt version  2022.05.02, macOS 12.4).

Ben


On Tue, 24 May 2022, at 20:42, T. Kurt Bond via ntg-context wrote:
> Sigh.  I should have mentioned that that I reinstalled LMTX from scratch on 
> both machines, and that my mac is running macOS Monterey 12.3.1.
> 
> On Tue, May 24, 2022 at 3:40 PM T. Kurt Bond  wrote:
>> Huh.  I tried it on a Linux box, and that worked.  But on my main machine, a 
>> Intel 64 bit mac, I get the original result.  Oh, I changed to use this 
>> input:
>>> \definecolumnset[TwoColumns][n=2]
>>> \startcolumnset [TwoColumns]
>>>   \input knuth
>>> \stopcolumnset
>> 
>> On Tue, May 24, 2022 at 3:09 PM Henning Hraban Ramm via ntg-context 
>>  wrote:
>>> Am 24.05.22 um 20:43 schrieb T. Kurt Bond via ntg-context:
>>> > Given the following file that uses definecolumnset and 
>>> > startcolumnset/stopcolumnset (largely from the wiki 
>>> > <https://wiki.contextgarden.net/Command/definecolumnset>) for input:
>>> > 
>>> > 
>>> > 
>>> > \setuppapersize[letter]
>>> > \definecolumnset[TwoColumns][n=2]
>>> > \startcolumnset [TwoColumns]
>>> >\title{Test page}
>>> >\framed
>>> >  [frame=off,
>>> >   bottomframe=on,
>>> >   width=\textwidth,
>>> >   frameoffset=1mm,
>>> >   foregroundstyle=small,
>>> >  ]{\copyright\ \date[][year] Donald E. Knuth}
>>> >\input knuth
>>> > \stopcolumnset
>>> > 
>>> > 
>>> 
>>> That’s not a minimal example, but it works for me (even if the text 
>>> starts only on the second page):
>>> 
>>> \definecolumnset[TwoColumns][n=2]
>>> 
>>> \starttext
>>> \startcolumnset [TwoColumns]
>>>\title{Test page}
>>>\framed
>>>  [frame=off,
>>>   bottomframe=on,
>>>   width=\textwidth,
>>>   frameoffset=1mm,
>>>   foregroundstyle=small,
>>>  ]{\copyright\ \date[][year] Donald E. Knuth}
>>>\samplefile{knuth}
>>> \stopcolumnset
>>> \stoptext
>>> 
>>> 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
>>> ___
>> 
>> 
>> -- 
>> T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
> 
> 
> -- 
> T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
> ___
> 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] Problems with column sets?

2022-05-24 Thread T. Kurt Bond via ntg-context
Sigh.  I should have mentioned that that I reinstalled LMTX from scratch on
both machines, and that my mac is running macOS Monterey 12.3.1.

On Tue, May 24, 2022 at 3:40 PM T. Kurt Bond  wrote:

> Huh.  I tried it on a Linux box, and that worked.  But on my main machine,
> a Intel 64 bit mac, I get the original result.  Oh, I changed to use this
> input:
>
> \definecolumnset[TwoColumns][n=2]
> \startcolumnset [TwoColumns]
>   \input knuth
> \stopcolumnset
>
>
> On Tue, May 24, 2022 at 3:09 PM Henning Hraban Ramm via ntg-context <
> ntg-context@ntg.nl> wrote:
>
>> Am 24.05.22 um 20:43 schrieb T. Kurt Bond via ntg-context:
>> > Given the following file that uses definecolumnset and
>> > startcolumnset/stopcolumnset (largely from the wiki
>> > <https://wiki.contextgarden.net/Command/definecolumnset>) for input:
>> >
>> >
>>  
>> %%%%%%%%
>> > \setuppapersize[letter]
>> > \definecolumnset[TwoColumns][n=2]
>> > \startcolumnset [TwoColumns]
>> >\title{Test page}
>> >\framed
>> >  [frame=off,
>> >   bottomframe=on,
>> >   width=\textwidth,
>> >   frameoffset=1mm,
>> >   foregroundstyle=small,
>> >  ]{\copyright\ \date[][year] Donald E. Knuth}
>> >\input knuth
>> > \stopcolumnset
>> >
>>  
>> 
>>
>> That’s not a minimal example, but it works for me (even if the text
>> starts only on the second page):
>>
>> \definecolumnset[TwoColumns][n=2]
>>
>> \starttext
>> \startcolumnset [TwoColumns]
>>\title{Test page}
>>\framed
>>  [frame=off,
>>   bottomframe=on,
>>   width=\textwidth,
>>   frameoffset=1mm,
>>   foregroundstyle=small,
>>  ]{\copyright\ \date[][year] Donald E. Knuth}
>>\samplefile{knuth}
>> \stopcolumnset
>> \stoptext
>>
>> 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
>>
>> ___
>>
>
>
> --
> T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
>


-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
___
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] Problems with column sets?

2022-05-24 Thread T. Kurt Bond via ntg-context
Huh.  I tried it on a Linux box, and that worked.  But on my main machine,
a Intel 64 bit mac, I get the original result.  Oh, I changed to use this
input:

\definecolumnset[TwoColumns][n=2]
\startcolumnset [TwoColumns]
  \input knuth
\stopcolumnset


On Tue, May 24, 2022 at 3:09 PM Henning Hraban Ramm via ntg-context <
ntg-context@ntg.nl> wrote:

> Am 24.05.22 um 20:43 schrieb T. Kurt Bond via ntg-context:
> > Given the following file that uses definecolumnset and
> > startcolumnset/stopcolumnset (largely from the wiki
> > <https://wiki.contextgarden.net/Command/definecolumnset>) for input:
> >
> >
>  
> %%%%
> > \setuppapersize[letter]
> > \definecolumnset[TwoColumns][n=2]
> > \startcolumnset [TwoColumns]
> >\title{Test page}
> >\framed
> >  [frame=off,
> >   bottomframe=on,
> >   width=\textwidth,
> >   frameoffset=1mm,
> >   foregroundstyle=small,
> >  ]{\copyright\ \date[][year] Donald E. Knuth}
> >\input knuth
> > \stopcolumnset
> >
>  
> %%%%
>
> That’s not a minimal example, but it works for me (even if the text
> starts only on the second page):
>
> \definecolumnset[TwoColumns][n=2]
>
> \starttext
> \startcolumnset [TwoColumns]
>\title{Test page}
>\framed
>  [frame=off,
>   bottomframe=on,
>   width=\textwidth,
>   frameoffset=1mm,
>   foregroundstyle=small,
>  ]{\copyright\ \date[][year] Donald E. Knuth}
>\samplefile{knuth}
> \stopcolumnset
> \stoptext
>
> 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
>
> ___
>


-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
___
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] Problems with column sets?

2022-05-24 Thread Henning Hraban Ramm via ntg-context

Am 24.05.22 um 20:43 schrieb T. Kurt Bond via ntg-context:
Given the following file that uses definecolumnset and 
startcolumnset/stopcolumnset (largely from the wiki 
<https://wiki.contextgarden.net/Command/definecolumnset>) for input:




\setuppapersize[letter]
\definecolumnset[TwoColumns][n=2]
\startcolumnset [TwoColumns]
   \title{Test page}
   \framed
     [frame=off,
      bottomframe=on,
      width=\textwidth,
      frameoffset=1mm,
      foregroundstyle=small,
     ]{\copyright\ \date[][year] Donald E. Knuth}
   \input knuth
\stopcolumnset




That’s not a minimal example, but it works for me (even if the text 
starts only on the second page):


\definecolumnset[TwoColumns][n=2]

\starttext
\startcolumnset [TwoColumns]
  \title{Test page}
  \framed
[frame=off,
 bottomframe=on,
 width=\textwidth,
 frameoffset=1mm,
 foregroundstyle=small,
]{\copyright\ \date[][year] Donald E. Knuth}
  \samplefile{knuth}
\stopcolumnset
\stoptext

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
___


[NTG-context] Problems with column sets?

2022-05-24 Thread T. Kurt Bond via ntg-context
Given the following file that uses definecolumnset and
startcolumnset/stopcolumnset (largely from the wiki
<https://wiki.contextgarden.net/Command/definecolumnset>) for input:


\setuppapersize[letter]
\definecolumnset[TwoColumns][n=2]
\startcolumnset [TwoColumns]
  \title{Test page}
  \framed
[frame=off,
 bottomframe=on,
 width=\textwidth,
 frameoffset=1mm,
 foregroundstyle=small,
]{\copyright\ \date[][year] Donald E. Knuth}
  \input knuth
\stopcolumnset


Why does context fail, producing an empty .log and .pdf, with the following
information to the terminal:

resolvers   | formats | executing runner 'run luametatex format':
/usr/local/sw/versions/context-osx-64/tex/texmf-osx-64/bin/luametatex
--jobname="./x.ctx"
--fmt=/usr/local/sw/versions/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
--lua=/usr/local/sw/versions/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
 --c:currentrun=1 --c:fulljobname="./x.ctx" --c:input="./x.ctx"
--c:kindofrun=1 --c:maxnofruns=9
--c:texmfbinpath="/usr/local/sw/versions/context-osx-64/tex/texmf-osx-64/bin"
system  >
system  > ConTeXt  ver: 2022.05.11 11:36 LMTX  fmt: 2022.5.24  int:
english/english
system  >
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name
'/usr/local/sw/versions/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name
'/usr/local/sw/versions/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './x', input './x.ctx', result './x'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './x.ctx'
mtx-context | fatal error: return code: 1

-- 
T. Kurt Bond, tkurtb...@gmail.com, https://tkurtbond.github.io
___
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] \startcolumnset ... \stopcolumnset fatal error: return code 11

2021-12-17 Thread John Kitzmiller via ntg-context
>
> Date: Fri, 17 Dec 2021 08:49:55 +0900
> From: Jeong Dal 
> Subject: [NTG-context] \startcolumnset ... \stopcolumnset fatal error:
> return code 11
>
> I have used newcolumnset module to make a test sheet. It was made by the
> help of experts in the list.
> It worked fine a month ago and also worked via TeXlive 2021.
> But I got error using the recent version.
> Thanks Nicola and John for testing.
>
> I have listed it before and tried to find out the cause.
> I have test the following file in the editors,  vscode, vim, atom and even
> in the terminal.
> It might be an apple binary problem as Hans suspected.
> I’d like to know that it is the only problem for Mac users.
>
> Here is the code and the part of error message:
> It was tested in vscode, vim and terminal too.
>
> I am using Mac OSX,
> ConTeXt  ver: 2021.12.03 15:20 LMTX  fmt: 2021.12.9  int: english/english
>
> Thank you for reading.
> Best regards,
>
> Dalyoung
>

I confirm Dalyoung's problem with \columnsets on Mac OSX with current lmtx.

The following MnWE worked on July 2021 versions of lmtx, but does not work
with December versions (gives Fatal Error 11)

\definecolumnset[example][n=2]
  \starttext
 \startcolumnset[example]
   \dorecurse{20}{\input bryson}
 \stopcolumnset
  \stoptext


system  > ConTeXt  ver: 2021.12.14 19:19 LMTX  fmt: 2021.12.16  int:
english/english


mtx-context | fatal error: return code: 11


HTH,

John
___
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] \startcolumnset ... \stopcolumnset fatal error: return code 11

2021-12-16 Thread Jeong Dal via ntg-context
Hi,

I have used newcolumnset module to make a test sheet. It was made by the help 
of experts in the list.
It worked fine a month ago and also worked via TeXlive 2021.
But I got error using the recent version.
Thanks Nicola and John for testing.

I have listed it before and tried to find out the cause.
I have test the following file in the editors,  vscode, vim, atom and even in 
the terminal.
It might be an apple binary problem as Hans suspected.
I’d like to know that it is the only problem for Mac users.

Here is the code and the part of error message:
It was tested in vscode, vim and terminal too.

I am using Mac OSX, 
ConTeXt  ver: 2021.12.03 15:20 LMTX  fmt: 2021.12.9  int: english/english

Thank you for reading.
Best regards,

Dalyoung

%%%
\startuseMPgraphic{verticalrule0}
  if CurrentColumn < NOfColumns :
draw rightboundary OverlayBox shifted (4mm,0);
setbounds currentpicture to OverlayBox enlarged 2.5mm;
  fi;
\stopuseMPgraphic

\startuseMPgraphic{squareBox}
   draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: 
shifted(-2mm,0) fi ;
   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: 
shifted(2mm,0) fi ;  
   draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
 \stopuseMPgraphic
\defineoverlay
  [headerBox]
  [\useMPgraphic{squareBox}]

\startuseMPgraphic{verticalrule3}
   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: 
shifted(-2mm,0) fi ;
   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: 
shifted(2mm,0) fi ;  
   draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
 \stopuseMPgraphic

\defineoverlay
  [verticalrule]
  [\useMPgraphic{verticalrule3}]

\definecolumnset
  [exam]
  [n=2,
   background=verticalrule]


\setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm]
\setupheader[before=\vfil, after=\vfil]
\setupbackgrounds[header][text][frame=off, background=headerBox, 
align=lohi]%topframe=
\setupbackgrounds[footer][text][frame=off, background=screen]

\define[3]\headTitle{\setupheadertexts[][\bf #1  \hfill #2  \hfill #3  \hfill 
ID:  \hskip 2cm Name: \hskip 2cm]}

\setupmathematics[autopunctuation=no, integral=nolimits]

\setupbodyfont[rm,10pt]
\setuppagenumbering[location=footer]
\setupcolors[state=start]
%\setupexternalfigure[directory={/Users/graph/Documents/figures,}]

\headTitle{2021. 12. 9.}{Set Theory}{Final Exam}

\usemodule[newcolumnsets]

\starttext

%\startcolumns[rule=on,n=2,leftframe=on]
\startcolumnset[exam]

\startitemize[n]
  \item The first problem.
  \vfill
  \column

  \item The second problem.
  \vfill
  \column

  \item The third problem.
  \vfill
  \column

\stopitemize

\stopcolumnset
%\stopcolumns
\stoptext


%%
…
open source > level 2, order 3, name 
‘/Users/graph/ConTeXtLM/tex/texmf-context/tex/context/base/mkiv/m-newcolumnsets.mkiv'
close source> level 2, order 3, name 
'/Users/graph/ConTeXtLM/tex/texmf-context/tex/context/base/mkiv/m-newcolumnsets.mkiv'
mtx-context | fatal error: return code: 11
The terminal process "zsh '-c', 'mtxrun --autogenerate --script context 
--autopdf --purge '/Users/graph/Library/Mobile 
Documents/com~apple~CloudDocs/texMain/ColumnsetTest.tex''" terminated with exit 
code: 1.

___
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] using the newcolumnsets module

2021-12-09 Thread Jeong Dal via ntg-context

Dear all,

I made an exam form by the help of the experts in this list.
However, it was not working after recent update.
Here is a code which I made for the test.
If I use “\startcolumns \stopcolumns”, then it has no problem.
But using “\startcolumnset[exam] … \stopcolumnset” produces error message 
“return code 11”.
It loads “m-newcolumnset.tex” without problem.

What is the cause of this error?

Thank you for reading.

Best regards,

Dalyoung

\startuseMPgraphic{verticalrule0}
  if CurrentColumn < NOfColumns :
draw rightboundary OverlayBox shifted (4mm,0);
setbounds currentpicture to OverlayBox enlarged 2.5mm;
  fi;
\stopuseMPgraphic

\startuseMPgraphic{squareBox}
   draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: 
shifted(-2mm,0) fi ;
   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: 
shifted(2mm,0) fi ;  
   draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
 \stopuseMPgraphic
\defineoverlay
  [headerBox]
  [\useMPgraphic{squareBox}]

\startuseMPgraphic{verticalrule3}
   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: 
shifted(-2mm,0) fi ;
   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: 
shifted(2mm,0) fi ;  
   draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;
 \stopuseMPgraphic

\defineoverlay
  [verticalrule]
  [\useMPgraphic{verticalrule3}]

\definecolumnset
  [exam]
  [n=2,
   background=verticalrule]


\setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm]
\setupheader[before=\vfil, after=\vfil]
\setupbackgrounds[header][text][frame=off, background=headerBox, 
align=lohi]%topframe=
\setupbackgrounds[footer][text][frame=off, background=screen]

\define[3]\headTitle{\setupheadertexts[][\bf #1  \hfill #2  \hfill #3  \hfill 
ID:  \hskip 2cm Name: \hskip 2cm]}

\setupmathematics[autopunctuation=no, integral=nolimits]

\setupbodyfont[rm,10pt]
\setuppagenumbering[location=footer]
\setupcolors[state=start]
%\setupexternalfigure[directory={/Users/graph/Documents/figures,}]

\headTitle{2021. 12. 9.}{Set Theory}{Final Exam}

\usemodule[newcolumnsets]

\starttext

\startcolumns[rule=on,n=2,leftframe=on]
%\startcolumnset[exam]

\startitemize[n]
  \item The first problem.
  \vfill
  \column

  \item The second problem.
  \vfill
  \column

  \item The third problem.
  \vfill
  \column

\stopitemize

%\stopcolumnset
\stopcolumns
\stoptext


error messages:
system  > ConTeXt  ver: 2021.11.30 19:49 LMTX  fmt: 2021.12.1  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/Users/graph/ConTeXtL/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/Users/graph/ConTeXtL/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname '/Users/graph/Library/Mobile 
Documents/com~apple~CloudDocs/texMain/ColumnsetTest', input 
'/Users/graph/Library/Mobile 
Documents/com~apple~CloudDocs/texMain/ColumnsetTest.tex', result 
'/Users/graph/Library/Mobile 
Documents/com~apple~CloudDocs/texMain/ColumnsetTest'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name '/Users/graph/Library/Mobile 
Documents/com~apple~CloudDocs/texMain/ColumnsetTest.tex'
fonts   > preloading latin modern fonts (third stage)
fonts   > 'fallback modern-designsize rm 10pt' is loaded
colors  > 'rgb' color space is supported
colors  > 'cmyk' color space is supported
modules > 'newcolumnsets' is loaded
open source > level 2, order 3, name 
'/Users/graph/ConTeXtL/tex/texmf-context/tex/context/base/mkiv/m-newcolumnsets.mkiv'
close source> level 2, order 3, name 
'/Users/graph/ConTeXtL/tex/texmf-context/tex/context/base/mkiv/m-newcolumnsets.mkiv'
mtx-context | fatal error: return code: 11
The terminal process "zsh '-c', 'export 
PATH=~/ConTeXtL/tex/texmf-osx-64/bin:$PATH;mtxrun --autogenerate --script 
context --autopdf --purge '/Users/graph/Library/Mobile 
Documents/com~apple~CloudDocs/texMain/ColumnsetTest.tex''" terminated with exit 
code: 1.

___
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] Fwd: columnsets messed up

2021-07-02 Thread Henning Hraban Ramm
> Am 02.07.2021 um 11:03 schrieb Henning Hraban Ramm  <mailto:te...@fiee.net>>:
> 
>> 
>> Am 02.07.2021 um 08:51 schrieb Hans Hagen > <mailto:j.ha...@xs4all.nl>>:
>> 
>> On 7/1/2021 8:04 PM, Henning Hraban Ramm wrote:
>>> Hi,
>>> I’m working at the current CG journal whose layout uses columnsets. They 
>>> aren’t usable any more. Same in current LMTX and MkIV.
>>> - the first line can start one or more lines lower
>>> - then the same number of lines is printed over each other at the bottom
>>> - it gets worse with footnotes (looks like their space isn’t considered at 
>>> all)
>>> - if the column set doesn’t start at the top of the page, the second column 
>>> does
>>> Hraban
>>> \definecolumnset[cgjcolset][n=2]
>>> \starttext
>>> \chapter{This is a chapter about column sets}
>>> \startcolumnset[cgjcolset]
>>> \dorecurse{20}{
>>> \samplefile{sapolsky}\par
>>> }
>>> \stopcolumnset
>>> \stoptext
>> Personally I'd never use columnsets for anything else than very controlled 
>> situations because that's what they were made for. Not to be mixed with the 
>> normal pagebuilder. So, first of all you need to operate on the grid (i can 
>> probably get rid of some side effects and maigt even force that but not 
>> now). Then, \chapter itself flushes pages so that should be disabled.
> 
> Thank you, I got it mostly working now.

In several articles I get a problem, and I can’t (yet) reproduce it in a MWE:

The text in a two-column columnset suddenly breaks at the end of a left column, 
the end is missing.

Here’s an example PDF:
https://sedna.fiee.net/f/24d54a952b0243a98775/?dl=1

What could case that?

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] columnsets messed up

2021-07-02 Thread Hans Hagen

On 7/2/2021 11:03 AM, Henning Hraban Ramm wrote:



Am 02.07.2021 um 08:51 schrieb Hans Hagen :

On 7/1/2021 8:04 PM, Henning Hraban Ramm wrote:

Hi,
I’m working at the current CG journal whose layout uses columnsets. They aren’t 
usable any more. Same in current LMTX and MkIV.
- the first line can start one or more lines lower
- then the same number of lines is printed over each other at the bottom
- it gets worse with footnotes (looks like their space isn’t considered at all)
- if the column set doesn’t start at the top of the page, the second column does
Hraban
\definecolumnset[cgjcolset][n=2]
\starttext
\chapter{This is a chapter about column sets}
\startcolumnset[cgjcolset]
\dorecurse{20}{
\samplefile{sapolsky}\par
}
\stopcolumnset
\stoptext

Personally I'd never use columnsets for anything else than very controlled 
situations because that's what they were made for. Not to be mixed with the 
normal pagebuilder. So, first of all you need to operate on the grid (i can 
probably get rid of some side effects and maigt even force that but not now). 
Then, \chapter itself flushes pages so that should be disabled.


Thank you, I got it mostly working now.

The CGJ layout doesn’t actually use \chapter but its own convoluted 
\startArticle. Until last issue it tried to be flexible and setup three 
different column modes. Now I eliminated the last leftovers of that. I still 
struggle to understand some pecularities...

What I did wrong:
* \setuplayout[grid=yes] is important
* you can’t start a columnsetspan before the columnset
leter this year i will into the several column mechanisms (maybe also 
some mechanism to warn for mixed usage or use of features that interfere 
.. doing columns is hairy in tex)


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] columnsets messed up

2021-07-02 Thread Henning Hraban Ramm

> Am 02.07.2021 um 08:51 schrieb Hans Hagen :
> 
> On 7/1/2021 8:04 PM, Henning Hraban Ramm wrote:
>> Hi,
>> I’m working at the current CG journal whose layout uses columnsets. They 
>> aren’t usable any more. Same in current LMTX and MkIV.
>> - the first line can start one or more lines lower
>> - then the same number of lines is printed over each other at the bottom
>> - it gets worse with footnotes (looks like their space isn’t considered at 
>> all)
>> - if the column set doesn’t start at the top of the page, the second column 
>> does
>> Hraban
>> \definecolumnset[cgjcolset][n=2]
>> \starttext
>> \chapter{This is a chapter about column sets}
>> \startcolumnset[cgjcolset]
>> \dorecurse{20}{
>> \samplefile{sapolsky}\par
>> }
>> \stopcolumnset
>> \stoptext
> Personally I'd never use columnsets for anything else than very controlled 
> situations because that's what they were made for. Not to be mixed with the 
> normal pagebuilder. So, first of all you need to operate on the grid (i can 
> probably get rid of some side effects and maigt even force that but not now). 
> Then, \chapter itself flushes pages so that should be disabled.

Thank you, I got it mostly working now.

The CGJ layout doesn’t actually use \chapter but its own convoluted 
\startArticle. Until last issue it tried to be flexible and setup three 
different column modes. Now I eliminated the last leftovers of that. I still 
struggle to understand some pecularities...

What I did wrong:
* \setuplayout[grid=yes] is important
* you can’t start a columnsetspan before the columnset

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] columnsets messed up

2021-07-02 Thread Hans Hagen

On 7/1/2021 8:04 PM, Henning Hraban Ramm wrote:

Hi,
I’m working at the current CG journal whose layout uses columnsets. They aren’t 
usable any more. Same in current LMTX and MkIV.

- the first line can start one or more lines lower
- then the same number of lines is printed over each other at the bottom
- it gets worse with footnotes (looks like their space isn’t considered at all)
- if the column set doesn’t start at the top of the page, the second column does


Hraban


\definecolumnset[cgjcolset][n=2]

\starttext

\chapter{This is a chapter about column sets}

\startcolumnset[cgjcolset]

\dorecurse{20}{
\samplefile{sapolsky}\par
}

\stopcolumnset

\stoptext
Personally I'd never use columnsets for anything else than very 
controlled situations because that's what they were made for. Not to be 
mixed with the normal pagebuilder. So, first of all you need to operate 
on the grid (i can probably get rid of some side effects and maigt even 
force that but not now). Then, \chapter itself flushes pages so that 
should be disabled.


Here is a simple example:

\setuplayout[lines=40,grid=yes]

\definecolumnset[cgjcolset][n=2]

\starttext

\definecolumnsetspan
 [chapter]
 [background=color,
  backgroundcolor=red]

\setuphead[chapter][page=no,after=,before=]

\startcolumnset[cgjcolset]

\startcolumnsetspan[chapter]
\chapter{This is a chapter about column sets}
\stopcolumnsetspan

\dorecurse{20}{
\samplefile{sapolsky}\par
}

\stopcolumnset

\stoptext



-
  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] columnsets messed up

2021-07-01 Thread Henning Hraban Ramm
Hi,
I’m working at the current CG journal whose layout uses columnsets. They aren’t 
usable any more. Same in current LMTX and MkIV.

- the first line can start one or more lines lower
- then the same number of lines is printed over each other at the bottom
- it gets worse with footnotes (looks like their space isn’t considered at all)
- if the column set doesn’t start at the top of the page, the second column does


Hraban


\definecolumnset[cgjcolset][n=2]

\starttext

\chapter{This is a chapter about column sets}

\startcolumnset[cgjcolset]

\dorecurse{20}{
\samplefile{sapolsky}\par
}

\stopcolumnset

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


Re: [NTG-context] Asymmetrical Column layout leads to an extra blank page (Solved!)

2020-10-30 Thread Ramkumar KB
Hello,

I managed to resolve the issue - which turns out bcos I had 2 back2back
columnset definitions. So instead, I combined them into 1 and the result
was ok.

*Before (leads to blank page or page with symmetrical columns):*

\definecolumnset[2col][n=2, distance=3.5mm, page=no]
\setupcolumnset[2col:1][width=.65\makeupwidth]
\setupcolumnset[2col:2][width=.35\makeupwidth]

\definecolumnset[3col][n=3, page=yes]
\setupcolumnset[3col:1][width=.25\makeupwidth]
\setupcolumnset[3col:2][width=.30\makeupwidth]
\setupcolumnset[3col:3][width=.45\makeupwidth]

\startcolumnset[2col]
...
\stopcolummnset

\startcolumnset[3col]
...
\stopcolummnset

*After (gets the desired result):*

\definecolumnset[summary][nleft=2, nright=3, distance=3.5mm, page=no]
\setupcolumnset[summary:1][width=.65\makeupwidth]
\setupcolumnset[summary:2][width=.35\makeupwidth]
\setupcolumnset[summary:3][width=.25\makeupwidth]
\setupcolumnset[summary:4][width=.30\makeupwidth]
\setupcolumnset[summary:5][width=.45\makeupwidth]

\startcolumnset[summary]
...
\stopcolummnset

Best,

On Thu, Oct 29, 2020 at 7:47 PM Ramkumar KB  wrote:

> Hello All,
>
> I am new to this community and am really excited about the possibilities
> with ConTeXt.
>
> My question is related to the thread -
> https://www.mail-archive.com/ntg-context@ntg.nl/msg92767.html (the
> suggested solution did not work, unfortunately)
>
> After trying out various options, I am faced with these 2 (sub-optimal)
> choices -
>
>1. Extra Blank page with Asymmetric Columns in the next page (with the
>\subject{} uncommented)
>2. No Blank page with Symmetric Columns (with the \subject{} commented)
>3. page=yes / no - does not work (same outcome as above)
>
> I am not sure the role of \section or \subject in this matter (seems to be
> somehow interfering with asymmetrical columnset).
>
> \usemodule[newcolumnsets]
> ...
>
> % \subject{} \definecolumnset[soi1][n=3, distance=3mm, page=yes]
> % \definecolumnset[currency][n=3, page=yes]
> \setupcolumnset[soi1:1][width=.25\makeupwidth]
> \setupcolumnset[soi1:2][width=.30\makeupwidth]
> \setupcolumnset[soi1:3][width=.45\makeupwidth]
>
> Any tips, help or pointers would be greatly appreciated. If not for
> columnset, is there any other way to get this type of layout?
>
> Thank you,
>
___
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] Asymmetrical Column layout leads to an extra blank page

2020-10-29 Thread Ramkumar KB
Hello All,

I am new to this community and am really excited about the possibilities
with ConTeXt.

My question is related to the thread -
https://www.mail-archive.com/ntg-context@ntg.nl/msg92767.html (the
suggested solution did not work, unfortunately)

After trying out various options, I am faced with these 2 (sub-optimal)
choices -

   1. Extra Blank page with Asymmetric Columns in the next page (with the
   \subject{} uncommented)
   2. No Blank page with Symmetric Columns (with the \subject{} commented)
   3. page=yes / no - does not work (same outcome as above)

I am not sure the role of \section or \subject in this matter (seems to be
somehow interfering with asymmetrical columnset).

\usemodule[newcolumnsets]
...

% \subject{} \definecolumnset[soi1][n=3, distance=3mm, page=yes]
% \definecolumnset[currency][n=3, page=yes]
\setupcolumnset[soi1:1][width=.25\makeupwidth]
\setupcolumnset[soi1:2][width=.30\makeupwidth]
\setupcolumnset[soi1:3][width=.45\makeupwidth]

Any tips, help or pointers would be greatly appreciated. If not for
columnset, is there any other way to get this type of layout?

Thank you,
___
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] Wrong page number when placefigure spans full page in columnset

2020-09-09 Thread Charles Vejnar

Hi,

When I place a figure within a columnset and that figure takes a full 
page then the page number in the header is incorrect. Page number is the 
same as the previous page but on the next page it's correct. Please see 
example below and attached showing page 2 twice with pages numbered 1, 
2, 2, 4, 5. If I reduce the height of the figure (from 15 to 12cm for 
example), then some main text gets added on the page and page number (3) 
becomes correct. Is that a bug or am I doing something wrong?


Thanks for your help.

Charles


\setuppapersize[letter][letter]

\setuplayout[height=fit,grid=yes]
\showframe

\usemodule[newcolumnsets]
\definecolumnset[colset][n=2]

\starttext
\startcolumnset[colset]

\section{One section}

\dorecurse{16}{\input ward \par}

\placefigure[page]{Legend. \input ward 
}{\externalfigure[dummy][width=\makeupwidth,height=15cm]}


\section{Two section}

\dorecurse{2}{\input knuth \par}

\section{Three section}

\dorecurse{6}{\input knuth \par}

\stopcolumnset
\stoptext



page.pdf
Description: Adobe PDF document
\setuppapersize[letter][letter]

\setuplayout[height=fit,grid=yes]
\showframe

\usemodule[newcolumnsets]
\definecolumnset[colset][n=2]

\starttext
\startcolumnset[colset]

\section{One section}

\dorecurse{16}{\input ward \par}

\placefigure[page]{Legend. \input ward }{\externalfigure[dummy][width=\makeupwidth,height=15cm]}

\section{Two section}

\dorecurse{2}{\input knuth \par}

\section{Three section}

\dorecurse{6}{\input knuth \par}

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


Re: [NTG-context] columnset issues

2020-01-27 Thread Henning Hraban Ramm

> Am 2020-01-27 um 20:28 schrieb Wolfgang Schuster 
> :
> 
> Henning Hraban Ramm schrieb am 27.01.2020 um 10:31:
>>> Am 2020-01-26 um 13:07 schrieb Henning Hraban Ramm :
>>> 
>>> I thought I’d try columnset areas for the placement of ads:
>> This MWE shows better what’s going on:
>> The "area" space is reserved as requested, but its contents get placed 
>> elsewhere.
>> 
>> 
>> \usemodule[visual]
>> \useMPlibrary[dum]
>> \definecolor[fakerulecolor][gray]
>> \setuplayout[
>>   grid=yes,
>> ]
>> \showframe[text]
>> \showgrid
>> 
>> \definecolumnset[Two][
>>   n=2,
>>   page=no,
>> ]
>> %\definecolumnsetspan[TwoSpan][n=2]
>> \definecolumnsetarea[AdSpace][
>>   x=1,y=21,
>>   nx=1,ny=21,
>>   state=stop,
>>   frame=on,
>>   framecolor=magenta,
>> ]
>> 
>> 
>> \starttext
>> \startcolumnset[Two]
>> 
>> \dorecurse{10}{\fakewords{100}{120}\par}
>> 
>> \setupcolumnsetarea[AdSpace][state=start]
>> \setupcolumnsetareatext[AdSpace]{\externalfigure[MyAd][width=\textwidth,height=0.45\textheight]}
> 
> You need brackets for both argument, i.e. \setupcolumnsetareatext[...][...] 
> but even then your example only works when I place the areatext before 
> \startcolumnset.

Ah, thank you!
But even if I put the commands before \startcolumnset, the "AdSpace" appears on 
the second page. While this was the intention of the example, it seems like I 
can’t control on which page my ads/images appear.

In my actual project, all the defined columnsetareas show up on the second page 
(where the first columnset starts), even though all have state=stop, and never 
show up again where I set state=start.

I wanted to use it like

\define[2]\Anzeige{%
  \setupcolumnsetareatext[ad#1][{\externalfigure[#2][width=\overlaywidth]}]
  \setupcolumnsetarea[ad#1][state=start]
}

I also tried to just reserve the space with columnsetareas and place the ads 
with \setlayer; that would work if I could control the placement of the areas...

Since I must complete this project within this week, I already started from 
scratch in my layout program (switched from my old InDesign to Affinity 
Publisher – much cheaper but even less fun). Seems like I overestimated 
ConTeXt’s (and my) readiness for this kind of layout. A pity.


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] columnset issues

2020-01-27 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 27.01.2020 um 10:31:

Am 2020-01-26 um 13:07 schrieb Henning Hraban Ramm :

I thought I’d try columnset areas for the placement of ads:

This MWE shows better what’s going on:
The "area" space is reserved as requested, but its contents get placed 
elsewhere.


\usemodule[visual]
\useMPlibrary[dum]
\definecolor[fakerulecolor][gray]
\setuplayout[
   grid=yes,
]
\showframe[text]
\showgrid

\definecolumnset[Two][
   n=2,
   page=no,
]
%\definecolumnsetspan[TwoSpan][n=2]
\definecolumnsetarea[AdSpace][
   x=1,y=21,
   nx=1,ny=21,
   state=stop,
   frame=on,
   framecolor=magenta,
]


\starttext
\startcolumnset[Two]

\dorecurse{10}{\fakewords{100}{120}\par}

\setupcolumnsetarea[AdSpace][state=start]
\setupcolumnsetareatext[AdSpace]{\externalfigure[MyAd][width=\textwidth,height=0.45\textheight]}


You need brackets for both argument, i.e. 
\setupcolumnsetareatext[...][...] but even then your example only works 
when I place the areatext before \startcolumnset.


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] columnset issues

2020-01-27 Thread Henning Hraban Ramm

> Am 2020-01-26 um 13:07 schrieb Henning Hraban Ramm :
> 
> I thought I’d try columnset areas for the placement of ads:

This MWE shows better what’s going on:
The "area" space is reserved as requested, but its contents get placed 
elsewhere.


\usemodule[visual]
\useMPlibrary[dum]
\definecolor[fakerulecolor][gray]
\setuplayout[
  grid=yes,
]
\showframe[text]
\showgrid

\definecolumnset[Two][
  n=2,
  page=no,
]
%\definecolumnsetspan[TwoSpan][n=2]
\definecolumnsetarea[AdSpace][
  x=1,y=21,
  nx=1,ny=21,
  state=stop,
  frame=on,
  framecolor=magenta,
]


\starttext
\startcolumnset[Two]

\dorecurse{10}{\fakewords{100}{120}\par}

\setupcolumnsetarea[AdSpace][state=start]
\setupcolumnsetareatext[AdSpace]{\externalfigure[MyAd][width=\textwidth,height=0.45\textheight]}

\fakewords{200}{200}

\stopcolumnset

\stoptext



HR
___
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] columnset issues

2020-01-26 Thread Henning Hraban Ramm
Another set of columnset issues: columnset areas

(1)
In the columnsets manual, there’s a type key or a second optional parameter to 
\definecolumnsetarea that’s actually missing (commented code in page-cst.mkiv).

The manual doesn’t explain the setup keys; I assume x/nx is in columns, y/ny is 
in lines, while x/y is the start and nx/ny the size.

(2)
Since float placement doesn’t work like I need it (must make another MWE to 
better nail it), I thought I’d try columnset areas for the placement of ads:


\usemodule[visual]
\useMPlibrary[dum]
\definecolor[fakerulecolor][gray]
\setuplayout[
  grid=yes,
]
\showframe[text]
\showgrid

\definecolumnset[Two][
  n=2,
  page=no,
]

\definecolumnsetarea[AdSpace][
  x=1,y=20,
  nx=1,ny=20,
  state=stop
]


\starttext
\startcolumnset[Two]

\fakewords{20}{30}

\setupcolumnsetareatext[AdSpace]{\externalfigure[MyAd][width=\textwidth,height=0.45\textheight]}
\setupcolumnsetarea[AdSpace][state=start]

\fakewords{200}{200}

\stopcolumnset

\stoptext


The "AdSpace" should cover the lower left quarter of the page, y=20 should 
start it in line 20, and ny=20 should make it 20 lines high, right?

But "MyAd" appears always at the place where I put \setupcolumnsetareatext.

Is this an error on my side, or is the code just incomplete/buggy/not ready?



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] another columnset issue (solved)

2020-01-19 Thread Henning Hraban Ramm
Hi again,

I had the problem that my chapters always started on a left page, even if I 
just had page=yes.
I found out I had to set page=no in my columnset as well as in 
\setuphead[chapter].
Seems like either the columnset or the columnsetspan always starts a new page.
While testing I didn’t get a new page reliably, but I can’t reproduce it 
anymore.
So, this works so far.

I’m starting a new columnset for every chapter because I have chapters with 1-3 
columns,
the example is a simplification.

HR

\usemodule[visual]
\setuppapersize[A5]
\showframe[text]
\definecolor[fakerulecolor][gray]
\setuplayout[
  grid=yes,
]
\showgrid

\setuphead[chapter][
  page=no,
  beforesection={\startcolumnset[Two]},
  aftersection={\stopcolumnset},
  before={\startcolumnsetspan[TwoSpan]},
  after={\stopcolumnsetspan},
]

\definecolumnset[Two][
  n=2,
  page=no,
]
\definecolumnsetspan[TwoSpan][n=2]

\starttext
\dorecurse{3}{

\startchapter{\fakewords{2}{5}}

\dorecurse{3}{
\section{\fakewords{3}{10}}
\fakewords{10}{50}\par
\fakewords{10}{50}\par
}
\stopchapter
}

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


[NTG-context] columnset issues

2020-01-19 Thread Henning Hraban Ramm
Hi again.

I use columnsets and wanted to setup my section titles to have one blank line 
before and none after them.
If I use before={\blank[line]}, I sometimes don’t get that blank line.
If I use \blank in my section command, I get it always, but also if the section 
starts on top of a column.
How can I reliably get one blank line before a section title, but not on the 
top of a column?

That’s the original problem.

The MWE also shows:
– There’s irregular space at the top of columns, esp. on the first page.
– Sometimes the multi-line section title is moved into the previous paragraph.
These issues get fixed with grid=yes.

The original problem is also fixed in the MWE if I enable grid mode, there are 
just sometimes two blank lines instead of one. In my actual project I get one 
or zero lines. Couldn’t reproduce that in a MWE.


\usemodule[visual]
\setuppapersize[A5]
\showframe[text]
\definecolor[fakerulecolor][gray]

%\setuplayout[grid=yes]
%\showgrid

\define[2]\MySection{\vbox{%
\definecolor[fakerulecolor][blue]
%\blank[line,max]%
{\strut #2}\par
}}

\setuphead[section][
  command=\MySection,
  before={\blank[line]},
  %before=,
  after=,
  style=\tf,
]

\definecolumnset[Two][n=2]

\starttext
%
\startcolumnset[Two]
\dorecurse{10}{
\section{\fakewords{3}{15}}
\fakewords{10}{50}\par
\fakewords{10}{50}\par
\fakewords{10}{50}\par
}
\stopcolumnset

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


[NTG-context] column(sets) questions

2020-01-18 Thread Henning Hraban Ramm
Background: I’m typesetting the annual report of my home town’s "friends of the 
earth" chapter. The corporate design has pages with one, two and three columns 
(yes, that makes sense).
Chapter titles run over the whole page width or sometimes only over two columns 
on three column pages. Images, ads and "boxes" are one or two columns wide 
(here, top or bottom placement, "here" only in one column).
There are a few simple tables on one or two column pages.

I guess I must use columnsets? Still looking into the other options.
Can’t remember the details of the discussion I had with Hans in Bassenge...

*
In the preface of the columnsets manual we’re advised to 
\usemodule[newcolumnsets]
This seems outdated.

*
If I use columnsets for two and three column pages, should I also use a 
one-column columnset for consistency?

*
Can I define columnsetspans whose width depends on the columnset? e.g. like

\definecolumnsetspan[Title][n=2]
\definecolumnsetspan[Intro][n=2]

\startsetups cs:TwoCol
  \setupcolumnsetspan[Title][n=2]
  \setupcolumnsetspan[Intro][n=1]
\stopsetups

\startsetups cs:ThreeCol
  \setupcolumnsetspan[Title][n=3]
  \setupcolumnsetspan[Intro][n=2]
\stopsetups

\definecolumnset[ZweiS][
  n=2,
  setups=cs:TwoCol,
]

\definecolumnset[DreiS][
  n=3,
  setups=cs:ThreeCol,
]

(This doesn’t work, and it’s not a MWE.)

*
ConTeXt stops a few times (probably for every float) on \wait =,
I guess that comes from \page_grd_command_flush_floats in page-cst.mkiv;
is that necessary?

*
Page columns don’t have spans, right?

*
If I would want to use mixed columns, do I need to use \setupmixedcolumns etc. 
or do mixed columns already replace columns if I don’t \usemodule[old-columns]?
Do mixed columns have spans?


So far...


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] Suppress blank page in asymmetrical multicolumn layout

2019-12-06 Thread Wolfgang Schuster

Thangalin schrieb am 06.12.2019 um 17:17:

Hi there,

How do I suppress the blank page in the following document while
maintaining the asymmetrical multicolumn layout? The problem centres
around "page=yes," whereby removing it eliminates the blank page, but
then wreaks havoc on the document layout.

\definepapersize[BookPaperSize][width=24in, height=12in,]
\setuppapersize[BookPaperSize]

\definelayout[BookTextLayout][
   topspace=.5in,
   backspace=.5in,
   header=\zeropoint,
   footer=\zeropoint,
   grid=yes,
]
\setuplayout[BookTextLayout]

\definecolumnset[BookColumns][n=4,distance=.25in]


Add "page=yes" to start each new columnset environment with a page break.

\definecolumnset [BookColumns] [n=4,distance=.25in,page=yes]


\setupcolumnset[BookColumns:1][width=11.75in]
\setupcolumnset[BookColumns:2][width=3.46in]
\setupcolumnset[BookColumns:3][width=3.46in]
\setupcolumnset[BookColumns:4][width=3.46in]

\setuphead[section][
   page=yes,


Remove the page break at the begin of each section because the break
happens after you start the columnset environment. The value of the
beforesection key is inserted before the values from other keys are used.

page=,


   beforesection={\startcolumnset[BookColumns]},
   aftersection={\stopcolumnset},
]


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
___


[NTG-context] Suppress blank page in asymmetrical multicolumn layout

2019-12-06 Thread Thangalin
Hi there,

How do I suppress the blank page in the following document while
maintaining the asymmetrical multicolumn layout? The problem centres
around "page=yes," whereby removing it eliminates the blank page, but
then wreaks havoc on the document layout.

\definepapersize[BookPaperSize][width=24in, height=12in,]
\setuppapersize[BookPaperSize]

\definelayout[BookTextLayout][
  topspace=.5in,
  backspace=.5in,
  header=\zeropoint,
  footer=\zeropoint,
  grid=yes,
]
\setuplayout[BookTextLayout]

\definecolumnset[BookColumns][n=4,distance=.25in]
\setupcolumnset[BookColumns:1][width=11.75in]
\setupcolumnset[BookColumns:2][width=3.46in]
\setupcolumnset[BookColumns:3][width=3.46in]
\setupcolumnset[BookColumns:4][width=3.46in]

\setuphead[section][
  page=yes,
  beforesection={\startcolumnset[BookColumns]},
  aftersection={\stopcolumnset},
]

\setuphead[subsection][
  after={\column},
]

\setuphead[subsubsection][
  after={\blank[small]},
]

\starttext
\startsection[title={Section Title}]
\startsubsection[title={Subtitle}]
\dorecurse{2}{\input knuth}

\dorecurse{2}{%
  \startsubsubsection[title={Subsubtitle}]
\dorecurse{1}{\input ward}
\dorecurse{2}{\input lorem}
\dorecurse{1}{\input bryson}
  \stopsubsubsection
}

\stopsubsection
\stopsection
\stoptext

Thank you!
___
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] Column sets (span) & unwanted vertical gap

2019-10-01 Thread Procházka Lukáš Ing .

Hello,

the code bellow produces unwanted vertical gap between the bottom border of the figure and the following 
title "A" in the first column (marked by red arrows "<->" in the PDF attached).

Note that in the second column there is no such gap.

I tried to play with "before", "inbetween", "beforesection" and other keys of 
\setuphead to remove the gap but without success.

Is there a way to avoid the vertical gap?

My code so far:


\setuppapersize[A3,landscape]

\setuplayout
  [topspace=10mm,header=5mm,headerdistance=5mm,height=270mm,
   backspace=20mm,width=380mm,
  ]

\setupheadertexts[]
\setupfootertexts[]

\definecolumnset[example][n=3,balancing=no]
\definecolumnsetspan[wide][n=2]

\setupexternalfigures[location=default]

\setupindenting[no]
\setupwhitespace[none]

\setuplayout[grid=yes]

\definehead[MyTit][title]
\setuphead[MyTit]
  [style=\bf,color=MyBlue,
   
before={\blank[none]},after={\blank[none]},inbetween={\blank[none]},beforesection={BS},aftersection={AS},
   page=no,%grid=yes,
  ]

%

%\showframe
%\showboxes

%\showlayout

%

\starttext
  \startcolumnset[example]
\startcolumnsetspan[wide]
  \externalfigure[cow][height=120mm,frame=on]
  %\vbox to120mm{}
\stopcolumnsetspan
\MyTit{A}
  \input knuth
\MyTit{B}
  \input knuth
  \stopcolumnset
\stoptext


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

t6.mkiv
Description: Binary data


t6~~.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] Column(set)s & overlapping lines

2019-10-01 Thread Procházka Lukáš Ing .

Hello,

thank you for quick response - I didn't notice such question.

I added some info to wiki:

https://wiki.contextgarden.net/Command/startcolumnset#Note

Best,

Lukas


On Tue, 01 Oct 2019 08:24:19 +0200, Henri Menke  wrote:


This has been asked many times.
Columnsets need grid.

\setuplayout[grid=yes]

Cheers, Henri

On 10/1/19 7:16 PM, Procházka Lukáš Ing. wrote:

Hello,

I have the following code:


\definecolumnset[example][n=3,balancing=no]
\definecolumnsetspan[wide][n=2]

\setupexternalfigures[location=default]

%

\starttext
   \startcolumnset[example]
 \startcolumnsetspan[wide]
   %\externalfigure[hacker][width=120mm] % Produces overlapping last two 
lines in the first column, too
   \vbox to80mm{}
 \stopcolumnsetspan

 \input knuth
   \stopcolumnset
\stoptext


The last two lines in the first column overlap (it seems that the last line is 
typeset a bit higher than the pre-last line) - how to avoid it?

Best regards,

Lukas



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




--
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] Column(set)s & overlapping lines

2019-10-01 Thread Henri Menke
This has been asked many times.
Columnsets need grid.

\setuplayout[grid=yes]

Cheers, Henri

On 10/1/19 7:16 PM, Procházka Lukáš Ing. wrote:
> Hello,
> 
> I have the following code:
> 
> 
> \definecolumnset[example][n=3,balancing=no]
> \definecolumnsetspan[wide][n=2]
> 
> \setupexternalfigures[location=default]
> 
> %
> 
> \starttext
>\startcolumnset[example]
>  \startcolumnsetspan[wide]
>%\externalfigure[hacker][width=120mm] % Produces overlapping last two 
> lines in the first column, too
>\vbox to80mm{}
>  \stopcolumnsetspan
> 
>  \input knuth
>\stopcolumnset
> \stoptext
> 
> 
> The last two lines in the first column overlap (it seems that the last line 
> is typeset a bit higher than the pre-last line) - how to avoid it?
> 
> Best regards,
> 
> Lukas
> 
> 
___
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] Column(set)s & overlapping lines

2019-10-01 Thread Procházka Lukáš Ing .

Hello,

I have the following code:


\definecolumnset[example][n=3,balancing=no]
\definecolumnsetspan[wide][n=2]

\setupexternalfigures[location=default]

%

\starttext
  \startcolumnset[example]
\startcolumnsetspan[wide]
  %\externalfigure[hacker][width=120mm] % Produces overlapping last two 
lines in the first column, too
  \vbox to80mm{}
\stopcolumnsetspan

\input knuth
  \stopcolumnset
\stoptext


The last two lines in the first column overlap (it seems that the last line is 
typeset a bit higher than the pre-last line) - how to avoid it?

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 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] balanced vertical spaces under \startcolumnset

2019-08-21 Thread Sytse Knypstra
Dear Jeong Dal,

I use the following functions to control the start and end of columns in a 
columnset:


\setuplayout[grid=yes]
\emptylines[...] % see the command \emptylines in ConTeXtgarden
\setupcolumnsetstart[...][...][...][...] % see the manual COLUMNS, page 9
\setupcolumnsetlines[...][...][...][...] % see the manual COLUMNS, page 9
%\showgrid % uncomment if you want to see the grid lines and line numbers

You find the manual COLUMNS under the heading 'Layout' on
https://wiki.contextgarden.net/Manuals.

With kind regards,

Sytse


> Op 20 augustus 2019 om 12:37 schreef Jeong Dal :
> 
> 
> Dear all,
> 
> I use the following code to make test.
> To make the same height blank spaces after the problems, I use \vfill before 
> \column.
> The problem is that the second \column creates extra blank page.
> But, without the second \column, the height of blank spaces of the second 
> column are different.
> 
> Is there a way to make the blank spaces height same while not to create a 
> blank page?
> 
> Thank you for reading.
> 
> Best regards,
> 
> Dalyoung
> 
> 
> \usetypescriptfile[type-siz]
> \usemodule[units]
> \setupbodyfont[10pt,rm]
> \definecolumnset
>  [exam]
>  [n=2]
> 
> \starttext
> 
> \startcolumnset[exam]
> 
> \startitemize[n]
> \item Answer to the questions:
>   \vfill
> 
>\item Answer to the questions:
>   \vfill
> 
> \column
> 
> \item Answer to the questions:
>   \vfill
> 
>\item Answer to the questions:
>   \vfill
> 
> %\column
> 
> \stopitemize
> \stopcolumnset
> 
> \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
___


[NTG-context] balanced vertical spaces under \startcolumnset

2019-08-20 Thread Jeong Dal
Dear all,

I use the following code to make test.
To make the same height blank spaces after the problems, I use \vfill before 
\column.
The problem is that the second \column creates extra blank page.
But, without the second \column, the height of blank spaces of the second 
column are different.

Is there a way to make the blank spaces height same while not to create a blank 
page?

Thank you for reading.

Best regards,

Dalyoung


\usetypescriptfile[type-siz]
\usemodule[units]
\setupbodyfont[10pt,rm]
\definecolumnset
 [exam]
 [n=2]

\starttext

\startcolumnset[exam]

\startitemize[n]
\item Answer to the questions:
\vfill

   \item Answer to the questions:
\vfill

\column

\item Answer to the questions:
\vfill

   \item Answer to the questions:
\vfill

%\column

\stopitemize
\stopcolumnset

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


[NTG-context] \setupcolumnsetlines does not work again

2019-08-19 Thread Sytse Knypstra
I thought I understood the mechanism, but I found another instance where 
\setupcolumnsetlines does not give the desired result:

%%%
\definecolumnset[Two][n=2]
\starttext
Test
%\page
\setupcolumnsetlines[Two][1][1][9]
\startcolumnset[Two]
\input knuth
\stopcolumnset
\setupcolumnsetlines[Two][1][1][9]
\startcolumnset[Two]
\input knuth
\stopcolumnset
\stoptext
%%%

This setup gives indeed a balanced first page and an unbalanced second page.
But if the fourth line (\page) is uncommented, the second output page is 
unbalanced and the third page is balanced.
So the mechanism is therefore more complicated than
> only if the first columnset extends to more than one page 
> the next \setupcolumnsetlines will work properly.

What is the extended rule? If this intended behaviour, what is the reason 
behind it?

Sytse


> Op 17 augustus 2019 om 23:54 schreef Sytse Knypstra :
> 
> 
> Wolfgang wrote:
> > The settings for the second columnset work when the first columnset goes 
> > over of two or more pages. 
> 
> Thank you, now I understand the mechanism: only if the first columnset 
> extends to more than one page, the next \setupcolumnsetlines will work 
> properly. Is this a bug or a feature? If it is a feature, what is the idea 
> behind it?
> 
> Sytse
___
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] Again: Graphics placement with columnsets/page grids

2019-08-18 Thread Denis Maier
Hi,
I have posted a question regarding floats and columnsets some time ago. I
am wondering why I am having text under a figure in a two column layout.


\usemodule[newcolumnsets]

\setuplayout
  [grid=yes]

\definecolumnset[example][n=2]

\starttext

\startcolumnset[example]

\dorecurse{11}{
  \input ward\par
}

\placefigure [btrl,none]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{2}]
}

\dorecurse{10}{
  \input ward\par
}

\stopcolumnset
\stoptext


Shouldn't the figure stick to the bottom?

Best,
Denis
___
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] \setupcolumnsetlines does not work

2019-08-17 Thread Sytse Knypstra
Thank you, Denis and Wolfgang.
Wolfgang, your sentence 
> No, you set relative numbers (I checked it) but the first columnset
> environment ends on the third page because you leave just enough
> space on the second page to fit the text which produces an empty
> third page.
is not clear to me.
If \setupcolumnsetlines has to be specified before \starttext and if the second 
parameter denotes the absolute page number of the column to be limited, then 
the following example still does not work correctly for the second page (ouput 
consists of two pages).

\definecolumnset[Two][n=2]

\setupcolumnsetlines[Two][1][1][9]

\setupcolumnsetlines[Two][2][1][9]

\starttext

   \startcolumnset[Two]

\input knuth

   \stopcolumnset

   \startcolumnset[Two]

   \input knuth

   \stopcolumnset

\stoptext

Sytse

> Op 17 augustus 2019 om 15:14 schreef Denis Maier :
> 
> 
> Ok, have tried it now. No change ...
> 
> Am Sa., 17. Aug. 2019 um 13:33 Uhr schrieb Denis Maier :
> 
> > Also, what about \setupcolumnsetlines[Two][2][1][9]?
> >
> > Denis Maier  schrieb am Sa., 17. Aug. 2019, 13:32:
> >
> >> If I am remembering correctly, the documentation has \setupcolumnsetlines
> >> before \starttext.
> >>
> >> Sytse Knypstra  schrieb am Sa., 17. Aug. 2019,
> >> 12:59:
> >>
> >>> In an effort to balance columns in a columnset layout, I found that in
> >>> the following minimal example this effect is not obtained.
> >>> After commenting out the first three lines after \starttext the result
> >>> is ok.
> >>> I am wondering what I overlooked this time.
> >>>
> >>> \definecolumnset[Two][n=2]
> >>> \starttext
> >>>\startcolumnset[Two]
> >>>   \input knuth
> >>>\stopcolumnset
> >>>\page
> >>>\setupcolumnsetlines[Two][1][1][9]
> >>>\startcolumnset[Two]
> >>>   \input knuth
> >>>\stopcolumnset
> >>> \stoptext
> >>>
> >>> Thank you for your suggestions,
> >>>
> >>> Sytse Knypstra
> >>>
> >>> ___
> >>> 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
> >>>
> >>> ___
> >>>
> >>

> Op 17 augustus 2019 om 15:50 schreef Denis Maier :
> 
> 
> This here works for the first columnset, but not for the second one:
> 
> =
> \usemodule[newcolumnsets]
> 
> \definecolumnset[One][n=2]
> 
> \setupcolumnsetlines[One][1][1][9]
> \setupcolumnsetlines[One][1][2][9]
> \setupcolumnsetlines[One][2][1][9]
> \setupcolumnsetlines[One][2][2][9]
> 
> \definecolumnset[Two][n=2]
> \setupcolumnsetlines[Two][1][1][9]
> \setupcolumnsetlines[Two][1][2][9]
> \setupcolumnsetlines[Two][2][1][9]
> \setupcolumnsetlines[Two][2][2][9]
> 
> \starttext
>\startcolumnset[One]
>   \input knuth
> 
>   \input knuth
> \stopcolumnset
> 
> \startcolumnset[Two]
>   \input knuth
> 
>   \input knuth
> \stopcolumnset
> \stoptext
> ===
> 
> Am Sa., 17. Aug. 2019 um 15:14 Uhr schrieb Denis Maier :
> 
> > Ok, have tried it now. No change ...
> >
> > Am Sa., 17. Aug. 2019 um 13:33 Uhr schrieb Denis Maier  > >:
> >
> >> Also, what about \setupcolumnsetlines[Two][2][1][9]?
> >>
> >> Denis Maier  schrieb am Sa., 17. Aug. 2019, 13:32:
> >>
> >>> If I am remembering correctly, the documentation has
> >>> \setupcolumnsetlines before \starttext.
> >>>
> >>> Sytse Knypstra  schrieb am Sa., 17. Aug. 2019,
> >>> 12:59:
> >>>
> >>>> In an effort to balance columns in a columnset layout, I found that in
> >>>> the following minimal example this effect is not obtained.
> >>>> After commenting out the first three lines after \starttext the result
> >>>> is ok.
> >>>> I am wondering what I overlooked this time

Re: [NTG-context] \setupcolumnsetlines does not work

2019-08-17 Thread Wolfgang Schuster

Denis Maier schrieb am 17.08.2019 um 17:49:

Ok.
With this I don't get the empty page. But the setupcolumnsetlines has 
still no effecgt for the second environment.


===

\definecolumnset[One][n=2]

\setupcolumnsetlines[One][1][1][9]

\definecolumnset[Two][n=2]

\setupcolumnsetlines[Two][1][1][5]

\starttext

\startcolumnset[One]

\input knuth

\stopcolumnset

\startcolumnset[Two]

\input knuth

\stopcolumnset

\stoptext



The settings for the second columnset work when the first columnset goes 
over of two or more pages.


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] \setupcolumnsetlines does not work

2019-08-17 Thread Wolfgang Schuster

Denis Maier schrieb am 17.08.2019 um 15:50:

This here works for the first columnset, but not for the second one:

=
\usemodule[newcolumnsets]

The new code base is used by default and you don't have to load the module.

\definecolumnset[One][n=2]

\setupcolumnsetlines[One][1][1][9]
\setupcolumnsetlines[One][1][2][9]
\setupcolumnsetlines[One][2][1][9]
\setupcolumnsetlines[One][2][2][9]

\definecolumnset[Two][n=2]
\setupcolumnsetlines[Two][1][1][9]
\setupcolumnsetlines[Two][1][2][9]
\setupcolumnsetlines[Two][2][1][9]
\setupcolumnsetlines[Two][2][2][9]

The second argument expects the page number of the column where want
to change the number of lines. In your example the second environment
starts at page 3 but you change the lines only for the first and second 
page.


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] \setupcolumnsetlines does not work

2019-08-17 Thread Denis Maier
This here works for the first columnset, but not for the second one:

=
\usemodule[newcolumnsets]

\definecolumnset[One][n=2]

\setupcolumnsetlines[One][1][1][9]
\setupcolumnsetlines[One][1][2][9]
\setupcolumnsetlines[One][2][1][9]
\setupcolumnsetlines[One][2][2][9]

\definecolumnset[Two][n=2]
\setupcolumnsetlines[Two][1][1][9]
\setupcolumnsetlines[Two][1][2][9]
\setupcolumnsetlines[Two][2][1][9]
\setupcolumnsetlines[Two][2][2][9]

\starttext
   \startcolumnset[One]
  \input knuth

  \input knuth
\stopcolumnset

\startcolumnset[Two]
  \input knuth

  \input knuth
\stopcolumnset
\stoptext
===

Am Sa., 17. Aug. 2019 um 15:14 Uhr schrieb Denis Maier :

> Ok, have tried it now. No change ...
>
> Am Sa., 17. Aug. 2019 um 13:33 Uhr schrieb Denis Maier  >:
>
>> Also, what about \setupcolumnsetlines[Two][2][1][9]?
>>
>> Denis Maier  schrieb am Sa., 17. Aug. 2019, 13:32:
>>
>>> If I am remembering correctly, the documentation has
>>> \setupcolumnsetlines before \starttext.
>>>
>>> Sytse Knypstra  schrieb am Sa., 17. Aug. 2019,
>>> 12:59:
>>>
>>>> In an effort to balance columns in a columnset layout, I found that in
>>>> the following minimal example this effect is not obtained.
>>>> After commenting out the first three lines after \starttext the result
>>>> is ok.
>>>> I am wondering what I overlooked this time.
>>>>
>>>> \definecolumnset[Two][n=2]
>>>> \starttext
>>>>\startcolumnset[Two]
>>>>   \input knuth
>>>>\stopcolumnset
>>>>\page
>>>>\setupcolumnsetlines[Two][1][1][9]
>>>>\startcolumnset[Two]
>>>>   \input knuth
>>>>\stopcolumnset
>>>> \stoptext
>>>>
>>>> Thank you for your suggestions,
>>>>
>>>> Sytse Knypstra
>>>>
>>>> ___
>>>> 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] \setupcolumnsetlines does not work

2019-08-17 Thread Denis Maier
Ok, have tried it now. No change ...

Am Sa., 17. Aug. 2019 um 13:33 Uhr schrieb Denis Maier :

> Also, what about \setupcolumnsetlines[Two][2][1][9]?
>
> Denis Maier  schrieb am Sa., 17. Aug. 2019, 13:32:
>
>> If I am remembering correctly, the documentation has \setupcolumnsetlines
>> before \starttext.
>>
>> Sytse Knypstra  schrieb am Sa., 17. Aug. 2019,
>> 12:59:
>>
>>> In an effort to balance columns in a columnset layout, I found that in
>>> the following minimal example this effect is not obtained.
>>> After commenting out the first three lines after \starttext the result
>>> is ok.
>>> I am wondering what I overlooked this time.
>>>
>>> \definecolumnset[Two][n=2]
>>> \starttext
>>>\startcolumnset[Two]
>>>   \input knuth
>>>\stopcolumnset
>>>\page
>>>\setupcolumnsetlines[Two][1][1][9]
>>>\startcolumnset[Two]
>>>   \input knuth
>>>\stopcolumnset
>>> \stoptext
>>>
>>> Thank you for your suggestions,
>>>
>>> Sytse Knypstra
>>>
>>> ___
>>> 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] \setupcolumnsetlines does not work

2019-08-17 Thread Denis Maier
Also, what about \setupcolumnsetlines[Two][2][1][9]?

Denis Maier  schrieb am Sa., 17. Aug. 2019, 13:32:

> If I am remembering correctly, the documentation has \setupcolumnsetlines
> before \starttext.
>
> Sytse Knypstra  schrieb am Sa., 17. Aug. 2019,
> 12:59:
>
>> In an effort to balance columns in a columnset layout, I found that in
>> the following minimal example this effect is not obtained.
>> After commenting out the first three lines after \starttext the result is
>> ok.
>> I am wondering what I overlooked this time.
>>
>> \definecolumnset[Two][n=2]
>> \starttext
>>\startcolumnset[Two]
>>   \input knuth
>>\stopcolumnset
>>\page
>>\setupcolumnsetlines[Two][1][1][9]
>>\startcolumnset[Two]
>>   \input knuth
>>\stopcolumnset
>> \stoptext
>>
>> Thank you for your suggestions,
>>
>> Sytse Knypstra
>>
>> ___
>> 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] \setupcolumnsetlines does not work

2019-08-17 Thread Denis Maier
If I am remembering correctly, the documentation has \setupcolumnsetlines
before \starttext.

Sytse Knypstra  schrieb am Sa., 17. Aug. 2019,
12:59:

> In an effort to balance columns in a columnset layout, I found that in the
> following minimal example this effect is not obtained.
> After commenting out the first three lines after \starttext the result is
> ok.
> I am wondering what I overlooked this time.
>
> \definecolumnset[Two][n=2]
> \starttext
>\startcolumnset[Two]
>   \input knuth
>\stopcolumnset
>\page
>\setupcolumnsetlines[Two][1][1][9]
>\startcolumnset[Two]
>   \input knuth
>\stopcolumnset
> \stoptext
>
> Thank you for your suggestions,
>
> Sytse Knypstra
>
> ___
> 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] \setupcolumnsetlines does not work

2019-08-17 Thread Sytse Knypstra
In an effort to balance columns in a columnset layout, I found that in the 
following minimal example this effect is not obtained.
After commenting out the first three lines after \starttext the result is ok.
I am wondering what I overlooked this time.

\definecolumnset[Two][n=2]

\starttext

   \startcolumnset[Two]

  \input knuth

   \stopcolumnset

   \page
   \setupcolumnsetlines[Two][1][1][9]

   \startcolumnset[Two]

  \input knuth

   \stopcolumnset

\stoptext


Thank you for your suggestions,

Sytse Knypstra
___
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] white space after a float in a column

2019-08-10 Thread Sytse knyps...@home.nl
Dear list members,

I am struggling with floats in a two-column layout. I understand that there are 
three up-to-date mechanisms for columns: columnsets, pagecolumns and pagegrids.

However, in neither setup I succeed in producing some extra vertical whitespace 
after the float if a caption is omitted (i.e. location=none in \setupcaption).

My example:



\definepapersize[square21][width=21cm,height=21cm]

\setuppapersize[square21][square21]

\definecolumnset[Two][n=2]

\setupcolumnset[Two]

\setupcaption[intermezzo][location=none,spaceafter=1cm]
 % no value for 
spaceafter seems to work
\setuptolerance[verytolerant,stretch]

\setupframedtexts[frame=on,corner=round,width=local]

\setuplayout[grid=yes]

\starttext

\startcolumnset[Two]

\input knuth \par

   \placeintermezzo[bottom][]{}

\startframedtext

\input tufte \par

\stopframedtext

   \input knuth \par

\stopcolumnset
\stoptext

If 'columnset' is replaced everywhere by 'pagecolumns' or by 'pagegrid' through 
a find-and-replace operation, the result remains identical.

Is it possible to insert more vertical white space after the intermezzo?

A secondary remark: \placeintermezzo always puts the framed text at the top of 
the next column, no matter whether the parameter is top or bottom. But this is 
not a big deal.

Sytse Knypstra
___
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] Graphics placement with columnsets/page grids (was "no subject)

2019-07-28 Thread Denis Maier
Ok, I have now tested a more minimal example with version in TL 2019 and
with the current standalone.
The example works perfectly with the version that was included in TL 2019
(2019.03.21 21:39).
In the current beta I get this behaviour: A figure on a page after page 1
does not stick to the bottom of the page if we have no caption.

```
\usemodule[newcolumnsets]

\setuplayout
  [grid=yes]

\definecolumnset[example][n=2]

\starttext

\startcolumnset[example]

\dorecurse{11}{
  \input ward\par
}

\placefigure [btrl,none]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{2}]
}

\dorecurse{10}{
  \input ward\par
}



\stopcolumnset
\stoptext
```

Is this a bug, or am I making a mistake somewhere?

Best,
Denis

Am Mi., 24. Juli 2019 um 09:08 Uhr schrieb Denis Maier :

> Hi,
>
> just a quick follow up:
>
> This (i.e., deleting the "none") gives the right result:
>
> ```
> \placefigure [btrl]
> {}
> {
> \externalfigure[placeholder][width=\columnsetspanwidth{2}]
> }
> ```
>
> The figure is indeed at the bottom of the page. Yet, `\placefigure
> [btrl,none]` seems to remove the caption, but the figure stays where it was
> and we have additional lines under the figure. Shouldn't the figure stick
> to the margin?
>
> Best,
> Denis
>
>
> Am Di., 23. Juli 2019 um 16:16 Uhr schrieb Denis Maier  >:
>
>> Hi,
>> I am typesetting a newsletter using newcolumnsets, and I am struggling
>> with placing my graphics. Why isn't the graphic on page 2 at the bottom
>> (code below)?
>> Best,
>> Denis
>>
>> ```
>> \usemodule[newcolumnsets,simulate]
>>
>> \useMPlibrary[dum]
>>
>> \setupbodyfont
>> [palatino]
>>
>> \setuphead[section][style=\bfa\ss]
>>
>> \setuplayout
>> [grid=yes]
>>
>> \setuplayout
>> [backspace=20mm,
>> cutspace=15mm,
>> width=middle,
>> height=middle]
>>
>> \setupsystem
>> [random=1234]
>>
>> \setuppagenumbering [
>> alternative=,
>> location=,
>> ]
>>
>> \setupfootertexts
>> [Laubblatt 2019/1] [{\externalfigure[cow][height=15mm]}]
>>
>> \setupfooter
>> [style=\ss]
>>
>> \setuptolerance
>> [verytolerant,stretch]
>>
>> \definecolor[color-1][.5(red,green)]
>> \definecolor[color-2][.5(green,blue)]
>> \definecolor[color-3][.5(blue,red)]
>> \definecolor[color-4][.5(white,black)]
>> \definecolor[color-5][.5(white,color-4)]
>>
>> \startuniqueMPgraphic{frame}
>> fill OverlayBox withcolor \MPcolor{color-1} ;
>> \stopuniqueMPgraphic
>>
>> \startuniqueMPgraphic{contrast}
>> fill OverlayBox withcolor \MPcolor{color-2} ;
>> \stopuniqueMPgraphic
>>
>> \defineoverlay[frame]   [\uniqueMPgraphic{frame}]
>> \defineoverlay[contrast][\uniqueMPgraphic{contrast}]
>>
>> \definecolumnset[example][n=2]
>>
>> %\setupcolumnsetstart[example][1][1][2]
>> %\setupcolumnsetstart[example][1][2][4]
>> %\setupcolumnsetlines[example][1][1][-5]
>> %\setupcolumnsetlines[example][1][2][-5]
>>
>>
>>
>> \definecolumnsetspan[wide] [n=2,
>> background=contrast,
>> color=white,
>> ]
>>
>>
>> \starttext
>>
>> \startcolumnset[example]
>>
>>
>>
>> \startcolumnsetspan[wide]
>> \subject{Einleitung}
>> {\tfx\setupinterlinespace\em
>> \dorecurse{1}{\fakewords{50}{100}\par}
>> }
>> \stopcolumnsetspan
>>
>> \placefigure [btrl,none]
>> {}
>> {
>> \externalfigure[placeholder][width=\columnsetspanwidth{1}]
>> }
>>
>> \dorecurse{5}{\fakewords{50}{100}\par}
>>
>> \placefigure [btrl,none]
>> {}
>> {
>> \externalfigure[placeholder][width=\columnsetspanwidth{2}]
>> }
>>
>> \dorecurse{5}{\fakewords{50}{100}\par}
>>
>> \stopcolumnset
>> \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
___


[NTG-context] Graphics placement with columnsets/page grids (was "no subject)

2019-07-24 Thread Denis Maier
Hi,

just a quick follow up:

This (i.e., deleting the "none") gives the right result:

```
\placefigure [btrl]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{2}]
}
```

The figure is indeed at the bottom of the page. Yet, `\placefigure
[btrl,none]` seems to remove the caption, but the figure stays where it was
and we have additional lines under the figure. Shouldn't the figure stick
to the margin?

Best,
Denis


Am Di., 23. Juli 2019 um 16:16 Uhr schrieb Denis Maier :

> Hi,
> I am typesetting a newsletter using newcolumnsets, and I am struggling
> with placing my graphics. Why isn't the graphic on page 2 at the bottom
> (code below)?
> Best,
> Denis
>
> ```
> \usemodule[newcolumnsets,simulate]
>
> \useMPlibrary[dum]
>
> \setupbodyfont
> [palatino]
>
> \setuphead[section][style=\bfa\ss]
>
> \setuplayout
> [grid=yes]
>
> \setuplayout
> [backspace=20mm,
> cutspace=15mm,
> width=middle,
> height=middle]
>
> \setupsystem
> [random=1234]
>
> \setuppagenumbering [
> alternative=,
> location=,
> ]
>
> \setupfootertexts
> [Laubblatt 2019/1] [{\externalfigure[cow][height=15mm]}]
>
> \setupfooter
> [style=\ss]
>
> \setuptolerance
> [verytolerant,stretch]
>
> \definecolor[color-1][.5(red,green)]
> \definecolor[color-2][.5(green,blue)]
> \definecolor[color-3][.5(blue,red)]
> \definecolor[color-4][.5(white,black)]
> \definecolor[color-5][.5(white,color-4)]
>
> \startuniqueMPgraphic{frame}
> fill OverlayBox withcolor \MPcolor{color-1} ;
> \stopuniqueMPgraphic
>
> \startuniqueMPgraphic{contrast}
> fill OverlayBox withcolor \MPcolor{color-2} ;
> \stopuniqueMPgraphic
>
> \defineoverlay[frame]   [\uniqueMPgraphic{frame}]
> \defineoverlay[contrast][\uniqueMPgraphic{contrast}]
>
> \definecolumnset[example][n=2]
>
> %\setupcolumnsetstart[example][1][1][2]
> %\setupcolumnsetstart[example][1][2][4]
> %\setupcolumnsetlines[example][1][1][-5]
> %\setupcolumnsetlines[example][1][2][-5]
>
>
>
> \definecolumnsetspan[wide] [n=2,
> background=contrast,
> color=white,
> ]
>
>
> \starttext
>
> \startcolumnset[example]
>
>
>
> \startcolumnsetspan[wide]
> \subject{Einleitung}
> {\tfx\setupinterlinespace\em
> \dorecurse{1}{\fakewords{50}{100}\par}
> }
> \stopcolumnsetspan
>
> \placefigure [btrl,none]
> {}
> {
> \externalfigure[placeholder][width=\columnsetspanwidth{1}]
> }
>
> \dorecurse{5}{\fakewords{50}{100}\par}
>
> \placefigure [btrl,none]
> {}
> {
> \externalfigure[placeholder][width=\columnsetspanwidth{2}]
> }
>
> \dorecurse{5}{\fakewords{50}{100}\par}
>
> \stopcolumnset
> \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
___


[NTG-context] (no subject)

2019-07-23 Thread Denis Maier
Hi,
I am typesetting a newsletter using newcolumnsets, and I am struggling with
placing my graphics. Why isn't the graphic on page 2 at the bottom (code
below)?
Best,
Denis

```
\usemodule[newcolumnsets,simulate]

\useMPlibrary[dum]

\setupbodyfont
[palatino]

\setuphead[section][style=\bfa\ss]

\setuplayout
[grid=yes]

\setuplayout
[backspace=20mm,
cutspace=15mm,
width=middle,
height=middle]

\setupsystem
[random=1234]

\setuppagenumbering [
alternative=,
location=,
]

\setupfootertexts
[Laubblatt 2019/1] [{\externalfigure[cow][height=15mm]}]

\setupfooter
[style=\ss]

\setuptolerance
[verytolerant,stretch]

\definecolor[color-1][.5(red,green)]
\definecolor[color-2][.5(green,blue)]
\definecolor[color-3][.5(blue,red)]
\definecolor[color-4][.5(white,black)]
\definecolor[color-5][.5(white,color-4)]

\startuniqueMPgraphic{frame}
fill OverlayBox withcolor \MPcolor{color-1} ;
\stopuniqueMPgraphic

\startuniqueMPgraphic{contrast}
fill OverlayBox withcolor \MPcolor{color-2} ;
\stopuniqueMPgraphic

\defineoverlay[frame]   [\uniqueMPgraphic{frame}]
\defineoverlay[contrast][\uniqueMPgraphic{contrast}]

\definecolumnset[example][n=2]

%\setupcolumnsetstart[example][1][1][2]
%\setupcolumnsetstart[example][1][2][4]
%\setupcolumnsetlines[example][1][1][-5]
%\setupcolumnsetlines[example][1][2][-5]



\definecolumnsetspan[wide] [n=2,
background=contrast,
color=white,
]


\starttext

\startcolumnset[example]



\startcolumnsetspan[wide]
\subject{Einleitung}
{\tfx\setupinterlinespace\em
\dorecurse{1}{\fakewords{50}{100}\par}
}
\stopcolumnsetspan

\placefigure [btrl,none]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{1}]
}

\dorecurse{5}{\fakewords{50}{100}\par}

\placefigure [btrl,none]
{}
{
\externalfigure[placeholder][width=\columnsetspanwidth{2}]
}

\dorecurse{5}{\fakewords{50}{100}\par}

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


Re: [NTG-context] Columnsets not balanced

2019-07-15 Thread Wolfgang Schuster

Sytse knyps...@home.nl schrieb am 15.07.2019 um 13:09:

Dear list,

In the following example I would like to have the two columns balanced, i.e. 
with equal number of lines in both columns. But contrary to the option in the 
definition, all text is put in the leftmost column and the right-hand column 
remains empty.

\definecolumnset[Two][balance=yes]
\starttext
\startcolumnset[Two]
   \input knuth
\stopcolumnset
\stoptext

How can I automatically obtain balanced columns?

 Columnsets have no support for balanced 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
___


[NTG-context] Columnsets not balanced

2019-07-15 Thread Sytse knyps...@home.nl
Dear list,

In the following example I would like to have the two columns balanced, i.e. 
with equal number of lines in both columns. But contrary to the option in the 
definition, all text is put in the leftmost column and the right-hand column 
remains empty. 

\definecolumnset[Two][balance=yes]
\starttext
\startcolumnset[Two]
  \input knuth
\stopcolumnset
\stoptext

How can I automatically obtain balanced columns?

Sytse Knypstra
___
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] Questions on columnsetspan (and grids and backgrounds)

2019-05-18 Thread Mikael P. Sundqvist
On Wed, May 15, 2019 at 9:28 AM Hans Hagen  wrote:

> On 5/14/2019 11:36 AM, Mikael P. Sundqvist wrote:
> > On Tue, May 14, 2019 at 10:39 AM Hans Hagen  wrote:
> >>
> >> On 5/13/2019 5:59 PM, Mikael P. Sundqvist wrote:
> >>> Den lör 11 maj 2019 10:28Mikael P. Sundqvist  >>> <mailto:mic...@gmail.com>> skrev:
> >>>
> >>>  Hi,
> >>>
> >>>  I have for some hours tried to understand how to work with
> >>>  columnsetspans (I'm trying with an updated lmtx), and have some
> >>>  questions.
> >>>
> >>>  1) Is it only the floats that has the long list of placement
> options
> >>>  (given on p. 18 in the columnsets manual), or should they also
> apply
> >>>  to columnsetspans and columnsetareas? (I cannot get it to work
> with
> >>>  "default=fxtb:2*10" and similar options for other elements than
> >>>  floats). It would be useful to have it for other type of elements
> as
> >>>  well.
> >>>
> >>>  2) What is the current correct way to get back on grid after
> formulas?
> >>>  The only key that had lead me to something that seems to work in
> >>>  \setupformulas is "option=depth". Is that the way to go?
> >>>
> >>>  3) This is a bit unrelated, but is it possible to set page
> backgrounds
> >>>  on specific page. Something like \setupbackgrounds[page][page=3,
> ...]
> >>>  (I cannot find any keys for this in setup-en.pdf). Right now I
> can set
> >>>  it for an odd and an even page, but then if I want a background
> on the
> >>>  page after that, I have to put that code at the place where it
> will be
> >>>  used. (I got an error with \startpostponing[+1] ...
> \stoppostponing)
> >>>
> >>>  4) To be a bit more concrete on the first issue: In the example
> below,
> >>>  how can I place the columnsetspan at the bottom right? Second and
> >>>  third column, 10 lines down? I attach the result of running this
> file.
> >>>
> >>>  /Mikael
> >>>
> >>>  \setuplayout[grid=yes]
> >>>  \showgrid
> >>>  \definecolumnset[three][n=3]
> >>>
> >>>  \definecolumnsetspan[two][
> >>>  n=2,
> >>>  background=color,
> >>>  backgroundcolor=lightgray,
> >>>  ]
> >>>
> >>>  \starttext
> >>>  \startcolumnset[three]
> >>>  \samplefile{knuth}
> >>>
> >>>  \startcolumnsetspan[two][default=btrl]
> >>>  \samplefile{ward}
> >>>  \stopcolumnsetspan
> >>>
> >>>  \dorecurse{5}{\samplefile{knuth}\par}
> >>>  \stopcolumnset
> >>>  \stoptext
> >>>
> >>>
> >>> Hi!
> >>>
> >>> I have looked more carefully at the columnsets manual, and it looks
> like
> >>> (parts of) the columnsets mechanism is somehow broken at the moment,
> >>> since some of the examples there are not showing what they are
> supposed to.
> >>
> >> the mkii mechanism has been replaced by a new one but it's not
> >> completely compatible (these placements are actually for floats and
> >> spans were just a special kind abusing that mechanism)
> >>
> >>> Can this be confirmed? Is there a plan to get it to work soon again?
> >> i'll put it on the todo list
> >>
> >> -
> >> Hans Hagen | PRAGMA ADE
> >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> >>  tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> >> -
> >
> > Hi!
> >
> > Many thanks for your reply! Then I stop my playing with it now
> > (several things work and it looks quite nice!).
> >
> > I really appreciate any effort in this direction, since I think this
> > grid+column functionality is a very nice feature to have!!
> this will work in a next upload (watch out: columnsets operate on a spread)
>
> \setuppagenumbering[alternative={doublesided}]
>
> \showgrid
>
> \setupalign[verytolerant] \dontcomplain
>
> \definecolumnset[three][n=3]
>
> \definecolumnsetsp

Re: [NTG-context] Questions on columnsetspan (and grids and backgrounds)

2019-05-15 Thread Hans Hagen

On 5/14/2019 11:36 AM, Mikael P. Sundqvist wrote:

On Tue, May 14, 2019 at 10:39 AM Hans Hagen  wrote:


On 5/13/2019 5:59 PM, Mikael P. Sundqvist wrote:

Den lör 11 maj 2019 10:28Mikael P. Sundqvist mailto:mic...@gmail.com>> skrev:

 Hi,

 I have for some hours tried to understand how to work with
 columnsetspans (I'm trying with an updated lmtx), and have some
 questions.

 1) Is it only the floats that has the long list of placement options
 (given on p. 18 in the columnsets manual), or should they also apply
 to columnsetspans and columnsetareas? (I cannot get it to work with
 "default=fxtb:2*10" and similar options for other elements than
 floats). It would be useful to have it for other type of elements as
 well.

 2) What is the current correct way to get back on grid after formulas?
 The only key that had lead me to something that seems to work in
 \setupformulas is "option=depth". Is that the way to go?

 3) This is a bit unrelated, but is it possible to set page backgrounds
 on specific page. Something like \setupbackgrounds[page][page=3, ...]
 (I cannot find any keys for this in setup-en.pdf). Right now I can set
 it for an odd and an even page, but then if I want a background on the
 page after that, I have to put that code at the place where it will be
 used. (I got an error with \startpostponing[+1] ... \stoppostponing)

 4) To be a bit more concrete on the first issue: In the example below,
 how can I place the columnsetspan at the bottom right? Second and
 third column, 10 lines down? I attach the result of running this file.

 /Mikael

 \setuplayout[grid=yes]
 \showgrid
 \definecolumnset[three][n=3]

 \definecolumnsetspan[two][
 n=2,
 background=color,
 backgroundcolor=lightgray,
 ]

 \starttext
 \startcolumnset[three]
 \samplefile{knuth}

 \startcolumnsetspan[two][default=btrl]
 \samplefile{ward}
 \stopcolumnsetspan

 \dorecurse{5}{\samplefile{knuth}\par}
 \stopcolumnset
 \stoptext


Hi!

I have looked more carefully at the columnsets manual, and it looks like
(parts of) the columnsets mechanism is somehow broken at the moment,
since some of the examples there are not showing what they are supposed to.


the mkii mechanism has been replaced by a new one but it's not
completely compatible (these placements are actually for floats and
spans were just a special kind abusing that mechanism)


Can this be confirmed? Is there a plan to get it to work soon again?

i'll put it on the todo list

-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-


Hi!

Many thanks for your reply! Then I stop my playing with it now
(several things work and it looks quite nice!).

I really appreciate any effort in this direction, since I think this
grid+column functionality is a very nice feature to have!!

this will work in a next upload (watch out: columnsets operate on a spread)

\setuppagenumbering[alternative={doublesided}]

\showgrid

\setupalign[verytolerant] \dontcomplain

\definecolumnset[three][n=3]

\definecolumnsetspan[two]
  [n=2,
   background=color,
   backgroundcolor=lightgray]

\starttext

\page[left]

\startcolumnset[three]

\startcolumnsetspan[two][c=1,r=5]
\samplefile{ward}
\stopcolumnsetspan

\startcolumnsetspan[two][method=btlr,c=2,r=3]
\samplefile{ward}
\stopcolumnsetspan

\dorecurse{6}{\samplefile{knuth}\par}

\stopcolumnset

\stoptext

-
  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] Questions on columnsetspan (and grids and backgrounds)

2019-05-14 Thread Mikael P. Sundqvist
On Tue, May 14, 2019 at 10:39 AM Hans Hagen  wrote:
>
> On 5/13/2019 5:59 PM, Mikael P. Sundqvist wrote:
> > Den lör 11 maj 2019 10:28Mikael P. Sundqvist  > <mailto:mic...@gmail.com>> skrev:
> >
> > Hi,
> >
> > I have for some hours tried to understand how to work with
> > columnsetspans (I'm trying with an updated lmtx), and have some
> > questions.
> >
> > 1) Is it only the floats that has the long list of placement options
> > (given on p. 18 in the columnsets manual), or should they also apply
> > to columnsetspans and columnsetareas? (I cannot get it to work with
> > "default=fxtb:2*10" and similar options for other elements than
> > floats). It would be useful to have it for other type of elements as
> > well.
> >
> > 2) What is the current correct way to get back on grid after formulas?
> > The only key that had lead me to something that seems to work in
> > \setupformulas is "option=depth". Is that the way to go?
> >
> > 3) This is a bit unrelated, but is it possible to set page backgrounds
> > on specific page. Something like \setupbackgrounds[page][page=3, ...]
> > (I cannot find any keys for this in setup-en.pdf). Right now I can set
> > it for an odd and an even page, but then if I want a background on the
> > page after that, I have to put that code at the place where it will be
> > used. (I got an error with \startpostponing[+1] ... \stoppostponing)
> >
> > 4) To be a bit more concrete on the first issue: In the example below,
> > how can I place the columnsetspan at the bottom right? Second and
> > third column, 10 lines down? I attach the result of running this file.
> >
> > /Mikael
> >
> > \setuplayout[grid=yes]
> > \showgrid
> > \definecolumnset[three][n=3]
> >
> > \definecolumnsetspan[two][
> > n=2,
> > background=color,
> > backgroundcolor=lightgray,
> > ]
> >
> > \starttext
> > \startcolumnset[three]
> > \samplefile{knuth}
> >
> > \startcolumnsetspan[two][default=btrl]
> > \samplefile{ward}
> > \stopcolumnsetspan
> >
> > \dorecurse{5}{\samplefile{knuth}\par}
> > \stopcolumnset
> > \stoptext
> >
> >
> > Hi!
> >
> > I have looked more carefully at the columnsets manual, and it looks like
> > (parts of) the columnsets mechanism is somehow broken at the moment,
> > since some of the examples there are not showing what they are supposed to.
>
> the mkii mechanism has been replaced by a new one but it's not
> completely compatible (these placements are actually for floats and
> spans were just a special kind abusing that mechanism)
>
> > Can this be confirmed? Is there a plan to get it to work soon again?
> i'll put it on the todo list
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -

Hi!

Many thanks for your reply! Then I stop my playing with it now
(several things work and it looks quite nice!).

I really appreciate any effort in this direction, since I think this
grid+column functionality is a very nice feature to have!!

/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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Questions on columnsetspan (and grids and backgrounds)

2019-05-14 Thread Floris van Manen
is this related?

\setuplayout[grid=yes]
\showgrid
\definecolumnset[three][n=3]
\starttext
\samplefile{knuth}
\startcolumns[n=3]
\dorecurse{4}{\samplefile{knuth}\par}
\stopcolumns
\page
\samplefile{knuth}
\startcolumnset[three]
\dorecurse{4}{\samplefile{knuth}\par}
\stopcolumnset
\stoptext


Using the \startcolumnset instead of \startcolumns will overwrite the first 
paragraph at the top of the page
in its second and third column

.F


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] Questions on columnsetspan (and grids and backgrounds)

2019-05-14 Thread Hans Hagen

On 5/13/2019 5:59 PM, Mikael P. Sundqvist wrote:
Den lör 11 maj 2019 10:28Mikael P. Sundqvist <mailto:mic...@gmail.com>> skrev:


Hi,

I have for some hours tried to understand how to work with
columnsetspans (I'm trying with an updated lmtx), and have some
questions.

1) Is it only the floats that has the long list of placement options
(given on p. 18 in the columnsets manual), or should they also apply
to columnsetspans and columnsetareas? (I cannot get it to work with
"default=fxtb:2*10" and similar options for other elements than
floats). It would be useful to have it for other type of elements as
well.

2) What is the current correct way to get back on grid after formulas?
The only key that had lead me to something that seems to work in
\setupformulas is "option=depth". Is that the way to go?

3) This is a bit unrelated, but is it possible to set page backgrounds
on specific page. Something like \setupbackgrounds[page][page=3, ...]
(I cannot find any keys for this in setup-en.pdf). Right now I can set
it for an odd and an even page, but then if I want a background on the
page after that, I have to put that code at the place where it will be
used. (I got an error with \startpostponing[+1] ... \stoppostponing)

4) To be a bit more concrete on the first issue: In the example below,
how can I place the columnsetspan at the bottom right? Second and
third column, 10 lines down? I attach the result of running this file.

/Mikael

\setuplayout[grid=yes]
\showgrid
\definecolumnset[three][n=3]

\definecolumnsetspan[two][
n=2,
background=color,
backgroundcolor=lightgray,
]

\starttext
\startcolumnset[three]
\samplefile{knuth}

\startcolumnsetspan[two][default=btrl]
\samplefile{ward}
\stopcolumnsetspan

\dorecurse{5}{\samplefile{knuth}\par}
\stopcolumnset
\stoptext


Hi!

I have looked more carefully at the columnsets manual, and it looks like 
(parts of) the columnsets mechanism is somehow broken at the moment, 
since some of the examples there are not showing what they are supposed to.


the mkii mechanism has been replaced by a new one but it's not 
completely compatible (these placements are actually for floats and 
spans were just a special kind abusing that mechanism)



Can this be confirmed? Is there a plan to get it to work soon again?

i'll put it on the todo list

-
  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] Questions on columnsetspan (and grids and backgrounds)

2019-05-13 Thread Mikael P. Sundqvist
Den lör 11 maj 2019 10:28Mikael P. Sundqvist  skrev:

> Hi,
>
> I have for some hours tried to understand how to work with
> columnsetspans (I'm trying with an updated lmtx), and have some
> questions.
>
> 1) Is it only the floats that has the long list of placement options
> (given on p. 18 in the columnsets manual), or should they also apply
> to columnsetspans and columnsetareas? (I cannot get it to work with
> "default=fxtb:2*10" and similar options for other elements than
> floats). It would be useful to have it for other type of elements as
> well.
>
> 2) What is the current correct way to get back on grid after formulas?
> The only key that had lead me to something that seems to work in
> \setupformulas is "option=depth". Is that the way to go?
>
> 3) This is a bit unrelated, but is it possible to set page backgrounds
> on specific page. Something like \setupbackgrounds[page][page=3, ...]
> (I cannot find any keys for this in setup-en.pdf). Right now I can set
> it for an odd and an even page, but then if I want a background on the
> page after that, I have to put that code at the place where it will be
> used. (I got an error with \startpostponing[+1] ... \stoppostponing)
>
> 4) To be a bit more concrete on the first issue: In the example below,
> how can I place the columnsetspan at the bottom right? Second and
> third column, 10 lines down? I attach the result of running this file.
>
> /Mikael
>
> \setuplayout[grid=yes]
> \showgrid
> \definecolumnset[three][n=3]
>
> \definecolumnsetspan[two][
> n=2,
> background=color,
> backgroundcolor=lightgray,
> ]
>
> \starttext
> \startcolumnset[three]
> \samplefile{knuth}
>
> \startcolumnsetspan[two][default=btrl]
> \samplefile{ward}
> \stopcolumnsetspan
>
> \dorecurse{5}{\samplefile{knuth}\par}
> \stopcolumnset
> \stoptext
>

Hi!

I have looked more carefully at the columnsets manual, and it looks like
(parts of) the columnsets mechanism is somehow broken at the moment, since
some of the examples there are not showing what they are supposed to.

Can this be confirmed? Is there a plan to get it to work soon again?

Best regards, 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Questions on columnsetspan (and grids and backgrounds)

2019-05-11 Thread Mikael P. Sundqvist
Hi,

I have for some hours tried to understand how to work with
columnsetspans (I'm trying with an updated lmtx), and have some
questions.

1) Is it only the floats that has the long list of placement options
(given on p. 18 in the columnsets manual), or should they also apply
to columnsetspans and columnsetareas? (I cannot get it to work with
"default=fxtb:2*10" and similar options for other elements than
floats). It would be useful to have it for other type of elements as
well.

2) What is the current correct way to get back on grid after formulas?
The only key that had lead me to something that seems to work in
\setupformulas is "option=depth". Is that the way to go?

3) This is a bit unrelated, but is it possible to set page backgrounds
on specific page. Something like \setupbackgrounds[page][page=3, ...]
(I cannot find any keys for this in setup-en.pdf). Right now I can set
it for an odd and an even page, but then if I want a background on the
page after that, I have to put that code at the place where it will be
used. (I got an error with \startpostponing[+1] ... \stoppostponing)

4) To be a bit more concrete on the first issue: In the example below,
how can I place the columnsetspan at the bottom right? Second and
third column, 10 lines down? I attach the result of running this file.

/Mikael

\setuplayout[grid=yes]
\showgrid
\definecolumnset[three][n=3]

\definecolumnsetspan[two][
n=2,
background=color,
backgroundcolor=lightgray,
]

\starttext
\startcolumnset[three]
\samplefile{knuth}

\startcolumnsetspan[two][default=btrl]
\samplefile{ward}
\stopcolumnsetspan

\dorecurse{5}{\samplefile{knuth}\par}
\stopcolumnset
\stoptext


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


[NTG-context] index problem with \setupcolumnset

2018-11-09 Thread Peter Rolf
Hi,

I run into this error after updating my ConTeXt version.
Small (but not minimal) example attached.

mtx-context | current version: 2018.10.18 00:07


Peter
\startuniqueMPgraphic{column:bg}
fill OverlayBox withcolor yellow;
\stopuniqueMPgraphic
\defineoverlay[columnbg][\uniqueMPgraphic{column:bg}]


\definecolumnset[TOC][n=4]
%\setupcolumnset[TOC][background=columnbg]% works ok
\setupcolumnset[TOC][1][background=columnbg]% any indexed setup fails
% in my real world example the complete third argument is printed instead


\starttext
\startcolumnset[TOC]
\input tufte.tex
\stopcolumnset
\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
___

Re: [NTG-context] columnset regression

2018-10-29 Thread Henning Hraban Ramm
Am 2018-10-28 um 22:07 schrieb Wolfgang Schuster 
:

> Henning Hraban Ramm schrieb am 28.10.18 um 20:49:
>> If a columnset starts below something else (text, image, frame), the second 
>> and further columns start at the top of the type area instead of below the 
>> upper object.
>> 
>> \definecolumnset[drei][n=3]
>> \usemodule[visual]
> 
> \usemodule[old-columnsets]
> 
>> \starttext
>> 
>> \framed[width=\textwidth,height=.3\textheight]{\ConTeXt}
>> 
>> %\input knuth
>> 
>> \startcolumnset[drei]
>> \fakewords{30}{50}
>> \column
>> \fakewords{30}{50}
>> \column
>> \fakewords{30}{50}
>> \stopcolumnset
>> 
>> \stoptext

Thank you, but it doesn’t help:

tex error   > tex error on line 12 in file context-tests/columnsettest.tex: 
! Missing number, treated as zero

 
\def 
\syst_helpers_recurse_indeed ...ed_nop \else \def 
  \recurselevel {#1}\innerre...
\OTRSETassignwidths ...recurselevel }\c!distance }
  \ifcase \scratchcounter \e...
\OTRSETinitializecolumns ...i \OTRSETassignwidths 
  \global \mofcolumns \pluso...
\OTRSETrestart ...sttext \OTRSETinitializecolumns 
  \OTRSETcheckinsert \OTRSET...
\dostartcolumnset ...st {#1}}\OTRSETstartnextpage 
  \OTRSETassignwidths \page_...
...
l.12 
   

 2 \definecolumnset[drei][n=3]
 3 \usemodule[old-columnsets]
 4 \usemodule[visual]
 5 
 6 \starttext
 7 
 8 %\framed[width=\textwidth,height=.3\textheight]{\fakeword}
 9 \input tufte
10 
11 \startcolumnset[drei]
12 >>  
13 \fakewords{30}{50}
14 
15 \column
16 
17 \fakewords{30}{50}
18 
19 \column
20 
21 \fakewords{30}{50}
22 




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] columnset regression

2018-10-28 Thread Wolfgang Schuster



Henning Hraban Ramm schrieb am 28.10.18 um 20:49:

Typesetting my songbooklets, I stumbled upon another regression:

If a columnset starts below something else (text, image, frame), the second and 
further columns start at the top of the type area instead of below the upper 
object.

\definecolumnset[drei][n=3]
\usemodule[visual]


\usemodule[old-columnsets]


\starttext

\framed[width=\textwidth,height=.3\textheight]{\ConTeXt}

%\input knuth

\startcolumnset[drei]
\fakewords{30}{50}
\column
\fakewords{30}{50}
\column
\fakewords{30}{50}
\stopcolumnset

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

[NTG-context] columnset regression

2018-10-28 Thread Henning Hraban Ramm
Typesetting my songbooklets, I stumbled upon another regression:

If a columnset starts below something else (text, image, frame), the second and 
further columns start at the top of the type area instead of below the upper 
object.

\definecolumnset[drei][n=3]
\usemodule[visual]

\starttext

\framed[width=\textwidth,height=.3\textheight]{\ConTeXt}

%\input knuth

\startcolumnset[drei]
\fakewords{30}{50}
\column
\fakewords{30}{50}
\column
\fakewords{30}{50}
\stopcolumnset

\stoptext




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] column-spanning floats

2018-08-01 Thread Dr. Thomas Möbius
On Tue, 31 Jul 2018 14:06:43 +0200
Taco Hoekwater  wrote:

> 
> 
> > On 31 Jul 2018, at 13:57, Taco Hoekwater  wrote:
> > 
> > Hi all,
> > 
> > It used to be that in an example like the one attached where you
> > were using \startcolumns and used an \externalfigure that was wider
> > than the column width, the figure would automatically be moved to
> > the top of _both_ columns on the next page. 
> > 
> > That was a bit tricky sometimes, but worked fine. However, when I
> > run with the current mkiv beta, the figure is simply overlapping
> > the next column, and it does not auto-migrate. 
> > 
> > Also \startpostponing does not work here because it will indeed
> > move to the next page, but still only occupies the left column,
> > thus overlapping any text in the second column.
> > 
> > Is that functionality gone, or do I need to do something special?
> > 
> > Best wishes,
> > Taco
> > 
> > PS On top of that, the column balancing creates bad inter-paragraph
> > spacing in the left column. No idea where that comes from! :(
> 
> 
> Also, I just tried \definecolumnset, but a) the balance=yes key does
> not work, and b) I still get awful inter-par spacing on the left
> column, except with \setuplayout[grid=yes] (but that should not be
> needed to just get a reasonable placing, I think).
> 
> Taco

I would also love to see a solution to this. I also tried to play with
the \definecolumnset instead of the \startcolumns but when there are is
a lot of inline math, \definecolumnset produces just horrible inter-par
spacing.

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
___

Re: [NTG-context] column-spanning floats

2018-07-31 Thread Taco Hoekwater


> On 31 Jul 2018, at 13:57, Taco Hoekwater  wrote:
> 
> Hi all,
> 
> It used to be that in an example like the one attached where you were using
> \startcolumns and used an \externalfigure that was wider than the column 
> width, 
> the figure would automatically be moved to the top of _both_ columns on the 
> next page. 
> 
> That was a bit tricky sometimes, but worked fine. However, when I run with 
> the current mkiv beta, the figure is simply overlapping the next column, and 
> it does not auto-migrate. 
> 
> Also \startpostponing does not work here because it will indeed move to the
> next page, but still only occupies the left column, thus overlapping any
> text in the second column.
> 
> Is that functionality gone, or do I need to do something special?
> 
> Best wishes,
> Taco
> 
> PS On top of that, the column balancing creates bad inter-paragraph spacing 
> in 
> the left column. No idea where that comes from! :(


Also, I just tried \definecolumnset, but a) the balance=yes key does not 
work, and b) I still get awful inter-par spacing on the left column, except
with \setuplayout[grid=yes] (but that should not be needed to just get
a reasonable placing, I think).

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] \startplacetable in \startcolumnset

2018-04-19 Thread Wolfgang Schuster

Hi Dalyoung,

setup-en.pdf lists only the options for the new columnset code but it 
uses the internal pagegrid commands.


I’m going to change this to have the commands with the columnset names 
in the next version.


Wolfgang

Jeong Dal <mailto:hak...@me.com>
19. April 2018 um 17:05
Hi,

I found \definecolumnset in the wiki not in the setup-en.pdf.
I’ll test it again.

Thank you for reading.

Best regards,

Dalyoung
___
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] \startplacetable in \startcolumnset

2018-04-19 Thread Jeong Dal
Hi,

I found \definecolumnset in the wiki not in the setup-en.pdf.
I’ll test it again.

Thank you for reading.

Best regards,

Dalyoung
___
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] \startplacetable in \startcolumnset

2018-04-19 Thread Jeong Dal
Hi,

I used the following exam format well which was set by the help of Wolfgang 
long time ago.

Recently I got a strange output when I used \startplacetable or \placetable in 
the \startcolumnset … \stopcolumnset.
There is a strange number first and table in the next column.
The output is OK if I comment out either \startcolumnset or \placetable.

Is “\definecolumnset, \startcolumnset” still a good command? I couldn’t find it 
in the list of commands.

Thank you for reading.

Best regards,

Dalyoung

%
\startuseMPgraphic{verticalrule}
  if CurrentColumn < NOfColumns :
draw leftboundary OverlayBox;%  shifted (-1mm,0);
draw rightboundary OverlayBox shifted (4mm,0);
draw rightboundary OverlayBox shifted (TextWidth+6mm,0);
draw bottomboundary OverlayBox shifted (1mm,0);
draw bottomboundary OverlayBox shifted (TextWidth+6mm,0);
setbounds currentpicture to OverlayBox enlarged 2.5mm;
  fi
\stopuseMPgraphic

\defineoverlay
  [verticalrule]
  [\useMPgraphic{verticalrule}]

\definecolumnset
  [exam]
  [n=2,
   background=verticalrule]

\starttext

\startcolumnset[exam]
\startcolumns[n=2, rule=on]
\startitemize[n]
\item Question 1.
Good
\vfill
\column
\item Question 2
%   \startplacetable[location=]
{\starttabulate[|c|c|c|]
\NC A   \NC B   \NC C \NC\NR
\NC A   \NC B   \NC C \NC\NR
\NC A   \NC B   \NC C \NC\NR
\stoptabulate}
%   \stopplacetable
\vfill
\stopitemize
\stopcolumns
\stopcolumnset
\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
___

Re: [NTG-context] columnset + floats = bad

2018-04-17 Thread Henri Menke
Thanks for the suggestion Alan!

I tried out the pagecolumns approach.  According to the manual it seems to
handle floats a bit better than the columnsets and I do not require spans right
now.  However, here another weird thing is happening.  After the end of the
pagecolumns an extra page is flushed even though it does not contain any
material.  Why?  MWE is below, output of latest beta attached.

Cheers, Henri

---

\setuppapersize[A0]
\setupbodyfont[sans,25pt]

\definepagecolumns
  [threecolumn]
  [n=3]

\setuppagecolumns
  [threecolumn]
  [distance=3cm]

\starttext

\startpagecolumns[threecolumn]

  \input lorem

\column

  \input zapf\par

  \startplacefigure[title={\input zapf\par}]
\externalfigure[dummy][width=\columnwidth]
  \stopplacefigure

  \input hawking\par

\column

  \input Douglas\par

  \input bryson\par

  \startplacefigure[title={\input bryson\par}]
\externalfigure[dummy][width=\columnwidth]
  \stopplacefigure

\stoppagecolumns

\stoptext

On Mon, 2018-04-16 at 19:08 -0600, Alan Braslau wrote:
> Hans points out that you need to use:
> \setuplayout [grid=yes]
> with columnsets (and floats).
> 
> You can also try "pagecolumns", yet another mechanism, each has its own
> charm. ;-)
> 
> Alan
> 
> 
> 
> 
> On Tue, 17 Apr 2018 12:59:46 +1200
> Henri Menke <henrime...@gmail.com> wrote:
> 
> > 
> > Dear list,
> > 
> > I wanted to make a conference poster in ConTeXt MKIV using the
> > newcolumnsets. However, when I use floats weird shit is happening.
> >  Is this intended or am I doing something seriously wrong?  MWE
> > below, output of latest beta attached.
> > 
> > Cheers, Henri
> > 
> > ---
> > 
> > \setuppapersize[A0]
> > \setupbodyfont[sans,25pt]
> > 
> > \usemodule[newcolumnsets]
> > 
> > \definecolumnset
> >   [threecolumn]
> >   [n=3]
> > 
> > \setupcolumnset
> >   [threecolumn]
> >   [distance=3cm]
> > 
> > \starttext
> > 
> > \startcolumnset[threecolumn]
> > 
> >   \input lorem
> > 
> > \column
> > 
> >   \input zapf\par
> > 
> >   \startplacefigure[title={\input zapf\par}]
> > \externalfigure[dummy][width=\textwidth]
> >   \stopplacefigure
> > 
> >   \input hawking\par
> > 
> > \column
> > 
> >   \input Douglas\par
> > 
> >   \input bryson\par
> > 
> >   \startplacefigure[title={\input bryson\par}]
> > \externalfigure[dummy][width=\textwidth]
> >   \stopplacefigure
> > 
> > \stopcolumnset
> > 
> > \stoptext

test.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] columnset + floats = bad

2018-04-16 Thread Alan Braslau
Hans points out that you need to use:
\setuplayout [grid=yes]
with columnsets (and floats).

You can also try "pagecolumns", yet another mechanism, each has its own
charm. ;-)

Alan




On Tue, 17 Apr 2018 12:59:46 +1200
Henri Menke <henrime...@gmail.com> wrote:

> Dear list,
> 
> I wanted to make a conference poster in ConTeXt MKIV using the
> newcolumnsets. However, when I use floats weird shit is happening.
>  Is this intended or am I doing something seriously wrong?  MWE
> below, output of latest beta attached.
> 
> Cheers, Henri
> 
> ---
> 
> \setuppapersize[A0]
> \setupbodyfont[sans,25pt]
> 
> \usemodule[newcolumnsets]
> 
> \definecolumnset
>   [threecolumn]
>   [n=3]
> 
> \setupcolumnset
>   [threecolumn]
>   [distance=3cm]
> 
> \starttext
> 
> \startcolumnset[threecolumn]
> 
>   \input lorem
> 
> \column
> 
>   \input zapf\par
> 
>   \startplacefigure[title={\input zapf\par}]
> \externalfigure[dummy][width=\textwidth]
>   \stopplacefigure
> 
>   \input hawking\par
> 
> \column
> 
>   \input Douglas\par
> 
>   \input bryson\par
> 
>   \startplacefigure[title={\input bryson\par}]
> \externalfigure[dummy][width=\textwidth]
>   \stopplacefigure
> 
> \stopcolumnset
> 
> \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
___

[NTG-context] columnset + floats = bad

2018-04-16 Thread Henri Menke
Dear list,

I wanted to make a conference poster in ConTeXt MKIV using the newcolumnsets.
However, when I use floats weird shit is happening.  Is this intended or am I
doing something seriously wrong?  MWE below, output of latest beta attached.

Cheers, Henri

---

\setuppapersize[A0]
\setupbodyfont[sans,25pt]

\usemodule[newcolumnsets]

\definecolumnset
  [threecolumn]
  [n=3]

\setupcolumnset
  [threecolumn]
  [distance=3cm]

\starttext

\startcolumnset[threecolumn]

  \input lorem

\column

  \input zapf\par

  \startplacefigure[title={\input zapf\par}]
\externalfigure[dummy][width=\textwidth]
  \stopplacefigure

  \input hawking\par

\column

  \input Douglas\par

  \input bryson\par

  \startplacefigure[title={\input bryson\par}]
\externalfigure[dummy][width=\textwidth]
  \stopplacefigure

\stopcolumnset

\stoptext

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

[NTG-context] Wrong section space after placefigure with newcolumnsets

2018-04-05 Thread Charles Vejnar

Hi,

I am placing figures in a columnset. The next header (section, 
subsection...) following the figure has always missing vertical space.


See the normal space after "One subsection" and "Four subsection" but 
reduced space after "Two subsection" and "Three subsection" in the 
example below.


Tested with ConTeXt  ver: 2018.04.04 and LuaTeX, Version 1.07.0.

This seems to be the opposite problem as the one described recently in 
the thread "Bug in wrapped placefigure".


Any solution or fix?

Thank you very much for your help.

Charles



\setuppapersize[letter][letter]

\usemodule[newcolumnsets]
\setuplayout[grid=yes]
\definecolumnset[colset][n=2]

\starttext
\startcolumnset[colset]

\section{One section}

\subsection{One subsection}

\dorecurse{16}{\input ward \par}

\section{Two section}

\subsection{Two subsection}

\placefigure[bots]{Legend.}{\hbox{\externalfigure[dummy][width=\makeupwidth,height=12cm]}}

\dorecurse{5}{\input knuth \par}

\subsection{Three subsection}

\placefigure[bots]{Legend.}{\hbox{\externalfigure[dummy][width=\makeupwidth,height=12cm]}}

\dorecurse{2}{\input knuth \par}

\subsection{Four subsection}

\dorecurse{7}{\input knuth \par}

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

Re: [NTG-context] Overwritten text with newcolumnsets

2018-02-08 Thread Charles Vejnar

Here it is:

\usemodule[newcolumnsets]
\setuplayout[grid=yes]
\setupbodyfont[10pt]
\definecolumnset[example][n=2]
\starttext
\startcolumnset[example]
\dorecurse{7}{\input knuth \par}
\placefigure[center]{Legend.}{\hbox{\externalfigure[dummy][height=8cm]}}
\dorecurse{8}{\input knuth \par}
\stopcolumnset
\stoptext

On 02/08/2018 04:38 AM, Henning Hraban Ramm wrote:

Am 2018-02-08 um 05:22 schrieb Charles Vejnar <charles.vej...@yale.edu>:


I am trying to add a figure now using \placefigure. But the placement in 
brackets is always ignored. AFAIK it's normal to get a figure at the top of a 
new page when it's larger than a column but it's also always on the left. I 
would like to get it horizontally centered (on the top of the next page as it 
is already). Any way to achieve that?


Please show us your code, otherwise nobody can spot the problem.


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] Overwritten text with newcolumnsets

2018-02-07 Thread Charles Vejnar

Thanks Hans. It did fix it.

I am trying to add a figure now using \placefigure. But the placement in 
brackets is always ignored. AFAIK it's normal to get a figure at the top 
of a new page when it's larger than a column but it's also always on the 
left. I would like to get it horizontally centered (on the top of the 
next page as it is already). Any way to achieve that?


Thanks again for your help.

Charles

On 02/06/2018 06:03 PM, Hans Hagen wrote:

On 2/6/2018 9:51 PM, Charles Vejnar wrote:

Hi,

I am trying to get a two-column document with figures. After failing 
with \startcolumns, I tried with newcolumnsets. But the most basic 
example (see below) is not working properly. The text at the bottom of 
the first page gets overwritten by the first two line of the column.


I think this problem was also reported on Sept 22, 2016 by Jose Luis 
Arellano on this mailing-list.


Do you confirm the problem? Any way/plan to fix it?

Thanks so much for your help.

Best,
Charles


% start of example
\usemodule[newcolumnsets]
\definecolumnset[example][n=2]
\starttext
\startcolumnset[example]
\dorecurse{12}{\input knuth \par}
\stopcolumnset
\stoptext
% end of example

i'm not surew what goes wrong there but you can best run with

\setuplayout[grid=yes]

___
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] Overwritten text with newcolumnsets

2018-02-06 Thread Hans Hagen

On 2/6/2018 9:51 PM, Charles Vejnar wrote:

Hi,

I am trying to get a two-column document with figures. After failing 
with \startcolumns, I tried with newcolumnsets. But the most basic 
example (see below) is not working properly. The text at the bottom of 
the first page gets overwritten by the first two line of the column.


I think this problem was also reported on Sept 22, 2016 by Jose Luis 
Arellano on this mailing-list.


Do you confirm the problem? Any way/plan to fix it?

Thanks so much for your help.

Best,
Charles


% start of example
\usemodule[newcolumnsets]
\definecolumnset[example][n=2]
\starttext
\startcolumnset[example]
\dorecurse{12}{\input knuth \par}
\stopcolumnset
\stoptext
% end of example

i'm not surew what goes wrong there but you can best run with

\setuplayout[grid=yes]



-
  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] Overwritten text with newcolumnsets

2018-02-06 Thread Charles Vejnar

Hi,

I am trying to get a two-column document with figures. After failing 
with \startcolumns, I tried with newcolumnsets. But the most basic 
example (see below) is not working properly. The text at the bottom of 
the first page gets overwritten by the first two line of the column.


I think this problem was also reported on Sept 22, 2016 by Jose Luis 
Arellano on this mailing-list.


Do you confirm the problem? Any way/plan to fix it?

Thanks so much for your help.

Best,
Charles


% start of example
\usemodule[newcolumnsets]
\definecolumnset[example][n=2]
\starttext
\startcolumnset[example]
\dorecurse{12}{\input knuth \par}
\stopcolumnset
\stoptext
% end of example
___
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] columnsetspan extra line

2016-12-29 Thread Mikael P. Sundqvist
Dear all,

I'm struggling with the column environments these days. The code below
runs fine, but there are some problems with the result.

1) There is an extra blank line at the top of the left column. I can
get rid of it with a \vskip-\baselineksip (commented out in the
example) but that feels like a hack. Does anyone see why it is there
from the beginning?

2) Why is the frame something like 3 lines down from the top of the
page? Can I force it to be on top?

3) Is there a simple way to define the height of the frame (that is
now set to 0.3\textheight) to be a certain number of lines?

%%% Start of example
\usemodule[newcolumnsets]

\setuplayout[
grid=yes,
]

\showgrid

\definecolumnset[example][n=2]
\definecolumnsetspan[intro][n=2,after=,before=,]


\define[1]\mychapnum{%
\startuseMPgraphic{chapnum}
label(btex {\bf #1} etex scaled 12,
(0.5*OverlayWidth,0.5*OverlayHeight)) withcolor darkred;
setbounds currentpicture to unitsquare xyscaled (OverlayWidth,OverlayHeight);
\stopuseMPgraphic
}
\defineoverlay[chapnum][\useMPgraphic{chapnum}]

\define[1]\mychaptext{%
\startcolumnsetspan[intro]
\startframedtext[align={middle,lohi},background=chapnum,frame=on,framecolor=darkyellow,rulethickness=2pt,width=\makeupwidth,height=0.3\textheight,after=,before=]
\setupinterlinespace[line=60pt] #1
\stopframedtext
\stopcolumnsetspan
}


\setuphead[chapter][
style={\definedfont[Serif at 48pt]},
numbercommand=\mychapnum,
textcommand=\mychaptext,
after=,
before=,
page=no,
]


\starttext

\startcolumnset[example]
\chapter{A chapter}

%\vskip-\baselineskip
\dorecurse{2}{\input knuth \par}
\stopcolumnset


\stoptext
%%% end of example


ctx-listexample21.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] Strange numbers appear (when figures are moved in columnsets)

2016-12-28 Thread Mikael P. Sundqvist
Sorry for the noise. Adding

\usemodule[newcolumnsets]

makes the numbers go away.

/Mikael

On Wed, Dec 28, 2016 at 7:08 PM, Mikael P. Sundqvist <mic...@gmail.com> wrote:
> Hi!
>
> The example below gives strange numbers (4110) and (1410) in the pdf
> file, and the latter one kicks me out of the grid. Is this a bug?
>
> /Mikael (yes, I'm using a late standalone)
>
> %% start of example
> \setuplayout[
> grid=yes,
> ]
>
> \showgrid
>
> \definecolumnset[example][n=2]
>
> \starttext
>
> \startcolumnset[example]
> \dorecurse{2}{\input knuth \par}
> \placefigure[btlr]{Caption}{\blackrule[width=\textwidth,height=4cm]}
> \input knuth
> \stopcolumnset
> \stoptext
> %% end of example
___
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] Strange numbers appear (when figures are moved in columnsets)

2016-12-28 Thread Mikael P. Sundqvist
Hi!

The example below gives strange numbers (4110) and (1410) in the pdf
file, and the latter one kicks me out of the grid. Is this a bug?

/Mikael (yes, I'm using a late standalone)

%% start of example
\setuplayout[
grid=yes,
]

\showgrid

\definecolumnset[example][n=2]

\starttext

\startcolumnset[example]
\dorecurse{2}{\input knuth \par}
\placefigure[btlr]{Caption}{\blackrule[width=\textwidth,height=4cm]}
\input knuth
\stopcolumnset
\stoptext
%% end of example


ctx-listexample20.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] Different column modes and NAW

2016-12-19 Thread Mikael P. Sundqvist
On Sun, Dec 18, 2016 at 9:19 PM, Mikael P. Sundqvist <mic...@gmail.com> wrote:
> Dear list,
>
> I just realized that the very nice articles in "Nieuw archief voor
> Wiskunde" (see 
> http://www.nieuwarchief.nl/serie5/index.php?deel=17=4=1
> ) are typeset with ConTeXt (at least it says so at
> http://www.nieuwarchief.nl/homeitems.php?onderwerp=2=1).
>
> I get curious. Does anyone here know what column mode (i.e.
> \startcolumn \stopcolumn, \startmixedcolumn\stopmixedcolumn,
> columnsets or even the new module newcolumnsets?) they use, and how
> they get mathematics to play with it without breaking the grid?
>
> Also, if I start to write a new document with two columns today (it
> will contain lots of images and lots of formulas and enumerations),
> which column mode is the preferred one? Is there any documentation
> (except the source) for the newcolumnsets? I want to be able to have
> images span both columns and it would be nice if it played well with
> sections as well.
>
> Best regards, Mikael

Dear list,

(I got some information offlist from Hans regarding NAW, it seems they
used an old pdftex-based hacked version)

I gave no example. I decided now that I would like to try the new
pagegrid out (loaded via newcolumnsets module now). But I somehow fail
even with a simple(?) example: Could someone point out what I do
wrong? If you have a small snippet of working code (even with
columnsetspans, I left them out since I think this simpler document
must work first) I'm very happy to look at it.

Also, the placement options for \placefigure seem to be ignored (try
for example bottom). Are they not implemented yet?

Best regards, Mikael

% start of example
\usemodule[newcolumnsets]

\setupbodyfont[9pt]

\definecolumnset[example][n=2]

\starttext

\startcolumnset[example]
\section{Test}
\input tufte
\startformula
f(x)=f(0)+\int_0^x f'(t)\,dt
\stopformula
\input knuth
\placefigure{Caption}{\blackrule[width=4cm,height=3cm]}
\dorecurse{6}{\input knuth \par}
\stopcolumnset

\stoptext
% end of example


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

[NTG-context] TwoColumns in two different languages, with alternate text on even and odd page.

2016-11-18 Thread Jean-Pierre Delange
Hi Arthur and Hans,

I make a statement on a part of the Arthur's reply (" there are no real-life 
examples of documents that use it") : in fact, there are rare examples of such 
printing materials : scholar editing and printing of Ancient texts are mainly 
(if I am right) such printing material (including Ancient Armenian or Georgian 
liturgic hymns). 

An example of such a book : on the even page you read a 'twocolumns' text (say 
: Greek text with its Latin translation) with there own page setting, including 
Stephanus apparatus in the footer, and several levels of footnotes within the 
same footer. Commentaries (in English, French, German, usw) and the like are on 
the odd page. The average (or regular) situation seems to be less complicated : 
Greek or Latin text on the even page and translation on the odd page. With 
Pablo Rodriguez help (actually, this is mainly Pablo's work) I have tried to 
figure such a goal. But before setting up the even/odd page, there is an issue 
which one has to fix: the text on two columns is well fitted on the first page, 
but not on the following pages. How to fix this issue with Greek text on the 
left column and Latin Text on the right one ? See the mismatch between texts on 
the second page in the sample below .
Thank you very much for your remarks and advices.
JP

\setuplanguage[agr][patterns={agr,la}]
\mainlanguage[agr] % Greek as main language
 \definefallbackfamily [mainface] [serif] [GFS Didot] [preset=range:greek]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella]
\setuplayout[header=2cm, footer=2cm]
  \setupnotes[compress=yes]
\setupnotations[alternative=serried]
\definelinenote[aNote]
\definelinenote[bNote][n=2]
\definelinenote[cNote][n=3]
\definelinenote[dNote][paragraph=yes]
\def\ANote#1#2{#1\aNote{#1] #2}}
\def\BNote#1#2{#1\bNote{#1] #2}}
\def\CNote#1#2{#1\cNote{#1] #2}}
\def\DNote#1#2{#1\dNote{#1] #2}}
\setupalign[hz, hanging]
\setuptolerance[strict]
\setuplinenumbering[step=5, location=inright, distance=1ex,
 align=center, width=0.5em]
\definemargindata[Stephanus][location=inner, distance=2ex,
 style=\em]
\setupbodyfont[mainface, 7.8pt]
   % \definecolumnset[example][n=2, balance=yes]
\starttext
\start\fr % some text in French
Définir un `apparat critique' et le mettre en page avec un
traitement de texte courant est un véritable casse-tête. LaTeX et
ConTeXt offrent des outils d'automatisation encore assez mal connus
dans la communauté des éditeurs, notamment dans l'édition
savante, pour la collation et la comparaison de textes
médiévaux.\par
\stop
\blank
\start\en % some text in English
{\em It is not very easy to define a `criticus apparatus' with some current 
tools (like Microsoft Office Word or LibreOffice). Maybe \ConTeXt offers some 
ways that seem easier, in order to improve clear and precise printing.}
  \stop


\dorecurse{4}{\startcolumns[n=2, balance=yes]
\Stephanus{1a} Ὁμώνυμα λέγεται ὧν ὄνομα μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα 
λόγος τῆς οὐσίας ἕτερος, οἷον ζῷον ὅ τε ἄνθρωπος καὶ τὸ γεγραμμένον• τούτων γὰρ 
ὄνομα μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα λόγος τῆς οὐσίας ἕτερος• ἐὰν γὰρ ἀποδιδῷ 
τις τί ἐστιν αὐτῶν ἑκατέρῳ τὸ ζῴῳ εἶναι, ἴδιον ἑκατέρου λόγον ἀποδώσει. 
συνώνυμα δὲ λέγεται ὧν τό τε ὄνομα κοινὸν καὶ ὁ κατὰ τοὔνομα λόγος τῆς οὐσίας ὁ 
αὐτός, οἷον ζῷον ὅ τε ἄνθρωπος καὶ ὁ βοῦς• τούτων γὰρ ἑκάτερον κοινῷ ὀνόματι 
προσαγορεύεται ζῷον, καὶ ὁ λόγος δὲ τῆς οὐσίας ὁ αὐτός• ἐὰν γὰρ ἀποδιδῷ τις τὸν 
ἑκατέρου λόγον τί ἐστιν αὐτῶν ἑκατέρῳ τὸ ζῴῳ εἶναι, τὸν αὐτὸν λόγον ἀποδώσει.  

\column

\startlinenumbering[continue]
Aequivoca dicuntur quorum \CNote{nomen}{first note} solum
commune est, secundum nomen vero \ANote{substantiae}{second note}
\ANote{ratio}{second note} diversa, ut animal
\DNote{homo}{third note} et quod pingitur. Horum enim solum nomen commune 
est, secundum nomen vero substantiae ratio diversa; si enim quis assignet quid 
est utrique eorum quo sint animalia, propriam assignabit utriusque rationem. 
Univoca vero dicuntur quorum et nomen commune est et secundum nomen eadem 
substantiae ratio, ut animal homo atque bos.

\stoplinenumbering

\stopcolumns}
\stoptext



- Mail original -
De: "Arthur Reutenauer" <arthur.reutena...@normalesup.org>
À: "Mailing list for ConTeXt users" <ntg-context@ntg.nl>
Envoyé: Mardi 15 Novembre 2016 17:39:40
Objet: Re: [NTG-context] Wrtiting in two languages

> 2) Second situation : you want to print a translation on the same page (say 
> the even page) as the original Greek text, with the commentary (or whatever) 
> on the odd page. I fear there is no way to do this at the time (that was 
> impossible with CTX early in 2016). I didn't retry these former weeks...

  Actually, there has been, for quite a long time, a mechanism called
streams in ConTeXt that aimed at doing exa

Re: [NTG-context] Columnset and footnotes

2016-09-23 Thread Jose Luis Arellano
Hello list.
Sorry for bump my own thread. I just want to know if there is a bug in
new code (\usemodule[newcolumnsets]), if not, how can i solve the
overwrite text issue described above?

Thanks

2016-09-22 4:47 GMT-03:00 Jose Luis Arellano <jose.4rell...@gmail.com>:
> Thank you Hans, Otared.
>
> Hans, when I use the new module, I get some errors in my document. A
> couple of question about it:
> 1. How can I balance the the text in columns?
> 2. As you can see, at compiling the following code, the text at final
> of page is overwritten. Is there a way to solve this?
>
> \usemodule[newcolumnsets]
> \definecolumnset[n2][n=2]
> \starttext
> \startcolumnset[n2]
> Footnote \footnote[foo]{This is a footnote.} \dorecurse{5}{\input linden}
> \stopcolumnset
> \stoptext
>
> Thanks again
___
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] Columnset and footnotes

2016-09-22 Thread Jose Luis Arellano
Thank you Hans, Otared.

Hans, when I use the new module, I get some errors in my document. A
couple of question about it:
1. How can I balance the the text in columns?
2. As you can see, at compiling the following code, the text at final
of page is overwritten. Is there a way to solve this?

\usemodule[newcolumnsets]
\definecolumnset[n2][n=2]
\starttext
\startcolumnset[n2]
Footnote \footnote[foo]{This is a footnote.} \dorecurse{5}{\input linden}
\stopcolumnset
\stoptext

Thanks again
___
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] Columnset and footnotes

2016-09-22 Thread Hans Hagen

On 9/22/2016 8:14 AM, Otared Kavian wrote:

Hi,

Indeed it seems that there is a bug with \columnset. However the separation 
rule for the footnotes is shown if one uses \startcolumns, as can be seen with 
the following example.


this mechanism will be replaced by a rewrite so test with 
\usemodule[newcolumnsets]



Best regards: OK
%%% begin column-footnote.tex
\definecolumnset[n2][n=2,balance=yes]
\setupfootnotes[location=page]
\starttext
\startcolumnset[n2]
Footnote \footnote[foo]{This is a footnote.} \input linden
\stopcolumnset

\page
\startcolumns[n=2,rule=on]
\input knuth.tex
\par
\input knuth.tex
This is a footnote\footnote {\input ward}
\stopcolumns
\stoptext
%%% end column-footnote.tex


On 22 Sep 2016, at 05:22, Jose Luis Arellano <jose.4rell...@gmail.com> wrote:

Dear list.
When i write a footnote in my document (two columns), ConTeXt do not
draw the hrule above the footnote.
What is the problem?

\definecolumnset[n2][n=2,balance=yes]
\starttext
\startcolumnset[n2]
Footnote \footnote[foo]{This is a footnote.} \input linden
\stopcolumnset
\stoptext

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




--

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

Re: [NTG-context] Columnset and footnotes

2016-09-22 Thread Otared Kavian
Hi,

Indeed it seems that there is a bug with \columnset. However the separation 
rule for the footnotes is shown if one uses \startcolumns, as can be seen with 
the following example.

Best regards: OK
%%% begin column-footnote.tex
\definecolumnset[n2][n=2,balance=yes]
\setupfootnotes[location=page]
\starttext
\startcolumnset[n2]
Footnote \footnote[foo]{This is a footnote.} \input linden
\stopcolumnset

\page 
\startcolumns[n=2,rule=on]
\input knuth.tex
\par
\input knuth.tex
This is a footnote\footnote {\input ward}
\stopcolumns
\stoptext
%%% end column-footnote.tex

> On 22 Sep 2016, at 05:22, Jose Luis Arellano <jose.4rell...@gmail.com> wrote:
> 
> Dear list.
> When i write a footnote in my document (two columns), ConTeXt do not
> draw the hrule above the footnote.
> What is the problem?
> 
> \definecolumnset[n2][n=2,balance=yes]
> \starttext
> \startcolumnset[n2]
> Footnote \footnote[foo]{This is a footnote.} \input linden
> \stopcolumnset
> \stoptext
> 
> Thanks
> ___
> 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] Columnset and footnotes

2016-09-21 Thread Jose Luis Arellano
Dear list.
When i write a footnote in my document (two columns), ConTeXt do not
draw the hrule above the footnote.
What is the problem?

\definecolumnset[n2][n=2,balance=yes]
\starttext
\startcolumnset[n2]
Footnote \footnote[foo]{This is a footnote.} \input linden
\stopcolumnset
\stoptext

Thanks
___
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] columnset and placefigure

2016-08-19 Thread Hans Hagen

On 8/19/2016 7:38 PM, Henri Menke wrote:

Bump

On 07/20/2016 11:24 AM, Henri Menke wrote:

Dear list,

I'm using columnsets to typeset stuff for a conference poster.  I can't
use paragraphs or columns, because these do not allow to set frames or
backgrounds.  Currently I do not use the column-spanning features, but I
might in the future.

The thing is, when I place a figure using `\placefigure` and the column
distance is too large (i.e. the columns too narrow), the figure is not
placed on spot but flushed to the next page.  I'm unsure what the exact
value for this threshold is and based on which criteria the figure is
flushed.  While this is not a problem in a normal document, it is for
sure for a poster (I have not seen any multi-page posters yet).

Please find below an example to illustrate my problem (with version
2016.05.17 19:20 from TL2016).

Cheers, Henri

---

\definecolumnset[threecolumn][n=3]
\startmode[bug]
  \setupcolumnset[threecolumn][each][distance=3cm,frame=on]
\stopmode
\startnotmode[bug]
  \setupcolumnset[threecolumn][each][distance=2.999cm,frame=on]
\stopnotmode
\setupcolumnset[threecolumn][1][distance=0pt]

\starttext

\startcolumnset[threecolumn]
  \placefigure[force,here]{}{\externalfigure[cow][width=\textwidth]}
\column
\stopcolumnset

\stoptext


best do your experiments with the new column sets (put this on top of 
your file for now:


\input page-cst.mkiv



--

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

Re: [NTG-context] columnset and placefigure

2016-08-19 Thread Henri Menke
Bump

On 07/20/2016 11:24 AM, Henri Menke wrote:
> Dear list,
> 
> I'm using columnsets to typeset stuff for a conference poster.  I can't
> use paragraphs or columns, because these do not allow to set frames or
> backgrounds.  Currently I do not use the column-spanning features, but I
> might in the future.
> 
> The thing is, when I place a figure using `\placefigure` and the column
> distance is too large (i.e. the columns too narrow), the figure is not
> placed on spot but flushed to the next page.  I'm unsure what the exact
> value for this threshold is and based on which criteria the figure is
> flushed.  While this is not a problem in a normal document, it is for
> sure for a poster (I have not seen any multi-page posters yet).
> 
> Please find below an example to illustrate my problem (with version
> 2016.05.17 19:20 from TL2016).
> 
> Cheers, Henri
> 
> ---
> 
> \definecolumnset[threecolumn][n=3]
> \startmode[bug]
>   \setupcolumnset[threecolumn][each][distance=3cm,frame=on]
> \stopmode
> \startnotmode[bug]
>   \setupcolumnset[threecolumn][each][distance=2.999cm,frame=on]
> \stopnotmode
> \setupcolumnset[threecolumn][1][distance=0pt]
> 
> \starttext
> 
> \startcolumnset[threecolumn]
>   \placefigure[force,here]{}{\externalfigure[cow][width=\textwidth]}
> \column
> \stopcolumnset
> 
> \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] columnset and placefigure

2016-07-20 Thread Henri Menke
Dear list,

I'm using columnsets to typeset stuff for a conference poster.  I can't
use paragraphs or columns, because these do not allow to set frames or
backgrounds.  Currently I do not use the column-spanning features, but I
might in the future.

The thing is, when I place a figure using `\placefigure` and the column
distance is too large (i.e. the columns too narrow), the figure is not
placed on spot but flushed to the next page.  I'm unsure what the exact
value for this threshold is and based on which criteria the figure is
flushed.  While this is not a problem in a normal document, it is for
sure for a poster (I have not seen any multi-page posters yet).

Please find below an example to illustrate my problem (with version
2016.05.17 19:20 from TL2016).

Cheers, Henri

---

\definecolumnset[threecolumn][n=3]
\startmode[bug]
  \setupcolumnset[threecolumn][each][distance=3cm,frame=on]
\stopmode
\startnotmode[bug]
  \setupcolumnset[threecolumn][each][distance=2.999cm,frame=on]
\stopnotmode
\setupcolumnset[threecolumn][1][distance=0pt]

\starttext

\startcolumnset[threecolumn]
  \placefigure[force,here]{}{\externalfigure[cow][width=\textwidth]}
\column
\stopcolumnset

\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] LaTeX reledmac: what about ConTeXt ?

2016-05-22 Thread Hans Hagen

On 5/22/2016 9:20 AM, Jean-Pierre Delange wrote:

Hi Pablo,

Reading the documentation again (i.e. columnsets.pdf), I see that the module 
\definecolumnset[example][n=2] allow how to define how many pages we want a set 
of columns, each of one being define with its own number of lines and so on. 
Therefore, the behaviour of the first page will be different of the second, 
etc. Further, one have to imagine a first recto (odd) page blank, followed by 
an even page (even, left page) with a double columns (greek-latin text) and the 
next third page (odd one) with commentaries. Then, one have to define the 
layout, because the number of lines of the greek-latin text on left page has to 
fit with the commentaries on the right page (and because it is not the same 
layout). Moreover, one can imagine for the moment a printed odd page (on left 
page) and a blank one (on the right page).
Maybe it is this behaviour (when a page is filled)- and necessary there is 
another behaviour to deal with when context parse for the even page - about 
which we have to scrutinize.

The purpose of columnset module is to set how many column for a single page and 
how to fit this columns to a number of defined pages (with titles and 
pictures). Its goal is not to make separate columns on the same page. At least 
as far as I can understand the process.


indeed .. meant for magazine like typesetting or other special purposes 
(often a mix between automatic and handcrafted)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] LaTeX reledmac: what about ConTeXt ?

2016-05-22 Thread Jean-Pierre Delange
Hi Pablo and others columns addicts !
I answer to myself, trying to understand why there is a mismatch when trying to 
parse a bunch of pages with 2 columns. It seems to have a problem with filling 
the page, even on the first page. I get back to basics and to the 
documentation, testing an explicit sample (sample 901, page 45, on numbering 
lines on 2 columns set).

I change the section title and I copy/paste the first paragraph of an english 
translation of an Aristotelian text. I put 'regular' instead of 'bold' for 
numbering lines.
Please, would you mind to test this following code ?
JP



\usemodule[newcolumnsets]
\definecolumnset[example][n=2,page=middle,distance=1cm]
\setupcolumnset
[example]
[background=contrast]
% \definecolor[fakerulecolor][white] \faketriggertrue
\setuphead
[section]
[style=\bfd]
\setuplinenumbering
[style=regular,
distance=0pt,
align=inner]
\starttext
\startcolumnset[example]
\dorecurse{30}{
\startsection[title=Things are said to be named #1]
\startlinenumbering
Things are said to be named 'equivocally' when, though they have a common name, 
the definition corresponding with the name differs for each. Thus, a real man 
and a figure in a picture can both lay claim to the name 'animal'; yet these 
are equivocally so named, for, though they have a common name, the definition 
corresponding with the name differs for each. For should any one define in what 
sense each is an animal, his definition in the one case will be appropriate to 
that case only.\par
\stoplinenumbering
\stopsection}
\stopcolumnset
\stoptext





- Mail original -
De: "Jean-Pierre Delange" <adeiman...@free.fr>
À: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Envoyé: Dimanche 22 Mai 2016 09:20:16
Objet: Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

Hi Pablo,

Reading the documentation again (i.e. columnsets.pdf), I see that the module 
\definecolumnset[example][n=2] allow how to define how many pages we want a set 
of columns, each of one being define with its own number of lines and so on. 
Therefore, the behaviour of the first page will be different of the second, 
etc. Further, one have to imagine a first recto (odd) page blank, followed by 
an even page (even, left page) with a double columns (greek-latin text) and the 
next third page (odd one) with commentaries. Then, one have to define the 
layout, because the number of lines of the greek-latin text on left page has to 
fit with the commentaries on the right page (and because it is not the same 
layout). Moreover, one can imagine for the moment a printed odd page (on left 
page) and a blank one (on the right page).
Maybe it is this behaviour (when a page is filled)- and necessary there is 
another behaviour to deal with when context parse for the even page - about 
which we have to scrutinize.

The purpose of columnset module is to set how many column for a single page and 
how to fit this columns to a number of defined pages (with titles and 
pictures). Its goal is not to make separate columns on the same page. At least 
as far as I can understand the process.
JP

- Mail original -
De: "Jean-Pierre Delange" <adeiman...@free.fr>
À: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Envoyé: Samedi 21 Mai 2016 12:16:44
Objet: Re: [NTG-context] LaTeX reledmac: what about ConTeXt ?

Hi Pablo,

I'm trying to find a path through the 2 columns set greek-latin with 'criticus 
apparatus'.

1. If you put a bigger text for avoid the \dorecurse command, with 
\definecolumnset[example][n=2, balance=yes] in the preamble, then the following 
coding (note: \startcolumnset and \stopcolumnset commands), all is well as ends 
well IF ONLY the text's length is less than a page. If the text length is 
larger than one page, there is a mismatch as a result, where the latin text 
goes is overprinted on the French text and the footnotes are overprinted by the 
Greek text.

2. Moreover, if you comment the \dorecurse command, with a short Greek and 
Latin text (only a paragraph each), all the notes are well printed, the same 
for the numbering line, but the French text is overprinted by the right column 
Latin ! (Points 1., and 2. without  ConteXt complaining or any error in the log 
file.

3. Now, return to the \dorecurse command, as follow : 
\dorecurse{8}{
\startcolumnset[example]{
\Stephanus{1a} [1a] Ὁμώνυμα [...greek text...]
etc.
The result is the same as point 2.
I conclude there is a problem with the columnset command...

4. Now, I wonder if there is not a problem with brackets around the Greek-Latin 
text...
Jp



\starttext
\start\fr % some text in French
Définir un apparat critique et le mettre en page avec un
traitement de texte courant est un véritable casse-tête. LaTeX et
ConTeXt offrent des outils d'automatisation encore assez mal connus
dans la communauté des éditeurs, notamment dans l'édition
savante, pour la collation et la comparaison de t

  1   2   3   >