[NTG-context] Re: Visually balanced columns

2024-03-27 Thread Wolfgang Schuster

Alexey Kryukov schrieb am 27.03.2024 um 14:02:

Hi list,

I'd like to know if its is possible to get visually balanced
mixedcolumns in lmtx. For example, if I have \blank's between
paragraphs, I would like them to be stretched or expanded by
a such way that the bottommost lines have the same vertical
position -- no matter, how many lines there are in each column and how
exactly they are aligned.

If I understand correctly, that's how the multicols environment in
LaTeX works, and that's how old-multicolumns worked -- but this module
seems to be no longer supported in lmtx.

I tried to disable gridfitting for startcolumns, but it produces a
completely distorted output.


The pagecolumns environment supports bottom aligned content.

\setupwhitespace[medium]

\setupalign[depth]

\starttext

\startpagecolumns
\dorecurse{20}{\samplefile{jojomayer}\par}
\stoppagecolumns

\stoptext

Wolfgang
___
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] Visually balanced columns

2024-03-27 Thread Alexey Kryukov
Hi list,

I'd like to know if its is possible to get visually balanced
mixedcolumns in lmtx. For example, if I have \blank's between
paragraphs, I would like them to be stretched or expanded by
a such way that the bottommost lines have the same vertical
position -- no matter, how many lines there are in each column and how
exactly they are aligned.

If I understand correctly, that's how the multicols environment in
LaTeX works, and that's how old-multicolumns worked -- but this module
seems to be no longer supported in lmtx.

I tried to disable gridfitting for startcolumns, but it produces a
completely distorted output.

-- 
Regards,
Alexey Kryukov 

Moscow State University
Faculty of History
___
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
___


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

2020-05-22 Thread Wolfgang Schuster

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

Hello,

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


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

   \blank

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


My fault? Bug?


Yes and no.

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


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


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

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


Re: [NTG-context] LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace

2020-03-23 Thread T. Kurt Bond
Yes, that did the trick!  Thanks!

On Mon, Mar 23, 2020 at 3:15 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> T. Kurt Bond schrieb am 23.03.2020 um 16:50:
> > It turns out that the extra whitespace before and after the section
> > headers in the body appears when I put \startcolumns[n=2] before the
> > body text and \stopcolumns after it.  Here's the MWE, just slightly
> > modified from your example:
> >
> >  begin example
> > [...]
> >  end example
>
> The old columns environment was replaced a while ago with the newer
> (although available since a few years) mixedcolumns environment.
>
> A big difference between the old columns code and new code is that the
> new code relies on a page grid which can lead to extra lines in the
> output, because ConTeXt adds extra space to put text on the grid.
>
> When you don't care about the grid you can disable it for the columns
> environment but this has to be done also for headers which have their
> own grid option.
>
> Another option is to try the pagecolumns environment, which is another
> environment for multi columns text but it's a very recent addition and
> lacks some features like column balancing.
>
>  begin columns
> \setuphead
>[chapter,section,subsection,subsubsection]
>[before={\blank[nowhite]},
> after={\blank[nowhite]},
> grid=no]
>
> \setupwhitespace
>[medium]
>
> \setuplist
>[chapter,section,subsection,subsubsection]
>[before={\blank[nowhite]},
> after={\blank[nowhite]}]
>
> \setupcolumns
>[grid=no]
>
> \starttext
>
> \startcolumns
>
> \completecontent
>
> \chapter{Chapter}
>
> \samplefile{knuth}
>
> \section{Section}
>
> \samplefile{weisman}
>
> \subsection{Subsection}
>
> \samplefile{weisman}
>
> \subsubsection{Subsubsection}
>
> \samplefile{weisman}
>
> \stopcolumns
>
> \stoptext
>  end columns
>
> Wolfgang
>


-- 
T. Kurt Bond, tkurtb...@gmail.com
___
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] LMTX running on macOS Catalina; fuzzy paragraphs; unwanted whitespace

2020-03-23 Thread Wolfgang Schuster

T. Kurt Bond schrieb am 23.03.2020 um 16:50:
It turns out that the extra whitespace before and after the section 
headers in the body appears when I put \startcolumns[n=2] before the 
body text and \stopcolumns after it.  Here's the MWE, just slightly 
modified from your example:


 begin example
[...]
 end example


The old columns environment was replaced a while ago with the newer 
(although available since a few years) mixedcolumns environment.


A big difference between the old columns code and new code is that the 
new code relies on a page grid which can lead to extra lines in the 
output, because ConTeXt adds extra space to put text on the grid.


When you don't care about the grid you can disable it for the columns 
environment but this has to be done also for headers which have their 
own grid option.


Another option is to try the pagecolumns environment, which is another 
environment for multi columns text but it's a very recent addition and 
lacks some features like column balancing.


 begin columns
\setuphead
  [chapter,section,subsection,subsubsection]
  [before={\blank[nowhite]},
   after={\blank[nowhite]},
   grid=no]

\setupwhitespace
  [medium]

\setuplist
  [chapter,section,subsection,subsubsection]
  [before={\blank[nowhite]},
   after={\blank[nowhite]}]

\setupcolumns
  [grid=no]

\starttext

\startcolumns

\completecontent

\chapter{Chapter}

\samplefile{knuth}

\section{Section}

\samplefile{weisman}

\subsection{Subsection}

\samplefile{weisman}

\subsubsection{Subsubsection}

\samplefile{weisman}

\stopcolumns

\stoptext
 end columns

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

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


Re: [NTG-context] no vertical line between columns

2019-11-15 Thread Floris van Manen


On 15-11-2019 14:04, Wolfgang Schuster wrote:
> Use separator=rule, the columns environments uses since a few months
> the mixedcolumns mechanism but the you can load the old code base
> with \usemodule[old-multcolumns].

Is the new syntax the default for the new context only?
e.g. the online documentation doesn't mention the separator=rule syntax.

https://wiki.contextgarden.net/Command/setupcolumns

.F


pEpkey.asc
Description: application/pgp-keys
___
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] no vertical line between columns

2019-11-15 Thread Wolfgang Schuster

Floris van Manen schrieb am 15.11.2019 um 13:57:

Using the latest nov 14 version of context
i get now separating line between columns.


\startcolumns[n=2,rule=on]
\input knuth
\stopcolumns

Has the syntax changed?

Use separator=rule, the columns environments uses since a few months
the mixedcolumns mechanism but the you can load the old code base
with \usemodule[old-multcolumns].

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] vertical justification of mixedcolumns

2019-04-30 Thread mf

Hello list,
in this MWE the columns are not aligned at the bottom, and they are not 
at the bottom of the page:


\definevspacingamount[myBlank][5pt plus 5pt minus 2pt][5pt plus 5pt 
minus 2pt]

\starttext
\showgrid
\startmixedcolumns[n=2,balance=yes]
\dorecurse{2}{\input knuth \blank[myBlank]}
Another paragraph to make columns uneven.\par\blank[myBlank]
\dorecurse{3}{\input knuth \blank[myBlank]}
\stopmixedcolumns
\stoptext

Is there a way to configure mixedcolumns so that \blank[myBlank] is 
stretched or shrinked to get the two columns end aligned at the bottom 
of the page?


Thanks in advance,
Massimiliano
___
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] Latest changes in some size registers

2019-02-25 Thread Willi Egger
Hi Wolfgang,

that is a nice coincidence! I was stuck just today with this very issue! Thank 
you for this information.

Best

Willi

> On 25 Feb 2019, at 18:39, Wolfgang Schuster 
>  wrote:
> 
> Martin Bruchanov schrieb am 22.02.19 um 04:37:
>> Hi all,
>> 
>> I have some very condensed documents which should fit on one page:
>> 
>> http://gnulinux.guru/bash_cheatsheet.pdf
>> 
>> Without any major change in style definition, there is more space around 
>> sections or itemize:
>> 
>> http://gnulinux.guru/bash_cheatsheet_diff.pdf
>> 
>> Source code is here:
>> 
>> https://github.com/BruXy/gnulinux.guru/tree/master/bash_tahak
>> 
>> Did I miss some update which has introduced some different length settings?
>> 
>> I have version: 2019.02.14 16:57
> 
> The columns-environment uses now the newer mixedcolumns code
> which create by default different spaces around section titles.
> 
> The old columns code can be loaded as a module with
> \usemodule[old-multicolumns]
> 
> 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
> ___

___
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] Latest changes in some size registers

2019-02-25 Thread Martin Bruchanov

Hi Wolfang,

Thank you very much for both answers!

I have updated it on wiki:

https://wiki.contextgarden.net/Visual_Debugging#Layout

Regards,

BruXy

On 2019-02-25 1:39 p.m., Wolfgang Schuster wrote:

Martin Bruchanov schrieb am 22.02.19 um 04:37:

Hi all,

I have some very condensed documents which should fit on one page:

http://gnulinux.guru/bash_cheatsheet.pdf

Without any major change in style definition, there is more space 
around sections or itemize:


http://gnulinux.guru/bash_cheatsheet_diff.pdf

Source code is here:

https://github.com/BruXy/gnulinux.guru/tree/master/bash_tahak

Did I miss some update which has introduced some different length 
settings?


I have version: 2019.02.14 16:57


The columns-environment uses now the newer mixedcolumns code
which create by default different spaces around section titles.

The old columns code can be loaded as a module with
\usemodule[old-multicolumns]

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] Latest changes in some size registers

2019-02-25 Thread Wolfgang Schuster

Martin Bruchanov schrieb am 22.02.19 um 04:37:

Hi all,

I have some very condensed documents which should fit on one page:

http://gnulinux.guru/bash_cheatsheet.pdf

Without any major change in style definition, there is more space 
around sections or itemize:


http://gnulinux.guru/bash_cheatsheet_diff.pdf

Source code is here:

https://github.com/BruXy/gnulinux.guru/tree/master/bash_tahak

Did I miss some update which has introduced some different length 
settings?


I have version: 2019.02.14 16:57


The columns-environment uses now the newer mixedcolumns code
which create by default different spaces around section titles.

The old columns code can be loaded as a module with
\usemodule[old-multicolumns]

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] spacing

2018-11-08 Thread Henri Menke
On 9/11/18 11:41 AM, Henning Hraban Ramm wrote:
> Thank you, I only tried \usemodule[old-columnsets] before.
> 
> It’s really annoying if ConTeXt proves unreliable time and again.
> I’m trying to replace InDesign in my workflows as often as possible, but if I 
> need to check and rework my environments with every other beta, it’s no fun 
> and costs a lot of time.

Clearly you haven't understood the meaning of “beta”.
If you don't want your documents to break, don't update.

> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
> 
> Am 2018-11-08 um 18:32 schrieb Wolfgang Schuster 
> :
> 
>> The columns environment uses now the newer mixedcolumns mechanism which is 
>> the reason for the differences in your document.
>>
>> To use the older columns mechanism add \usemodule[old-multicolumns] to your 
>> document.
>>
>> Wolfgang
>>
>>
>> Henning Hraban Ramm schrieb am 07.11.18 um 22:53:
>>> In the last days I recognized that some of my ConTeXt projects behave 
>>> differently WRT spacing, not only with \framed, but also with heads - 
>>> everywhere there’s more space induced than before.
>>> The attached screenshot shows an example of before and after.
>>>
>>> The headings are set up like
>>>
>>> \setuphead[section,subject][page=no,
>>> before={\testpage[7]\blank},after=,
>>> previousnumber=no, sectionsegments=section]
>>> \setuphead[subsection,subsubject][style={\bf},
>>> before={\testpage[7]\blank[small]},after=,
>>> sectionsegments=section:subsection]
>>>
>>> "1 Aufnahme" is a section, "1.1" is a subsection; I always use the 
>>> start/stop version.
>>>
>>> To get back to the old behaviour, I need to replace the \blank commands 
>>> with a negative vskip of font size!
>>> And then there’s still space inserted if the heading starts at the top of a 
>>> column.
>>>
>>> I tried to come up with a MWE – headingspacetest.tex shows at least that 
>>> there’s always space inserted before section headers.
>>>
>>> It might be related to some font handling, since the spacing changes affect 
>>> different "things" in different projects – frames with my label stickers 
>>> and on my magazine covers, headings like here. Or maybe the changes are 
>>> unrelated.
>>>
>>> This change happened between ConTeXt versions 2018.07.27 and 2018.09.01. I 
>>> didn’t change my code.
>>>
>>> Unfortunately there are no older versions of ConTeXt to go back to any more.
> 
> ___
> 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] spacing

2018-11-08 Thread Henning Hraban Ramm
Thank you, I only tried \usemodule[old-columnsets] before.

It’s really annoying if ConTeXt proves unreliable time and again.
I’m trying to replace InDesign in my workflows as often as possible, but if I 
need to check and rework my environments with every other beta, it’s no fun and 
costs a lot of time.

Greetlings, Hraban
---
https://www.fiee.net
http://wiki.contextgarden.net
https://www.dreiviertelhaus.de
GPG Key ID 1C9B22FD

Am 2018-11-08 um 18:32 schrieb Wolfgang Schuster 
:

> The columns environment uses now the newer mixedcolumns mechanism which is 
> the reason for the differences in your document.
> 
> To use the older columns mechanism add \usemodule[old-multicolumns] to your 
> document.
> 
> Wolfgang
> 
> 
> Henning Hraban Ramm schrieb am 07.11.18 um 22:53:
>> In the last days I recognized that some of my ConTeXt projects behave 
>> differently WRT spacing, not only with \framed, but also with heads - 
>> everywhere there’s more space induced than before.
>> The attached screenshot shows an example of before and after.
>> 
>> The headings are set up like
>> 
>> \setuphead[section,subject][page=no,
>>  before={\testpage[7]\blank},after=,
>>  previousnumber=no, sectionsegments=section]
>> \setuphead[subsection,subsubject][style={\bf},
>>  before={\testpage[7]\blank[small]},after=,
>>  sectionsegments=section:subsection]
>> 
>> "1 Aufnahme" is a section, "1.1" is a subsection; I always use the 
>> start/stop version.
>> 
>> To get back to the old behaviour, I need to replace the \blank commands with 
>> a negative vskip of font size!
>> And then there’s still space inserted if the heading starts at the top of a 
>> column.
>> 
>> I tried to come up with a MWE – headingspacetest.tex shows at least that 
>> there’s always space inserted before section headers.
>> 
>> It might be related to some font handling, since the spacing changes affect 
>> different "things" in different projects – frames with my label stickers and 
>> on my magazine covers, headings like here. Or maybe the changes are 
>> unrelated.
>> 
>> This change happened between ConTeXt versions 2018.07.27 and 2018.09.01. I 
>> didn’t change my code.
>> 
>> Unfortunately there are no older versions of ConTeXt to go back to any more.

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

2018-11-08 Thread Wolfgang Schuster
The columns environment uses now the newer mixedcolumns mechanism which 
is the reason for the differences in your document.


To use the older columns mechanism add \usemodule[old-multicolumns] to 
your document.


Wolfgang


Henning Hraban Ramm schrieb am 07.11.18 um 22:53:

In the last days I recognized that some of my ConTeXt projects behave 
differently WRT spacing, not only with \framed, but also with heads - 
everywhere there’s more space induced than before.
The attached screenshot shows an example of before and after.

The headings are set up like

\setuphead[section,subject][page=no,
before={\testpage[7]\blank},after=,
previousnumber=no, sectionsegments=section]
\setuphead[subsection,subsubject][style={\bf},
before={\testpage[7]\blank[small]},after=,
sectionsegments=section:subsection]

"1 Aufnahme" is a section, "1.1" is a subsection; I always use the start/stop 
version.

To get back to the old behaviour, I need to replace the \blank commands with a 
negative vskip of font size!
And then there’s still space inserted if the heading starts at the top of a 
column.

I tried to come up with a MWE – headingspacetest.tex shows at least that 
there’s always space inserted before section headers.

It might be related to some font handling, since the spacing changes affect different 
"things" in different projects – frames with my label stickers and on my 
magazine covers, headings like here. Or maybe the changes are unrelated.

This change happened between ConTeXt versions 2018.07.27 and 2018.09.01. I 
didn’t change my code.

Unfortunately there are no older versions of ConTeXt to go back to any more.




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
___


___
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] rulecolor in columns

2018-02-23 Thread Wolfgang Schuster



Henning Hraban Ramm <mailto:te...@fiee.net>
23. Februar 2018 um 14:38
I tried to add the example to the garden, but at least there it 
doesn’t work:

http://wiki.contextgarden.net/Columns

As soon as I use \setupcolors, I get only a single column or the 
example doesn’t compile at all. Strange.


The garden uses MkIV where \color expects a argument (i.e. 
\color[]{}).



Below is a example how you can add a colored rule to \startcolumns but 
the better solution
is to switch to MkIV and and use mixedcolumns environment which has a 
option to change

the color of the rule between the columns.


\enableregime[utf-8]
\mainlanguage[fr]

\setupcolors[state=start]

% \unexpanded\def\ColumnsRule
%   {\bgroup
%\hskip\dimexpr(1.5\bodyfontsize+\linewidth)/2\relax
%\color[red]{\vrule width\linewidth}%
%\hskip\dimexpr(1.5\bodyfontsize+\linewidth)/2\relax
%\egroup}

\definemeasure[columndistance][2em]

\setupcolumns[distance=\measure{columndistance}]

\unexpanded\def\ColumnsRule
  {\bgroup
   \hskip\dimexpr(\measure{columndistance}+\linewidth)/2\relax
   \color[red]{\vrule width\linewidth}%
   \hskip\dimexpr(\measure{columndistance}+\linewidth)/2\relax
   \egroup}

\setupcolumns[rule=\ColumnsRule]

\starttext

\startcolumns
\input tufte
\stopcolumns

\stoptext


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

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

Re: [NTG-context] Undesirable space with mixedcolumns

2017-10-27 Thread Fabrice Couvreur
Hello,
I'm looking in the documentation and I think I found the key to remove the
white space under the mathematical formula.
Is this the best way to achieve optimal rendering using columns ?
Thank you
Fabrice


\definemixedcolumns
  [Mycolumns]
  [
n=2,
separator=rule,
rulecolor=darkred,
rulethickness=1pt,
balance=yes,
*grid=strut,*
  ]

\setupalign[verytolerant,stretch,hanging]

\starttext
\startMycolumns
On a \math{0< 0,8 < 1} donc \math{\lim\limits_{n \to +\infty} 0,8^n=0}.
Comme pour tout entier naturel \math{n}, on a : \math{u_n=-500\times
0,8^n+2\,000}, on en déduit que la limite de la suite \math{(u_n)} est
égale à 2\,000. Si l'évolution des utilisateurs se maintient à long terme,
le nombre de calculatrices vendues se stabiliserait autour de 2 millions.

\startformula
   \startmathalignment[n=2,align={right,left}]
 \NC (1+t)^3 \NC = 1,87\NR
 \NC 1+t \NC = 1,87^{\frac{1}{3}}  \NR
 \NC 1+t \NC = 1,23\NR
 \NC t   \NC =  0,23.  \NR
\stopmathalignment
\stopformula
\input ward
\stopMycolumns
\stoptext


Le 25 octobre 2017 à 14:32, Fabrice Couvreur <fabrice1.couvr...@gmail.com>
a écrit :

> Hello,
> I notice a space when I use the command \math{\lim\limits_{n \to +\infty}
> 0,8^n=0} and mixedcolumns.
> Thanks.
> Fabrice
> #
>
> \definemixedcolumns
>   [sectioncolumns]
>   [
> n=2,
> separator=rule,
> rulecolor=,
> balance=yes,
>   ]
>
> \setupalign[verytolerant,stretch,hanging]
>
> \starttext
> On a \math{0< 0,8 < 1} donc \math{\lim\limits_{n \to +\infty} 0,8^n=0}.
> Comme pour tout entier naturel \math{n}, on a : \math{u_n=-500\times
> 0,8^n+2\,000}, on en déduit que la limite de la suite \u est égale à
> 2\,000. Si l'évolution des utilisateurs se maintient à long terme, le
> nombre de calculatrices vendues se stabiliserait autour de 2 millions.
> \blank
> \startsectioncolumns
>   On a \math{0< 0,8 < 1} donc \math{\lim\limits_{n \to +\infty} 0,8^n=0}.
> Comme pour tout entier naturel \math{n}, on a : \math{u_n=-500\times
> 0,8^n+2\,000}, on en déduit que la limite de la suite \u est égale à
> 2\,000. Si l'évolution des utilisateurs se maintient à long terme, le
> nombre de calculatrices vendues se stabiliserait autour de 2 millions.
> \startsectioncolumns
>
> \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] Undesirable space with mixedcolumns

2017-10-25 Thread Fabrice Couvreur
Hello,
I notice a space when I use the command \math{\lim\limits_{n \to +\infty}
0,8^n=0} and mixedcolumns.
Thanks.
Fabrice
#

\definemixedcolumns
  [sectioncolumns]
  [
n=2,
separator=rule,
rulecolor=,
balance=yes,
  ]

\setupalign[verytolerant,stretch,hanging]

\starttext
On a \math{0< 0,8 < 1} donc \math{\lim\limits_{n \to +\infty} 0,8^n=0}.
Comme pour tout entier naturel \math{n}, on a : \math{u_n=-500\times
0,8^n+2\,000}, on en déduit que la limite de la suite \u est égale à
2\,000. Si l'évolution des utilisateurs se maintient à long terme, le
nombre de calculatrices vendues se stabiliserait autour de 2 millions.
\blank
\startsectioncolumns
  On a \math{0< 0,8 < 1} donc \math{\lim\limits_{n \to +\infty} 0,8^n=0}.
Comme pour tout entier naturel \math{n}, on a : \math{u_n=-500\times
0,8^n+2\,000}, on en déduit que la limite de la suite \u est égale à
2\,000. Si l'évolution des utilisateurs se maintient à long terme, le
nombre de calculatrices vendues se stabiliserait autour de 2 millions.
\startsectioncolumns

\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] problem with \startcolumns[distance=0pt]

2016-10-06 Thread Hans Hagen

On 10/6/2016 8:40 AM, Michael Witten wrote:

On Tue, 07 Aug 2012 00:22:08 +0200, Peter Muenster wrote:


