[NTG-context] Margin heading problem, was Re: sections

2014-06-01 Thread Rik Kabel

On 2014-06-01 12:52, Hans Hagen wrote:

On 6/1/2014 5:40 PM, Rik wrote:


Is this also the cause of problems I noted with heading placed into the
margin, as in the example below?


no, unrelated, try this:

\setuphead
  [section]
  [after={\strut\blank[-2*line,samepage,disable]},
   command=\SectionCommand,
   distance=0pt]

\define[2]\SectionCommand{\inleft{XX}}


That was fine until it ran into \setupwhitespace with a non-zero value. 
Fiddling with the after key \blank does not appear to help.


   \define[2]\MarginHead{\inmargin{#1\\#2}}
   \setuphead[section]
  [command=\MarginHead,
   distance=0pt,
   after={\strut\blank[-2*line,samepage,disable]}]
   %% With no \setupwhitespace, or any \setupwhitespace setting that
   %%   results in zero interparagraph whitespace, all is well.
   %setupwhitespace  [none]%okay
   %setupwhitespace  [fix]% okay
   %% With non-zero interparagraph whitespace, the heading separates
   %%   from the text
   \setupwhitespace  [line]%bad
   \starttext
   \startchapter[title={Weisman}]
 \input weisman\par
 \input weisman
   \startsection[title={Thuan}]
 \input thuan\par
 \input thuan
   \stopsection
   \stopchapter
   \stoptext

--
Rik Kabel
___
If your question is of interest to others as well, please add an 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] Problem with astronomicalunit in \unit

2014-06-01 Thread Hans Hagen

On 6/1/2014 10:48 PM, Romain Diss wrote:

Hi all,

It seems that the \unit parser doesn't recognize the 'astronomicalunit'.

Minimal exemple:
\starttext
\unit{100 astronomicalunit}


\unit { 100 astronomical unit}

works ok ... I'll add the nonspaced one


\stoptext
% Rendering gives 100 as.t
% One expect 100 au

Thanks for help.

--
Romain Diss
___
If your question is of interest to others as well, please add an 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] sections

2014-06-01 Thread Hans Hagen

On 6/1/2014 8:18 PM, Pablo Rodriguez wrote:

Hi Hans,

I found out that the issue I wrote about in my previous message is about
widow and orphan lines.


indeed, when testing setting them to 0 helps (there are more cases when 
such penalties interfere, idem for (ex)hyphenpenalty)


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] Problem with astronomicalunit in \unit

2014-06-01 Thread Hans Hagen

On 6/1/2014 10:48 PM, Romain Diss wrote:

Hi all,

It seems that the \unit parser doesn't recognize the 'astronomicalunit'.

Minimal exemple:
\starttext
\unit{100 astronomicalunit}
\stoptext
% Rendering gives 100 as.t
% One expect 100 au


so what should be rendered?

-
  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] Problem with astronomicalunit in \unit

2014-06-01 Thread Romain Diss
Hi all,

It seems that the \unit parser doesn't recognize the 'astronomicalunit'.

Minimal exemple:
\starttext
\unit{100 astronomicalunit}
\stoptext
% Rendering gives 100 as.t
% One expect 100 au

Thanks for help.

--
Romain Diss
___
If your question is of interest to others as well, please add an 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] sections

2014-06-01 Thread Pablo Rodriguez
Hi Hans,

I found out that the issue I wrote about in my previous message is about
widow and orphan lines.

Here is the sample:

\showframe\showgrid
\setuplayout[setups=*lessstrict]
\startsetups[*lessstrict]
\setup[reset]
\widowpenalty=1
\clubpenalty=1
\stopsetups
\setupbodyfont[pagella,15pt]
\starttext
\chapter{Chapter}
\section{Section}
\dorecurse{103}{\ConTeXt\ is fun! }

\subsection{Subsection}

\ConTeXt\ is fun!
\stoptext

Many thanks for your excellent work,

Pablo



