Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Pablo Rodriguez
On 2/6/20 5:15 PM, Henning Hraban Ramm wrote:
>
>> Am 2020-02-06 um 16:28 schrieb Pablo Rodriguez :
>>
>> My question is how to get a page from the document you‘re compiling
>> repeated inside the same document.
>
> I solved this with a component that I include twice. Of course that
> won’t work if you need a page in the middle of some text flow.

Many thanks for your reply, Hraban.

I don’t need a page in the middle of the text.

I need a single page document to be printed twice and doublesided.

I’m afraid I’d never used components and I cannot understand how this
would help to replicate the previous page in a document.

BTW, in my real-world document I use layers which are different for
first and other pages.

Could you provide a minimal sample showing how a component may include a
page twice?

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


Re: [NTG-context] repeat a page inside a document

2020-02-06 Thread Thomas Savary
Hi, Pablo !

Funny, I asked the same kind of question in a LaTeX mailing list a few days 
ago. The anwer I was given requires a LaTeX package, but is written in TeX as 
well, so it may be easy to adapt it for ConTeXt. Sorry, I cannot do that 
myself yet. I have just started to learn ConTeXt and am a very busy slow 
learner.

\usepackage{atbegshi}
\newcommand{\Repeat}{}

\AtBeginShipout{%
\ifodd\value{page}%
\else\Repeat%
\newpage%
\fi%
}

I hope it helps. But maybe you don’t need to repeat the same page every two 
page, as I did…

Thomas Savary
1 le Grand-Plessis
F-85340 L’Île-d’Olonne
Tél. 06 22 82 61 34
https://correctionpro.fr/
https://compo85.fr/

jeudi 6 février 2020, à 16:28:04 CET, Pablo Rodriguez a écrit :
> Dear list,
> 
> I have the following sample:
> 
> \starttext
> \input knuth
> \page[right]
> \setuplayout[page]
> \externalfigure[\jobname.pdf][page=1]
> \stoptext
> 
> My question is how to get a page from the document you‘re compiling
> repeated inside the same document.
> 
> I have tried to search both i-context.pdf and the wiki, but “mirror” and
> “repeat” seem to be bad options.
> 
> Many thanks in advance,
> 
> Pablo
> --
> http://www.ousia.tk
> 
> ___ If your question is of interest to others as well, please add an
> entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
> http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___

___
If your question is of interest to others as well, please add an 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] repeat a page inside a document

2020-02-06 Thread Henning Hraban Ramm

> Am 2020-02-06 um 16:28 schrieb Pablo Rodriguez :
> 
> My question is how to get a page from the document you‘re compiling
> repeated inside the same document.

I solved this with a component that I include twice. Of course that won’t work 
if you need a page in the middle of some text flow.


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

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

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


[NTG-context] repeat a page inside a document

2020-02-06 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\starttext
\input knuth
\page[right]
\setuplayout[page]
\externalfigure[\jobname.pdf][page=1]
\stoptext

My question is how to get a page from the document you‘re compiling
repeated inside the same document.

I have tried to search both i-context.pdf and the wiki, but “mirror” and
“repeat” seem to be bad options.

Many thanks in advance,

Pablo
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Impacts Project: Two-Page Spread

2020-01-14 Thread Thangalin
Hi all!

Pleased to share with you a new two-page spread of the Impacts project:

https://impacts.to/downloads/lowres/impacts-dual.pdf

Best viewed in "Dual" (or "Even Spreads") mode. Compare with the
original single-page spread:

https://impacts.to/downloads/lowres/impacts.pdf

If you'd like a hard-copy, please sign up at: https://impacts.to/

The document is written in pandoc-flavoured markdown. ConTeXt, TeX,
and Lua code are used to accomplish various stylish feats:

* Page setup (bleed, margins, text safe zones)
* Override page flushing for columnsets
* Timeline indicator line based on section heading numeric text value
* Lua converts annotated Markdown to an inline image ConTeXt macro
* Clipped background images for pixel-perfect two-page spread
* Custom global counter to enumerate illustrations in TeX

Annotations will be explained in Part 8 of the Typesetting Markdown series:

https://dave.autonoma.ca/blog/

Feedback on any of this is very welcome and, again, thank you for all
the support over the years.

Cheers!
___
If your question is of interest to others as well, please add an 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] How to get page number as Burmese numbers?

2019-12-31 Thread Kyaw Myo Min
Hello Users, I am new to ConTeXt. Previously I used LaTeX. Can you help me how 
can I get page numbers in Burmese number. I found on ConTeXt wiki how to 
convert page number to words. But I don’t know how to modify it.Burmese 
language is not supported in ConTeXt.
___
If your question is of interest to others as well, please add an 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] Blank page inserted when text reaches column's end

2019-12-10 Thread Wolfgang Schuster

Thangalin schrieb am 11.12.2019 um 02:51:

Commenting out the \page_grd_command_flush_page macro seems to have
reversed the effect. Any pages having columnar text that does not
extend to the last line are now suppressed. How would I go about
adding a conditional that checks to see whether the column is filled
before deciding if a page break is necessary?

\unprotect
\def\page_grd_stop{%
   \endgraf % needed, else wrong vsize in one par case
   \vfill % otherwise weird \placenotes[endnotes]
   \page_grd_command_set_vsize % needed
   \penalty\c_page_otr_eject_penalty
   %\page_grd_command_flush_page
   \page_otr_fill_and_eject_page
   \page_grd_command_set_vsize % why here
   \egroup
   \page_otr_command_set_vsize
   \page_otr_command_set_hsize}
\protect


Fails for the next example (the first page appears twice in the PDF and 
the second page is missing):


\setuplayout[grid=yes]

\starttext
  \startcolumnset[n=2]
    \dorecurse{100}{Line #1\par}
  \stopcolumnset
\stoptext

Wolfgang

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

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


Re: [NTG-context] Blank page inserted when text reaches column's end

2019-12-10 Thread Thangalin
Commenting out the \page_grd_command_flush_page macro seems to have
reversed the effect. Any pages having columnar text that does not
extend to the last line are now suppressed. How would I go about
adding a conditional that checks to see whether the column is filled
before deciding if a page break is necessary?

\unprotect
\def\page_grd_stop{%
  \endgraf % needed, else wrong vsize in one par case
  \vfill % otherwise weird \placenotes[endnotes]
  \page_grd_command_set_vsize % needed
  \penalty\c_page_otr_eject_penalty
  %\page_grd_command_flush_page
  \page_otr_fill_and_eject_page
  \page_grd_command_set_vsize % why here
  \egroup
  \page_otr_command_set_vsize
  \page_otr_command_set_hsize}
\protect

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

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


Re: [NTG-context] Blank page inserted when text reaches column's end

2019-12-09 Thread Thangalin
Thank you both. Neither approach removes the blank page with either
version 2019.06.11 or 2019.12.06 on Linux. Is there a specific version
of ConTeXt required? The code to generate the document resembles:

\setuppagenumbering[alternative=doublesided,page=no]
\installpagebreakhandler{last}{}

\setuplayout[grid=yes]

\starttext
  \startcolumnset[n=2]
\input knuth \input lorem \input lorem \input knuth
\dorecurse{3}{No TV and no beer make Homer something something.}
  \stopcolumnset
\stoptext

The second page remains, regardless of doublesided/singlesided or
pagebreakhandler.

Henri Menke pointed out that "page-cst.mkiv" contains an explicit line
break associated with stoppagegrid:

https://github.com/contextgarden/context-mirror/blob/f74c4055713ab52a11d12435eb04040ec6553129/tex/context/base/mkiv/page-cst.mkiv#L199-L201

Could this be grid itself be problematic?

Cheers!
___
If your question is of interest to others as well, please add an 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] Blank page inserted when text reaches column's end

2019-12-09 Thread Wolfgang Schuster

Denis Maier schrieb am 09.12.2019 um 09:41:

Am 09.12.2019 um 00:44 schrieb Thangalin:

When text reaches the end of a column, it appears to trigger inserting
a blank page. In the following code, \dorecurse{3} causes a blank page
to appear but \dorecurse{2} does not. The only difference is that when
set to 3, the additional text is written on the last line of the last
column. This scenario results in a blank page.

Any ideas how the blank page can be suppressed?

\showgrid
\setuplayout[grid=yes]

\starttext
   \startcolumnset[n=2]
 \input knuth \input lorem \input lorem \input knuth
 \dorecurse{3}{No TV and no beer make Homer something something.}
   \stopcolumnset
\stoptext

Version:

$ context --version
mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file:
/opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2019.06.11 19:20

Thank you!


What about:
\installpagebreakhandler{last}{}

(I have this in most of my documents, but I'm not sure it works with 
columnsets.)


Better use this setup to get rid of the extra page in a doublesided 
document.


\setuppagenumbering[page=no]

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] Blank page inserted when text reaches column's end

2019-12-09 Thread Denis Maier

Am 09.12.2019 um 00:44 schrieb Thangalin:

When text reaches the end of a column, it appears to trigger inserting
a blank page. In the following code, \dorecurse{3} causes a blank page
to appear but \dorecurse{2} does not. The only difference is that when
set to 3, the additional text is written on the last line of the last
column. This scenario results in a blank page.

Any ideas how the blank page can be suppressed?

\showgrid
\setuplayout[grid=yes]

\starttext
   \startcolumnset[n=2]
 \input knuth \input lorem \input lorem \input knuth
 \dorecurse{3}{No TV and no beer make Homer something something.}
   \stopcolumnset
\stoptext

Version:

$ context --version
mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file:
/opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2019.06.11 19:20

Thank you!


What about:
\installpagebreakhandler{last}{}

(I have this in most of my documents, but I'm not sure it works with 
columnsets.)


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

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


[NTG-context] Blank page inserted when text reaches column's end

2019-12-08 Thread Thangalin
When text reaches the end of a column, it appears to trigger inserting
a blank page. In the following code, \dorecurse{3} causes a blank page
to appear but \dorecurse{2} does not. The only difference is that when
set to 3, the additional text is written on the last line of the last
column. This scenario results in a blank page.

Any ideas how the blank page can be suppressed?

\showgrid
\setuplayout[grid=yes]

\starttext
  \startcolumnset[n=2]
\input knuth \input lorem \input lorem \input knuth
\dorecurse{3}{No TV and no beer make Homer something something.}
  \stopcolumnset
\stoptext

Version:

$ context --version
mtx-context | ConTeXt Process Management 1.03
mtx-context |
mtx-context | main context file:
/opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2019.06.11 19:20

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

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


Re: [NTG-context] Filling a page with \thinrules

2019-12-07 Thread Otared Kavian
Thanks Rik! The \phantom stuff is following me since the good old Plain TeX 
days… :-)
Now I know how to get rid of it.

Best regards: OK

> On 7 Dec 2019, at 16:33, Rik Kabel  wrote:
> […]
> 
> Replace the \hphantom{...} with \dontleavehmode.
> 
> -- 
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Filling a page with \thinrules

2019-12-07 Thread Rik Kabel

On 12/7/2019 04:10, Otared Kavian wrote:

Hi Rik,

Thanks a lot for the link to that message dating back to 2010…

I tried to put that solution on the wiki but I could not create a new page. 
I'll try later.

For the record, below is a transcript of what I adapted from Wolfgang's 
solution, but maybe nowadays one could also right a more readable lua code to 
achieve the same.

Best regards: Otared K.

\define\thinrulesfillpage%
{
\hphantom{Answer} % this is necessary, I don't know why...
\blank  

\scratchcounter\dimexpr(\pagegoal-\pagetotal-2\lineheight)/(\dimexpr\lineheight+2.2ex\relax)\relax
\thinrules[n=\number\scratchcounter,inbetween={\blank[2.2ex]}]
\page
}

\showframe
\starttext
\dorecurse{2}{\input knuth.tex\par}

\thinrulesfillpage

\thinrulesfillpage

\input ward.tex
\thinrulesfillpage

\stoptext


On 7 Dec 2019, at 03:49, Rik Kabel  wrote:

On 12/6/2019 17:50, Otared Kavian wrote:

Hi all,