The distance is not 0pt here (MKIV):

--8<---cut here---start->8---
\starttext
\startcolumns[distance=0pt]
\input tufte
\stopcolumns
\stoptext
--8<---cut here---end--->8---


It would appear that this problem is still the case, as of the
following version:


i'll fix it (more in tune with mkii as this is the old columns handler)

soon we will default to the mixedcolumns handler and the old mechanism 
will become a module


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

Re: [NTG-context] Adjust rule between columns

2016-07-14 Thread Henri Menke
On 07/13/2016 06:14 PM, Wolfgang Schuster wrote:
>> Henri Menke <mailto:henrime...@gmail.com>
>> 13. Juli 2016 um 15:38
>> Dear list,
>>
>> Is there a way to adjust the vertical rule which is set between columns?
>> I tried the obvious keys, but they do nothing.
>>
>> \starttext
>> \startcolumns
>> [
>> n=2,
>> rule=on,
>> rulecolor=red,% does nothing
>> rulethickness=5pt,% does nothing
>> ]
>> \input knuth
>> \stopcolumns
>> \stoptext
> You can use mixedcolumns.

Thanks!

> 
> \starttext
> \startmixedcolumns[separator=rule,rulecolor=red,rulethickness=5pt,balance=yes]
>   \input knuth
> \stopmixedcolumns
> \stoptext
> 

I have two follow-up questions.  First, is there a similar thing for
paragraphs (à la mixedparagraphs)?  Second, why are there two distinct
mechanisms for columns?

>> Furthermore, is there a possibility to control the appearance of the
>> rule per column as in the following (fictitious) commands?
>>
>> \setupcolumns[1][rulecolor=red,rulethickness=5pt]
>> \setupcolumns[2][rulecolor=green,rulethickness=1pt]
> AFAIK this is not possible.
> 
> Wolfgang

Cheers, Henri

> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
> 

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Adjust rule between columns

2016-07-13 Thread Wolfgang Schuster

Henri Menke <mailto:henrime...@gmail.com>
13. Juli 2016 um 15:38
Dear list,

Is there a way to adjust the vertical rule which is set between columns?
I tried the obvious keys, but they do nothing.

\starttext
\startcolumns
[
n=2,
rule=on,
rulecolor=red,% does nothing
rulethickness=5pt,% does nothing
]
\input knuth
\stopcolumns
\stoptext

You can use mixedcolumns.

\starttext
\startmixedcolumns[separator=rule,rulecolor=red,rulethickness=5pt,balance=yes]
  \input knuth
\stopmixedcolumns
\stoptext


Furthermore, is there a possibility to control the appearance of the
rule per column as in the following (fictitious) commands?

\setupcolumns[1][rulecolor=red,rulethickness=5pt]
\setupcolumns[2][rulecolor=green,rulethickness=1pt]

AFAIK this is not possible.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Issue with initial (new beta)

2015-11-20 Thread josephcanedo
Dear all,


First of all, thanks for new beta. It fixes the initial feature (in previous 
beta there were not typeset at all).


But while testing (a bit somewhat extreme example to push the limits) I came up 
with some initial letter hanging in the footer (page 3). Not sure the issue is 
linked with mixedcolumns but could not reproduce in plain vanilla environment. 

Also I noticed that if the paragraph is too short the initial overwrites the 
next paragraph(s) (to reproduce simply comment out the mixedcolumns).


MWE:


\starttext


\startmixedcolumns[balance=yes]
  \dorecurse{10}{ \setupinitial[location=text, n=4] \placeinitial \input{ward} 
\setupinitial[location=text, n=6] \placeinitial \input{knuth} }
\stopmixedcolumns


\stoptext



Admitedly this example has lots of lettrines. I added some \testcolumn to fix 
that, but now some columns are not balanced (page 3)


\starttext


\startmixedcolumns[balance=yes]
  \dorecurse{10}{ \setupinitial[location=text, n=4] \testcolumn[4] 
\placeinitial \input{ward} \setupinitial[location=text, n=6] \testcolumn[6] 
\placeinitial \input{knuth} }
\stopmixedcolumns


\stoptext



I was wondering if there were any settings to try more “aggressive” balancing 
(in the example here it might be difficult). or an alternative way to let the 
initial not hang into the footer that might be more “balanced” friendly. 


Many thanks for any hint,


Best regards


Joseph___
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] Best way to prevent wrong column/page break with par starting with \starthanging

2015-11-19 Thread josephcanedo
Dear all,




I am using \starthanging to implement dropcaps (with small pdf files). I use 
this Inside mixedcolumns (2 columns).


I’d like to know if there is a better way than \testcolumn[N], N being the 
number of lines of the dropcap, to prevent the location of dropcap being cut 
between end of column/page and beginning of next. Tried \keeplinestogether{N} 
instead but it does not work in all cases.


That question was mainly to see if there were any possibility to avoid some 
blank lines at end of some columns (ie not balanced in given page). 


Thanks a lot


Best regards


Joseph___
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] Another issue with EBGaramond / firstline / mixedcolumns

2015-11-08 Thread josephcanedo
Dear all,


Trying to use EB Garamond font Inside mixed columns + use firstline  feature 
(to make it larger) I get an empty line in output between first line and the 
rest of paragraph. If I comment the line containing \setupbodyfont and use 
default font the problem disappears (even with larger \tfa ratios well above 2).


The problem seems only to happen when first line contains letters with space 
hanging below line base (like g or p for example).

As well using columnset does not show the problem and using grid=verytolerant 
as well.


Attached MWE + output.


Many thanks

Best regards


Joseph Canedo

mwe_mixedcolumns.pdf
Description: mwe_mixedcolumns.pdf


mwe_mixedcolumns.tex
Description: mwe_mixedcolumns.tex
___
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] Pagebreak forced after mixedcolumns (new bug?)

2014-06-09 Thread Joshua Krämer
On 2014-06-08, 23:34, Hans Hagen wrote:
 does
 balance=yes
 help?

Yes, it helps.  Thank you!

Kind regards,
Joshua


___
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] Pagebreak forced after mixedcolumns (new bug?)

2014-06-08 Thread Joshua Krämer
Dear list,

I have updated to the latest beta today, and I can no longer put text
after \stopmixedcolumns on the same page.


\setuplayout[grid=yes]
\starttext
\startmixedcolumns
Left

\column

Right

Right
\stopmixedcolumns

Something after the columns
\stoptext


There should be no pagebreak after \stopmixedcolumns.  It works with
\start... \stopcolumns, but then the column break (\column) is ignored.

It worked before with mixedcolumns, but I don't know when I updated the
last time.

Kind regards,
Joshua


___
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] Pagebreak forced after mixedcolumns (new bug?)

2014-06-08 Thread Hans Hagen

On 6/8/2014 10:57 PM, Joshua Krämer wrote:

Dear list,

I have updated to the latest beta today, and I can no longer put text
after \stopmixedcolumns on the same page.


\setuplayout[grid=yes]
\starttext
\startmixedcolumns
Left

\column

Right

Right
\stopmixedcolumns

Something after the columns
\stoptext


There should be no pagebreak after \stopmixedcolumns.  It works with
\start... \stopcolumns, but then the column break (\column) is ignored.

It worked before with mixedcolumns, but I don't know when I updated the
last time.


does

balance=yes

help?

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bizarre error message

2014-04-01 Thread Thomas A. Schmitz

On 03/29/2014 11:26 PM, Hans Hagen wrote:

Ok, we need indeed some example of this so that we can test. It can for
instance relate to some prev pointer still not being ok (which can
result in such errors). This means that when context looks back at some
node that happens to be a head node, we can get weird effects. In due
time this will be sorted out but the more tests we have the sooner.


Sadly, it is a Heisenbug - I have been unable so far to isolate it. 
Compilation showed this bug both on linux and OS X - commented parts of 
the file in question - compilation worked - uncommented line by line - 
compilation keeps working without error. I'm no longer sure if it is 
indeed a problem with the mixedcolumns environment or the new 
bibliography code or a combination of both...


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bizarre error message

2014-04-01 Thread Hans Hagen

On 4/1/2014 11:18 AM, Thomas A. Schmitz wrote:

On 03/29/2014 11:26 PM, Hans Hagen wrote:

Ok, we need indeed some example of this so that we can test. It can for
instance relate to some prev pointer still not being ok (which can
result in such errors). This means that when context looks back at some
node that happens to be a head node, we can get weird effects. In due
time this will be sorted out but the more tests we have the sooner.


Sadly, it is a Heisenbug - I have been unable so far to isolate it.
Compilation showed this bug both on linux and OS X - commented parts of
the file in question - compilation worked - uncommented line by line -
compilation keeps working without error. I'm no longer sure if it is
indeed a problem with the mixedcolumns environment or the new
bibliography code or a combination of both...


no, it's one of those ransom issues where a pointer is not set/reset 
which needs to b esorted out in luatex itself


if you put the test file that fails in the crited repos luigi and i can 
run it and rather easily (less than a day work -) determine where it is


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] bizarre error message

2014-03-29 Thread Thomas A. Schmitz

Hi,

I haven't yet been able to reproduce this in a minimal example, but I'm 
trying to place some images within a mixedcolumns environment, and I get 
an error message I have never seen before:


pagesflushing realpage 5, userpage 5
Node 1150 has an attribute list that is free already
Node 1406 has an attribute list that is free already
Node 1373 has an attribute list that is free already
Node 1228 has an attribute list that is free already
Node 1195 has an attribute list that is free already
Node 1114 has an attribute list that is free already
Node 1127 has an attribute list that is free already
Node 1074 has an attribute list that is free already
Node 2011 has an attribute list that is free already
Node 2268 has an attribute list that is free already
Node 2116 has an attribute list that is free already
Node 2030 has an attribute list that is free already
Node 1981 has an attribute list that is free already
Node 1953 has an attribute list that is free already
Node 3055 has an attribute list that is free already
Node 2889 has an attribute list that is free already
luatex: ../../../source/texk/web2c/luatexdir/tex/texnodes.w:1985: 
delete_attribute_ref: Assertion 
`varmem[(b)].hh.u.B0==attribute_list_node' failed.


mtx-context | fatal error: no return code, message: luatex: 
execution interrupted%


This is with context 2014.03.28 15:04 and luatex 0.78.2 on linux 64-bit. 
The error does not appear with a beta version from january 2014. Any 
idea where this might come from?


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bizarre error message

2014-03-29 Thread Hans Hagen

On 3/29/2014 4:02 PM, Thomas A. Schmitz wrote:

Hi,

I haven't yet been able to reproduce this in a minimal example, but I'm
trying to place some images within a mixedcolumns environment, and I get
an error message I have never seen before:

pagesflushing realpage 5, userpage 5
Node 1150 has an attribute list that is free already
Node 1406 has an attribute list that is free already
Node 1373 has an attribute list that is free already
Node 1228 has an attribute list that is free already
Node 1195 has an attribute list that is free already
Node 1114 has an attribute list that is free already
Node 1127 has an attribute list that is free already
Node 1074 has an attribute list that is free already
Node 2011 has an attribute list that is free already
Node 2268 has an attribute list that is free already
Node 2116 has an attribute list that is free already
Node 2030 has an attribute list that is free already
Node 1981 has an attribute list that is free already
Node 1953 has an attribute list that is free already
Node 3055 has an attribute list that is free already
Node 2889 has an attribute list that is free already
luatex: ../../../source/texk/web2c/luatexdir/tex/texnodes.w:1985:
delete_attribute_ref: Assertion
`varmem[(b)].hh.u.B0==attribute_list_node' failed.