On 06/01/2014 01:51 PM, Hans Hagen wrote:
> Hi Pablo,
> 
> The section breaks are a bit of a headache. In the old mechanism (also 
> mkii) we used penalties between different section levels (different 
> values so that there is some hierarchy).
> 
> In mkiv we have a weighted penalty/glue mechanism which has advantages 
> but can also create side effects. The method of a few weeks ago coul 
> deal with
> 
> \section followed by 100 \subsections
> 
> i.e. no text between this. In a strict mechanism you end up with one 
> long page fur to all the penalties. So, there was some precaution for 
> this. However that didn't work well with content following sections that 
> prefers breaks (read: section head followed by e.g. itemize or tabulate).
> 
> So, the newer mechanism tries to analyze the page stream which 
> (currently) is somewhat tricky. That's why we need to iterate to an 
> acceptable solution.
> 
> Some of these mkiv mechanisms are already a bit old and could be done 
> better using some newer luatex trickery (but i need tome to do that).
> 
> It would be nice to have a large test case for this (sort of hard to 
> make one as some trial and error is involved). As you already have some, 
> best collect them for future reference.
> 
> A new beta ...
> 
> Hans


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


Re: [NTG-context] sections

2014-06-01 Thread Pablo Rodriguez
Hi Hans,

many thanks for your explanation and sorry for the trouble.

I created the test case that only contains three issues related to page
breaks.

Many thanks for the new beta, I’m afraid I’m still experiencing issues.

\showframe\showgrid
\setupbodyfont[pagella,15pt]
\starttext
\dorecurse{100}{This is a sentence. }

\startitemize
\dorecurse{3}{\item This is an item.\par}
\stopitemize
\stoptext

Previous beta located two items on the first page. Latest beta locates
only one. But when items are higher than two, the first item disappears
from the first page in the second run.

And my first sample works fine with the new beta, but not with the real
book. I’ll try to get a new sample.

Many thanks for your help again,


Pablo.


On 06/01/2014 01:51 PM, Hans Hagen wrote:
> Hi Pablo,
> 
> The section breaks are a bit of a headache. In the old mechanism (also 
> mkii) we used penalties between different section levels (different 
> values so that there is some hierarchy).
> 
> In mkiv we have a weighted penalty/glue mechanism which has advantages 
> but can also create side effects. The method of a few weeks ago could 
> deal with
> 
> \section followed by 100 \subsections
> 
> i.e. no text between this. In a strict mechanism you end up with one 
> long page fur to all the penalties. So, there was some precaution for 
> this. However that didn't work well with content following sections that 
> prefers breaks (read: section head followed by e.g. itemize or tabulate).
> 
> So, the newer mechanism tries to analyze the page stream which 
> (currently) is somewhat tricky. That's why we need to iterate to an 
> acceptable solution.
> 
> Some of these mkiv mechanisms are already a bit old and could be done 
> better using some newer luatex trickery (but i need tome to do that).
> 
> It would be nice to have a large test case for this (sort of hard to 
> make one as some trial and error is involved). As you already have some, 
> best collect them for future reference.
> 
> A new beta ...
> 
> Hans


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


Re: [NTG-context] sections

2014-06-01 Thread Hans Hagen

On 6/1/2014 5:40 PM, Rik wrote:


Is this also the cause of problems I noted with heading placed into the
margin, as in the example below?


no, unrelated, try this:

\setuphead
  [section]
  [after={\strut\blank[-2*line,samepage,disable]},
   command=\SectionCommand,
   distance=0pt]

\define[2]\SectionCommand{\inleft{XX}}


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

2014-06-01 Thread Rik

On 2014-06-01 07:51, Hans Hagen wrote:

Hi Pablo,

The section breaks are a bit of a headache. In the old mechanism (also 
mkii) we used penalties between different section levels (different 
values so that there is some hierarchy).


In mkiv we have a weighted penalty/glue mechanism which has advantages 
but can also create side effects. The method of a few weeks ago coul 
deal with


\section followed by 100 \subsections

i.e. no text between this. In a strict mechanism you end up with one 
long page fur to all the penalties. So, there was some precaution for 
this. However that didn't work well with content following sections 
that prefers breaks (read: section head followed by e.g. itemize or 
tabulate).


So, the newer mechanism tries to analyze the page stream which 
(currently) is somewhat tricky. That's why we need to iterate to an 
acceptable solution.


Some of these mkiv mechanisms are already a bit old and could be done 
better using some newer luatex trickery (but i need tome to do that).


It would be nice to have a large test case for this (sort of hard to 
make one as some trial and error is involved). As you already have 
some, best collect them for future reference.