I am preparing a test for my students where I would like to have the statement 
of the problem on the top of a page and the remainder to the bottom of that 
page filled with \thinrules, for them to write the solution. And sometimes 
there might be an empty page filled with thinrules when the solution to the 
exercise is longer.

The following minimal example gives the idea of what I want to achieve, but 
since the statement of each exercise may be longer or shorter, I would like 
ConTeXt to compute how many \thinrules can be put in the remainder of the page.
That is, can one imagine a macro named (say) \fillpagewiththinrules which puts 
the exact number of thinrules before ejecting the page?
Is this possible or have I to do it by hand for each page?

\showframe
\starttext
\dorecurse{2}{\input knuth.tex\par}

\thinrules[n=20] % On the first page I can put 20 thinrules

\page

\thinrules[n=40] % On an empty page I can put 40 thinrules
\page

\input ward.tex

\thinrules[n=37] % On the third page there can be 37 thinrules

\stoptext

Thanks for any hint and help,
Best regards: Otared K.


It looks like Wolfgang answered this a while back. See Re: [NTG-context] Room 
for comment on the backside of form. .

--
Rik



Replace the \hphantom{...} with \dontleavehmode.

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


Re: [NTG-context] Filling a page with \thinrules

2019-12-07 Thread Hans Hagen

On 12/7/2019 10:10 AM, Otared Kavian wrote:

Hi Rik,

Thanks a lot for the link to that message dating back to 2010…

I tried to put that solution on the wiki but I could not create a new page. 
I'll try later.


Think TeX (and a little ConTeXt):

\starttexdefinition thinrulesfillpage
\par
\verticalstrut
\vskip-.5\lineheight
\leaders
\hbox to 
\hsize{\blackrule[width=\hsize,height=1pt,depth=1pt,color=red]\strut}

\vfilll
\verticalstrut
\vskip-1.5\lineheight
\page
\stoptexdefinition

\showframe

\starttext

\dorecurse{2}{\input knuth.tex\par} \thinrulesfillpage

\thinrulesfillpage

\input ward.tex \thinrulesfillpage

\stoptext

Now Wolfgang can change the \leaders in the proper ConTeXt interface 
calls. Okay, we could as well make it into some feature or course, as 
occasionally we need to add something new anyway, just to show progress.




For the record, below is a transcript of what I adapted from Wolfgang's 
solution, but maybe nowadays one could also right a more readable lua code to 
achieve the same.

Best regards: Otared K.

\define\thinrulesfillpage%
{
\hphantom{Answer} % this is necessary, I don't know why...
\blank  

\scratchcounter\dimexpr(\pagegoal-\pagetotal-2\lineheight)/(\dimexpr\lineheight+2.2ex\relax)\relax
\thinrules[n=\number\scratchcounter,inbetween={\blank[2.2ex]}]
\page
}

\showframe
\starttext
\dorecurse{2}{\input knuth.tex\par}

\thinrulesfillpage

\thinrulesfillpage

\input ward.tex
\thinrulesfillpage

\stoptext


On 7 Dec 2019, at 03:49, Rik Kabel  wrote:

On 12/6/2019 17:50, Otared Kavian wrote:

Hi all,

I am preparing a test for my students where I would like to have the statement 
of the problem on the top of a page and the remainder to the bottom of that 
page filled with \thinrules, for them to write the solution. And sometimes 
there might be an empty page filled with thinrules when the solution to the 
exercise is longer.

The following minimal example gives the idea of what I want to achieve, but 
since the statement of each exercise may be longer or shorter, I would like 
ConTeXt to compute how many \thinrules can be put in the remainder of the page.
That is, can one imagine a macro named (say) \fillpagewiththinrules which puts 
the exact number of thinrules before ejecting the page?
Is this possible or have I to do it by hand for each page?

\showframe
\starttext
\dorecurse{2}{\input knuth.tex\par}

\thinrules[n=20] % On the first page I can put 20 thinrules

\page

\thinrules[n=40] % On an empty page I can put 40 thinrules
\page

\input ward.tex

\thinrules[n=37] % On the third page there can be 37 thinrules

\stoptext

Thanks for any hint and help,
Best regards: Otared K.
___
If your question is of interest to others as well, please add an 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

___


It looks like Wolfgang answered this a while back. See Re: [NTG-context] Room 
for comment on the backside of form. .

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




--

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

Re: [NTG-context] Filling a page with \thinrules

2019-12-07 Thread Otared Kavian
Hi Rik,

Thanks a lot for the link to that message dating back to 2010…

I tried to put that solution on the wiki but I could not create a new page. 
I'll try later.

For the record, below is a transcript of what I adapted from Wolfgang's 
solution, but maybe nowadays one could also right a more readable lua code to 
achieve the same.

Best regards: Otared K.

\define\thinrulesfillpage%
{
\hphantom{Answer} % this is necessary, I don't know why...
\blank  

\scratchcounter\dimexpr(\pagegoal-\pagetotal-2\lineheight)/(\dimexpr\lineheight+2.2ex\relax)\relax
\thinrules[n=\number\scratchcounter,inbetween={\blank[2.2ex]}]
\page
}

\showframe
\starttext
\dorecurse{2}{\input knuth.tex\par}

\thinrulesfillpage 

\thinrulesfillpage 

\input ward.tex
\thinrulesfillpage 

\stoptext

> On 7 Dec 2019, at 03:49, Rik Kabel  wrote:
> 
> On 12/6/2019 17:50, Otared Kavian wrote:
>> Hi all,
>> 
>> I am preparing a test for my students where I would like to have the 
>> statement of the problem on the top of a page and the remainder to the 
>> bottom of that page filled with \thinrules, for them to write the solution. 
>> And sometimes there might be an empty page filled with thinrules when the 
>> solution to the exercise is longer.
>> 
>> The following minimal example gives the idea of what I want to achieve, but 
>> since the statement of each exercise may be longer or shorter, I would like 
>> ConTeXt to compute how many \thinrules can be put in the remainder of the 
>> page.
>> That is, can one imagine a macro named (say) \fillpagewiththinrules which 
>> puts the exact number of thinrules before ejecting the page?
>> Is this possible or have I to do it by hand for each page?
>> 
>> \showframe
>> \starttext
>> \dorecurse{2}{\input knuth.tex\par}
>> 
>> \thinrules[n=20] % On the first page I can put 20 thinrules
>> 
>> \page
>> 
>> \thinrules[n=40] % On an empty page I can put 40 thinrules
>> \page
>> 
>> \input ward.tex
>> 
>> \thinrules[n=37] % On the third page there can be 37 thinrules
>> 
>> \stoptext
>> 
>> Thanks for any hint and help,
>> Best regards: Otared K.
>> ___
>> If your question is of interest to others as well, please add an 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
>> 
>> ___
>> 
> It looks like Wolfgang answered this a while back. See Re: [NTG-context] Room 
> for comment on the backside of form. .
> 
> -- 
> 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://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] Filling a page with \thinrules

2019-12-06 Thread Rik Kabel

On 12/6/2019 17:50, Otared Kavian wrote:

Hi all,

I am preparing a test for my students where I would like to have the statement 
of the problem on the top of a page and the remainder to the bottom of that 
page filled with \thinrules, for them to write the solution. And sometimes 
there might be an empty page filled with thinrules when the solution to the 
exercise is longer.

The following minimal example gives the idea of what I want to achieve, but 
since the statement of each exercise may be longer or shorter, I would like 
ConTeXt to compute how many \thinrules can be put in the remainder of the page.
That is, can one imagine a macro named (say) \fillpagewiththinrules which puts 
the exact number of thinrules before ejecting the page?
Is this possible or have I to do it by hand for each page?

\showframe
\starttext
\dorecurse{2}{\input knuth.tex\par}

\thinrules[n=20] % On the first page I can put 20 thinrules

\page

\thinrules[n=40] % On an empty page I can put 40 thinrules
\page

\input ward.tex

\thinrules[n=37] % On the third page there can be 37 thinrules

\stoptext

Thanks for any hint and help,
Best regards: Otared K.
___
If your question is of interest to others as well, please add an 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
___


It looks like Wolfgang answered this a while back. See Re: [NTG-context] 
Room for comment on the backside of form 
<https://www.mail-archive.com/search?l=ntg-context@ntg.nl&q=subject:%22Re%5C%3A+%5C%5BNTG%5C-context%5C%5D+Room+for+comment+on+the+backside+of+form%22&o=newest>. 
.


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


[NTG-context] Filling a page with \thinrules

2019-12-06 Thread Otared Kavian
Hi all,

I am preparing a test for my students where I would like to have the statement 
of the problem on the top of a page and the remainder to the bottom of that 
page filled with \thinrules, for them to write the solution. And sometimes 
there might be an empty page filled with thinrules when the solution to the 
exercise is longer.

The following minimal example gives the idea of what I want to achieve, but 
since the statement of each exercise may be longer or shorter, I would like 
ConTeXt to compute how many \thinrules can be put in the remainder of the page.
That is, can one imagine a macro named (say) \fillpagewiththinrules which puts 
the exact number of thinrules before ejecting the page?
Is this possible or have I to do it by hand for each page?

\showframe
\starttext
\dorecurse{2}{\input knuth.tex\par}

\thinrules[n=20] % On the first page I can put 20 thinrules

\page

\thinrules[n=40] % On an empty page I can put 40 thinrules
\page

\input ward.tex

\thinrules[n=37] % On the third page there can be 37 thinrules

\stoptext

Thanks for any hint and help,
Best regards: Otared K.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


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

2019-12-06 Thread Wolfgang Schuster

Thangalin schrieb am 06.12.2019 um 17:17:

Hi there,

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

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

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

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


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

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


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

\setuphead[section][
   page=yes,


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

page=,


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


Wolfgang

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

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


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

2019-12-06 Thread Thangalin
Hi there,

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

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

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

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

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

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

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

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

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

\stopsubsection
\stopsection
\stoptext

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

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


Re: [NTG-context] Place externalfigure anywhere on page

2019-12-04 Thread Wolfgang Schuster

Jon Wong schrieb am 04.12.2019 um 20:19:

A real float. Is that possible?

Can you give more details.

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] Place externalfigure anywhere on page

2019-12-04 Thread Jon Wong
A real float. Is that possible?
___
If your question is of interest to others as well, please add an 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] Setuppagenumbering for single page only

2019-12-04 Thread Denis Maier

Am 04.12.2019 um 10:30 schrieb Henning Hraban Ramm:

Hi Denis,
"page styles" are called "makeup" in ConTeXt,
see
https://wiki.contextgarden.net/Makeup
https://wiki.contextgarden.net/Command/setupmakeup

Also \setuplayout[MyMakeupName][… setups …]

Best, Hraban


Thanks. That was it.
Best,
Denis
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Setuppagenumbering for single page only

2019-12-04 Thread Henning Hraban Ramm
Hi Denis,
"page styles" are called "makeup" in ConTeXt,
see
https://wiki.contextgarden.net/Makeup
https://wiki.contextgarden.net/Command/setupmakeup

Also \setuplayout[MyMakeupName][… setups …]

Best, Hraban

> Am 2019-12-04 um 10:19 schrieb Denis Maier :
> 
> Hi,
> is it possible to change the pagelayout for one page only? Something like 
> \thispagestyle{empty} in LaTeX?
> Best,
> Denis
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an 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] Setuppagenumbering for single page only

2019-12-04 Thread Denis Maier

Hi,
is it possible to change the pagelayout for one page only? Something 
like \thispagestyle{empty} in LaTeX?

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

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


Re: [NTG-context] How to define the font size of the page header?

2019-11-06 Thread Wolfgang Schuster

Pablo Rodriguez schrieb am 06.11.2019 um 08:46:

On 11/6/19 3:15 AM, Kerry Sainsbury wrote:

Hi Folks,

Sorry for the constant interruptions, but I can't find an answer in any
of the many PDFs or webpages I can find.

How do I define the font size of the page header?

Hi Kerry,

use the following:

 \setupheadertexts[Pagenumber][pagenumber]
 \setupheader[style=\bfd]

I hope it helps,

Pablo