mtx-context | fatal error: no return code, message: luatex:
execution interrupted%

This is with context 2014.03.28 15:04 and luatex 0.78.2 on linux 64-bit.
The error does not appear with a beta version from january 2014. Any
idea where this might come from?


Ok, we need indeed some example of this so that we can test. It can for 
instance relate to some prev pointer still not being ok (which can 
result in such errors). This means that when context looks back at some 
node that happens to be a head node, we can get weird effects. In due 
time this will be sorted out but the more tests we have the sooner.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Bug: Columnar itemized text

2014-03-06 Thread Thangalin
Hi,

I believe I have isolated the problem:

\starttext
  balance
  \startmixedcolumns[balance=yes,]
\dorecurse{8}{\input{ward}}
  \stopmixedcolumns
  %\page

  strut
  \startmixedcolumns[grid=strut,]
\dorecurse{4}{\input{knuth}}
  \stopmixedcolumns
\stoptext

When balanced mixedcolumns are followed by mixedcolumns using a strut
grid, then the content of the second mixedcolumns will extend into the
footer area on the next page. However, if the content of the strut
grid mixedcolumns is long enough to incur a page break on that next
page, then no content spills into the footer.

How can I help fix this?
___
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] Bug: Columnar itemized text

2014-03-06 Thread Hans Hagen

On 3/6/2014 11:46 AM, Thangalin wrote:

Hi,

I believe I have isolated the problem:

\starttext
   balance
   \startmixedcolumns[balance=yes,]
 \dorecurse{8}{\input{ward}}
   \stopmixedcolumns
   %\page

   strut
   \startmixedcolumns[grid=strut,]
 \dorecurse{4}{\input{knuth}}
   \stopmixedcolumns
\stoptext

When balanced mixedcolumns are followed by mixedcolumns using a strut
grid, then the content of the second mixedcolumns will extend into the
footer area on the next page. However, if the content of the strut
grid mixedcolumns is long enough to incur a page break on that next
page, then no content spills into the footer.

How can I help fix this?


can you experiment with this:

\unprotect

\setvalue{\??mixedcolumnsstop\s!otr}%
  {\par
   \ifcase\c_page_mix_otr_nesting\or
 \doifelse{\mixedcolumnsparameter\c!balance}\v!yes
   {\c_page_mix_routine\c_page_mix_routine_balance}%
   {\penalty-\plustenthousand}% weird hack, we need to trigger the 
otr sometimes

 \page_otr_trigger_output_routine
   \fi}

\protect

(put it in cont-new.mkiv)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-12-05 Thread Lars Huttar (SIL gmail)
On 12/3/2013 4:40 PM, Hans Hagen wrote:
 On 12/3/2013 3:10 PM, Lars Huttar wrote:
 ...
 Thanks again for your work on this.
 We're continually reevaluating whether we can use the beta or need to
 stick with the stable version. At the moment, it looks like we'll be
 sticking with the stable version. But we'd like to use the beta, if the
 problems can be ironed out.

 fyi: i'll not patch the stable version

 new beta


Thanks for the fixes.
When I said the stable version, I wasn't very specific, but I was
referring to the one on the TeX Live 2013 CD.

But after you said the above I realized you were talking about this
(http://wiki.contextgarden.net/ConTeXt_Standalone#Single_user_installation):

 By default, the suite installs ConTeXt beta. If you want the stable
 version of ConTeXt, you can use

 sh ./first-setup.sh --context=current

I'm making a note of it here in hope that it will help me remember next
time what the stable version refers to.

Regards,
Lars

___
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] a way to implement \testcolumn in mixedcolumns

2013-12-03 Thread Lars Huttar
On 11/28/2013 1:34 PM, Hans Hagen wrote:

 That macro was never meant for mixed columns. I made a variant that
 works ok in mixed columns which will be in the next beta.

 \setuptolerance[verytolerant]

 \starttext

 \startmixedcolumns

 \dorecurse{4}{\input ward \par}

 \testcolumn[10][-1pt] % 10 lines - 1pt slack

 \dorecurse{2}{\input ward \par}

 \stopmixedcolumns

 \stoptext

Ok. It looks like the second parameter to \testcolumn is now required
(it didn't used to be).
What does this slack value do? Does it mean that the minimum amount of
space left in the column is 10 lines minus 1pt?

Also, in the Dec. 2 beta (current version: 2013.12.02 15:22),  the
\column command now causes an error when we come to the \stopmixedcolumns.
I don't know if it's connected with the above change, or something else.

MWE: change the \testcolumn command above to \column.
I get the following error output:

! LuaTeX error
C:/context/tex/texmf-context/tex/context/base/page-mix.lua:474
: attempt to compare number with nil
stack traceback:
   
C:/context/tex/texmf-context/tex/context/base/page-mix.lua
:474: in function 'process_penalty'
   
C:/context/tex/texmf-context/tex/context/base/page-mix.lua
:572: in function 'setsplit'
   
C:/context/tex/texmf-context/tex/context/base/page-mix.lua
:687: in function 'setsplit'
   
C:/context/tex/texmf-context/tex/context/base/page-mix.lua
:819: in function 'mixsetsplit'
[string \directlua ]:1: in main chunk.

system   tex  error on line 14 in file
C:/Users/Huttar/Documents/work/tex/test-beta-testcolumn.tex:
LuaTeX error  ...

 4
 5 \startmixedcolumns
 6
 7 \dorecurse{4}{\input ward \par}
 8
 9 %\testcolumn[10][-1pt] % 10 lines - 1pt slack
10 \column
11
12 \dorecurse{2}{\input ward \par}
13
14   \stopmixedcolumns
15
16 \stoptext
17


\ctxcommand #1 -\directlua {commands.#1}
   
\page_mix_routine_construct ...\else false\fi , }}
  \deadcycles
\zerocount
\page_mix_routine_continue ...ine_construct \v!no
 
\page_mix_routine_package ...
\page_otr_command_routine ...mix_routine_continue
  \or
\page_mix_routine_bala...
\page_otr_triggered_output_routine ...and_routine
  \fi
output ...eforeoutput \page_otr_triggered_output_routine
  \relax \the
\everyafterout...
...
l.14 \stopmixedcolumns
   
? X


Thanks again for your work on this.
We're continually reevaluating whether we can use the beta or need to
stick with the stable version. At the moment, it looks like we'll be
sticking with the stable version. But we'd like to use the beta, if the
problems can be ironed out.

Lars

___
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] a way to implement \testcolumn in mixedcolumns

2013-12-03 Thread Hans Hagen

On 12/3/2013 3:10 PM, Lars Huttar wrote:

On 11/28/2013 1:34 PM, Hans Hagen wrote:


That macro was never meant for mixed columns. I made a variant that
works ok in mixed columns which will be in the next beta.

\setuptolerance[verytolerant]

\starttext

\startmixedcolumns

 \dorecurse{4}{\input ward \par}

 \testcolumn[10][-1pt] % 10 lines - 1pt slack

 \dorecurse{2}{\input ward \par}

\stopmixedcolumns

\stoptext


Ok. It looks like the second parameter to \testcolumn is now required
(it didn't used to be).


i'll fix that


What does this slack value do? Does it mean that the minimum amount of
space left in the column is 10 lines minus 1pt?


indeed


Also, in the Dec. 2 beta (current version: 2013.12.02 15:22),  the
\column command now causes an error when we come to the \stopmixedcolumns.
I don't know if it's connected with the above change, or something else.


no, more to making section breaks working better in columns (i forgot to 
rename a variable)



MWE: change the \testcolumn command above to \column.
I get the following error output:

! LuaTeX error
C:/context/tex/texmf-context/tex/context/base/page-mix.lua:474
: attempt to compare number with nil
stack traceback:

C:/context/tex/texmf-context/tex/context/base/page-mix.lua
:474: in function 'process_penalty'

C:/context/tex/texmf-context/tex/context/base/page-mix.lua
:572: in function 'setsplit'

C:/context/tex/texmf-context/tex/context/base/page-mix.lua
:687: in function 'setsplit'

C:/context/tex/texmf-context/tex/context/base/page-mix.lua
:819: in function 'mixsetsplit'
 [string \directlua ]:1: in main chunk.

system   tex  error on line 14 in file
C:/Users/Huttar/Documents/work/tex/test-beta-testcolumn.tex:
LuaTeX error  ...

  4
  5 \startmixedcolumns
  6
  7 \dorecurse{4}{\input ward \par}
  8
  9 %\testcolumn[10][-1pt] % 10 lines - 1pt slack
10 \column
11
12 \dorecurse{2}{\input ward \par}
13
14   \stopmixedcolumns
15
16 \stoptext
17


\ctxcommand #1 -\directlua {commands.#1}

\page_mix_routine_construct ...\else false\fi , }}
   \deadcycles
\zerocount
\page_mix_routine_continue ...ine_construct \v!no

\page_mix_routine_package ...
\page_otr_command_routine ...mix_routine_continue
   \or
\page_mix_routine_bala...
\page_otr_triggered_output_routine ...and_routine
   \fi
output ...eforeoutput \page_otr_triggered_output_routine
   \relax \the
\everyafterout...

l.14 \stopmixedcolumns

? X


Thanks again for your work on this.
We're continually reevaluating whether we can use the beta or need to
stick with the stable version. At the moment, it looks like we'll be
sticking with the stable version. But we'd like to use the beta, if the
problems can be ironed out.


fyi: i'll not patch the stable version

new beta


Lars

___
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 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-11-29 Thread Lars Huttar (SIL gmail)
On 11/28/2013 1:34 PM, Hans Hagen wrote:

 That macro was never meant for mixed columns. I made a variant that
 works ok in mixed columns which will be in the next beta.


Excellent. I will give it a try.
I see a context-setup-win64 dated 2013-11-28 19:45. Is that beta? I may
wait for the next one anyway just to be sure... today is a holiday for us.

Lars

___
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] a way to implement \testcolumn in mixedcolumns

2013-11-29 Thread Hans Hagen

On 11/29/2013 12:26 PM, Lars Huttar (SIL gmail) wrote:

On 11/28/2013 1:34 PM, Hans Hagen wrote:


That macro was never meant for mixed columns. I made a variant that
works ok in mixed columns which will be in the next beta.



Excellent. I will give it a try.
I see a context-setup-win64 dated 2013-11-28 19:45. Is that beta? I may
wait for the next one anyway just to be sure... today is a holiday for us.


you can just update with the already installed first-setup script (no 
need to do a new install)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-11-28 Thread Hans Hagen

On 11/20/2013 10:47 PM, Lars Huttar wrote:

Hello,

On this list I've been advised that mixedcolumns is the latest and
greatest implementation of columns; the one to use. We have switched
over from columnsets to mixedcolumns, and have been very pleased with
the column balancing (for some reason we couldn't get column balancing
to work in columnsets).