A new beta ...

Hans


Hans,

Is this also the cause of problems I noted with heading placed into the 
margin, as in the example below?


   %   Extra whitespace after some marginal section headings
   %
   %   When section heads are set in the margin, the following body
   %   text should start on the same line as the heading. This is
   %   the case with plain text, but not always the case with other
   %   features (floats and enumerations). Wolfgang suggested adding
   %   insidesection={blank[overlay]} to the section heading setup, but
   %   that only helps with enumerations and with tabulate tables that do
   %   not start with an HL (it fails with natural tables as well). And
   %   that success only comes with start/stop sectioning. With traditional
   %   sectioning, there are more failures.
   %
   %
  \setupexternalfigures[location=default]
  \setuphead
[section]
[alternative=text,
 command=\SectionCommand,
 distance=0pt,
 insidesection={\blank[overlay]},
]

  \define[2]\SectionCommand
{\inmargin{#1 -- #2}}

  \setuplayout[backspace=4cm]

  \starttext
  \startchapter[title={Start/Stop sectioning}]
  \startsection[title={Okay with text first}]

  Text here
  \starttabulate
  \FL \NC Knuth \NC \input{knuth} \NC\NR
  \stoptabulate

  \stopsection
  \startsection[title={Okay with itemize}]

  \startitemize
  \item One
  \item Two
  \item Three
  \stopitemize

  \stopsection
  \startsection[title={Okay with tabulate no HL}]

  \starttabulate
  \NC Knuth \NC \input{knuth} \NC\NR
  \stoptabulate

  \page
  \stopsection
  \startsection[title={Fail with tabulate HL}]

  \starttabulate
  \FL \NC Knuth \NC \input{knuth} \NC\NR
  \stoptabulate
  \stopsection
  \startsection[title={Fail with TABLE frame}]

  \bTABLE
  \bTR \bTD Knuth \eTD\bTD \input{knuth} \eTD\eTR
  \eTABLE

  \stopsection
  \startsection[title={Fail with TABLE no frame}]

  \bTABLE[frame=off]
  \bTR \bTD Knuth \eTD\bTD \input{knuth} \eTD\eTR
  \eTABLE

  \page
  \stopsection
  \startsection[title={Fails with figures}]

   \startplacefigure[location=right,reference={fig:2},title={Caption}]
\externalfigure[cow.pdf][width=2cm]
  \stopplacefigure

  \input{tufte}

  \stopsection
  \stopchapter

  \chapter{Traditional sectioning}

  \section{Okay with text first}

  Text here
  \starttabulate
  \FL \NC Knuth \NC \input{knuth} \NC\NR
  \stoptabulate

  \section{Fail with itemize}

  \startitemize
  \item One
  \item Two
  \item Three
  \stopitemize

  \page
  \section{Fail with tabulate no HL}

  \starttabulate
  \NC Knuth \NC \input{knuth} \NC\NR
  \stoptabulate

  \section{Fail with tabulate HL}

  \starttabulate
  \FL \NC Knuth \NC \input{knuth} \NC\NR
  \stoptabulate

  \section{Fail with TABLE frame}

  \bTABLE
  \bTR \bTD Knuth \eTD\bTD \input{knuth} \eTD\eTR
  \eTABLE

  \section{Fail with TABLE no frame}

  \bTABLE[frame=off]
  \bTR \bTD Knuth \eTD\bTD \input{knuth} \eTD\eTR
  \eTABLE

  \page
  \section[title={Fails with figures startstop}]

   \startplacefigure[location=right,reference={fig:2},title={Caption}]
\externalfigure[cow.pdf][width=2

Re: [NTG-context] Quotation blocs with repetition symbol in the left column

2014-06-01 Thread Rik Kabel

On 2014-06-01 07:38, Stéphane Goujet wrote:

On Fri, 28 Mar 2014, Stéphane Goujet wrote:


 I am trying to typeset old books and I chose to keep close to the
original typography.
=
1) It must work when starting from a new line as well as when starting
from the middle of the current line. 2 different environments are
allowed.

2) The environnement is wrapped in guillemets.

3a) There must be no extra space before the opening guillemet when
starting from the middle of the current line.

3b) The must be no extra space after the closing guillemet.

4) The quote repetition symbol must appear in the beginning of every
line, except the first one.