PS: I don’t know why \setuplayouttext doesn’t work, but you invoke some
options that don’t seem to exist
(http://www.pragma-ade.com/general/qrcs/setup-en.pdf#search=setuplayouttext).


I forgot to add them but they exist since a long time, the only new feature
is the possibility to set styles/color values for each entry when you 
use the keys.


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] How to define the font size of the page header?

2019-11-06 Thread Wolfgang Schuster
Kerry Sainsbury schrieb am 06.11.2019 um 03:15:

Hi Folks,

Sorry for the constant interruptions, but I can't find an answer in any of
the many PDFs or webpages I can find.

How do I define the font size of the page header? If I'm not using a custom
font, I can call \switchbodyfont prior to calling \setuplayouttext, which,
if I'm honest, seems weird, but it doesn't work if I use a custom font. eg:

\definefontfamily [dejavu] [serif] [DejaVu Serif]

\definefontfamily [dejavu] [sans] [DejaVu Sans]

% Uncomment this and the page header font size drops dramatically.

% \setupbodyfont[dejavu]

% This seems to define the size of the page header, if \setpbodyfont is not
called.

\switchtobodyfont[50pt]

\setuplayouttext

[header][text]

[

style=small,

middletext=Page Header,

righttext=\pagenumber,

rightstyle=bold

]

\switchtobodyfont[8pt]

\starttext

\input ward.tex

\stoptext

I half expected the 'style' property to be involved in this, but I can't
get that to do anything either :-(

How do I define the font size in a page header defined using
\setuplayouttext


\setupheader[style={\switchtobodyfont[8pt]}]

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] How to define the font size of the page header?

2019-11-06 Thread Kerry Sainsbury
Hi Pablo,

Thanks for the response. I used \setuplayouttext specifically because it
supports the 'middletext' property (despite the fact that it doesn't seem
to be documented! I found 'middletext' in an August posting from Hans Hagen
( https://www.mail-archive.com/ntg-context@ntg.nl/msg91755.html )

Anyway, thanks to your prodding I have resolved the problem. I hadn't
realised that the calls to \setupheadertexts were cumulative. ie: I can
just do this:

\setupheadertexts[My Page Header]

\setupheadertexts[][pagenumber]


It seems odd that I can't explicitly specify a font size, but that's fine
\tfxx will just have to do.


Thanks again.

Kerry


PS: I promise the dumb questions will stop soon :-)


On Wed, 6 Nov 2019 at 20:46, Pablo Rodriguez  wrote:

> On 11/6/19 3:15 AM, Kerry Sainsbury wrote:
> > Hi Folks,
> >
> > Sorry for the constant interruptions, but I can't find an answer in any
> > of the many PDFs or webpages I can find.
> >
> > How do I define the font size of the page header?
>
> Hi Kerry,
>
> use the following:
>
> \setupheadertexts[Pagenumber][pagenumber]
> \setupheader[style=\bfd]
>
> I hope it helps,
>
> Pablo
>
>
> PS: I don’t know why \setuplayouttext doesn’t work, but you invoke some
> options that don’t seem to exist
> (
> http://www.pragma-ade.com/general/qrcs/setup-en.pdf#search=setuplayouttext
> ).
>



--
> http://www.ousia.tk
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an 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] How to define the font size of the page header?

2019-11-05 Thread Pablo Rodriguez
On 11/6/19 3:15 AM, Kerry Sainsbury wrote:
> Hi Folks,
>
> Sorry for the constant interruptions, but I can't find an answer in any
> of the many PDFs or webpages I can find.
>
> How do I define the font size of the page header?

Hi Kerry,

use the following:

\setupheadertexts[Pagenumber][pagenumber]
\setupheader[style=\bfd]

I hope it helps,

Pablo


PS: I don’t know why \setuplayouttext doesn’t work, but you invoke some
options that don’t seem to exist
(http://www.pragma-ade.com/general/qrcs/setup-en.pdf#search=setuplayouttext).
--
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] How to define the font size of the page header?

2019-11-05 Thread Kerry Sainsbury
Hi Folks,

Sorry for the constant interruptions, but I can't find an answer in any of
the many PDFs or webpages I can find.

How do I define the font size of the page header? If I'm not using a custom
font, I can call \switchbodyfont prior to calling \setuplayouttext, which,
if I'm honest, seems weird, but it doesn't work if I use a custom font. eg:

\definefontfamily [dejavu] [serif] [DejaVu Serif]

\definefontfamily [dejavu] [sans] [DejaVu Sans]


% Uncomment this and the page header font size drops dramatically.

% \setupbodyfont[dejavu]


% This seems to define the size of the page header, if \setpbodyfont is not
called.

\switchtobodyfont[50pt]


\setuplayouttext

[header][text]

[

style=small,

middletext=Page Header,

righttext=\pagenumber,

rightstyle=bold

]


\switchtobodyfont[8pt]


\starttext

\input ward.tex

\stoptext



I half expected the 'style' property to be involved in this, but I can't
get that to do anything either :-(


How do I define the font size in a page header defined using
\setuplayouttext ?


Thanks!

Kerry
___
If your question is of interest to others as well, please add an 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] Sectionwise page range in ConTeXt TOC

2019-10-12 Thread Jairo A. del Rio
I know ConTeXt TOC is quite customizable. However, I don't figure out how
to include a page range next to section labels. For instance, something
like that:

1. Chapter  . . . 1 - 4
 1.1 Section . . . 1 - 3
 1.2 Section . . . 3 - 4
2. Chapter . . . 4 - 7

I've seen a LaTeX implementation here:
https://tex.stackexchange.com/a/145206
Is something similar (or maybe better) possible? Thanks in advance.
___
If your question is of interest to others as well, please add an 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] Page number woes

2019-09-05 Thread Mari Voipio
Well, this was total waste of space from my part. When I found a
working file in a different project and copied the code over I
realized that my problem code should never have worked: I had
\setuppagenumber[stop] when I should have had
\setuppagenumber[state=stop]. Adding "state=" to my non-working code
solved all the problems and page numbering works the way I want to
have it.

And, as Wolfgang explained, I really don't need
\setuppagenumber[state=start] in the beginning of bodymatter, so now I
can even clean up my code a bit. Thank you, Wolfgang, I think I
understand blocks better now.

Mari


On Tue, Sep 3, 2019 at 7:03 PM Wolfgang Schuster
 wrote:
>
> Mari Voipio schrieb am 02.09.2019 um 13:07:
> > Hello!
> >
> > I have a document where I want the page numbers to start from the
> > first page of chapter one. There's bunch of stuff before that,
> > including a table of contents. This has worked fine:
> >
> > \startproduct prd-pr23
> >
> > \startfrontmatter
> > \setuppagenumber[stop]
> > \component pr23-cover_front_web
> > \component blank.tex
> > \component c-contents
> > \stopfrontmatter
> >
> > \startbodymatter
> > \setuppagenumber[start]
> > \component dtr_pg.tex
> > \stopbodymatter
> >
> > \stopproduct
> >
> >
> > However, now I need to switch to using a full-page pdf as cover page
> > and changing that one line messes up with my page numbering, now TOC
> > appears as page 1 and chapter one starts from page 2 in my test file.
> >
> >
> > \startproduct prd-pr23
> >
> >
> > \startfrontmatter
> > \setuppagenumber[stop]
> > \startpagefigure[cover_vaisala_front_stripped]\stoppagefigure
> > \component blank.tex
> > \component c-contents
> > \stopfrontmatter
> >
> > \startbodymatter
> > \setuppagenumber[start]
> > \component dtr_pg.tex % third chapter (DTR)
> > \stopbodymatter
> >
> > \stopproduct
> >
> > What is it that I don't see? I tried moving the cover page before the
> > \startfrontmatter, but that didn't change anything, TOC still starts
> > on page 2 when it shouldn't have a page number at all. Why does
> > switching the cover page from .tex to \pagefigure have such an effect
> > and how can I counteract it?
> >
> > Mari
> The \setuppagenumber command takes an assignment as argument but in your
> example you pass keywords to it.
>
> When you change the setting in the frontmatter to
> \setuppagenumber[state=stop] the numbers disappear. Since settings in a
> sectionblock are local there is no need to enable the counter in the
> bodypart because the previous setting is forgotten.
>
> When I look in your attached files I see that some file contain the
> setting \setuppagenumber[state=stop] which disabled the page counter.
>
> 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] Document with page 2 only

2019-09-04 Thread Mikael P. Sundqvist
On Wed, Sep 4, 2019 at 1:37 PM Hans Hagen  wrote:

> On 9/4/2019 1:13 PM, Mikael P. Sundqvist wrote:
> > Hi,
> >
> > with a freshly updated ConTeXt-lmtx and the following document
> >
> > \starttext
> > Hello World.
> > \stoptext
> >
> > I end up with the following document, having a page 2 only. Log file is
> > attached (says there are two pages).
> strange. can you wipe the cache and remake the format?
>
> Hans
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>

Thanks. Clearing the cache did not help, but reinstalling did. I will test
those things before sending to the list in the future.

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

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


Re: [NTG-context] Document with page 2 only

2019-09-04 Thread Hans Hagen

On 9/4/2019 1:13 PM, Mikael P. Sundqvist wrote:

Hi,

with a freshly updated ConTeXt-lmtx and the following document

\starttext
Hello World.
\stoptext

I end up with the following document, having a page 2 only. Log file is 
attached (says there are two pages).

strange. can you wipe the cache and remake the format?

Hans

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

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


[NTG-context] Document with page 2 only

2019-09-04 Thread Mikael P. Sundqvist
Hi,

with a freshly updated ConTeXt-lmtx and the following document

\starttext
Hello World.
\stoptext

I end up with the following document, having a page 2 only. Log file is
attached (says there are two pages).

/Mikael


pagetwo.pdf
Description: Adobe PDF document
open source > level 1, order 1, name 'cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2019.08.24 22:50 MKIV beta  fmt: 2019.9.4  int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name '/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name '/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'pagetwo', input './pagetwo', result 'pagetwo'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name './pagetwo.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
backend > xmp > using file '/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 2, userpage 2, subpage 2
close source> level 2, order 3, name './pagetwo.tex'
close source> level 1, order 3, name 'cont-yes.mkiv'

system  > start used files

system  > text: pagetwo

system  > stop used files


system  > start used files

system  >1: filename=char-prv.lua filetype=tex format=tex foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/char-prv.lua fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/char-prv.lua usedmethod=database
system  >2: filename=cont-yes.mkiv filetype=tex format=tex foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv usedmethod=database
system  >3: filename=publ-imp-default.lua filetype=lua foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database
system  >4: filename=cont-new.mkiv filetype=tex foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv usedmethod=database
system  >5: filename=lang-exc.lua filetype=lua foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=database
system  >6: filename=lang-us.lua filetype=lua foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database
system  >7: filename=/home/mps/Dropbox/lth/dokument/analysdialog/pagetwo.tex format=tex foundname=/home/mps/Dropbox/lth/dokument/analysdialog/pagetwo.tex fullname=/home/mps/Dropbox/lth/dokument/analysdialog/pagetwo.tex usedmethod=direct
system  >8: filename=lm.lfg filetype=tex foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg usedmethod=database
system  >9: filename=lmroman12-regular filetype=otf format=otf foundname=/home/mps/ConTeXt-lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf fullname=/home/mps/ConTeXt-lmtx/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
system  >   10: filename=latinmodern-math.otf filetype=opentypefonts foundname=/home/mps/ConTeXt-lmtx/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf fullname=/home/mps/ConTeXt-lmtx/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
system  >   11: filename=lpdf-pdx.xml filetype=tex foundname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml fullname=/home/mps/ConTeXt-lmtx/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database

system  > stop used files


system  > start commandline options

system  > currentrun="3"
system  > fulljobname="./pagetwo.tex"
system  > input="./pagetwo.tex"
system  > kindofrun="2"
system  > maxno

Re: [NTG-context] Page number woes

2019-09-03 Thread Wolfgang Schuster

Mari Voipio schrieb am 02.09.2019 um 13:07:

Hello!