However one thing we do miss from columnsets is the control over widows
 orphans in two ways: \testcolumn, and \setupcolumnsetlines.
\testcolumn[n] allowed us to do a conditional column break, so when we
were about to start a new subsection heading, we could prevent it being
an orphan at the bottom of the column; and when starting a paragraph
with a hangaround graphic framed flushright and bottom, we could
similarly use \testcolumn to prevent the graphic from hanging down into
the footer (which is what sometimes happened otherwise).

So I'm wondering, is there some way to achieve the equivalent of
\testcolumn in mixedcolumns?

Is it theoretically impossible to implement this in mixedcolumns because
the required information (how many lines are left in the current column)
is not yet known?
Or could that information be gleaned from somewhere?

I see in page-brk.mkiv the following definition for \testcolumn:

\def\testcolumn
   {\dodoubleempty\page_tests_columns_test}

\def\page_tests_columns_test[#1][#2]%
   {\endgraf
\ifdim\pagegoal\maxdimen
  \ifdim\pagetotal\pagegoal
\d_page_tests_test\dimexpr
  \pagegoal
 -\pagetotal
  \ifdim\lastskip\parskip+\parskip\fi
  \ifsecondargument+#2\fi
\relax
\getrawnoflines\d_page_tests_test % (raw)
\ifnum#1\noflines
  \column
\fi
  \else
\penalty-\plustenthousand % (untested)
  \fi
\fi}


I'm not a low-level TeX programmer, and I don't understand a lot of
this, but it looks like
   \getrawnoflines\d_page_tests_test
puts the number of remaining lines into \noflines

Any suggestions are appreciated.
(And I should have a MWE soon.)


That macro was never meant for mixed columns. I made a variant that 
works ok in mixed columns which will be in the next beta.


\setuptolerance[verytolerant]

\starttext

\startmixedcolumns

\dorecurse{4}{\input ward \par}

\testcolumn[10][-1pt] % 10 lines - 1pt slack

\dorecurse{2}{\input ward \par}

\stopmixedcolumns

\stoptext




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] bug in beta: \tab results in text overlap

2013-11-27 Thread Lars Huttar
On 11/22/2013 4:34 PM, Hans Hagen wrote:

 The problem, is/was that mixed columns had not yet mark
 synchronization enabled. I uploaded a new beta. In the process I also
 made marks a bit more restrictive but it might have (yet unknown) side
 effects.

Hans, I tried the beta of 2013.11.26, and as mentioned in a previous
email, it fixes the \getmarking problem pretty well. However the same
beta has a fatal problem for us: lists using \tab are now broken.

MWE:
\starttext
\tab{AC}Autonomous Community\par
\tab{\it alt.}alternate name for\par
\stoptext

In the TeX Live 2013 version of mkiv, this gives us a nice table with
the headword separated from the definition.
In the beta, the headword and the definition start at the same
horizontal position, and overlap each other.

We use these lists in the context of mixedcolumns, but the overlap
behavior occurs regardless of mixedcolumns.

Any help would be appreciated. If we can't fix or work around this
problem, we may have to abandon the beta and go back to TeX Live 2013,
which means our page header guide words would be incorrect.

Lars

___
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] bug in beta: \tab results in text overlap

2013-11-27 Thread Lars Huttar
On 11/27/2013 11:08 AM, Lars Huttar wrote:

 I tried the beta of 2013.11.26, and as mentioned in a previous
 email, it fixes the \getmarking problem pretty well. However the same
 beta has a fatal problem for us: lists using \tab are now broken.

 MWE:
 \starttext
 \tab{AC}Autonomous Community\par
 \tab{\it alt.}alternate name for\par
 \stoptext

 In the TeX Live 2013 version of mkiv, this gives us a nice table with
 the headword separated from the definition.
 In the beta, the headword and the definition start at the same
 horizontal position, and overlap each other.

 We use these lists in the context of mixedcolumns, but the overlap
 behavior occurs regardless of mixedcolumns.

 Any help would be appreciated. If we can't fix or work around this
 problem, we may have to abandon the beta and go back to TeX Live 2013,
 which means our page header guide words would be incorrect.


Well, it's probably not quite that fatal for our project, because it
looks like the \definedescription mechanism can be used to replace \tab,
and does not suffer from the same problem in the beta.

Nevertheless I thought someone would like to know that \tab has stopped
working, so it can be fixed (or documented as obsolete, in favor of
\definedescription).

Lars

___
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] a way to implement \testcolumn in mixedcolumns

2013-11-26 Thread Lars Huttar
On 11/23/2013 6:49 AM, Hans Hagen wrote:
 On 11/22/2013 11:37 PM, Lars Huttar wrote:
 On 11/22/2013 4:59 PM, Hans Hagen wrote:
 On 11/20/2013 11:12 PM, Lars Huttar wrote:
 On 11/20/2013 4:47 PM, Lars Huttar wrote:
 However one thing we do miss from columnsets is the control over
 widows
  orphans in two ways: \testcolumn, and \setupcolumnsetlines.
 \testcolumn[n] allowed us to do a conditional column break, so
 when we
 were about to start a new subsection heading, we could prevent it
 being
 an orphan at the bottom of the column; and when starting a paragraph
 with a hangaround graphic framed flushright and bottom, we could
 similarly use \testcolumn to prevent the graphic from hanging down
 into
 the footer (which is what sometimes happened otherwise).

 So I'm wondering, is there some way to achieve the equivalent of
 \testcolumn in mixedcolumns?

 for the moment add \penalty1


 OK... where? In the same place we used to use \testcolumn?

 just after the (sub)section title

 i need time to figure out this kind of things in the balancer

Hans, here is what I tried (MWE):

\setuppapersize[A4]

\starttext

\section{Introduction}

\startmixedcolumns[distance=5mm, balance=yes]

\dorecurse {25} {

\subsection{Subsection Heading}

\penalty1

If I had not participated fully in all these activities, literally
hundreds of improvements would never have been made, because I would
never have thought of them or perceived their importance. \endgraf

}

\stopmixedcolumns

\stoptext


As you see, I tried \penalty1 after the subsection heading.
But in the resulting PDF, on page 3, in the left column, we see a
subsection heading at the bottom of the column with nothing below it. So
something didn't work.

Am I not doing it the way you meant?


Thanks for your help,
Lars

___
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] bug: \getmarking with mixedcolumns

2013-11-26 Thread Lars Huttar
On 11/22/2013 4:34 PM, Hans Hagen wrote:
 On 11/21/2013 7:01 PM, Lars Huttar wrote:

 I now have a MWE that shows the problem.
 Where top and bottom work fine outside of columns, in mixedcolumns, any
 keyword I use with \getmarking always seem to return the *last* item on
 the page. Here's the MWE:

 I changed the example a bit

 \setupbodyfont[dejavu]

 \definemarking[country]

 \startsetups myheader

 (\getmarking[country][1][top]\enspace\emdash\enspace\getmarking[country][1][bottom])

 \hfill

 (\getmarking[country][2][top]\enspace\emdash\enspace\getmarking[country][2][bottom])

 \stopsetups

 \setupheadertexts
   [\setups{myheader}][]
   [][\setups{myheader}]

 \def\anothersection#1%
   {\par
\dontleavehmode
\marking[country]{#1}%
\start\bf #1 \endgraf\stop
\quad
test
\par}

 \starttext
 \startmixedcolumns[distance=5mm, balance=yes]
 \anothersection{Brazil}
%\anothersection{Suriname}
%\anothersection{Uruguay}
%\anothersection{Bolivia}
%\anothersection{Venezuela}
 \anothersection{Peru}
 \stopmixedcolumns
 \stoptext

 The problem, is/was that mixed columns had not yet mark
 synchronization enabled. I uploaded a new beta.

When I use the new beta (using 2013.11.26), marking works better, with
the following caveats:

1) The column number argument is required; using
\getmarking[country][top] instead of \getmarking[country][1][top] still
returns the wrong value. This is not a problem for us, but it's
important to know, because if you leave out the column number argument,
there is no error given, and AFAIR the documentation doesn't tell you
it's required.

2) Sometimes \getmark[country][n][bottom] returns the country at the top
of column n+1 (or column 1 on the next page). In your example above,
\getmarking[country][1][bottom] shows Peru, which is in column 2,
instead of Brazil. This can be a significant problem for us, unless we
can find a way to fix it.
Did you get a different result?

 In the process I also made marks a bit more restrictive but it might
 have (yet unknown) side effects.

 \enabledirectives[marks.boxestoo]

 can be used to see the effect of this.


I tried this with your example above, but didn't see anything change.
Are we supposed to see some colored boxes around the marks?

Thanks again,
Lars


___
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] a way to implement \testcolumn in mixedcolumns

2013-11-23 Thread Hans Hagen

On 11/22/2013 11:37 PM, Lars Huttar wrote:

On 11/22/2013 4:59 PM, Hans Hagen wrote:

On 11/20/2013 11:12 PM, Lars Huttar wrote:

On 11/20/2013 4:47 PM, Lars Huttar wrote:

However one thing we do miss from columnsets is the control over widows
 orphans in two ways: \testcolumn, and \setupcolumnsetlines.
\testcolumn[n] allowed us to do a conditional column break, so when we
were about to start a new subsection heading, we could prevent it being
an orphan at the bottom of the column; and when starting a paragraph
with a hangaround graphic framed flushright and bottom, we could
similarly use \testcolumn to prevent the graphic from hanging down into
the footer (which is what sometimes happened otherwise).

So I'm wondering, is there some way to achieve the equivalent of
\testcolumn in mixedcolumns?


for the moment add \penalty1



OK... where? In the same place we used to use \testcolumn?


just after the (sub)section title

i need time to figure out this kind of things in the balancer

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug: \getmarking with mixedcolumns

2013-11-22 Thread Hans Hagen

On 11/21/2013 7:01 PM, Lars Huttar wrote:


I now have a MWE that shows the problem.
Where top and bottom work fine outside of columns, in mixedcolumns, any
keyword I use with \getmarking always seem to return the *last* item on
the page. Here's the MWE:


I changed the example a bit

\setupbodyfont[dejavu]

\definemarking[country]

\startsetups myheader

(\getmarking[country][1][top]\enspace\emdash\enspace\getmarking[country][1][bottom])
\hfill

(\getmarking[country][2][top]\enspace\emdash\enspace\getmarking[country][2][bottom])
\stopsetups

\setupheadertexts
  [\setups{myheader}][]
  [][\setups{myheader}]

\def\anothersection#1%
  {\par
   \dontleavehmode
   \marking[country]{#1}%
   \start\bf #1 \endgraf\stop
   \quad
   test
   \par}

\starttext
\startmixedcolumns[distance=5mm, balance=yes]
\anothersection{Brazil}
   %\anothersection{Suriname}
   %\anothersection{Uruguay}
   %\anothersection{Bolivia}
   %\anothersection{Venezuela}
\anothersection{Peru}
\stopmixedcolumns
\stoptext

The problem, is/was that mixed columns had not yet mark synchronization 
enabled. I uploaded a new beta. In the process I also made marks a bit 
more restrictive but it might have (yet unknown) side effects.


\enabledirectives[marks.boxestoo]

can be used to see the effect of this.

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] bug: \getmarking with mixedcolumns