5) Paragraphs should be automatically indented. Manual indentation is
bearable.

6a) When there is an indentation, the quote repetition symbol must be
indented too.

6b) When the bloc starts on a new line, the opening guillemet must be
indented.

7) The quote repetition symbol must be a setup parameter of the
environment, or easily modifiable within the environment definition.
(in the example images, it is a *closing* guillemet, but in other books
it can be an *opening* guillemet).

8) This environment must work within footnotes too.
=


  I just fortuitously learned on Luatex mailing list that it only took 
this command : \localleftbox{}


  So, the quotation block would be :


\define\qbopen{«}
\define\qbrep{»}
\define\qbclose{»}
\definestartstop
   [bloccite]
   [before=\qbopen~\begingroup\localleftbox{\qbrep~},
after=\endgroup~\qbclose]


  Might need a bit of kerning to have all spaces look good, but 
basically, this is it. Just this...



Goodbye,
  Stéphane Goujet.


Perfect! Thank you.

--
Rik
___
If your question is of interest to others as well, please add an 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] Quotation blocs with repetition symbol in the left column

2014-06-01 Thread Hans Hagen

On 6/1/2014 1:38 PM, Stéphane Goujet wrote:

On Fri, 28 Mar 2014, Stéphane Goujet wrote:


 I am trying to typeset old books and I chose to keep close to the
original typography.
=
1) It must work when starting from a new line as well as when starting
from the middle of the current line. 2 different environments are
allowed.

2) The environnement is wrapped in guillemets.

3a) There must be no extra space before the opening guillemet when
starting from the middle of the current line.

3b) The must be no extra space after the closing guillemet.

4) The quote repetition symbol must appear in the beginning of every
line, except the first one.

5) Paragraphs should be automatically indented. Manual indentation is
bearable.

6a) When there is an indentation, the quote repetition symbol must be
indented too.

6b) When the bloc starts on a new line, the opening guillemet must be
indented.

7) The quote repetition symbol must be a setup parameter of the
environment, or easily modifiable within the environment definition.
(in the example images, it is a *closing* guillemet, but in other books
it can be an *opening* guillemet).

8) This environment must work within footnotes too.
=


   I just fortuitously learned on Luatex mailing list that it only took
this command : \localleftbox{}

   So, the quotation block would be :


\define\qbopen{«}
\define\qbrep{»}
\define\qbclose{»}
\definestartstop
[bloccite]
[before=\qbopen~\begingroup\localleftbox{\qbrep~},
 after=\endgroup~\qbclose]


   Might need a bit of kerning to have all spaces look good, but
basically, this is it. Just this...


In fact, you loose some of the advantages of quotations, so best is to 
extend the delimiter code. I've added this:


\mainlanguage[fr]

\starttext

\input tufte

\startquotation
\input tufte
\stopquotation

\input tufte

\setupdelimitedtext
  [quotation]
  [nextleft=right,
   nextright=left]

\startquotation
\input tufte
\stopquotation

\input tufte

\setupdelimitedtext
  [quotation]
  [nextleft={\symbol[nextleftquotation]},
   nextright={\symbol[nextrightquotation]}]

\startquotation
\input tufte
\stopquotation

\input tufte

\stoptext

Will be in the next beta (not yet uploaded) and needs to be wikified.

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

2014-06-01 Thread Hans Hagen

Hi Pablo,

The section breaks are a bit of a headache. In the old mechanism (also 
mkii) we used penalties between different section levels (different 
values so that there is some hierarchy).


In mkiv we have a weighted penalty/glue mechanism which has advantages 
but can also create side effects. The method of a few weeks ago coul 
deal with


\section followed by 100 \subsections

i.e. no text between this. In a strict mechanism you end up with one 
long page fur to all the penalties. So, there was some precaution for 
this. However that didn't work well with content following sections that 
prefers breaks (read: section head followed by e.g. itemize or tabulate).


So, the newer mechanism tries to analyze the page stream which 
(currently) is somewhat tricky. That's why we need to iterate to an 
acceptable solution.


Some of these mkiv mechanisms are already a bit old and could be done 
better using some newer luatex trickery (but i need tome to do that).


It would be nice to have a large test case for this (sort of hard to 
make one as some trial and error is involved). As you already have some, 
best collect them for future reference.