I have a document where I want the page numbers to start from the
first page of chapter one. There's bunch of stuff before that,
including a table of contents. This has worked fine:

\startproduct prd-pr23

\startfrontmatter
\setuppagenumber[stop]
\component pr23-cover_front_web
\component blank.tex
\component c-contents
\stopfrontmatter

\startbodymatter
\setuppagenumber[start]
\component dtr_pg.tex
\stopbodymatter

\stopproduct


However, now I need to switch to using a full-page pdf as cover page
and changing that one line messes up with my page numbering, now TOC
appears as page 1 and chapter one starts from page 2 in my test file.


\startproduct prd-pr23


\startfrontmatter
\setuppagenumber[stop]
\startpagefigure[cover_vaisala_front_stripped]\stoppagefigure
\component blank.tex
\component c-contents
\stopfrontmatter

\startbodymatter
\setuppagenumber[start]
\component dtr_pg.tex % third chapter (DTR)
\stopbodymatter

\stopproduct

What is it that I don't see? I tried moving the cover page before the
\startfrontmatter, but that didn't change anything, TOC still starts
on page 2 when it shouldn't have a page number at all. Why does
switching the cover page from .tex to \pagefigure have such an effect
and how can I counteract it?

Mari
The \setuppagenumber command takes an assignment as argument but in your 
example you pass keywords to it.


When you change the setting in the frontmatter to 
\setuppagenumber[state=stop] the numbers disappear. Since settings in a 
sectionblock are local there is no need to enable the counter in the 
bodypart because the previous setting is forgotten.


When I look in your attached files I see that some file contain the 
setting \setuppagenumber[state=stop] which disabled the page counter.


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] Again: Graphics placement with columnsets/page grids

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


\usemodule[newcolumnsets]

\setuplayout
  [grid=yes]

\definecolumnset[example][n=2]

\starttext

\startcolumnset[example]

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

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

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

\stopcolumnset
\stoptext


Shouldn't the figure stick to the bottom?

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

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


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

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

```
\usemodule[newcolumnsets]

\setuplayout
  [grid=yes]

\definecolumnset[example][n=2]

\starttext

\startcolumnset[example]

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

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

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



\stopcolumnset
\stoptext
```

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

Best,
Denis

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

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

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


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

2019-07-24 Thread Denis Maier
Hi,

just a quick follow up:

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

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

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

Best,
Denis


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

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

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


Re: [NTG-context] preventing page break

2019-07-19 Thread Henning Hraban Ramm

Zitat von Floris van Manen :


Hello List,

What is the preferred way in context to prevent a page break happening
between the heading(s) of a section and, for instance, the first 3 lines
of the following paragraph?

\section(one)
\subsection(one two}
%--- no page break here
One two three for ...
One two three for ...
One two three for ...
%- from here page breaks allowed


You can use \testpage{#} to tell ConTeXt there should be at least #  
lines following; I often use this with \setuphead.




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

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

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


[NTG-context] preventing page break

2019-07-10 Thread Floris van Manen
Hello List,

What is the preferred way in context to prevent a page break happening
between the heading(s) of a section and, for instance, the first 3 lines
of the following paragraph?

\section(one)
\subsection(one two}
%--- no page break here
One two three for ...
One two three for ...
One two three for ...
%- from here page breaks allowed




Thanks
.Floris


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
___


[NTG-context] index page ranges where start page == end page

2019-07-09 Thread Sanjoy Mahajan
The following probably well known minimal example

  \starttext
  \startregister[index][key1]{an entry}\input knuth\stopregister[index][key1]

  \placeindex

  \stoptext

produces the index entry "an entry 1--1", where the page range should be
just a single page.

A question (and then two workarounds): Could ConTeXt automatically
change such page ranges to the single page ("an entry 1")?

Meanwhile, a couple of workarounds:

In the MkII (pre-lua) days, I wrote a shell/sed/awk/perl script that
converted the .pdf file to text, grepped for (strings that are likely to
be) page ranges, and spat out lines where the page range should be a
page.  (Those days were so long ago that I've forgotten the script's
language.)  Then I would manually find and change the corresponding
\startregister[index] in the source to a plain \index (and delete the
corresponding \stopregister).

In these MkIV days, with the index data in a lua table, I've been
playing with the following python2 script that parse the .tuc file to
spit out the same information slightly more reliably.  In the next
step, coming soon, the script will check that each \seeindex entry
points to an actual entry and also that each \seeindex{also ...} entry
originates from an actual entry (otherwise it shouldn't be "also").

The script requires the slpp package;

  pip install git+https://github.com/SirAnthony/slpp

The parser in the script has a bug in that it doesn't handle minus signs
in the lua table, maybe everywhere or maybe only some of them, so the
script replaces them with "_" before sending the data to the parser (a
terrible hack).

To run the script:

  python check-index.py < file.tuc

Here is check-index.py:

# parse lua-format index-entry table extracted from book.tuc to check
# that each xref points to an actual entry, and that, further, "see
# also" src entries have at least one page ref (perhaps in subtree)

# due to bug in slpp parser: replace "-" (minus signs) in data with "_"

from slpp import slpp as lua
from sys import stdin,stderr
import re

def tuclist2entry(l):
return '+'.join(l)

data = []
intro_re = r'utilitydata.structures.registers.collected\s*='
in_register_data = False
for l in stdin:
if re.match(intro_re, l):
in_register_data = True
data.append(re.sub(intro_re,'',l))
elif in_register_data:
data.append(l)
if re.match(r'}$', l):
in_register_data = False
data = re.sub("-", "_", ''.join(data))
dict = lua.decode(data)
index = dict['index']

entries = []
xrefs   = []
for entry in index['entries']:
    src = [x[0] for x in entry['list']]
refs = entry['references']
if 'seeword' in entry:
dest = entry['seeword']['text']
xrefs.append((src,dest))
else:
page = refs['realpage']
if refs.get('lastrealpage',None) == page:
print "silly range:", tuclist2entry(src)
entries.append(src)

for xref in  xrefs:
print tuclist2entry(xref[0]),'->', xref[1]
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] filling page to bottom

2019-05-15 Thread Wolfgang Schuster

Hans van der Meer schrieb am 15.05.2019 um 09:24:
I find that the current (default) settings tend to break pages early, 
leaving a fairly large amount of whitespace at the bottom of the 
pages. Obviously in order to avoid breaking paragraphs or to avoid 
small parts of a paragraph at the top of the page.


What parameters do I have to tweak to fill the pages more completely? 
Because I planned already to examine all pages individually for their 
appearance, inserting breaks by hand is not the problem here.


You have to change the penalty values for orphans, widows etc.

\startsetups [hvdm]
  \directsetup{*reset}
  \nopenalties
\stopsetups

\showgrid

\starttext

\dorecurse{10}{\samplefile{knuth}}

\page

\setuplayout[setups=hvdm]

\dorecurse{10}{\samplefile{knuth}}

\stoptext

Wolfgang

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

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


[NTG-context] filling page to bottom

2019-05-15 Thread Hans van der Meer
I find that the current (default) settings tend to break pages early, leaving a 
fairly large amount of whitespace at the bottom of the pages. Obviously in 
order to avoid breaking paragraphs or to avoid small parts of a paragraph at 
the top of the page.

What parameters do I have to tweak to fill the pages more completely? Because I 
planned already to examine all pages individually for their appearance, 
inserting breaks by hand is not the problem here.

dr. Hans van der Meer


___
If your question is of interest to others as well, please add an 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] thumb index: \setlayer on every odd/even page?

2019-05-13 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 13.05.2019 um 23:17:

Hai,

how must I setup layers that get repeated on every even/odd page?
Or should I use \doifoddpageelse with \setlayer?

Or do you have a different suggestion for thumb index “boxes”?

https://wiki.contextgarden.net/Thumb_index

You can also set backgrounds only for left or right pages.

Wolfgang

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

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


[NTG-context] thumb index: \setlayer on every odd/even page?

2019-05-13 Thread Henning Hraban Ramm
Hai,

how must I setup layers that get repeated on every even/odd page?
Or should I use \doifoddpageelse with \setlayer?

Or do you have a different suggestion for thumb index “boxes”?

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

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

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


Re: [NTG-context] issue with page numbering

2019-05-08 Thread Pablo Rodriguez
On 5/8/19 9:28 PM, Wolfgang Schuster wrote:
> [...]
>> Is there any way to avoid that \lastsubpagenumber counts the blank page
>> that might be placed among two chapters?
> You have to reset the subpage counter at the end of each chapter.
>
> \startsetups [chapter:after]
>    \page
>    \resetsubpagenumber
> \stopsetups
>
> \setuphead
>    [chapter]
>    [aftersection=\directsetup{chapter:after}]

Many thanks for your fast reply, Wolfgang.

It works perfectly fine. It doesn’t work in my real document, but it
took me a while to realize that I was using \chapter instead of
\startchapter...\stopchapter.

Time to get a break...

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


Re: [NTG-context] issue with page numbering

2019-05-08 Thread Wolfgang Schuster



Pablo Rodriguez schrieb am 08.05.2019 um 20:14:

Dear list,

inspired by strc-pag.mkiv, I have the following sample:

 \setuppagenumbering[alternative=doublesided]
 \setupsubpagenumber[way=bychapter]
 \starttext
 \dorecurse{5}{\startchapter[title=My Chapter]
 \userpagenumber/\lastuserpagenumber---
 \subpagenumber/\lastsubpagenumber
 \stopchapter}
 \stoptext

I need that chapters start on an odd page.

Is there any way to avoid that \lastsubpagenumber counts the blank page
that might be placed among two chapters?

You have to reset the subpage counter at the end of each chapter.

\startsetups [chapter:after]
  \page
  \resetsubpagenumber
\stopsetups

\setuphead
  [chapter]
  [aftersection=\directsetup{chapter:after}]

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] issue with page numbering

2019-05-08 Thread Pablo Rodriguez
Dear list,

inspired by strc-pag.mkiv, I have the following sample:

\setuppagenumbering[alternative=doublesided]
\setupsubpagenumber[way=bychapter]
\starttext
\dorecurse{5}{\startchapter[title=My Chapter]
\userpagenumber/\lastuserpagenumber---
\subpagenumber/\lastsubpagenumber
\stopchapter}
\stoptext

I need that chapters start on an odd page.

Is there any way to avoid that \lastsubpagenumber counts the blank page
that might be placed among two chapters?

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


Re: [NTG-context] How to write a wiki page?

2019-05-01 Thread Rudolf Bahr
On Wed, May 01, 2019 at 04:51:11PM +0200, Henning Hraban Ramm wrote:
> Am 2019-04-30 um 13:12 schrieb Rudolf Bahr :
> 
> > When will next issue of ConTeXt journal be published? Could you send your 
> > article
> > to me in advance?
> 
> Should have been published for a while, but I didn’t work on it as I promised.
> Shame on me, but still no schedule, on one hand I fortunately got a load of 
> paid work, on the other it’s more fun working at my own books...
> 
> Willi’s presentation is here: 
> https://meeting.contextgarden.net/2018/talks/willi-unifraktur/presentation-unifraktur.pdf
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD


I know that feeling well, when all gets too much!
Thanks to you, Hraban, and Willi!

Rudolf
___
If your question is of interest to others as well, please add an 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] How to write a wiki page?

2019-05-01 Thread Henning Hraban Ramm
Am 2019-04-30 um 13:12 schrieb Rudolf Bahr :

> When will next issue of ConTeXt journal be published? Could you send your 
> article
> to me in advance?

Should have been published for a while, but I didn’t work on it as I promised.
Shame on me, but still no schedule, on one hand I fortunately got a load of 
paid work, on the other it’s more fun working at my own books...

Willi’s presentation is here: 
https://meeting.contextgarden.net/2018/talks/willi-unifraktur/presentation-unifraktur.pdf

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

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

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


Re: [NTG-context] How to write a wiki page?