2013-11-22 Thread Lars Huttar
On 11/22/2013 4:34 PM, Hans Hagen wrote:
 On 11/21/2013 7:01 PM, Lars Huttar wrote:

 I now have a MWE that shows the problem.
 Where top and bottom work fine outside of columns, in mixedcolumns, any
 keyword I use with \getmarking always seem to return the *last* item on
 the page. Here's the MWE:

 I changed the example a bit

 \setupbodyfont[dejavu]

 \definemarking[country]

 \startsetups myheader

 (\getmarking[country][1][top]\enspace\emdash\enspace\getmarking[country][1][bottom])

 \hfill

 (\getmarking[country][2][top]\enspace\emdash\enspace\getmarking[country][2][bottom])

 \stopsetups

 \setupheadertexts
   [\setups{myheader}][]
   [][\setups{myheader}]

 \def\anothersection#1%
   {\par
\dontleavehmode
\marking[country]{#1}%
\start\bf #1 \endgraf\stop
\quad
test
\par}

 \starttext
 \startmixedcolumns[distance=5mm, balance=yes]
 \anothersection{Brazil}
%\anothersection{Suriname}
%\anothersection{Uruguay}
%\anothersection{Bolivia}
%\anothersection{Venezuela}
 \anothersection{Peru}
 \stopmixedcolumns
 \stoptext

 The problem, is/was that mixed columns had not yet mark
 synchronization enabled. I uploaded a new beta. In the process I also
 made marks a bit more restrictive but it might have (yet unknown) side
 effects.

 \enabledirectives[marks.boxestoo]

 can be used to see the effect of this.


Thanks. We will try this out.

Lars

___
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] a way to implement \testcolumn in mixedcolumns

2013-11-22 Thread Hans Hagen

On 11/20/2013 11:12 PM, Lars Huttar wrote:

On 11/20/2013 4:47 PM, Lars Huttar wrote:

However one thing we do miss from columnsets is the control over widows
 orphans in two ways: \testcolumn, and \setupcolumnsetlines.
\testcolumn[n] allowed us to do a conditional column break, so when we
were about to start a new subsection heading, we could prevent it being
an orphan at the bottom of the column; and when starting a paragraph
with a hangaround graphic framed flushright and bottom, we could
similarly use \testcolumn to prevent the graphic from hanging down into
the footer (which is what sometimes happened otherwise).

So I'm wondering, is there some way to achieve the equivalent of
\testcolumn in mixedcolumns?


for the moment add \penalty1


Here is a MWE:

\starttext


\startmixedcolumns[distance=5mm, balance=yes]

\dorecurse {20} {

\testcolumn[8]

\subsection{Subsection Heading} \input knuth \endgraf

}

\stopmixedcolumns


\stoptext


You can see that the heading for subsection 6 is an orphan at the bottom
of a column (at least, with the paper size settings I have; otherwise,
I'm sure it happens somewhere else). If \testcolumn worked, the
\testcolumn[8] would have shoved the subsection heading to the next
column, because there was not space for 8 lines left in the column at
that point.

Any thoughts on how to fix this kind of occurrence?

Thanks,
Lars

___
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 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] a way to implement \testcolumn in mixedcolumns

2013-11-22 Thread Lars Huttar
On 11/22/2013 4:59 PM, Hans Hagen wrote:
 On 11/20/2013 11:12 PM, Lars Huttar wrote:
 On 11/20/2013 4:47 PM, Lars Huttar wrote:
 However one thing we do miss from columnsets is the control over widows
  orphans in two ways: \testcolumn, and \setupcolumnsetlines.
 \testcolumn[n] allowed us to do a conditional column break, so when we
 were about to start a new subsection heading, we could prevent it being
 an orphan at the bottom of the column; and when starting a paragraph
 with a hangaround graphic framed flushright and bottom, we could
 similarly use \testcolumn to prevent the graphic from hanging down into
 the footer (which is what sometimes happened otherwise).

 So I'm wondering, is there some way to achieve the equivalent of
 \testcolumn in mixedcolumns?

 for the moment add \penalty1


OK... where? In the same place we used to use \testcolumn?

According to http://www.tug.org/utilities/plain/cseq.html#penalty-rp,
If number is 10,000 or larger, TeX will never break a line or a page
there. Also, if number is -10,000 or less, it will always break a line
or a page there [97 and 110]. ... Plain TeX has \break and \nobreak
macros which are defined to be: \penalty-1 and \penalty1.

So it sounds like you're recommending the equivalent of a \nobreak. That
wouldn't make sense in the place where we want to conditionally break
the column. So I guess you're talking about using it e.g. right after
the subsection heading, since we don't want it to break right there?

If so, that sounds like it will be helpful for preventing that
particular case.

I don't think it will work for preventing external figures from hanging
down below the bottom of the column though, will it? Because for that to
work, we'd have to prevent breaks anywhere in the flowing-around
paragraph. And I don't see a way to do that.

Thanks,
Lars

___
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] bug: \getmarking with mixedcolumns

2013-11-21 Thread Lars Huttar
On 11/21/2013 11:40 AM, Lars Huttar wrote:
 In a thread from July
 (http://context.markmail.org/thread/6tgzusw45whaqghi), Marco Patzer
 raised some questions that we have too. They were somewhat answered, but
 I'm still not clear on what the meanings of the keywords are.

 On Jul 8, 2013 4:08:33 pm Hans wrote:
 On 7/9/2013 12:30 AM, Marco Patzer wrote:
 / On 2013–07–08 Hans Hagen wrote:
 //
 // I expect the markings on the left and right to be the same and show
 // A–C on the first page and D–E on the second one. Looks like a bug to
 // me.
 //
 // use top and bottom
 //
 // This works. Thanks.
 //
 // -- previous : last before sync
 // -- next : first after sync
 //
 // -- top  : first in sync
 // -- bottom   : last in sync
 //
 // -- first: first not top in sync
 // -- last : last not bottom in sync
 //
 // That is exactly what's in the wiki (Command/getmarking). To my
 // defence: The manual (chapter 12.4) is outdated, it lists:
 //
 //previous - the last of the previous page
 //first- the first of the actual page
 //last - the last of the actual page
 //both - first — last
 //all  - previous — first — last
 //
 // I have no idea what “first not top in sync” means, in contrast to
 // “first of the actual page”, which is quite clear but wrong on a
 // current MkIV.
 /
 old tex terminology ... in mkiv i don't use the build-in-tex marks at 
 all (too much juggling needed to get things right)
 So I'm wondering ... Hans, since the descriptions you posted are old tex
 terminology, what do previous/next/top/bottom/first/last/etc. mean in
 current terminology?
 I agree with Marco that the descriptions in the ref manual are much
 easier to understand, but appear to be wrong; and do not include top/bottom.
 I'll be happy to update the ref manual and the wiki if I can get clear
 and accurate information.

 We have run many examples here, including the ones on the getmarking
 wiki page, trying to understand what these keywords mean.
 top/bottom do appear to do what we need in an MWE, but are not working
 for us in the real document, and knowing the meaning of these keywords
 would be very helpful in troubleshooting the problem.

 Thanks,
 Lars

 
I now have a MWE that shows the problem.
Where top and bottom work fine outside of columns, in mixedcolumns, any
keyword I use with \getmarking always seem to return the *last* item on
the page. Here's the MWE:
\definemarking[country]


%\startsetups myheader

%F1: \getmarking[country][1][first] - L2: \getmarking[country][2][last]

%\hfill

%T1: \getmarking[country][1][top] - B2: \getmarking[country][2][bottom]

%\stopsetups


\startsetups myheader

F: \getmarking[country][first] - L: \getmarking[country][last]

\hfill

T: \getmarking[country][top] - B: \getmarking[country][bottom]

\stopsetups


\setupheadertexts[\setups{myheader}][][][\setups{myheader}]


\def\anothersection#1{

\marking[country]{#1}

{\bfb #1 \endgraf}

\dorecurse{1}{\input knuth \endgraf}

\marking[country]{#1}

}


\starttext

\startmixedcolumns[distance=5mm, balance=yes]

\anothersection{Brazil}

\anothersection{Suriname}

\anothersection{Uruguay}

\anothersection{Bolivia}

\anothersection{Venezuela}

\anothersection{Peru}

\stopmixedcolumns

\stoptext



When you run the MWE, you see that all the fields in the page header
show the same value: whatever country appears last on the page. (Or
even, depending on how you tweak the length of the country text, if the
next page starts with a new country, you'll get that new country for the
old page.)

I also tried using column numbers, in imitation of the columnsets
example on the wiki at http://wiki.contextgarden.net/Command/getmarking

\startsetups myheader

F1: \getmarking[country][1][first] - L2: \getmarking[country][2][last]

\hfill

T1: \getmarking[country][1][top] - B2: \getmarking[country][2][bottom]

\stopsetups


But this didn't appear to make any difference. Maybe it works for
columnsets but not for mixedcolumns. Does anyone know how to get correct
results for \getmarking in mixedcolumns?


Thanks,
Lars

___
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] bug: \getmarking with mixedcolumns

2013-11-21 Thread Lars Huttar
On 11/21/2013 1:01 PM, Lars Huttar wrote:
 I now have a MWE that shows the problem. Where top and bottom work
 fine outside of columns, in mixedcolumns, any keyword I use with
 \getmarking always seem to return the *last* item on the page. 

I sometimes forget to include our version info.
MKIV, the Context version from TeX Live 2013.

Lars

___
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] a way to implement \testcolumn in mixedcolumns

2013-11-20 Thread Lars Huttar
Hello,

On this list I've been advised that mixedcolumns is the latest and
greatest implementation of columns; the one to use. We have switched
over from columnsets to mixedcolumns, and have been very pleased with
the column balancing (for some reason we couldn't get column balancing
to work in columnsets).

However one thing we do miss from columnsets is the control over widows
 orphans in two ways: \testcolumn, and \setupcolumnsetlines.
\testcolumn[n] allowed us to do a conditional column break, so when we
were about to start a new subsection heading, we could prevent it being
an orphan at the bottom of the column; and when starting a paragraph
with a hangaround graphic framed flushright and bottom, we could
similarly use \testcolumn to prevent the graphic from hanging down into
the footer (which is what sometimes happened otherwise).

So I'm wondering, is there some way to achieve the equivalent of
\testcolumn in mixedcolumns?

Is it theoretically impossible to implement this in mixedcolumns because
the required information (how many lines are left in the current column)
is not yet known?
Or could that information be gleaned from somewhere?

I see in page-brk.mkiv the following definition for \testcolumn:

\def\testcolumn
  {\dodoubleempty\page_tests_columns_test}

\def\page_tests_columns_test[#1][#2]%
  {\endgraf
   \ifdim\pagegoal\maxdimen
 \ifdim\pagetotal\pagegoal
   \d_page_tests_test\dimexpr
 \pagegoal
-\pagetotal
 \ifdim\lastskip\parskip+\parskip\fi
 \ifsecondargument+#2\fi
   \relax
   \getrawnoflines\d_page_tests_test % (raw)
   \ifnum#1\noflines
 \column
   \fi
 \else
   \penalty-\plustenthousand % (untested)
 \fi
   \fi}


I'm not a low-level TeX programmer, and I don't understand a lot of
this, but it looks like
  \getrawnoflines\d_page_tests_test
puts the number of remaining lines into \noflines

Any suggestions are appreciated.
(And I should have a MWE soon.)

Lars

___
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] a way to implement \testcolumn in mixedcolumns

2013-11-20 Thread Lars Huttar
On 11/20/2013 4:47 PM, Lars Huttar wrote:
 However one thing we do miss from columnsets is the control over widows
  orphans in two ways: \testcolumn, and \setupcolumnsetlines.
 \testcolumn[n] allowed us to do a conditional column break, so when we
 were about to start a new subsection heading, we could prevent it being
 an orphan at the bottom of the column; and when starting a paragraph
 with a hangaround graphic framed flushright and bottom, we could
 similarly use \testcolumn to prevent the graphic from hanging down into
 the footer (which is what sometimes happened otherwise).

 So I'm wondering, is there some way to achieve the equivalent of
 \testcolumn in mixedcolumns?

Here is a MWE:

\starttext


\startmixedcolumns[distance=5mm, balance=yes]

\dorecurse {20} {

\testcolumn[8]

\subsection{Subsection Heading} \input knuth \endgraf

}

\stopmixedcolumns


\stoptext


You can see that the heading for subsection 6 is an orphan at the bottom
of a column (at least, with the paper size settings I have; otherwise,
I'm sure it happens somewhere else). If \testcolumn worked, the
\testcolumn[8] would have shoved the subsection heading to the next
column, because there was not space for 8 lines left in the column at
that point.

Any thoughts on how to fix this kind of occurrence?

Thanks,
Lars

___
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] widowpenalty in mixedcolumns

2013-11-12 Thread Joshua Krämer
Dear list,

while \widowpenalty is respected in conventional columns, inside or 
outside \startmixedcolumns and \stopmixedcolumns, it is ignored.  How can 
I make ConTeXt avoid widows in mixedcolumns?

(I can't use conventional columns, some things like distance=... don't 
work there.)

Thank you,
Joshua Krämer

MWE:

\starttext

\startmixedcolumns
%\startcolumns

\widowpenalty1

\dorecurse{290}{word }

\dorecurse{250}{second }

\stopmixedcolumns
%\stopcolumns

\stoptext

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] widowpenalty in mixedcolumns