A new beta ...

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] dx=1cm with imposition: how to disable "right" most dx?

2014-06-01 Thread Xan
Oh! thanks. Now I have to try for having the same space on left and on right.

Thanks


On Sun, 01 Jun 2014 13:16:06 +0200
Hans Hagen  ha escrit:

> On 6/1/2014 12:00 PM, Xan wrote:
> > Hi,
> >
> > I have this code:
> >
> > \definepapersize[carnet][width=8.50cm,height=5.40cm]
> >
> > \setuppapersize [carnet][A4]
> >
> > \setuppaper []
> > \setuplayout[page] [topspace=0.02cm, backspace=0.02cm, 
> > header=0.02cm,margin=0.02cm,width=middle,footer=0.02cm,height=fit]
> > \setuplayout[page]
> > \setuplayout[location=middle,marking=on,nx=2,ny=4,dy=1cm,dx=1cm]
> >
> >
> > When I run context, the "dx" distance is added to the right of the 
> > "rightest" page of type "carnet". So I have an extra right dx distance that 
> > it annyoes me becase in double printing pages, the side above and the side 
> > below don't match.
> >
> > How can I prevent that?
> 
> \definepageshift[test][horizontal][8mm]
> \setuppageshift[test]
> 
> -
>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] bugs in page break (relevant for TeX Live 2014)

2014-06-01 Thread Hans Hagen

On 6/1/2014 7:09 AM, Pablo Rodriguez wrote:

Dear Hans,

there is a wrong page break introduced in the stable version intended
for TeX Live 2014.


it's unlikely to be fixed in tl 2014 ... already frozen ... but there is 
updating built-in texlive so it's no big deal



Here you have the sample that shows the issue:

 \showframe\showgrid
 \setupbodyfont[pagella,15pt]

 \starttext
 \chapter{Chapter title}
 \section{Section title}
 \dorecurse{140}{Sentence. }
 \subsection{Subsection title}
 This is another line.
 \stoptext

Page break is wrong when \subsection is active or replaced with
\subsubsection. Page break is right when \subsection is disabled or
replaced with \section.

By the way, I experience another page break with lists (I guess it was
introduced with the same beta as above, but I’m not sure).

Here is the sample:

 \showframe\showgrid
 \setupbodyfont[pagella,15pt]
 \starttext
 \chapter{Chapter title}
 \section{Section title}
 \dorecurse{140}{Sentence. }

 \startitemize
 \dorecurse{4}{\item This is an item.\par}
 \stopitemize
 \stoptext

Page break above is wrong when recursion is over 2.


actually it's okay as context prevents a break between the first two and 
last two item entries (has always been the case)


\startitemize[loose]

disables 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] Quotation blocs with repetition symbol in the left column

2014-06-01 Thread Stéphane Goujet

On Fri, 28 Mar 2014, Stéphane Goujet wrote:


 I am trying to typeset old books and I chose to keep close to the
original typography.
=
1) It must work when starting from a new line as well as when starting
from the middle of the current line. 2 different environments are
allowed.

2) The environnement is wrapped in guillemets.

3a) There must be no extra space before the opening guillemet when
starting from the middle of the current line.

3b) The must be no extra space after the closing guillemet.

4) The quote repetition symbol must appear in the beginning of every
line, except the first one.

5) Paragraphs should be automatically indented. Manual indentation is
bearable.

6a) When there is an indentation, the quote repetition symbol must be
indented too.

6b) When the bloc starts on a new line, the opening guillemet must be
indented.

7) The quote repetition symbol must be a setup parameter of the
environment, or easily modifiable within the environment definition.
(in the example images, it is a *closing* guillemet, but in other books
it can be an *opening* guillemet).

8) This environment must work within footnotes too.
=


  I just fortuitously learned on Luatex mailing list that it only took 
this command : \localleftbox{}


  So, the quotation block would be :


\define\qbopen{«}
\define\qbrep{»}
\define\qbclose{»}
\definestartstop
   [bloccite]
   [before=\qbopen~\begingroup\localleftbox{\qbrep~},
after=\endgroup~\qbclose]


  Might need a bit of kerning to have all spaces look good, but basically, 
this is it. Just this...



Goodbye,
  Stéphane Goujet.___