2019-04-30 Thread Rudolf Bahr
On Mon, Apr 29, 2019 at 05:07:06PM +0200, Willi Egger wrote:
> Hello Rudolf,
> 
> the ConTeXt wiki kan be extended by everybody. What you should do is make 
> your account and then you can start. 
> 
> I would be glad to be involved in this page, because I have written an 
> article, which will be published in the next issue of the ConTexT journal. It 
> is dealing with the Maguntia font.
> 
> Kind regards
> 
> Willi


Hi Willi!

Welcome on board! I'd be very glad, if we could do that together!

Up to now I had only 2 topics: Maguntia and Leipziger font. The account is made:
wiki.contextgarden.net/Fraktur_fonts.

When will next issue of ConTeXt journal be published? Could you send your 
article
to me in advance?

Best wishes,

Rudolf
___
If your question is of interest to others as well, please add an 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] How to write a wiki page?

2019-04-30 Thread Willi Egger
Hello Rudolf,

the ConTeXt wiki kan be extended by everybody. What you should do is make your 
account and then you can start. 

I would be glad to be involved in this page, because I have written an article, 
which will be published in the next issue of the ConTexT journal. It is dealing 
with the Maguntia font.

Kind regards

Willi

> On 24 Apr 2019, at 16:44, Rudolf Bahr  wrote:
> 
> 
> Hello All!
> 
> I'd like to write a wiki page on special Fraktur fonts, but I don't know how 
> to begin
> technically. Are there rules? Certanly, but where? To whom would I send the 
> result to
> correct it with respect to format, ConTeXt commands, English language, 
> bringing it into
> the ConTeXt wiki and so on?
> 
> Greetings,
> 
> Rudolf
> ___
> If your question is of interest to others as well, please add an 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] How to write a wiki page?

2019-04-29 Thread Rudolf Bahr
On Mon, Apr 29, 2019 at 05:55:14PM +0200, Henning Hraban Ramm wrote:
> Hi Rudolf,
> 
> it’s a wiki, i.e. you write directly into the system.
> You’re welcome to announce the new page here, then someone can look over it.
> 
> First you need to register an account:
> https://wiki.contextgarden.net/index.php?title=Special:CreateAccount
> 
> Then you can create a new page, e.g. 
> https://wiki.contextgarden.net/index.php?title=Fraktur_fonts&action=edit
> 
> Some hints about wiki syntax etc. you can find here:
> https://wiki.contextgarden.net/ConTeXt_wiki:Editing
> 
> Greetlings, Hraban
> ---
> https://www.fiee.net
> http://wiki.contextgarden.net
> https://www.dreiviertelhaus.de
> GPG Key ID 1C9B22FD
> 



Hello Hraban!

Not only a very good introduction, but you even began to install the first step 
to my
future wiki page. Thank you!

Rudolf
___
If your question is of interest to others as well, please add an 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] How to write a wiki page?

2019-04-29 Thread Henning Hraban Ramm
Hi Rudolf,

it’s a wiki, i.e. you write directly into the system.
You’re welcome to announce the new page here, then someone can look over it.

First you need to register an account:
https://wiki.contextgarden.net/index.php?title=Special:CreateAccount

Then you can create a new page, e.g. 
https://wiki.contextgarden.net/index.php?title=Fraktur_fonts&action=edit

Some hints about wiki syntax etc. you can find here:
https://wiki.contextgarden.net/ConTeXt_wiki:Editing

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

Am 2019-04-24 um 16:44 schrieb Rudolf Bahr :

> 
> Hello All!
> 
> I'd like to write a wiki page on special Fraktur fonts, but I don't know how 
> to begin
> technically. Are there rules? Certanly, but where? To whom would I send the 
> result to
> correct it with respect to format, ConTeXt commands, English language, 
> bringing it into
> the ConTeXt wiki and so on?
> 
> Greetings,
> 
> Rudolf
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

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

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


[NTG-context] How to write a wiki page?

2019-04-24 Thread Rudolf Bahr

Hello All!

I'd like to write a wiki page on special Fraktur fonts, but I don't know how to 
begin
technically. Are there rules? Certanly, but where? To whom would I send the 
result to
correct it with respect to format, ConTeXt commands, English language, bringing 
it into
the ConTeXt wiki and so on?

Greetings,

Rudolf
___
If your question is of interest to others as well, please add an 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] Missing font features in page header if \feature[-] is used in header text

2019-04-15 Thread Hans Hagen

On 4/14/2019 6:20 PM, Joseph Canedo wrote:

Dear list,

With latest ConTeXt beta (13-04-2019) I notice that font features seem 
ignored in page header rendering. (missing kern between Ps in « Psalme » 
and different Th in « Thimothee ».


Anything I am doing wrong ?

fixed in next beta

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

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


[NTG-context] Missing font features in page header if \feature[-] is used in header text

2019-04-14 Thread Joseph Canedo
Dear list,

With latest ConTeXt beta (13-04-2019) I notice that font features seem ignored 
in page header rendering. (missing kern between Ps in « Psalme » and different 
Th in « Thimothee ».

Anything I am doing wrong ?
Rendering is fine if \headerok is used.
 
Any help would be appreciated.
 
Thanks
Best regards
 
Joseph

\definefontfeature[base][mode=node, liga=yes, dlig=yes, hlig=yes, kern=yes]
\definefontfeature[xvicentury][]
 
\definefontfamily[mainfont][serif][EBGaramond][features=base]
 
\setupbodyfont[mainfont, 9pt]
 
\showfontkerns
 
\def\wrongheader{First book {\feature[-][xvicentury]v} Psalme De David. 
Thimothee.} %% \feature[-] seems to cause problems in header
\def\headerok{First book v Psalme De David. Thimothee.}
 
\setupheadertexts[\wrongheader] %% kern/ligatures missing <---
% \setupheadertexts[\headerok] %% kern/ligatures ok <---
 
\starttext
 
\wrongheader %% all ok in main text
 
\headerok
 
\stoptext


mwe_header.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] luatex crash around page 1000

2019-04-12 Thread Akira Kakuto

The event manager says, that it is a stack exhaustion (0xc0fd,
STATUS_STACK_OVERFLOW).


Many thanks. I'll increase size of stack.

Best,
Akira

___
If your question is of interest to others as well, please add an 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] luatex crash around page 1000

2019-04-12 Thread Peter Rolf
Am 12.04.2019 um 07:36 schrieb Akira Kakuto:
>> mtx-context | fatal error: return code: -1073741571
>
> I suspect that may be a limitation in 32bit binary.
> Try to install 64bit ConTeXt if you are using 32bit one
> and your OS is 64bit.
>

I'm already on 64bit, so that won't help here.

The event manager says, that it is a stack exhaustion (0xc0fd,
STATUS_STACK_OVERFLOW).
The PDF is data driven and I need to call a lot of functions per page to
collect all components and values for a complete 'Mech. This seems to
sum up and I just run out of stack memory after around 1000 pages.

Screenshots from the event manager (application error), Process Explorer
(peak memory values) and an outdated version of the PDF can be found here

https://spideroak.com/browse/share/indiego/public/RogueTech/


Peter
___
If your question is of interest to others as well, please add an 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] luatex crash around page 1000

2019-04-12 Thread Hans Hagen

On 4/12/2019 7:36 AM, Akira Kakuto wrote:

mtx-context | fatal error: return code: -1073741571


I suspect that may be a limitation in 32bit binary.
Try to install 64bit ConTeXt if you are using 32bit one
and your OS is 64bit.
Indeed. Most memory or stack related overflows in the engine itself are 
reported.


Maybe running with the task manager open will reveal an increase of memory.

Hans

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

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


Re: [NTG-context] luatex crash around page 1000

2019-04-11 Thread luigi scarso
On Fri, Apr 12, 2019 at 8:03 AM Akira Kakuto  wrote:

> > mtx-context | fatal error: return code: -1073741571
>
> I suspect that may be a limitation in 32bit binary.
> Try to install 64bit ConTeXt if you are using 32bit one
> and your OS is 64bit.
>
>

The other chance is the inclusion of a  pdf with an unusual image.

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

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


[NTG-context] luatex crash around page 1000

2019-04-11 Thread Akira Kakuto

mtx-context | fatal error: return code: -1073741571


I suspect that may be a limitation in 32bit binary.
Try to install 64bit ConTeXt if you are using 32bit one
and your OS is 64bit.

Best,
Akira

___
If your question is of interest to others as well, please add an 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] luatex crash around page 1000

2019-04-11 Thread Hans Hagen

On 4/11/2019 12:28 PM, Peter Rolf wrote:


I have a compilation problem with a data driven document.
This is what I get after around 12min (first run)...


I'm still puzzled by this 12 min ... so less than one page per second 
... do you need to process all that data each run? It's over a decade 
ago that I could start a run and come back after an enforced break to 
check. Is there some memory build up (swapping)? Is the speed linear?


\enabletrackers[pages.timing]

Will show the time spend per page.


[..]
pages   > flushing realpage 991, userpage 970, subpage 991
pages   > flushing realpage 992, userpage 971, subpage 992
pages   > flushing realpage 993, userpage 972, subpage 993
mtx-context | fatal error: return code: -1073741571


It compiles fine if I just use the first or second "half" of the data.
But as soon as I reach a certain amount of pages, it crashes.
An older version compiled fine with 958 users pages (977 total). Seems
that the data has reached a dimension that causes a resource problem.

Any advice? I looked into "texmf.cnf" and "texmfcnf.lua" for possible
bottlenecks, but I lack the knowledge what to change. And it simply
takes too much (run)time to just play around with some values.
I'll add a \showusage commands that reports some stats per page so that 
you can see what grows out of control.


Hans


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

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


Re: [NTG-context] luatex crash around page 1000

2019-04-11 Thread Hans Hagen

On 4/11/2019 12:28 PM, Peter Rolf wrote:

Hi,

I have a compilation problem with a data driven document.
This is what I get after around 12min (first run)...


that pretty slow ...


[..]
pages   > flushing realpage 991, userpage 970, subpage 991
pages   > flushing realpage 992, userpage 971, subpage 992
pages   > flushing realpage 993, userpage 972, subpage 993
mtx-context | fatal error: return code: -1073741571


It compiles fine if I just use the first or second "half" of the data.
But as soon as I reach a certain amount of pages, it crashes.
An older version compiled fine with 958 users pages (977 total). Seems
that the data has reached a dimension that causes a resource problem.

Any advice? I looked into "texmf.cnf" and "texmfcnf.lua" for possible
bottlenecks, but I lack the knowledge what to change. And it simply
takes too much (run)time to just play around with some values.
you can try to bump values (trial and error) but for some you need to 
remake the format


does lmtx also has that problem?

Hans


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

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


[NTG-context] luatex crash around page 1000

2019-04-11 Thread Peter Rolf
Hi,

I have a compilation problem with a data driven document.
This is what I get after around 12min (first run)...

[..]
pages   > flushing realpage 991, userpage 970, subpage 991
pages   > flushing realpage 992, userpage 971, subpage 992
pages   > flushing realpage 993, userpage 972, subpage 993
mtx-context | fatal error: return code: -1073741571


It compiles fine if I just use the first or second "half" of the data.
But as soon as I reach a certain amount of pages, it crashes.
An older version compiled fine with 958 users pages (977 total). Seems
that the data has reached a dimension that causes a resource problem.

Any advice? I looked into "texmf.cnf" and "texmfcnf.lua" for possible
bottlenecks, but I lack the knowledge what to change. And it simply
takes too much (run)time to just play around with some values.


Peter


>context --version
mtx-context | ConTeXt Process Management 1.02
mtx-context |
mtx-context | main context file:
r:/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2019.04.04 13:31

>luatex --version
This is LuaTeX, Version 1.10.0 (TeX Live 2019/W32TeX)
___
If your question is of interest to others as well, please add an 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] Referencing the page on which an endnote was generated

2019-04-10 Thread Huseyin Özoguz

Hi,

you can always set *\pagereference[bla] *into the text and reference to 
the pagenumber of the reference with *\at[bla]*.


Is that what you wanted?

Huseyin Özoguz

--
Huseyin Özoguz

E-Mail: h.oezo...@mmnetz.de

___
If your question is of interest to others as well, please add an 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] Referencing the page on which an endnote was generated

2019-04-09 Thread Rik Kabel