2013-11-12 Thread Wolfgang Schuster
On 12. November 2013 at 18:36:49, Joshua Krämer (joshua.krae...@gmail.com) 
wrote:
Dear list,

while \widowpenalty is respected in conventional columns, inside or 
outside \startmixedcolumns and \stopmixedcolumns, it is ignored. How can 
I make ConTeXt avoid widows in mixedcolumns?

(I can't use conventional columns, some things like distance=... don't 
work there.)

Thank you,
Joshua Krämer

MWE:

\starttext

\startmixedcolumns
%\startcolumns

\widowpenalty1

\dorecurse{290}{word }

\dorecurse{250}{second }

\stopmixedcolumns
%\stopcolumns

\stoptext

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___
\starttext



\startcolumns

\input knuth

\stopcolumns



\startcolumns[distance=4cm]

\input knuth

\stopcolumns



\stoptext

-- 
Wolfgang Schuster___
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] widowpenalty in mixedcolumns

2013-11-12 Thread Joshua Krämer
Dear Wolfgang,

thanks for your answer.  Please compare:

\starttext

\startcolumns[distance=5pt]
\input knuth
\stopcolumns

\startmixedcolumns[distance=5pt]
\input knuth
\stopmixedcolumns

\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] widowpenalty in mixedcolumns

2013-11-12 Thread Wolfgang Schuster


On 12. November 2013 at 18:45:55, Joshua Krämer (joshua.krae...@gmail.com) 
wrote:

Dear Wolfgang, 

thanks for your answer. Please compare: 

\starttext 

\startcolumns[distance=5pt] 
\input knuth 
\stopcolumns 

\startmixedcolumns[distance=5pt] 
\input knuth 
\stopmixedcolumns 

\stoptext
You have to set the values of the offset key to 0pt to use only the values for 
distance:

\starttext

\startcolumns[distance=5pt,offset=0pt]
\input knuth 
\stopcolumns 

\startmixedcolumns[distance=5pt]
\input knuth 
\stopmixedcolumns 

\stoptext

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] widowpenalty in mixedcolumns

2013-11-12 Thread Joshua Krämer
Am Tue, 12 Nov 2013 19:00:52 +0100 schrieb Wolfgang Schuster:

 \stoptext You have to set the values of the offset key to 0pt to use
 only the values for distance:

Thanks, that did the trick.  However, I still wonder why \widowpenalty 
doesn't work in mixedcolumns.  This should be revised.  Maybe penalty 
keys for \setupmixedcolumns and \startmixedcolumns would be even better.

Kind regards,
Joshua Krämer

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] columns

2013-10-03 Thread Wolfgang Schuster

Am 03.10.2013 um 10:21 schrieb H. van der Meer h.vanderm...@uva.nl:

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

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

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

\setupalign[verytolerant]

\starttext

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

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

\stoptext

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns

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

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

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

Hans van der Meer



columns-inside.pdf
Description: Adobe PDF document

On 3 okt. 2013, at 11:09, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 03.10.2013 um 10:21 schrieb H. van der Meer h.vanderm...@uva.nl:
 
 I have some difficulties with columns inside a framedtext. The example below 
 shows that columns does not work inside framedtext, whereas simplecolumns 
 does. However, the latter does not show rules between the columns. Can I 
 have both?
 
 Is columns definitely not working here or is it temporarily until something 
 is fixed? Or will simplecolumns be extended to show the rules?
 
 % test columns within framedtext
 \starttext
 \startframedtext[width=\makeupwidth]
 \startcolumns[n=2,rule=on,balance=yes]
 \input tufte
 \stopcolumns
 \stopframedtext
 \startframedtext[width=\makeupwidth]
 \blank
 \startsimplecolumns[n=2,rule=on,balance=yes]
 \input tufte
 \stopsimplecolumns
 \stopframedtext
 \stoptext
 
 The new mixedcolumns environment can be used to the typeset columns in a 
 frame.
 
 There is also a predefined bolxedcolumns environment which changes the width 
 of
 the columns when you use it in \startframed etc.
 
 \setupalign[verytolerant]
 
 \starttext
 
 \startboxedcolumns[separator=rule]
 \input tufte
 \stopboxedcolumns
 
 \startframedtext[width=max,align=verytolerant]
 \startboxedcolumns[separator=rule]
 \input tufte
 \stopboxedcolumns
 \stopframedtext
 
 \stoptext
 
 Wolfgang
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] columns

2013-10-03 Thread Wolfgang Schuster

Am 03.10.2013 um 12:02 schrieb H. van der Meer h.vanderm...@uva.nl:

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

Boxedcolumns are a instance of mixedcolumns and are defined as

   \definemixedcolumns[boxedcolumns]


You can also use them this way:

   \startmixedcolumns[boxedcolumns]
   …
   \stopmixedcolumns


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns

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

Hans van der Meer



On 3 okt. 2013, at 12:07, Wolfgang Schuster schuster.wolfg...@gmail.com
 wrote:

 
 Am 03.10.2013 um 12:02 schrieb H. van der Meer h.vanderm...@uva.nl:
 
 Thanks, 
 
 But I think mixedcolumns has to solve a problem width the width of the 
 frametext. Whereas boxedcolumns honors the width of the enclosing 
 framedtext, mixedcolumns does not. See the example.
 
 Boxedcolumns are a instance of mixedcolumns and are defined as
 
   \definemixedcolumns[boxedcolumns]
 
 
 You can also use them this way:
 
   \startmixedcolumns[boxedcolumns]
   …
   \stopmixedcolumns
 
 
 Wolfgang
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns

2013-10-03 Thread Wolfgang Schuster

Am 03.10.2013 um 12:26 schrieb H. van der Meer h.vanderm...@uva.nl:

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

The global settings for mixedcolumns are

   \setupmixedcolumns
 [maxwidth=\makeupwidth]

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

   \definemixedcolumns
 [boxedcolumns]
 [maxwidth=\availablehsize]

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

Wolfgang


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns

2013-10-03 Thread Hans Hagen

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


Am 03.10.2013 um 12:26 schrieb H. van der Meer h.vanderm...@uva.nl:


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


The global settings for mixedcolumns are

\setupmixedcolumns
  [maxwidth=\makeupwidth]

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

\definemixedcolumns
  [boxedcolumns]
  [maxwidth=\availablehsize]

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


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


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] columns

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

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


 Am 03.10.2013 um 12:26 schrieb H. van der Meer h.vanderm...@uva.nl:

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


 The global settings for mixedcolumns are

 \setupmixedcolumns
   [maxwidth=\makeupwidth]

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

 \definemixedcolumns
   [boxedcolumns]
   [maxwidth=\availablehsize]

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


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

 For the curious:
mvl is the main vertical list ,
see
books.google.com
The advanced Texbook
pag 295


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Mixedcolumns maximum height for vertical rule: bug?

2013-09-24 Thread Thangalin
Hi,

The horizontal rule for the first page extends to the bottom of the page,
but does not do so on the second page. How do you prevent the vertical rule
from extending to the bottom of the page?

\usemodule[ipsum]
\setuplayout[
  topspace=\zeropoint,
  height=fit,
  width=fit, % Allow text to be flush with the bottom.
  %footerdistance=2cm,]
\definemixedcolumns[StyleColumns][
  frame=off,
  separator=rule,
  rulecolor=black,
  alternative=global,
  %maxheight=\textheight,]
% Set up two-column mode for the ingredients, instructions,
etc.\setuphead[section][
  after={\startStyleColumns},
  aftersection={\stopStyleColumns},]
\def\StylePageNumber#1{%
  {\inframed[
frame=off,
background=color,
backgroundcolor=red,
width=2em,
height=2em,
  ]{#1}}}
\setuppagenumbering[location=inright,command=\StylePageNumber,]
\starttext\startchapter[title=Chapter]
  \startsection[title=Section]
\input knuth \input zapf \ipsum \input knuth \input knuth \input zapf
  \stopsection\stopchapter\stoptext


For further details, see: http://tex.stackexchange.com/q/134750/2148

Kindest regards.
___
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] bad column break

2013-06-21 Thread Wolfgang Schuster

Am 21.06.2013 um 15:34 schrieb Peter Münster pmli...@free.fr:

 Hi,
 
 IMO, ConTeXt should start a new column *before* the section title,
 not *after* it:
 
 --8---cut here---start-8---
 \def\Section#1{%
  \startsection[title=Title]
\dorecurse{#1}{\dorecurse{12}{bla }}
  \stopsection}
 \starttext
 \startcolumns[n=2]
 \Section{15}
 \Section{10}
 %\column %%% Why do we need this?!
 \Section{10}
 \Section{10}
 \Section{2}
 \stopcolumns
 \stoptext
 --8---cut here---end---8---

Use the new mixedcolumns environment.

\starttext
\startmixedcolumns
…
\stopmixedcolumns
\stoptext

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problems with columns and grid

2013-06-03 Thread Wolfgang Schuster

Am 04.06.2013 um 00:35 schrieb Joshua Krämer joshua.krae...@gmail.com:

 One other problem has appeared:  \startmixedcolumns[align=right] doesn't 
 work (align=... works with \startcolumns).  How can I change the 
 alignment?

The mixedcolumns doesn’t have a option for this yet but (tolerance and blank
options are missing as well) but they can be added.

In the meantime you can add \setupalign[flushleft] at the begin of the 
environment.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bug in \column

2013-03-22 Thread Xan

Al 21/03/13 23:58, En/na Wolfgang Schuster ha escrit:

Am 21.03.2013 um 09:40 schrieb Xan dxpubl...@telefonica.net:


Thanks guys for trying to solve which I definitely tag as a bug ;-). It seems 
there is no faster solution but surely Hans will find one ;-) By the user 
perspective it's an annoying behaviour and I have to change manually the 
paragraphs (adding \{*}skip commands). I think you will find a solution at the 
end. It's too much technical discussion for me. I'm sorry I can't do anything 
else. But I'm glad to see this discussion (so mantain me as CC)