If your question is of interest to others as well, please add an 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] “Case-insensitive” sorting for \placelistofsynonyms?

2014-06-01 Thread Hans Hagen

On 5/29/2014 10:51 AM, Benjamin Buchmuller wrote:

Hi list,

according to case-insensitive sorting for \placeregister[…][…, method=…], I 
tried to figure out how to achieve similar results for \placelistofsynonyms 
(has method-key too).

I tried this modified minimal example (that originally was proposed by Hans 
here: http://www.ntg.nl/pipermail/ntg-context/2010/052950.html), but failed:

\setuplayout[topspace=1cm,height=middle]

\setupbodyfont[11pt]

\starttext

\definesynonyms[abbr][abbrs][\unabbr]

\def\Test#1{\vbox{{\bf#1}\blank\placelistofabbrs[criterium=all,language=cz,method={#1}]}\blank}

wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank

\startcolumns[n=2]
  \Test{before} \Test{first}
 \Test{default}\Test{after}\Test{last}
\stopcolumns

\page

wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank

\startcolumns[n=3]
  \Test{mc,mm,uc} \Test{mc,zm,uc} \Test{mc,pm,uc}
  \Test{zc,mm,uc} \Test{zc,zm,uc} \Test{zc,pm,uc}
  \Test{pc,mm,uc} \Test{pc,zm,uc} \Test{pc,pm,uc}
\stopcolumns

\page

wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank

\startcolumns[n=3]
  \Test{mm,mc,uc} \Test{zm,mc,uc} \Test{pm,mc,uc}
  \Test{mm,zc,uc} \Test{zm,zc,uc} \Test{pm,zc,uc}
  \Test{mm,pc,uc} \Test{zm,pc,uc} \Test{pm,pc,uc}
\stopcolumns

\page

\dorecurse {2} {
 \page \recurselevel:
  \abbr{oá}{oáz}  \abbr{öb}{öbz}  \abbr{Oč}{Očz}  \abbr{Öď}{Öďz}
  \abbr{oo}{ooz}  \abbr{öo}{öoz}  \abbr{Oo}{Ooz}  \abbr{Öo}{Öoz}
  \abbr{Öq}{Öqz}  \abbr{öř}{öřz}  \abbr{Oš}{Ošz}  \abbr{oů}{oůz}
 done
}

\stoptext

Is there yet another way to modify sorting behaviour?


the sortign is ok, the flushing is the problem (took me a while to 
figure that out)


-
  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] dx=1cm with imposition: how to disable "right" most dx?

2014-06-01 Thread Hans Hagen

On 6/1/2014 12:00 PM, Xan wrote:

Hi,

I have this code:

\definepapersize[carnet][width=8.50cm,height=5.40cm]

\setuppapersize [carnet][A4]

\setuppaper []
\setuplayout[page] [topspace=0.02cm, backspace=0.02cm, 
header=0.02cm,margin=0.02cm,width=middle,footer=0.02cm,height=fit]
\setuplayout[page]
\setuplayout[location=middle,marking=on,nx=2,ny=4,dy=1cm,dx=1cm]


When I run context, the "dx" distance is added to the right of the "rightest" page of 
type "carnet". So I have an extra right dx distance that it annyoes me becase in double printing 
pages, the side above and the side below don't match.

How can I prevent that?


\definepageshift[test][horizontal][8mm]
\setuppageshift[test]

-
  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] dx=1cm with imposition: how to disable "right" most dx?

2014-06-01 Thread Xan
Hi,

I have this code:

\definepapersize[carnet][width=8.50cm,height=5.40cm]

\setuppapersize [carnet][A4]

\setuppaper []
\setuplayout[page] [topspace=0.02cm, backspace=0.02cm, 
header=0.02cm,margin=0.02cm,width=middle,footer=0.02cm,height=fit]
\setuplayout[page]
\setuplayout[location=middle,marking=on,nx=2,ny=4,dy=1cm,dx=1cm]


When I run context, the "dx" distance is added to the right of the "rightest" 
page of type "carnet". So I have an extra right dx distance that it annyoes me 
becase in double printing pages, the side above and the side below don't match.

How can I prevent that?

Thanks in advance,
Xan.

PS: Please CCme.
___
If your question is of interest to others as well, please add an 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
___