List,

I would like to create headings for the endnotes appendix chapter of a 
book with headings like "Notes for pages x–y" but can find no way to 
capture x and y.


Is there a way to get those page numbers to insert into the header?

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


Re: [NTG-context] index "compress" option / collapsing of page numbers

2019-04-03 Thread Henning Hraban Ramm
Am 2019-04-03 um 13:30 schrieb Hans Hagen :

> On 4/3/2019 10:56 AM, Henning Hraban Ramm wrote:
>> Am 2019-04-02 um 18:53 schrieb Hans Hagen :
>>> On 4/2/2019 11:54 AM, Henning Hraban Ramm wrote:
>>>> Ahoi,
>>>> with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. 
>>>> That’s great.
>>>> But (at least in German publications) it’s usual that 1,2 becomes 1f. and 
>>>> 1,2,3 becomes 1ff.
>>>> Is it possible to configure it that way?
>>> it should not be too hard to program but, it being german problem:
>>> 
>>> - you have to come up with an example
>>> - wolfgang has to come up with a proper keyword (compress=?)
>>> 
>> Thank you – it’s not only a German habit, even if we pronounce it 
>> “folgende”, “f.” stems from Latin “folio”, and “ff.” is a duplicated 
>> abbreviation, as was usual in mediaeval Latin.
>> So, this is at least used in English, German, Norwegian and Swedish, as far 
>> as I could find. In French they seem to use “sq.” and “sqq.” (sequens).
>> https://de.wiktionary.org/wiki/ff.
>> https://en.wiktionary.org/wiki/ff.
>> https://fr.wiktionary.org/wiki/sq.
>> I suggest the following setup options:
>> compress = no  —> don’t collapse (as now)
>> compress = yes —> always use – (as now)
>> compresssymbols={\,f.,\,ff.} (or how can you setup a list?)
>> compress = symbols —> use first symbol for one other page, second for more 
>> pages
>>  if there’s only one symbol, more than one sequential page should use – 
>> (like “yes”)
>> Is this feasible?
> 
> i'll add
> 
> \setuplabeltext % predefined
>  [en]
>  [following:singular=f.,
>   following:plural=ff.]
> 
> \setupregister[index][compress=text]


Great! Thank you!
I’ll document it.

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

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

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


Re: [NTG-context] index "compress" option / collapsing of page numbers

2019-04-03 Thread Hans Hagen

On 4/3/2019 10:56 AM, Henning Hraban Ramm wrote:

Am 2019-04-02 um 18:53 schrieb Hans Hagen :


On 4/2/2019 11:54 AM, Henning Hraban Ramm wrote:

Ahoi,
with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s 
great.
But (at least in German publications) it’s usual that 1,2 becomes 1f. and 1,2,3 
becomes 1ff.
Is it possible to configure it that way?

it should not be too hard to program but, it being german problem:

- you have to come up with an example
- wolfgang has to come up with a proper keyword (compress=?)



Thank you – it’s not only a German habit, even if we pronounce it “folgende”, 
“f.” stems from Latin “folio”, and “ff.” is a duplicated abbreviation, as was 
usual in mediaeval Latin.
So, this is at least used in English, German, Norwegian and Swedish, as far as 
I could find. In French they seem to use “sq.” and “sqq.” (sequens).

https://de.wiktionary.org/wiki/ff.
https://en.wiktionary.org/wiki/ff.
https://fr.wiktionary.org/wiki/sq.

I suggest the following setup options:

compress = no  —> don’t collapse (as now)
compress = yes —> always use – (as now)

compresssymbols={\,f.,\,ff.} (or how can you setup a list?)
compress = symbols —> use first symbol for one other page, second for more pages
if there’s only one symbol, more than one sequential page should use – 
(like “yes”)

Is this feasible?


i'll add

\setuplabeltext % predefined
  [en]
  [following:singular=f.,
   following:plural=ff.]

\setupregister[index][compress=text]

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

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


Re: [NTG-context] index "compress" option / collapsing of page numbers

2019-04-03 Thread Herbert Voss



Am 03.04.19 um 11:41 schrieb Thomas A. Schmitz:




On 3. Apr 2019, at 10:56, Henning Hraban Ramm  wrote:

Thank you – it’s not only a German habit, even if we pronounce it “folgende”, 
“f.” stems from Latin “folio”, and “ff.” is a duplicated abbreviation, as was 
usual in mediaeval Latin.
So, this is at least used in English, German, Norwegian and Swedish, as far as 
I could find. In French they seem to use “sq.” and “sqq.” (sequens).


I’m not sure the abbreviation for “folio” has anything to do with our German 
“folgende”; if you have a link for this, I would like to know. And for the 
record: “ff.” for page ranges is now discouraged in most scholarly 
publications; journals and publishers now say f. for x - x+1, or exact page 
numbers.


it has nothing do do with "folgende", but it is often used because it 
means nearly the same.



folium = {
  de = {”f”, ”ff”},
  en = {”f”, ”ff”},
  fr = {”\,sq”,”\,sqq”},
  jp = {”シンボル”,”番号”},
}

Herbert
___
If your question is of interest to others as well, please add an 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] index "compress" option / collapsing of page numbers

2019-04-03 Thread Thomas A. Schmitz


> On 3. Apr 2019, at 10:56, Henning Hraban Ramm  wrote:
> 
> Thank you – it’s not only a German habit, even if we pronounce it “folgende”, 
> “f.” stems from Latin “folio”, and “ff.” is a duplicated abbreviation, as was 
> usual in mediaeval Latin.
> So, this is at least used in English, German, Norwegian and Swedish, as far 
> as I could find. In French they seem to use “sq.” and “sqq.” (sequens).

I’m not sure the abbreviation for “folio” has anything to do with our German 
“folgende”; if you have a link for this, I would like to know. And for the 
record: “ff.” for page ranges is now discouraged in most scholarly 
publications; journals and publishers now say f. for x - x+1, or exact page 
numbers.

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

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


Re: [NTG-context] index "compress" option / collapsing of page numbers

2019-04-03 Thread Ulrike Fischer
Am Wed, 3 Apr 2019 10:56:21 +0200 schrieb Henning Hraban Ramm:

>  or is there a need to collapse pages in bibliographies?

there can be such page ranges with ff both in the bibliography and
the citation. But normally you input them hard coded as you know it
in advance (in biblatex as 1\psq or 1\psqq). 
But biblatex has options to recreate them on-the-fly for backref
lists in the bib (and could use the code in more places if needed). 
 
-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
If your question is of interest to others as well, please add an 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] index "compress" option / collapsing of page numbers

2019-04-03 Thread Henning Hraban Ramm
Am 2019-04-02 um 18:53 schrieb Hans Hagen :

> On 4/2/2019 11:54 AM, Henning Hraban Ramm wrote:
>> Ahoi,
>> with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s 
>> great.
>> But (at least in German publications) it’s usual that 1,2 becomes 1f. and 
>> 1,2,3 becomes 1ff.
>> Is it possible to configure it that way?
> it should not be too hard to program but, it being german problem:
> 
> - you have to come up with an example
> - wolfgang has to come up with a proper keyword (compress=?)
> 

Thank you – it’s not only a German habit, even if we pronounce it “folgende”, 
“f.” stems from Latin “folio”, and “ff.” is a duplicated abbreviation, as was 
usual in mediaeval Latin.
So, this is at least used in English, German, Norwegian and Swedish, as far as 
I could find. In French they seem to use “sq.” and “sqq.” (sequens).

https://de.wiktionary.org/wiki/ff.
https://en.wiktionary.org/wiki/ff.
https://fr.wiktionary.org/wiki/sq.

I suggest the following setup options:

compress = no  —> don’t collapse (as now)
compress = yes —> always use – (as now)

compresssymbols={\,f.,\,ff.} (or how can you setup a list?)
compress = symbols —> use first symbol for one other page, second for more pages
    if there’s only one symbol, more than one sequential page should use – 
(like “yes”)

Is this feasible?

As far as I see, we need this only for index entries, i.e. \setupregister, 
since there’s no command like \at for more than one page anyway; or is there a 
need to collapse pages in bibliographies?


Test case:


\usemodule[visual]
\setuppapersize[A6]

\setupregister[index][
  compress=yes,
  %compresssymbols={\,f.,\,ff.},
  %compress=symbols,
]

\starttext
\placeindex\index{nonsense}
\page

\strut\index{something}\page
\strut\index{something}\page

\dorecurse{7}{
\fakewords{10}{100}\index{something}\par
\fakewords{20}{200}\index{other}\par
\fakewords{10}{100}\index{something}\par
}
\index{finis} % not flushed?

\stoptext



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

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

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


Re: [NTG-context] index "compress" option / collapsing of page numbers

2019-04-02 Thread Hans Hagen

On 4/2/2019 11:54 AM, Henning Hraban Ramm wrote:

Ahoi,

with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s 
great.

But (at least in German publications) it’s usual that 1,2 becomes 1f. and 1,2,3 
becomes 1ff.

Is it possible to configure it that way?

it should not be too hard to program but, it being german problem:

- you have to come up with an example
- wolfgang has to come up with a proper keyword (compress=?)

Hans


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

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


[NTG-context] index "compress" option / collapsing of page numbers

2019-04-02 Thread Henning Hraban Ramm
Ahoi,

with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s 
great.

But (at least in German publications) it’s usual that 1,2 becomes 1f. and 1,2,3 
becomes 1ff.

Is it possible to configure it that way?


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

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

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


Re: [NTG-context] Printing 3 din lang pages on one dina4 page

2019-03-12 Thread Jan U. Hasecke
Am 12.03.19 um 17:25 schrieb Wolfgang Schuster:
> \definepapersize [A4/3] [width=99mm,height=210mm]
> 
> \setuppapersize [A4/3] [A4,landscape]
> 
> \setuppaper [nx=3,ny=1]
> 
> \setuparranging [XY]
> 
> \setupbodyfont [10pt]
> 
> \showframe[page]
> 
> \starttext
> \dorecurse{10}{\samplefile{tufte}}
> \stoptext

Thanks a lot, Wolfgang.

juh

-- 
Soziale Plastik. Die Kunst der Allmende
Essay zum 30. Todestag von Joseph Beuys
http://www.amazon.de/dp/1523458763/
Taschenbuch, 130 Seiten, EUR 9,90
___
If your question is of interest to others as well, please add an 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] Printing 3 din lang pages on one dina4 page

2019-03-12 Thread Wolfgang Schuster

Jan U. Hasecke schrieb am 12.03.19 um 13:04:

Hi,

I managed to print din long flyers (100mmx210mm with 97mmx210mm fold
page) with 6 pages using a lot of pageshifts etc.

But how can I print one simple din long page (99mmx210mm) three times on
a din a4 page so that I can cut it myself?

The following does not work.

\definepapersize
[flyer]
[width=99mm,height=210mm]

\setuppapersize [flyer] [a4]

\setuparranging[1*3]

The option [1*3] does not exist for \setuparranging.
But I thought this could be what I want one sheet three pages.


Use the XY arrangement method and set the number of columns with the 
nx-key of \setuppaper.



\definepapersize [A4/3] [width=99mm,height=210mm]

\setuppapersize [A4/3] [A4,landscape]

\setuppaper [nx=3,ny=1]

\setuparranging [XY]

\setupbodyfont [10pt]

\showframe[page]

\starttext
\dorecurse{10}{\samplefile{tufte}}
\stoptext

Wolfgang

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

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


[NTG-context] Printing 3 din lang pages on one dina4 page

2019-03-12 Thread Jan U. Hasecke
Hi,

I managed to print din long flyers (100mmx210mm with 97mmx210mm fold
page) with 6 pages using a lot of pageshifts etc.

But how can I print one simple din long page (99mmx210mm) three times on
a din a4 page so that I can cut it myself?

The following does not work.

\definepapersize
[flyer]
[width=99mm,height=210mm]

\setuppapersize [flyer] [a4]

\setuparranging[1*3]

The option [1*3] does not exist for \setuparranging.
But I thought this could be what I want one sheet three pages.

TIA
juh