If I could do anything, please say to me.

Can you test your example with the mixedcolumns environment
instead of the normal columns environment (use the latest beta).

Wolfgang
Yes, ofcourse. But what steps I have to do for that. I'm running context 
minimals (I don't know if stable or beta).



Thanks,
Xan.
___
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] Bug in \column

2013-03-22 Thread Xan

Al 21/03/13 23:58, En/na Wolfgang Schuster ha escrit:
Can you test your example with the mixedcolumns environment instead of 
the normal columns environment (use the latest beta). Wolfgang 

My current version of context is:

2012.07.27 16:41

(context --version produces this)

Sorry,
Xan.
___
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] Bug in \column

2013-03-22 Thread Xan

Al 21/03/13 23:58, En/na Wolfgang Schuster ha escrit:

Am 21.03.2013 um 09:40 schrieb Xan dxpubl...@telefonica.net:


Thanks guys for trying to solve which I definitely tag as a bug ;-). It seems 
there is no faster solution but surely Hans will find one ;-) By the user 
perspective it's an annoying behaviour and I have to change manually the 
paragraphs (adding \{*}skip commands). I think you will find a solution at the 
end. It's too much technical discussion for me. I'm sorry I can't do anything 
else. But I'm glad to see this discussion (so mantain me as CC)

If I could do anything, please say to me.

Can you test your example with the mixedcolumns environment
instead of the normal columns environment (use the latest beta).

Wolfgang
Now I have the beta context version. Now I want to use in my example 
mixedcolumns. But nothing in the wiki is present of how to work 
mixedcolumns.


Xan.
___
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] Bug in \column

2013-03-22 Thread Xan

Al 21/03/13 23:58, En/na Wolfgang Schuster ha escrit:

Am 21.03.2013 um 09:40 schrieb Xan dxpubl...@telefonica.net:


Thanks guys for trying to solve which I definitely tag as a bug ;-). It seems 
there is no faster solution but surely Hans will find one ;-) By the user 
perspective it's an annoying behaviour and I have to change manually the 
paragraphs (adding \{*}skip commands). I think you will find a solution at the 
end. It's too much technical discussion for me. I'm sorry I can't do anything 
else. But I'm glad to see this discussion (so mantain me as CC)

If I could do anything, please say to me.

Can you test your example with the mixedcolumns environment
instead of the normal columns environment (use the latest beta).

Wolfgang

Yes, it works perfectly (I attach my example).

Can someone put reference on wiki on such environment? Useful for novice 
users like me.


Thanks for all,
Xan.
\enableregime[utf]
\setupbodyfont [cmr,11pt]
\mainlanguage[ca]
\setuppagenumbering [location={footer}]
\setuppapersize [A4]
\setuplayout[topspace=1.5cm,margin=1.5cm,header=1.5cm,footer=1.5cm,width=fit,height=fit,backspace=1.5cm]
\setuphead[title][align={center},style={\sca}, after={\medskip}]
\setuphead[subject][after={\hrule\medskip}]

% AMSTHM
\defineenumeration
  [exercici]
  [text={Exercici},headstyle=bold,between=\blank,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss,title=yes,titlestyle=\ss,titledistance=.5em]


% Heads and footers
\setupfootertexts[\pagenumber]
\setupfooter[text][before=\hrule]
\setupheader[text][after=\hrule]
\setupheadertexts[{\tfx \mid IES Binissalem \mid 4t D \mid MAT \mid }][{\tfx Sistemes d'equacions \mid Examen \mid 15/3/2012 \mid}]

% underline
\setupunderbar[alternative=b]


\starttext

\title{Examen de Matemàtiques}

\bigskip
\startframedtext[width=broad, location=middle, before={}]
\startalignment[middle]
Feis l'opció comuna de totes maneres i, després, trieu entre l'Opció A o l'Opció B
\stopalignment
\stopframedtext

\subject{Part comuna}

\startcolumns

\startexercici Resoleu emprant el mètode de substitució:

\placeformula
\startformula
\startmathalignment
\NC x + 3y \NC = 9 \NR[+]
\NC 2x - y \NC = 3 \NR
\stopmathalignment
\stopformula

\stopexercici

\startexercici Resoleu pel mètode de reducció:
\placeformula
\startformula
\startmathalignment
\NC 3x + 7y \NC = -23 \NR[+]
\NC 5x + 4y \NC = -23 \NR
\stopmathalignment
\stopformula

\stopexercici

\stopcolumns


\subject{Opció A}

\startexercici Resoleu pel mètode que vulgueu:

\placeformula
\startformula
\startmathalignment
\NC \frac{x}{3} + \frac{4y}{5} - 3(x+y) \NC = -19 \NR[+]
\NC \frac{3x}{3} - \frac{1}{3} (y-5) \NC = 3 \NR
\stopmathalignment
\stopformula

\stopexercici


\subject{Opció B}

\startmixedcolumns

\startexercici Resoleu aquest sistema pel mètode que vulgueu:

\placeformula
\startformula
\startmathalignment
\NC -2x - y \NC = -11 \NR[+]
\NC 3x - y \NC = 9 \NR
\stopmathalignment
\stopformula

\stopexercici
%\bigskip

\column

\startexercici Resoleu el sistema següent pel mètode que considereu oportú:

\placeformula
\startformula
\startmathalignment
\NC 2x + \frac{5y}{2} \NC = 7 \NR[+]
\NC -3x + y \NC = -1 \NR
\stopmathalignment
\stopformula
\stopexercici

\stopmixedcolumns

\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] Bug in \column

2013-03-21 Thread Wolfgang Schuster

Am 21.03.2013 um 09:40 schrieb Xan dxpubl...@telefonica.net:

 Thanks guys for trying to solve which I definitely tag as a bug ;-). It seems 
 there is no faster solution but surely Hans will find one ;-) By the user 
 perspective it's an annoying behaviour and I have to change manually the 
 paragraphs (adding \{*}skip commands). I think you will find a solution at 
 the end. It's too much technical discussion for me. I'm sorry I can't do 
 anything else. But I'm glad to see this discussion (so mantain me as CC)
 
 If I could do anything, please say to me.

Can you test your example with the mixedcolumns environment
instead of the normal columns environment (use the latest beta).

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Limitation of mixedcolumns?

2012-07-28 Thread Zhichu Chen
The nested mixedcolumns does not work properly when it reaches the
bottom of the outer mixedcolumns here:
$ context --version

mtx-context | ConTeXt Process Management 0.60
mtx-context |
mtx-context | main context file:
d:/ConTeXt/tex/texmf-local/tex/context/base/context.mkiv
mtx-context | current version: 2012.07.24 15:58

here is the minimal example (mostly copied from page-mix.mkiv
===
\setupbodyfont[5pt]


\starttext

\setupmixedcolumns
  [boxedcolumns]
  [n=2,
   balance=no]

\definemixedcolumns
  [nestedboxedcolumns]
  [boxedcolumns]
  [n=2,
   background=color,
   backgroundcolor=yellow,
   color=red,
   strut=yes,
   balance=yes,
   backgroundoffset=0mm]

\startboxedcolumns
%\dorecurse{10}{\input zapf \par \input ward \par} \obeydepth
\startnestedboxedcolumns
\dorecurse{15}{\input zapf\par}
\stopnestedboxedcolumns
\par \input zapf \par \obeydepth
\startnestedboxedcolumns
\input zapf
\stopnestedboxedcolumns
\par \input zapf
\stopboxedcolumns

\stoptext

-- 
Best Regards
Chen
___
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] two questions for the simplest slides

2012-07-22 Thread Wolfgang Schuster

Am 22.07.2012 um 10:29 schrieb Pablo Rodríguez:

 On 22/07/12 09:58, Wolfgang Schuster wrote:
 Am 21.07.2012 um 21:25 schrieb Peter Münster:
 On Sat, Jul 21 2012, Pablo Rodríguez wrote:
 Page is red and text is white.
 [...]
 
 You mean something like this?
 
 Many thanks for your reply, Wolfgang.
 
 I mean something like that, but I have problems when adding such an xtable:
 
 \startxtable[option={stretch,width},frame=off,split=yes]
 \dorecurse{100}{  \startxrow
  \startxcell right \stopxcell
  \startxcell left \stopxcell
  \stopxrow}
 \stopxtable
 
 The xtable itself won't be aligned when I set split=yes and won't be
 split in pages.

The makeup environment creates a page sized box which doesn’t allow material 
which is split over many pages.

When you have such a large table you have to use a different implementation but 
maybe it’s better to look
if you can reduce the size of the table and or to use multiple columns (the new 
mixedcolumns environment
can be also used in a box).

 BTW, how can I make that the first column are aligned to the right?
 \setupxtable[xcell][1][align=right] doesn't seem to work.

Xtables don’t provide the same method as natural tables to set value for 
individual rows or columns,
you have to apply the setting to each cell or cell group (can be a direct 
setting via key-val or a named setting).

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] two questions for the simplest slides

2012-07-22 Thread Pablo Rodríguez
On 22/07/12 11:07, Wolfgang Schuster wrote:
 Am 22.07.2012 um 10:29 schrieb Pablo Rodríguez:
 [...]
 The xtable itself won't be aligned when I set split=yes and won't be
 split in pages.
 
 The makeup environment creates a page sized box which doesn’t allow material 
 which is split over many pages.
 
 When you have such a large table you have to use a different implementation 
 but maybe it’s better to look
 if you can reduce the size of the table and or to use multiple columns (the 
 new mixedcolumns environment
 can be also used in a box).

Many thanks for your reply, Wolfgang,

I'm afraid I can't reduce the size or use multiple columns without
rendering the text to be unreadable.

All I need is that any material on the slides is centered both
vertically and horizontally and can be split over pages if needed. Is
there any way to get this?

 BTW, how can I make that the first column are aligned to the right?
 \setupxtable[xcell][1][align=right] doesn't seem to work.
 
 Xtables don’t provide the same method as natural tables to set value for 
 individual rows or columns,
 you have to apply the setting to each cell or cell group (can be a direct 
 setting via key-val or a named setting).

\startxcell[align=right] right \stopxcell doesn't change alingment.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___