___
If your question is of interest to others as well, please add an 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] right figure at bottom of page can narrow text block on whole next page

2019-02-06 Thread Sanjoy Mahajan
> This has come up a few times on this list. Hans has stated a reluctance 
> to make a change or add an option to discard the unused vertical space 
> (see https://www.mail-archive.com/ntg-context@ntg.nl/msg21273.html from 
> March 2007, and most recently 
> https://www.mail-archive.com/ntg-context@ntg.nl/msg86872.html in January 
> 2018).

Thank you for those pointers.

> The workaround that Hans suggests in that last post , adding the flag
> 'high', almost resolves the issue in your example.

Right -- or just shifting the figure upward by one paragraph or so.  In
a long document like a book, pagebreaks need to be adjusted by hand at
the end anyway to avoid long stretches of unused bottom space.
Adjusting the figure placements slightly can become part of that
process.

-Sanjoy
___
If your question is of interest to others as well, please add an 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] right figure at bottom of page can narrow text block on whole next page

2019-02-06 Thread Rik Kabel

On 1/29/2019 06:48, Sanjoy Mahajan wrote:

\definepapersize[bookcrop][width=137mm,height=221mm]
\setuppapersize [bookcrop][bookcrop]

\setuplayout[marking=on,
   location=middle,
   backspace=13.5mm,
   width=middle,
   topspace=32bp,
   header=10bp, headerdistance=26bp,
   footerdistance=16bp, footer=10bp,
   height=578bp,
]

\setupinterlinespace[line=1.3em]
\setupbodyfont[times,10bp]

\starttext

\input knuth

Silly para

Silly para

\placefigure[right]{}{\framed[width=100bp,height=75.75bp]{\null}}

\input knuth

\dorecurse{8}{\par Silly para}

\placefigure[right]{}{\framed[width=100bp,height=60.75bp]{\null}}

\dorecurse{32}{Silly text }

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

\stoptext


This has come up a few times on this list. Hans has stated a reluctance 
to make a change or add an option to discard the unused vertical space 
(see https://www.mail-archive.com/ntg-context@ntg.nl/msg21273.html from 
March 2007, and most recently 
https://www.mail-archive.com/ntg-context@ntg.nl/msg86872.html in January 
2018).


The workaround that Hans suggests in that last post , adding the flag 
'high', almost resolves the issue in your example.


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


Re: [NTG-context] test-suite wiki page

2019-02-04 Thread Sanjoy Mahajan
On 2019-02-01 17:57, Taco Hoekwater  wrote:

> Yes, foundry.supelec.fr is officially dead now (and that project with
> it)

>> 2. I did find the (a?) test suite on the PRAGMA site at
>>   <http://www.pragma-ade.nl/download-1.htm> as a 7zip file.  Is that
>>   the correct location to point people to (apologies for the awful
>>   construction of that sentence)?
>
> Better is to link to the actual file on Pragma’s site.

Thanks -- these points are now reflected in the
<https://wiki.contextgarden.net/Test_suite> page.

-Sanjoy
___
If your question is of interest to others as well, please add an 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] test-suite wiki page

2019-02-01 Thread Taco Hoekwater
Hi,

> Op 1 feb. 2019 om 17:09 heeft Sanjoy Mahajan  het volgende 
> geschreven:
> 
> In another thread, Hans had pointed me to the examples of blocks in the
> test suite.  That leads to my following two questions before I revise
> the associated wiki page:
> 
> 1. The wiki page about the test suite
>   <https://wiki.contextgarden.net/Test_suite> contains dead links 

Yes, foundry.supelec.fr is officially dead now (and that project with it)

> 2. I did find the (a?) test suite on the PRAGMA site at
>   <http://www.pragma-ade.nl/download-1.htm> as a 7zip file.  Is that
>   the correct location to point people to (apologies for the awful
>   construction of that sentence)?

Better is to link to the actual file on Pragma’s site. Hans sometimes changes 
the content of the .htm files, but the file itself (in fact most files on 
pragma-ade.com) has had that same location for a very long time now.

Best wishes,
Taco

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

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


[NTG-context] test-suite wiki page

2019-02-01 Thread Sanjoy Mahajan
In another thread, Hans had pointed me to the examples of blocks in the
test suite.  That leads to my following two questions before I revise
the associated wiki page:

1. The wiki page about the test suite
   <https://wiki.contextgarden.net/Test_suite> contains dead links to
   <https://foundry.supelec.fr/projects/contexttest> for the project
   homepage and to <https://foundry.supelec.fr/mail/?group_id=21> for
   the mailing list.

   Are those now officially dead; or, more directly stated, would there
   be any objections if I clean up that wiki page to remove those dead
   links?

2. I did find the (a?) test suite on the PRAGMA site at
   <http://www.pragma-ade.nl/download-1.htm> as a 7zip file.  Is that
   the correct location to point people to (apologies for the awful
   construction of that sentence)?

-Sanjoy
___
If your question is of interest to others as well, please add an 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] right figure at bottom of page can narrow text block on whole next page

2019-01-29 Thread Sanjoy Mahajan
Dear List,

A figure near the bottom of the page can narrow the text block on the
whole next page.  I noticed the problem when typesetting my (next) book.
But the book is more a maximal than a minimal example.  However, from it
I made the minimal example included below that uses no external figures.

Figure 2 is the bottom of the page and the paragraph flows to its left
with a correspondingly narrower text block.  So far, so good.  But the
text block also narrows for the entirity of page 2 and for the first
two lines of page 3.  

I've found the problem on the MkIV 2019.01.07 and 2019.01.28 betas (all
on Debian amd64), as well as on the live ConTeXt (which is the
2019.01.28 beta).

-Sanjoy

== start margin-figure-region.tex =
\definepapersize[bookcrop][width=137mm,height=221mm]
\setuppapersize [bookcrop][bookcrop]

\setuplayout[marking=on, 
  location=middle,
  backspace=13.5mm,
  width=middle,
  topspace=32bp, 
  header=10bp, headerdistance=26bp,
  footerdistance=16bp, footer=10bp,
  height=578bp,
]

\setupinterlinespace[line=1.3em]
\setupbodyfont[times,10bp]

\starttext

\input knuth

Silly para

Silly para

\placefigure[right]{}{\framed[width=100bp,height=75.75bp]{\null}}

\input knuth

\dorecurse{8}{\par Silly para}

\placefigure[right]{}{\framed[width=100bp,height=60.75bp]{\null}}

\dorecurse{32}{Silly text }

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

\stoptext
== end margin-figure-region.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page

2019-01-17 Thread Taco Hoekwater
Hi,

> On 17 Jan 2019, at 12:27, Jan U. Hasecke  wrote:
> 
> Am 14.01.19 um 19:25 schrieb Wolfgang Schuster:
> 
>> 
>>> I'll try to wikify this later this week.
> 
> I wikified it here:
> https://wiki.contextgarden.net/Command/setuphead
> 
> Is there a way to suppress the context output?
> The output does not show the effect.

I patched your example a little so that it now does show the effect.

Best wishes,
Taco





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

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

Re: [NTG-context] Manipulating the left blank page when chapter starts on the right page

2019-01-17 Thread Jan U. Hasecke
Am 14.01.19 um 19:25 schrieb Wolfgang Schuster:

> 
>> I'll try to wikify this later this week.

I wikified it here:
https://wiki.contextgarden.net/Command/setuphead

Is there a way to suppress the context output?
The output does not show the effect.

juh
___
If your question is of interest to others as well, please add an 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] Manipulating the left blank page when chapter starts on the right page

2019-01-14 Thread Wolfgang Schuster

Jan U. Hasecke schrieb am 14.01.19 um 08:39:


Am 13.01.19 um 16:56 schrieb Wolfgang Schuster:


Here is a example which shows how you can change the background color
of a empty page before the chapter title.

\setuppagenumbering
   [alternative=doublesided]

\startsetups [chapter:before]
   \doifoddpageelse
     {}
     {\pushbackground[page]
  \setupbackgrounds[page][background=color,backgroundcolor=black]
  \page[empty,right]
  \popbackground}
\stopsetups

\setuphead
   [chapter]
   [page=yes,
    before=\directsetup{chapter:before}]

\starttext

\startchapter[title={Knuth}]
\dorecurse{10}{\samplefile{knuth}}
\stopchapter

\startchapter[title={Zapf}]
\dorecurse{10}{\samplefile{zapf}}
\stopchapter

\startchapter[title={Ward}]
\dorecurse{10}{\samplefile{ward}}
\stopchapter

\stoptext


Thanks a lot Wolfgang!

This was just the thing I was looking for. These setups seems to be the
golden bullet in ConTeXt but I often have difficulties to understand the
mechanism.


If you mean the setups-environment with setups you’re wrong because this 
is only a alternative way to a command (e.g. \define\mycommand{...}).


The main point is that you finish the page before the section title and 
check on the new page whether you’re on a odd or even numbered page.


When the test tells you that you’re on a even numbered page you know 
there is a empty left page before the chapter which can be used to add 
something special.


Below is a simplified example for the method.

\starttext

\dorecurse{10}{\samplefile{knuth}}

\page

\doifoddpageelse
  {}
  {\pushbackground[page]
   \setupbackgrounds[page][background=color,backgroundcolor=red]
   \page[empty]
   \popbackground}

\dorecurse{10}{\samplefile{zapf}}

\stoptext


I'll try to wikify this later this week.

The push-pop-background pair is mentionend in x-setups-overview together
with some other push-pop-pairs or push single commands. Are they
documented somewhere?


Most of these push/pop commands are used for internal stuff (or 
sometimes in styles) which means there is no documentation for them.


The purpose of them is to store the state of a command (e.g. the page 
background) before you change its values, afterwards you can just revert 
back to the previously saved state.


As these commands are no real environments they are listed as separate 
commands but it’s possible I will change this.


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] Manipulating the left blank page when chapter starts on the right page

2019-01-13 Thread Jan U. Hasecke

Am 13.01.19 um 16:56 schrieb Wolfgang Schuster:

> Here is a example which shows how you can change the background color
> of a empty page before the chapter title.
> 
> \setuppagenumbering
>   [alternative=doublesided]
> 
> \startsetups [chapter:before]
>   \doifoddpageelse
>     {}
>     {\pushbackground[page]
>  \setupbackgrounds[page][background=color,backgroundcolor=black]
>  \page[empty,right]
>  \popbackground}
> \stopsetups
> 
> \setuphead
>   [chapter]
>   [page=yes,
>    before=\directsetup{chapter:before}]
> 
> \starttext
> 
> \startchapter[title={Knuth}]
> \dorecurse{10}{\samplefile{knuth}}
> \stopchapter
> 
> \startchapter[title={Zapf}]
> \dorecurse{10}{\samplefile{zapf}}
> \stopchapter
> 
> \startchapter[title={Ward}]
> \dorecurse{10}{\samplefile{ward}}
> \stopchapter
> 
> \stoptext

Thanks a lot Wolfgang!

This was just the thing I was looking for. These setups seems to be the
golden bullet in ConTeXt but I often have difficulties to understand the
mechanism.

I'll try to wikify this later this week.

The push-pop-background pair is mentionend in x-setups-overview together
with some other push-pop-pairs or push single commands. Are they
documented somewhere?

juh

___
If your question is of interest to others as well, please add an 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] Manipulating the left blank page when chapter starts on the right page

2019-01-13 Thread Wolfgang Schuster

Jan U. Hasecke schrieb am 12.01.19 um 22:08:

Hi Aditya,

Am 12.01.19 um 20:11 schrieb Aditya Mahajan:

On Sat, 12 Jan 2019, Jan U. Hasecke wrote:


Hi all,

in my document \startchapter and \starttitle starts a new chapter on the
right (odd) page. So sometimes, there is a blank even page just before a
new chapter.

I would like to manipulate this blank even page.

There are several things I would like to do, eg. having no headers and
footers, setting the background color to a named color, placing an image
or some graphics on the page.

Is there a way to define such a page, name it and call it in
\startchapter so that it is placed on the left side.

See https://tex.stackexchange.com/q/457428/323

Thanks a lot, but I wasn't looking for a way to just delete page numbers
but to style the empty page in arbitrary ways.

Maybe it is better to do this manually.

I would let chapter open on even pages too and just insert a styled page
by hand.


Here is a example which shows how you can change the background color
of a empty page before the chapter title.

\setuppagenumbering
  [alternative=doublesided]

\startsetups [chapter:before]
  \doifoddpageelse
    {}
    {\pushbackground[page]
 \setupbackgrounds[page][background=color,backgroundcolor=black]
     \page[empty,right]
 \popbackground}
\stopsetups

\setuphead
  [chapter]
  [page=yes,
   before=\directsetup{chapter:before}]

\starttext

\startchapter[title={Knuth}]
\dorecurse{10}{\samplefile{knuth}}
\stopchapter

\startchapter[title={Zapf}]
\dorecurse{10}{\samplefile{zapf}}
\stopchapter

\startchapter[title={Ward}]
\dorecurse{10}{\samplefile{ward}}
\stopchapter

\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] Manipulating the left blank page when chapter starts on the right page

2019-01-12 Thread Rik Kabel

On 1/12/2019 16:08, Jan U. Hasecke wrote:

Hi Aditya,

Am 12.01.19 um 20:11 schrieb Aditya Mahajan:

On Sat, 12 Jan 2019, Jan U. Hasecke wrote:


Hi all,

in my document \startchapter and \starttitle starts a new chapter on the
right (odd) page. So sometimes, there is a blank even page just before a
new chapter.

I would like to manipulate this blank even page.

There are several things I would like to do, eg. having no headers and
footers, setting the background color to a named color, placing an image
or some graphics on the page.

Is there a way to define such a page, name it and call it in
\startchapter so that it is placed on the left side.

See https://tex.stackexchange.com/q/457428/323

Thanks a lot, but I wasn't looking for a way to just delete page numbers
but to style the empty page in arbitrary ways.

Maybe it is better to do this manually.

I would let chapter open on even pages too and just insert a styled page
by hand.

juh



I place an epigraph on verso page before a few chapters with the following:

   \definehead[ChapterEpigraph][title]
   \setuphead [ChapterEpigraph][
  page={yes,left},
  insidesection=\vfill,
  aftersection={\vfill\vfill},
  header=empty,
  placehead=no,
 ]

   %% The following always creates a verso page if there is an
   %%   epigraph to set or not.

   \startsetups chapter:epigraph
\doifelsebuffer{ChapterEpigraph}
    {\page[yes,header,footer,left]
 \dontleavehmode
 \vfill
 \getbuffer   [ChapterEpigraph]
 \resetbuffer [ChapterEpigraph]
 \vfill
 \vfill
}
    {\page[yes,header,footer,left]}
\page[yes,header,footer,right]
   \stopsetups

   <...>

   \stopchapter%   end previous chapter

   \startChapterEpigraph% no epigraph on next

   \stopChapterEpigraph

   \startchapter[reference={cha:no-epigraph-chapter},
  title={Chapter with no epigraph}]
   <...>

   \stopchapter%

   \startChapterEpigraph

   

   \stopChapterEpigraph

   \startchapter[reference={cha:next-chapter},
  title={Chapter with epigraph}]

   <...>

I am not sure where I got the hints for this. I haven't revisited it for 
a while, and it does look like there is some redundant use of \vfill, 
but it worked for me. You may be able to build on it.


___
If your question is of interest to others as well, please add an 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] Manipulating the left blank page when chapter starts on the right page

2019-01-12 Thread Jan U. Hasecke
Hi Aditya,

Am 12.01.19 um 20:11 schrieb Aditya Mahajan:
> On Sat, 12 Jan 2019, Jan U. Hasecke wrote:
> 
>> Hi all,
>>
>> in my document \startchapter and \starttitle starts a new chapter on the
>> right (odd) page. So sometimes, there is a blank even page just before a
>> new chapter.
>>
>> I would like to manipulate this blank even page.
>>
>> There are several things I would like to do, eg. having no headers and
>> footers, setting the background color to a named color, placing an image
>> or some graphics on the page.
>>
>> Is there a way to define such a page, name it and call it in
>> \startchapter so that it is placed on the left side.
> 
> See https://tex.stackexchange.com/q/457428/323

Thanks a lot, but I wasn't looking for a way to just delete page numbers
but to style the empty page in arbitrary ways.

Maybe it is better to do this manually.

I would let chapter open on even pages too and just insert a styled page
by hand.

juh
___
If your question is of interest to others as well, please add an 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] Manipulating the left blank page when chapter starts on the right page

2019-01-12 Thread Aditya Mahajan

On Sat, 12 Jan 2019, Jan U. Hasecke wrote:


Hi all,

in my document \startchapter and \starttitle starts a new chapter on the
right (odd) page. So sometimes, there is a blank even page just before a
new chapter.

I would like to manipulate this blank even page.

There are several things I would like to do, eg. having no headers and
footers, setting the background color to a named color, placing an image
or some graphics on the page.

Is there a way to define such a page, name it and call it in
\startchapter so that it is placed on the left side.


See https://tex.stackexchange.com/q/457428/323

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

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

[NTG-context] Manipulating the left blank page when chapter starts on the right page

2019-01-12 Thread Jan U. Hasecke
Hi all,

in my document \startchapter and \starttitle starts a new chapter on the
right (odd) page. So sometimes, there is a blank even page just before a
new chapter.

I would like to manipulate this blank even page.

There are several things I would like to do, eg. having no headers and
footers, setting the background color to a named color, placing an image
or some graphics on the page.

Is there a way to define such a page, name it and call it in
\startchapter so that it is placed on the left side.

I would like to use the blank pages in an attractive way. Imagine eg. a
title image on the left page while the headline of the chapter is on the
right page.

TIA
juh

___
If your question is of interest to others as well, please add an 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] Text running of the page with default=top float parameter

2018-12-05 Thread Marco Patzer
On Wed, 5 Dec 2018 13:44:53 +0100
Marco Patzer  wrote:

> I've got a problem with text running off the page. The culprit is
> the "default=top" float parameter. Is this expected behaviour?
> 
> Slightly OT bonus question: What does the “default=auto” parameter
> do? I added that years ago and have not found documentation what it
> actually does. I actually have set "default=auto, top, bottom".

I just wanted to add that the issue persists with either

  default=auto
  default=top
  default=bottom
  and possibly others as well

So the issue is more with default=outer messing up the calculation,
I assume.

Marco
___
If your question is of interest to others as well, please add an 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] Text running of the page with default=top float paremeter

2018-12-05 Thread Marco Patzer
Hi!

I've got a problem with text running off the page. The culprit is
the "default=top" float parameter. Is this expected behaviour?

Slightly OT bonus question: What does the “default=auto” parameter
do? I added that years ago and have not found documentation what it
actually does. I actually have set "default=auto, top, bottom".

MWE:

\definefloat
  [smallfigure]
  [smallfigures]
  [figure]

\setupfloat
  [smallfigure]
  [default=outer]

\setupfloat
  [figure]
  [default=top] %% commenting this fixes the issue

\showframe
\starttext

\startplacefigure
  \externalfigure
\stopplacefigure

\startplacesmallfigure
  \externalfigure
\stopplacesmallfigure

\dorecurse{4}{\samplefile{knuth}}

\stoptext

Marco
___
If your question is of interest to others as well, please add an 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] Odd/even page test

2018-10-16 Thread Procházka Lukáš Ing .

Hello Pablo,

that's it, thank you!

Lukas


On Tue, 16 Oct 2018 17:58:04 +0200, Pablo Rodriguez  wrote:


On 10/16/18 4:25 PM, Procházka Lukáš Ing. wrote:

Hello,

I need to check whether even or odd page is to be printed. I'm starting with 
the following simple code:


\def\T{\ifodd\pagenumber ODD\else EVEN\fi}

\starttext
   \dorecurse{2}{\T\page}
   \startTEXpage[width=50mm,height=150mm]\stopTEXpage
   \dorecurse{2}{\T\page}
\stoptext



Hi Lukáš,

both makeups and fitting pages aren’t numbered by default.

Either you add this to the preamble:

  \setupfittingpage[TEXpage][pagestate=start]

or you add the option "pagestate=start" to \startTEXpage.

I hope it helps,

Pablo



Why "user defined page" #3 is skipped in page numbering, so headers shown are:
1 - 2 - (nothing) - 3 - 4 and "ODD"/"EVEN" and text is "ODD" - "EVEN" - (nothing) - 
"ODD" - "EVEN"
instead of:
1 - 2 - (nothing) - 4 - 5 and "ODD"/"EVEN" and text be "ODD" - "EVEN" - (nothing) - 
"EVEN" - "ODD"?

TIA.

Best regards,

Lukas



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS: 
nrpt3sn | IČO: 40763439
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

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

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

Re: [NTG-context] Odd/even page test

2018-10-16 Thread Pablo Rodriguez
On 10/16/18 4:25 PM, Procházka Lukáš Ing. wrote:
> Hello,
> 
> I need to check whether even or odd page is to be printed. I'm starting with 
> the following simple code:
> 
> 
> \def\T{\ifodd\pagenumber ODD\else EVEN\fi}
> 
> \starttext
>\dorecurse{2}{\T\page}
>\startTEXpage[width=50mm,height=150mm]\stopTEXpage
>\dorecurse{2}{\T\page}
> \stoptext
> 

Hi Lukáš,

both makeups and fitting pages aren’t numbered by default.

Either you add this to the preamble:

  \setupfittingpage[TEXpage][pagestate=start]

or you add the option "pagestate=start" to \startTEXpage.

I hope it helps,

Pablo


> Why "user defined page" #3 is skipped in page numbering, so headers shown are:
>   1 - 2 - (nothing) - 3 - 4 and "ODD"/"EVEN" and text is "ODD" - "EVEN" - 
> (nothing) - "ODD" - "EVEN"
> instead of:
>   1 - 2 - (nothing) - 4 - 5 and "ODD"/"EVEN" and text be "ODD" - "EVEN" - 
> (nothing) - "EVEN" - "ODD"?
> 
> TIA.
> 
> Best regards,
> 
> Lukas
> 
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> 


-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Odd/even page test

2018-10-16 Thread Procházka Lukáš Ing .

Hello,

I need to check whether even or odd page is to be printed. I'm starting with 
the following simple code:


\def\T{\ifodd\pagenumber ODD\else EVEN\fi}

\starttext
  \dorecurse{2}{\T\page}
  \startTEXpage[width=50mm,height=150mm]\stopTEXpage
  \dorecurse{2}{\T\page}
\stoptext


Why "user defined page" #3 is skipped in page numbering, so headers shown are:
1 - 2 - (nothing) - 3 - 4 and "ODD"/"EVEN" and text is "ODD" - "EVEN" - (nothing) - 
"ODD" - "EVEN"
instead of:
1 - 2 - (nothing) - 4 - 5 and "ODD"/"EVEN" and text be "ODD" - "EVEN" - (nothing) - 
"EVEN" - "ODD"?

TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | IDDS: 
nrpt3sn | IČO: 40763439
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

t.mkiv
Description: Binary data


t.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] moving the first line of a page to the previous page

2018-10-09 Thread luigi scarso
On Tue, Oct 9, 2018 at 1:33 PM mf  wrote:

> Hello list,
> sometimes ConTeXt moves the (would-be) last line of a page to the next
> page, even when there's room for it at the bottom of a page, before the
> footnotes.
>
> Sometimes i understand why it does so: when the line contains a footnote
> that would increase the footnotes' height, for example; or when you have
> widows or orphans.
>
> But sometimes it happens in an inexplicable way: in some pages there's
> room at the bottom and it keeps the last line, in some other pages
> there's more room (than in the previous case), but it moves the last
> line to the next page anyway.
> Even looking at hyphenations, i can't find an explanation fot that
> behaviour.
>
> There is no room for the next object you are inserting.
Isolate the point and try
\tracingpages\plusone
\tracingoutput\plusone
\showboxbreadth\maxdimen
\showboxdepth\maxdimen


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

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

<    1   2   3   4   5   6   7   8   9   10   >