[NTG-context] \getmarking for top at the current page

2024-04-15 Thread Biblio--- via ntg-context
Dear list,

I've got a problem. Not the first one, but the first one to contribute to the 
list. ;)

system> ConTeXt  ver: 2024.04.01 08:59 LMTX  fmt: 2024.4.12  int: 
english/english
system> 'cont-new.mkxl' loaded

%==
%==
\definehead[Datum][subsubsubject]

\startsetups[Test]
  Pr=(\getmarking[Datum][previous])~
  Nx=(\getmarking[Datum][next])~
  Fi=(\getmarking[Datum][first])~
  La=(\getmarking[Datum][last])~
  Tp=(\getmarking[Datum][top])~
  Bt=(\getmarking[Datum][bottom])~
  Cu=(\getmarking[Datum][current])~
\stopsetups

\setupheadertexts[text]
  [\setups{Test}][]
  [\setups{Test}][]

\setuppagenumbering[location=footer]

\starttext

\startDatum[title={secA}]%

  \dorecurse{50}{aaa }

  \pagebreak
 
  \dorecurse{50}{aaa }

\stopDatum

\startDatum[title={secB}]%

  \dorecurse{630}{bbb }

\stopDatum

\startDatum[title={secC}]%

  \dorecurse{50}{ccc }

\stopDatum

\startDatum[title={secD}]%

  \dorecurse{50}{ddd }

\stopDatum

\startDatum[title={secE}]%

  \dorecurse{50}{eee }

\stopDatum


\stoptext
%==
%==


I'd like to write the marking of the very first text at the current page to the 
header. That seems to be a bit tricky, at least for me. (I'm afraid that 
\getmarking[xxx][top] was intended for that and it is not feasible at all.)

At page 1 the header should read "secA", at page 2 again "secA" (because the 
very first text belongs to "secA"), and at page 3 "secC" (because the very 
first text (the section title) belongs to "secC"). Unfortunatly \getmarking[][] 
does not behave like I expacted.

I understand the keywords of \getmarking in the wiki 
(https://wiki.contextgarden.net/Command/getmarking) as listed below:
• previous: marking at the bottom of the page BEFORE the current page (no page 
before then empty)
• next: marking at the top of the page AFTER the current page (no page after 
then bottom of current page)

• top: marking at the top of the current page
• bottom: marking at the bottom of the current page

• first: first marking that starts at the current page (no first than behaving 
like top)
• last: last marking that starts at the current page (no last than behaving 
like bottom)

• current: last stored marking while deciding on pagebreaking between the 
current page and the (potential) following page
• default: first

According to these thoughts, I started with \getmarking[Datum][top]. But "top" 
seems not to work, there is no difference between "top" and "first", "top" 
behaves like "first".

My second thought: Generally \getmarking[Datum][first] would be perfect, so 
I've thought something like

    \doifelse{\fetchmark[Datum][next] of the page before the current 
page}{\fetchmark[Datum][previous]}
      {\getmarking[Datum][previous]}
      {\getmarking[Datum][first]}

could work. (Honestly I don't know how to do "\fetchmark[Datum][next] of the 
page before the current page}". The first page would need a special treatment 
too.)

But: At page 2 \getmarking[Datum][next] (Nx) contains "secB" but at top of page 
3 is not "secB" but "secC". So \getmarking[Datum][next] does not seem to 
contain the correct information I need, therefore I don't get any further.


Any ideas: How do I write the marking of the very first text at the current 
page to the header?


Thank you in advance, Matthias

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

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


[NTG-context] Re: last page number for a list

2024-04-03 Thread Wolfgang Schuster

Alan Bowen schrieb am 30.03.2024 um 20:59:

How can I get the last page number of a chapter for a list (ToC)?

Outside of a list, I use \lastpagenumber.
But that does not work in a list such as the ToC.

Any tips or pointers will be gladly received.


You can try this:

\definepagestate[alanpage]
\definecounter  [alanindex]

\setuphead
  [chapter]
  [insidesection={\setpagestate[alanpage]},
   aftersection={\setpagestate[alanpage]}]

\setuphead
  [title]
  [insidesection=,
   aftersection=]

\define[1]\ChapterListPage

{\pagestaterealpage{alanpage}{\number\numexpr\incrementedcounter[alanindex]\relax}%
   \thinspace --\thinspace

\pagestaterealpage{alanpage}{\number\numexpr\incrementedcounter[alanindex]\relax}}

\setuplist[chapter][pagecommand=\ChapterListPage]
\setuplist[chapter][pagecommand=\ChapterListPage]

\showgrid

\starttext

\completecontent

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

\startchapter [title=Zapf]
\dorecurse{12}{\samplefile{zapf}}
\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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: last page number for a list

2024-04-03 Thread Alan Bowen
Hi, Bruce—
This does not quite work—the page numbers are those of the first page of
the chapter, not the last. But thanks for the tip about \writetolist.
Perhaps I can get that to work.

What I need are ToC entries like
AuthorName
ShortTitle   1–6

I need this pagination because one of the requirements of continuous
publication on the OJS is that once an item is published changes are not
permitted. So I cannot go with normal continuous publication since, for us
anyway, items are not processed in strict sequential order (e,g., we may
have, paper+paper+ review+paper...)

If it helps: I currently have

\startFMTitle[reference=\Reference, title={}][itemAuthor=AuthorName,
itemTitle=ShortTitle,...]
\setuplist[FMTitle][state=start, alternative=startendfmpages,
criterium=all,]
(\Reference is defined at the in the preamble to input of the
file/component.)

\definelistalternative[startendfmpages][renderingsetup=list:startendfmpages]

\startsetups[list:startendfmpages]
  \structurelistuservariable{itemAuthor}\crlf
  \structurelistuservariable{itemTitle}\hfill%
   \at[\currentlistentrypagenumber]–\at[\lastpagenumber]
\vglue1pc
\stopsetups
where I have \reference[\lastpagenumber]{} at the end of the file. But this
gives me ??–viii (the viii is correct and interactive) for the FMTitle.
Sadly the entries for all my other Titles (SourceTitle, StudyTitle...) is
??–viii.
(Each title is a modified chapter.)

Curiously, \at[\Reference]–\convertnumber{r}{\lastpagenumber}  and
\at[\Reference]–\at[\lastpagenumber] work properly in the body text.
The overall structure is project-product sort with many components in the
product.

This is probably TMI. The bottom line is that I am truly stumped.

All best,
Alan

On Wed, Apr 3, 2024 at 6:56 AM Bruce Horrocks  wrote:

>
>
> > On 30 Mar 2024, at 19:59, Alan Bowen  wrote:
> >
> > How can I get the last page number of a chapter for a list (ToC)?
> >
> > Outside of a list, I use \lastpagenumber.
> > But that does not work in a list such as the ToC.
> >
> > Any tips or pointers will be gladly received.
>
>
> I'm not quite sure what you want to do with these numbers: something like
> printing out a contents page but instead of the start page of a chapter it
> shows the last page of the chapter?
>
> If so then try creating a custom list and use \writetolist immediately
> before each \stopchapter command?
>
> \definelist[LastPages][criterium=all]
> \starttext
> \completecontent
> \page
> \completelist[LastPages]
> \page
> \dorecurse{10}{
>   \startchapter[title={This is my chapter}]
>   This is a chapter\par \dorecurse{6}{\input knuth } \input
> math-kontinuitet-sv
>
>   \writetolist[LastPages]{3.}{\namedstructurevariable{chapter}{title}}
>   \stopchapter
> }
> \stoptext
>
> But I can't get the number option of \writetolist to work - the "3." above
> is ignored. :-(
>
> —
> Bruce Horrocks
> Hampshire, UK
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Re: last page number for a list

2024-04-03 Thread Bruce Horrocks


> On 30 Mar 2024, at 19:59, Alan Bowen  wrote:
> 
> How can I get the last page number of a chapter for a list (ToC)?
> 
> Outside of a list, I use \lastpagenumber. 
> But that does not work in a list such as the ToC.
> 
> Any tips or pointers will be gladly received.


I'm not quite sure what you want to do with these numbers: something like 
printing out a contents page but instead of the start page of a chapter it 
shows the last page of the chapter?

If so then try creating a custom list and use \writetolist immediately before 
each \stopchapter command?

\definelist[LastPages][criterium=all]
\starttext
\completecontent
\page
\completelist[LastPages]
\page
\dorecurse{10}{
  \startchapter[title={This is my chapter}]
  This is a chapter\par \dorecurse{6}{\input knuth } \input math-kontinuitet-sv

  \writetolist[LastPages]{3.}{\namedstructurevariable{chapter}{title}}
  \stopchapter
}
\stoptext

But I can't get the number option of \writetolist to work - the "3." above is 
ignored. :-(

—
Bruce Horrocks
Hampshire, UK

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

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


[NTG-context] last page number for a list

2024-03-30 Thread Alan Bowen
How can I get the last page number of a chapter for a list (ToC)?

Outside of a list, I use \lastpagenumber.
But that does not work in a list such as the ToC.

Any tips or pointers will be gladly received.

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

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


[NTG-context] Re: Why is header page number appearing when I define a header?

2024-03-17 Thread Hraban Ramm

Am 16.03.24 um 22:28 schrieb Marco Patzer:

On Sat, 16 Mar 2024 20:33:33 + (UTC)
Joel via ntg-context  wrote:


How do I remove the page number from the header texts?

   \setupheadertexts []

or

   \setuplayouttext
  [header][text]
  [middletext=]


I’d have guessed

\setuppagenumbering[location=,]

Hraban

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

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


[NTG-context] Re: Why is header page number appearing when I define a header?

2024-03-16 Thread Marco Patzer
On Sat, 16 Mar 2024 20:33:33 + (UTC)
Joel via ntg-context  wrote:

> How do I remove the page number from the header texts?

  \setupheadertexts []

or

  \setuplayouttext
 [header][text]
 [middletext=]

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

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


[NTG-context] Why is header page number appearing when I define a header?

2024-03-16 Thread Joel via ntg-context

\starttext
            
\setupheadertexts[Name:~][Date:~__][Date:~__][Name:~]
            \setupfootertexts[][pagenumber][][pagenumber]


    \input knuth

\stoptext



I used this code to create header texts that prints Name / Date on the top and 
page numbers in the bottom corners. But somehow when I define this code, its 
also adding the page number not just to the bottom of the page, but to the top 
of the page as well. How do I remove the page number from the header texts?
--Joel
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-07 Thread Wolfgang Schuster

Pablo Rodriguez via ntg-context schrieb am 06.03.2024 um 20:17:

On 3/6/24 19:50, Wolfgang Schuster wrote:

[...]
Could you write the first line in plain language?


Look at the second example of the Lua code in the example below for each
command (the first example is your version), the third example is just a
condensed version of example 2.


Many thanks for your extended explanation, Wolfgang.


Here is another solution which uses \ifcase the select a different case 
dependent on the value of the remainder.


\def\beforequadruplenumber#1%
  {\ifcase\numexpr#1;4\relax
 \the\numexpr#1+3\relax % remainder = 0
   \or
 \the\numexpr#1+2\relax % remainder = 1
   \or
 \the\numexpr#1+1\relax % remainder = 2
   \or
 \the\numexpr#1+4\relax % remainder = 3
   \fi}

\def\afterquadruplenumber#1%
  {\ifcase\numexpr#1;4\relax
 \the\numexpr#1+1\relax % remainder = 0
   \or
 \the\numexpr#1+4\relax % remainder = 1
   \or
 \the\numexpr#1+3\relax % remainder = 2
   \or
 \the\numexpr#1+2\relax % remainder = 3
   \fi}



Now it is clearer to me (although I need some time to learn from it).


When you use \numexpr to perform arithmetic in TeX it is recommended to 
add a final \relax to stop the command from scanning to additional 
values, e.g. in the example below \testone takes value beyond the 
argument because \numexpr hasn't ended yet.


\starttext

\def\testone#1{\the\numexpr #1 + 1 }

\testone{1} + 1

\def\testtwo#1{\the\numexpr #1 + 1 \relax}

\testtwo{1} + 1

\stoptext

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

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


[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Wolfgang Schuster

Hans Hagen schrieb am 06.03.2024 um 21:38:

On 3/6/2024 7:50 PM, Wolfgang Schuster wrote:

The semicolon is a undocumented extension (I noticed it in the 
definition of \page[quadruple]) of \numexpr in Luametatex for the 
modulus operator.


One of these days I have to write the pending section in th elow level 
manual and also explain this:


\starttext
    \ifnum  10  = 11 wrong \else okay  \fi
    \ifnum  10 != 11 okay  \else wrong \fi
    \ifnum  10 !> 11 okay  \else wrong \fi
    \ifnum  10 !< 11 wrong \else okay  \fi
    \ifnum  10 ≤  11 okay  \else wrong \fi
    \ifnum  10 ≥  11 wrong \else okay  \fi
    \ifnum  10 ≰  11 okay  \else wrong \fi
    \ifnum  10 ≱  11 wrong \else okay  \fi
    \ifnum "F0 ∈ "F0 okay  \else wrong \fi
    \ifnum "F0 ∉ "F0 wrong \else okay  \fi
\stoptext


These new features are mentioned in the Luametatex manual but not the 
additions to \numexpr (I checked and : is mentioned but ; is missing).


\starttext

\startlines
\number\numexpr 5 + 2 \relax
\number\numexpr 5 - 2 \relax
\number\numexpr 5 * 2 \relax
\number\numexpr 5 / 2 \relax
\number\numexpr 5 : 2 \relax % new!
\number\numexpr 5 ; 2 \relax % new!
\stoplines

\stoptext

Wolfgang

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

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


[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Hans Hagen

On 3/6/2024 7:50 PM, Wolfgang Schuster wrote:

The semicolon is a undocumented extension (I noticed it in the 
definition of \page[quadruple]) of \numexpr in Luametatex for the 
modulus operator.


One of these days I have to write the pending section in th elow level 
manual and also explain this:


\starttext
\ifnum  10  = 11 wrong \else okay  \fi
\ifnum  10 != 11 okay  \else wrong \fi
\ifnum  10 !> 11 okay  \else wrong \fi
\ifnum  10 !< 11 wrong \else okay  \fi
\ifnum  10 ≤  11 okay  \else wrong \fi
\ifnum  10 ≥  11 wrong \else okay  \fi
\ifnum  10 ≰  11 okay  \else wrong \fi
\ifnum  10 ≱  11 wrong \else okay  \fi
\ifnum "F0 ∈ "F0 okay  \else wrong \fi
\ifnum "F0 ∉ "F0 wrong \else okay  \fi
\stoptext

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


[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Pablo Rodriguez via ntg-context
On 3/6/24 19:50, Wolfgang Schuster wrote:
>> [...]
>> Could you write the first line in plain language?
>
> Look at the second example of the Lua code in the example below for each
> command (the first example is your version), the third example is just a
> condensed version of example 2.

Many thanks for your extended explanation, Wolfgang.

Now it is clearer to me (although I need some time to learn from it).

Many thanks for your help,

Pablo

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

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


[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-06 Thread Wolfgang Schuster

Pablo Rodriguez via ntg-context schrieb am 04.03.2024 um 20:00:

On 2/28/24 19:28, Wolfgang Schuster wrote:

[...]
\def\beforequadruplenumber#1%
{\ifcase\numexpr#1+1;4\relax
   \number\numexpr#1+4\relax
 \else
   \number\numexpr#1+3-#1;4\relax
 \fi}


Sorry for not having answered before, Wolfgang.

I’m afraid I don’t get how \ifcase is deployed with as conditional
(being \ifcase used to give numbers for weekdays or months).


The \ifcase command is the TeX version of a switch statement from other 
programming languages.


The first case in \ifcase checks against zero which is shorter than 
writing "\ifnum ... = 0".



The semicolon is also mysterious to me, I don’t know what it does there
in plain language.


The semicolon is a undocumented extension (I noticed it in the 
definition of \page[quadruple]) of \numexpr in Luametatex for the 
modulus operator.



Sorry, I know it has to be simple, but the syntax is too cryptic for me.

Could you write the first line in plain language?


Look at the second example of the Lua code in the example below for each 
command (the first example is your version), the third example is just a 
condensed version of example 2.



Sorry for asking that. I’m afraid this would be the only way I could get
what \ifcase is doing there.


As was mentioned above I used it as a check when the remainder was 0.

 begin example
\startluacode

--~ interfaces.implement {
--~ name  = "beforequadruplenumber",
--~ arguments = "integer",
--~ actions   = function(n)
--~ if n % 4 == 0 then
--~ context(n + 3)
--~ elseif n % 4 == 1 then
--~ context(n + 2)
--~ elseif n % 4 == 2 then
--~ context(n + 1)
--~ elseif n % 4 == 3 then
--~ context(n + 4)
--~ end
--~ end
--~ }

--~ interfaces.implement {
--~ name  = "beforequadruplenumber",
--~ arguments = "integer",
--~ actions   = function(n)
--~ if (n + 1) % 4 == 0 then
--~ context(n + 4)
--~ else
--~ context(n + 3 - n % 4)
--~ end
--~ end
--~ }

interfaces.implement {
name  = "beforequadruplenumber",
arguments = "integer",
actions   = function(n)
context(n + (((n + 1) % 4 == 0) and 4 or (3 - n % 4)))
end
}

--~ interfaces.implement {
--~ name  = "afterquadruplenumber",
--~ arguments = "integer",
--~ actions   = function(n)
--~ if n % 4 == 0 then
--~ context(n + 1)
--~ elseif n % 4 == 1 then
--~ context(n + 4)
--~ elseif n % 4 == 2 then
--~ context(n + 3)
--~ elseif n % 4 == 3 then
--~ context(n + 2)
--~ end
--~ end
--~ }

--~ interfaces.implement {
--~ name  = "afterquadruplenumber",
--~ arguments = "integer",
--~ actions   = function(n)
--~ if n % 4 == 0 then
--~   context(n + 1)
--~ else
--~   context(n + 5 - n % 4)
--~ end
--~ end
--~ }

interfaces.implement {
name  = "afterquadruplenumber",
arguments = "integer",
actions   = function(n)
context(n + ((n % 4 == 0) and 1 or (5 - n % 4)))
end
}

\stopluacode

\unprotect
\def\beforequadruplenumber#1{\clf_beforequadruplenumber\numexpr#1\relax}
\def\afterquadruplenumber #1{\clf_afterquadruplenumber \numexpr#1\relax}
\protect

\starttext
\dorecurse{20}{\recurselevel\space = 
\beforequadruplenumber{\recurselevel}\par}\page
\dorecurse{20}{\recurselevel\space = \afterquadruplenumber 
{\recurselevel}\par}

\stoptext
 end example

Wolfgang

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

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


[NTG-context] Re: imposition: getting to the last page of a booklet

2024-03-05 Thread Pablo Rodriguez via ntg-context
On 2/28/24 19:28, Wolfgang Schuster wrote:
> [...]
> \def\beforequadruplenumber#1%
>{\ifcase\numexpr#1+1;4\relax
>   \number\numexpr#1+4\relax
> \else
>   \number\numexpr#1+3-#1;4\relax
> \fi}

Sorry for not having answered before, Wolfgang.

I’m afraid I don’t get how \ifcase is deployed with as conditional
(being \ifcase used to give numbers for weekdays or months).

The semicolon is also mysterious to me, I don’t know what it does there
in plain language.

Sorry, I know it has to be simple, but the syntax is too cryptic for me.

Could you write the first line in plain language?

Sorry for asking that. I’m afraid this would be the only way I could get
what \ifcase is doing there.

BTW, neither your command, nor mine work in my real world document. But
this would be another issue.

Many thanks for your help,

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

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


[NTG-context] Wiki page : Mixed languages sample (French, Ancient Greek, Arabic, Chinese)

2024-03-01 Thread Jean-Pierre Delange

Dear List,

Several years ago I tried to write documents, mainly lectures, but also 
essays, in which I tried to make several languages (Romance and 
non-Romance) coexist.
Here below is an example of an attempt to compose an acceptable 
document, in the form of an exercise in which Arabic and Chinese are 
introduced into a document written in French. With footnotes and a few 
framed lines.


I submit this example for your perusal and ask you whether it could 
possibly appear on a wiki page devoted to the combination of 
non-European languages in the same text. In English translation, of course.


%We are giving below an example of a text written in a Latin language, 
in which we want to print here and there some text in ancient Greek, 
Arabic and Chinese.


\setuplanguage[fr][patterns={fr,agr}]

\mainlanguage[fr]

\setuplayout [backspace=40mm]

\setuppagenumbering[alternative=doublesided, location={header, inmargin}]

\setupmargindata[inmargin][location=inner, 
style={\ssx\setupinterlinespace[line=2.8ex]}]


\setupmarginframed[inmargin][align=right]

\setupbodyfontenvironment[default][em=italic]

% Use Theano Didot as Ancient Greek font

\definefallbackfamily[mainface][serif][Theano Didot][preset=range:greek, 
it={Old Standard Italic}, force=yes]


% Choose between Ipaexmincho font and NotoSansTC (Traditional Chinese)

%\definefallbackfamily [mainface] [rm] [ipaexmincho] 
[range=cjkunifiedideographs]


\definefallbackfamily [mainface] [rm] [notosanstc] 
[range=cjkunifiedideographs]


% Choose between two Arabic fonts

%\definefallbackfamily[mainface] [serif] [nafeesnastaleeq] [range=arabic]

\definefallbackfamily[mainface] [serif] [hussaininastaleeq] [range=arabic]

\definefontfamily [mainface] [serif] [GaramondNo8][sc=NewG8 Regular SC]

\definefontfamily [mainface] [sans] [FreeSans] [rscale=0.7]

\definefontfamily[mainface] [serif] [GFS Didot]

\setupbodyfont[mainface]

\setupindenting[1.5em]

\setupindenting[yes]

\setupcolors[state=start]


\defineframedtext

[MyFrame]

[before={\blank},

after={\blank},

frame=off,

background=MyFrame,

%width=\textwidth,

width=max,

height=fit,

style=italic]


\definelabel

[Définition]

[headstyle=\bf\smallcaps]


\startuseMPgraphic{MyFrame}

path b;

picture p;

%p := textext.rt("\white\Définition");

p := textext.rt("\white\framedtextparameter{Title}");

%p := textext.rt("\white\getvariable{text}{text1}");

p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight);

b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth;

fill OverlayBox withcolor lightgray; %\MPcolor{

fill b withcolor darkred;

draw bottomboundary OverlayBox withpen pencircle scaled 1pt withcolor

darkred;

draw topboundary OverlayBox withpen pencircle scaled 1pt withcolor

darkred;

draw p;

setbounds currentpicture to boundingbox currentpicture enlarged 2mm;

\stopuseMPgraphic


\defineoverlay

[MyFrame]

[\useMPgraphic{MyFrame}]



\setupwhitespace[medium]

\setupinterlinespace[line=3.2ex]


\setupitemize[each][margin=yes]


\setuphead[title][header=empty]


\setupheader[style={\sc}]

\setupfooter[style={\itxx}]

\setupheadertexts[Utilisation de plusieurs langues dans un même texte 
avec \ConTeXt][][][{\getmarking[section]}]


\setupfootertexts[][][][© J.-P. Delange, 2016 — La reproduction de ce 
texte est soumise à autorisation.]


\defineparagraphs[TwoColumns][n=2, align={hz, hanging}]

\setupparagraphs[TwoColumns][1][width=210pt, style=rm, align=left]

\starttext

\title{\ConTeXt, ou comment imprimer des langues non-romanes}

\section {\sc Préambule}


Lorsqu'il s'agit de proposer un document dans une langue nationale (le 
français), tout va bien. Lorsqu'il s'agit de rédiger en français un 
document un peu complexe, avec des citations — ou des références — dans 
une autre langue, qui en particulier n'a pas les mêmes exigences que le 
français, ni les mêmes {\em signes diacritiques} on se heurte à quelques 
difficultés. Les suites logicielles comme Microsoft Office ou 
LibreOffice ne manquent pas de puissance, mais à vrai dire, dès que nous 
entrons dans les exigences de l'édition professionnelle, qui consistent 
à présenter un texte lisible et enrichi (en notes, etc.), la situation 
devient vite techniquement assez pénible. La situation la plus courante 
que nous rencontrons dans les Lettres, en Philosophie, en Histoire, et 
plus généralement dans les Humanités, est celle d'un texte dans lequel 
il y a des citations d'auteurs grecs ou latin, avec des références en 
notes de bas de page, qui contiennent du grec. Cela pourrait être 
quelque chose comme ceci :


\blank\startnarrower[1*left,1*right]\tfx\setupinterlinespace

\noindent \quotation{Ἔφη γάρ οἱ Σωκράτη ἐντυχεῖν λελουμένον τε καὶ τὰς 
βλαύτας ὑποδεδεμένον, ἃ ἐκεῖνος ὀλιγάκις ἐποίει· καὶ ἐρέσθαι αὐτὸν ὅποι 
ἴοι οὕτω καλὸς γεγενημένος. καὶ τὸν εἰπεῖν ὅτι· Ἐπὶ δεῖπνον εἰς 
Ἀγάθωνος. χθὲς γὰρ αὐτὸν διέφυγον τοῖς ἐπινικίοις, φοβηθεὶς τὸν ὄχλον· 
ὡμολόγησα δ᾽ εἰς τήμερον παρέσεσθα

[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Wolfgang Schuster

Pablo Rodriguez via ntg-context schrieb am 28.02.2024 um 19:02:

On 2/28/24 12:24, Pablo Rodriguez via ntg-context wrote:

[...]
This is why beforequadruple would make sense. I guess some Lua magic
could do that, computing x to the follwing page that "x % 4 = 3" (and
then \page[x]).

I will try to find a trick for that, but not now.


Replying to myself, this is a command to compute next numbers before and
after quadruples (with application to \realpageno):

  \starttext
   \def\beforequadruplenumber#1%
 {\ifnum\modulonumber{4}{#1} = 1
\the\numexpr #1 + 2
  \orelse\ifnum\modulonumber{4}{#1} = 2
\the\numexpr #1 + 1
  \orelse\ifnum\modulonumber{4}{#1} = 3
\the\numexpr #1 + 4
   \else
\the\numexpr #1 + 3
  \fi}


\def\beforequadruplenumber#1%
  {\ifcase\numexpr#1+1;4\relax
 \number\numexpr#1+4\relax
   \else
 \number\numexpr#1+3-#1;4\relax
   \fi}


   \def\afterquadruplenumber#1%
 {\ifnum\modulonumber{4}{#1} = 1
\the\numexpr #1 + 4
  \orelse\ifnum\modulonumber{4}{#1} = 2
\the\numexpr #1 + 3
  \orelse\ifnum\modulonumber{4}{#1} = 3
\the\numexpr #1 + 2
   \else
\the\numexpr #1 +1
  \fi}


\def\afterquadruplenumber#1%
  {\ifcase\numexpr#1;4\relax
 \number\numexpr#1+1\relax
   \else
 \number\numexpr#1+5-#1;4\relax
   \fi}

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

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


[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Pablo Rodriguez via ntg-context
On 2/28/24 12:24, Pablo Rodriguez via ntg-context wrote:
> [...]
> This is why beforequadruple would make sense. I guess some Lua magic
> could do that, computing x to the follwing page that "x % 4 = 3" (and
> then \page[x]).
>
> I will try to find a trick for that, but not now.

Replying to myself, this is a command to compute next numbers before and
after quadruples (with application to \realpageno):

 \starttext
  \def\beforequadruplenumber#1%
{\ifnum\modulonumber{4}{#1} = 1
   \the\numexpr #1 + 2
 \orelse\ifnum\modulonumber{4}{#1} = 2
   \the\numexpr #1 + 1
 \orelse\ifnum\modulonumber{4}{#1} = 3
   \the\numexpr #1 + 4
  \else
   \the\numexpr #1 + 3
 \fi}

  \def\afterquadruplenumber#1%
{\ifnum\modulonumber{4}{#1} = 1
   \the\numexpr #1 + 4
 \orelse\ifnum\modulonumber{4}{#1} = 2
   \the\numexpr #1 + 3
 \orelse\ifnum\modulonumber{4}{#1} = 3
   \the\numexpr #1 + 2
  \else
   \the\numexpr #1 +1
 \fi}

  \dorecurse{25}{\recurselevel: \beforequadruplenumber{\recurselevel}\\}
  \dorecurse{25}{\recurselevel: \afterquadruplenumber{\recurselevel}\\}

  %\page[123]
  %\null
  \page[\beforequadruplenumber{\realpageno}]
  before quadruple
  \page[\afterquadruplenumber{\realpageno}]
  afterquadruple
  \stoptext

Michael, if this fits your needs, please add it to the wiki.

I hope it helps,

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

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


[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Pablo Rodriguez via ntg-context
On 2/28/24 11:56, Bruce Horrocks wrote:
> [...]
> The sample works for me if you set plain A4 and doublesided, thus:
>
>  \setuppagenumbering[alternative={doublesided}]
>  \starttext
>  \samplefile{lorem}
>  \page[quadruple]
>  page before the quadruple (must be 3, not 4)
>  \page[yes, quadruple]
>  page before the quadruple (must be 7, not 8)
>  \stoptext
>
> This puts the "page before quadruple" text on page 4 which is the
> last side of the first four sides, if that makes sense.

Many thanks for your reply, Bruce.

\page[quadruple] works fine putting content on realpage numbers that can
be divided by 4 (with modulo 0).

As far as I get, Michael was looking to place content on realpage
numbers get modulo 3 when divided by 4.

At least, this is what would fit my needs to place the imprint on the
(excuse the Latin adjective [before the last]) penultima page of a booklet.

This is why beforequadruple would make sense. I guess some Lua magic
could do that, computing x to the follwing page that "x % 4 = 3" (and
then \page[x]).

I will try to find a trick for that, but not now.

Many thanks for your help,

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

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


[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-28 Thread Bruce Horrocks


> On 27 Feb 2024, at 10:13, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> I’m afraid I cannot make your sample work:


The sample works for me if you set plain A4 and doublesided, thus:

 \setuppagenumbering[alternative={doublesided}]
 \starttext
 \samplefile{lorem}
 \page[quadruple]
 page before the quadruple (must be 3, not 4)
 \page[yes, quadruple]
 page before the quadruple (must be 7, not 8)
 \stoptext

This puts the "page before quadruple" text on page 4 which is the last side of 
the first four sides, if that makes sense.

Switching to singlesided seems to confuse it - issuing only two sides in total 
so maybe that was part of the problem since both are specified in your original 
example?

—
Bruce Horrocks
Hampshire, UK

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

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


[NTG-context] Re: Hyperlinks cease working after page selection

2024-02-27 Thread Pablo Rodriguez via ntg-context
On 2/26/24 21:25, Michael Guravage wrote:
> Greetings,
>
> The document in question compiles correctly. Its hyperlinks are correct
> and work as expected. However, if I apply a page selection, the
> hyperlinks in the resulting document, while correctly coloured, no
> longer work.
> [...]
> Processed as follows:
>
> context  mwe.tex
> context --extra=select --selection=1 --result=foobar.pdf mwe.pdf

Hi Michael,

add --interaction as an argument.

Just in case it helps,

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

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


[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-27 Thread Pablo Rodriguez via ntg-context
On 2/24/24 14:30, Wolfgang Schuster wrote:
> Michael Guravage schrieb am 23.02.2024 um 10:07:
>> Greetings,
>>
>> I would like to use the nextquadruple and beforequadruple
>> pagebreakhandlers described at the bottom of the wiki's imposition
>> page. However, the examples complain of an error invoking the
>> \installpagebreakhandler command.
>>
>> The wiki page was last updated nearly four years ago. Is anyone using
>> updated versions of these?
>
> You can use quadruple out of the box.

Hi Wolfgang,

I’m also interested a solution for this.

I’m afraid I cannot make your sample work:

  \setuppapersize[A5][A4, landscape]
  \setuparranging[2UP]
  \setuppagenumbering[alternative={singlesided,doublesided}]

  \starttext
  \samplefile{lorem}
  \page[quadruple]
  page before the quadruple (must be 3, not 4)
  \page[yes, quadruple]
  page before the quadruple (must be 7, not 8)
  \stoptext

I haven’t tested what
"\setuppagenumbering[alternative={singlesided,doublesided}]" would cause
in my documents.

In any case, I get real quadruple, not before the quadruple.

What am I missing here?

Many thanks for your help,

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

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


[NTG-context] Hyperlinks cease working after page selection

2024-02-26 Thread Michael Guravage
Greetings,

The document in question compiles correctly. Its hyperlinks are correct and
work as expected. However, if I apply a page selection, the hyperlinks in
the resulting document, while correctly coloured, no longer work.

Any suggestions on how to correct or work around this would be greatly
appreciated.

\setupinteraction[state=start, color=darkblue]
\setupwhitespace [big]
\starttext
  Consult the \goto{\ConTeXt\ wiki}[url(https://wiki.contextgarden.net/)]
.\par
  \dorecurse{5}{\samplefile{lorem}\par}
\stoptext

Processed as follows:

context  mwe.tex
context --extra=select --selection=1 --result=foobar.pdf mwe.pdf


-- 
With kind regards,

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

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


[NTG-context] Re: imposition: getting to the last page of a booklet

2024-02-24 Thread Wolfgang Schuster

Michael Guravage schrieb am 23.02.2024 um 10:07:

Greetings,

I would like to use the nextquadruple and beforequadruple 
pagebreakhandlers described at the bottom of the wiki's imposition 
page. However, the examples complain of an error invoking the 
\installpagebreakhandler command.


The wiki page was last updated nearly four years ago. Is anyone using 
updated versions of these?


You can use quadruple out of the box.

\setuppagenumbering[alternative={singlesided,doublesided}]

\starttext

\samplefile{lorem}

\page[quadruple]

\samplefile{lorem}

\stoptext

Wolfgang

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

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


[NTG-context] imposition: getting to the last page of a booklet

2024-02-23 Thread Michael Guravage
Greetings,

I would like to use the nextquadruple and beforequadruple pagebreakhandlers
described at the bottom of the wiki's imposition page. However, the
examples complain of an error invoking the  \installpagebreakhandler
command.

The wiki page was last updated nearly four years ago. Is anyone using
updated versions of these?

-- 
With kind regards,

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

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


[NTG-context] Re: unwanted blank page

2023-12-03 Thread Pablo Rodriguez via ntg-context
On 11/22/23 09:57, madiazm.eo...@gmail.com wrote:
> Thanks a lot Pablo for your comments, I think my bad English did not
> let me be clear.
Sorry (also for my delay in answering), but it was totally my fault (I
totally missed your point)..

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

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


[NTG-context] Re: unwanted blank page

2023-11-22 Thread madiazm . eoicc
Thanks a lot Pablo for your comments, I think my bad Englisch did not let me be 
clear.

I just wanted to show my trick not to get the first page numbered, hiding the 
number with [location=] and then changing the number format to the wished 
option. I was not asking a question.
Of course, since this is all new for me, I possibly go around and aroung to get 
a little thing done. In the introductions to ConTeXt I never found the command 
startmakeup, so i had to figure out a way to do it. I will study it at weekend.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Re: unwanted blank page

2023-11-20 Thread Pablo Rodriguez via ntg-context
On 11/19/23 23:34, madiazm.eo...@gmail.com wrote:
> sorry if i dont get your problem right understood, but i'm completely
> new to context.

Hi Miguel,

I’m afraid it isn’t entirely clear whether you intend to ask something
or not.

> I use a hack not to get the number not printed in the title page
> (though I define sectionblocks for keeping different numbering systems
> for the table of contents and the document)

Section blocks are intended for that.

Just a comment, if your cover (or title) page involves a one and only
single page, you may use makeups, such as in:

  \starttext
  \startmakeup[standard][pagestate=start]
  \dorecurse{25}{\input knuth}
  \stopmakeup
  \stoptext

My sample explicitly displays that makeups are intended for a single page.

Since actual content for that makeup would fit in six pages without the
makeup, it looks weird inside it.

> I use \setuppagenumbering[location=] for not getting the number
> printed and then I reset the page numbering for the next sections. I
> copy my code so that you know what I do.
> Sorry if it doesnt help

If you are showing your code to list members, fine.

Sorry, but if there is a question here, I’m afraid you need to be more
explicit asking your question.

Just some comments:

> %%
> %%% LOS BLOQUES %
> %%%

In a minimal sample, comments as the previous one don’t provide any clue
to understand your code or the issue you might be dealing with.

It is wiser to keep the sample to its minimal form.

>   \startsectionblock[portada]
>   \setuppagenumbering[location=]
>   \input{03_portadaEval.tex}%this is my title page

It is better to provide actual content than a file name.

BTW, if its contents cannot be in more than a single page, the approach
suggested above might be easier.


> \startfrontmatter[]

Empty brackets are not required here.

> \start
>   \setuplayout[re
>   \setupinterlinespace[.8ex]

I would say that this is extremely small even for an "x" to fit in.

Again, just in case it might help,

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

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


[NTG-context] Re: unwanted blank page

2023-11-19 Thread madiazm . eoicc
sorry if i dont get your problem right understood, but i'm completely new to 
context.

I use a hack not to get the number not printed in the title page (though I 
define sectionblocks for keeping different numbering systems for the table of 
contents and the document)

I use \setuppagenumbering[location=] for not getting the number printed and 
then I reset the page numbering for the next sections. I copy my code so that 
you know what I do.
Sorry if it doesnt help

%%
%%% LOS BLOQUES %
%%%

\definesectionblock[portada][number=no]

\defineconversionset
[portada:pagenumber][][characters]
\defineconversionset
[frontpart:pagenumber][][romannumerals]
\defineconversionset
[bodypart:pagenumber][][numbers]
\defineconversionset
[appendixpart:pagenumber][][Characters]



%%%
%%% NUMERACIÓN DE PÁGINAS, SETUP %
%%%
\setuppagenumbering[alternative=doublesided,location={footer,inmargin}]

\setupuserpagenumber[way=byblock] 



\starttext
  
  \startsectionblock[portada]
  \setuppagenumbering[location=]
  \input{03_portadaEval.tex}%this is my title page
  
\stopsectionblock

\startfrontmatter[] 
\start
  \setuplayout[reset]
  \setupinterlinespace[.8ex]
  \completecontent
\stop
  \stopfrontmatter

  \startbodymatter[]
  
\input{50_Evaluacion.tex}%a piece of text
   
  \stopbodymatter

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

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


[NTG-context] Re: unwanted blank page

2023-11-19 Thread Wolfgang Schuster

Hans van der Meer via ntg-context schrieb am 19.11.2023 um 11:56:
I should have a first page without pagenumber and pagenumbers on the 
subsequent ones.
However the MWE here introduces an unwanted blank page from the call 
to \setuppagenumbering[state=start].

And the \setuppagenumbering has to come after the \page, of course.

Should I program otherwise?


There is nothing you can do here for the moment, the empty page is caused
by a new piece of code in page-lay.mkxl (see below) to go to the next 
odd page

when you use the \setuppagenumbering command.

page-lay.mkxl (line 1436):

\appendtoks
    \ifnum\realpageno>\plusone
    \page[\v!odd]%
    \setuplayout
    \fi
\to \everysetuppagenumbering

Wolfgang

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

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


[NTG-context] unwanted blank page

2023-11-19 Thread Hans van der Meer via ntg-context
I should have a first page without pagenumber and pagenumbers on the subsequent ones.However the MWE here introduces an unwanted blank page from the call to \setuppagenumbering[state=start].And the \setuppagenumbering has to come after the \page, of course.Should I program otherwise?
yours sincerelydr. Hans van der Meer




% test pagenumbering start-stop\setuppapersize[A5][A5]\starttext\setuppagenumbering[state=stop]\ConTeXt\space\contextversion\blankThis is page 1 without pagenumber.\crlf\page\setuppagenumbering[state=start]This should be a page with pagenumber 2.\crlfBut the pagenumber is 3 instead after blank page 2.\stoptext

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

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


[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-08 Thread Henning Hraban Ramm

Am 08.11.23 um 09:53 schrieb Marco Patzer:

On Sun, 5 Nov 2023 18:11:45 +
Bruce Horrocks  wrote:


When I go to the page layout page on the Contextgarden wiki

   <https://wiki.contextgarden.net/Page_Layout>

the "typesetting areas" diagram is missing its text labels.


Fixed.


Any suggestions as to what needs to be changed to get the diagram to
display correctly?


I saved it again and now it seems to work.


Thank you!
BTW, for my book I made a new one in MetaPost, see attachment.

\startMPpage
input layout.mp;
draw Layout;
\stopMPpage

Hraban
% Diagram of layout areas
% 2023 by Henning Hraban Ramm, hra...@fiee.net
% license: GNU FDL 1.3+ & CC-BY-SA 3.0+

definecolor [name="boxColor", c=.15, k=.1];
definecolor [name="boxTextColor", c=.4, k=.5];
definecolor [name="pageColor", m=.2, y=.5, k=.1];
definecolor [name="pageTextColor", m=.2, y=.5, k=.25];
definecolor [name="arrowColor", k=1];
definecolor [name="arrowTextColor", k=1];
definecolor [name="distanceArrowColor", k=1];
definecolor [name="distanceTextColor", k=1];
defaultfont  := "\truefontname{Mono}*default" ;
pickup pencircle scaled 1;

distance := 15bp;
abit := distance/3;

edgewidth := 40bp;
marginwidth := 60bp;
textwidth := 200bp;

topheight := 40bp;
headerheight := 50bp;
textheight := 300bp;

leftedgestart := 0bp;
leftmarginstart := edgewidth + distance;
textleftstart := leftmarginstart + marginwidth + distance;
rightmarginstart := textleftstart + textwidth + distance;
rightedgestart := rightmarginstart + marginwidth + distance;

arrowleftstart := textleftstart + textwidth/2;

bottomstart := 0bp;
footerstart := topheight + distance;
textfootstart := footerstart + headerheight + distance;
headerstart := textfootstart + textheight + distance;
topstart := headerstart + headerheight + distance;

pageleftstart := edgewidth/2;
pagefootstart := topheight/2;
pagewidth := rightedgestart;
pageheight := topstart;

picture Layout;
Layout := image(
  % bottom
  fill unitsquare xscaled edgewidth   yscaled topheight shifted 
(leftedgestart,bottomstart) withcolor "boxColor";
  fill unitsquare xscaled marginwidth yscaled topheight shifted 
(leftmarginstart,bottomstart) withcolor "boxColor";
  fill unitsquare xscaled textwidth   yscaled topheight shifted 
(textleftstart,bottomstart) withcolor "boxColor";
  fill unitsquare xscaled marginwidth yscaled topheight shifted 
(rightmarginstart,bottomstart) withcolor "boxColor";
  fill unitsquare xscaled edgewidth   yscaled topheight shifted 
(rightedgestart,bottomstart) withcolor "boxColor";
  label.urt("bottom", (bottomstart,-leftedgestart)) rotated 90 withcolor 
"boxTextColor";
  % footer
  fill unitsquare xscaled edgewidth   yscaled headerheight shifted 
(leftedgestart,footerstart) withcolor "boxColor";
  fill unitsquare xscaled marginwidth yscaled headerheight shifted 
(leftmarginstart,footerstart) withcolor "boxColor";
  fill unitsquare xscaled textwidth   yscaled headerheight shifted 
(textleftstart,footerstart) withcolor "boxColor";
  fill unitsquare xscaled marginwidth yscaled headerheight shifted 
(rightmarginstart,footerstart) withcolor "boxColor";
  fill unitsquare xscaled edgewidth   yscaled headerheight shifted 
(rightedgestart,footerstart) withcolor "boxColor";
  label.urt("footer", (footerstart,-leftedgestart)) rotated 90 withcolor 
"boxTextColor";
  % text
  fill unitsquare xscaled edgewidth   yscaled textheight shifted 
(leftedgestart,textfootstart) withcolor "boxColor";
  fill unitsquare xscaled marginwidth yscaled textheight shifted 
(leftmarginstart,textfootstart) withcolor "boxColor";
  fill unitsquare xscaled textwidth   yscaled textheight shifted 
(textleftstart,textfootstart) withcolor "boxColor";
  fill unitsquare xscaled marginwidth yscaled textheight shifted 
(rightmarginstart,textfootstart) withcolor "boxColor";
  fill unitsquare xscaled edgewidth   yscaled textheight shifted 
(rightedgestart,textfootstart) withcolor "boxColor";
  label.urt("text", (textfootstart,-leftedgestart)) rotated 90 withcolor 
"boxTextColor";
  % header
  fill unitsquare xscaled edgewidth   yscaled headerheight shifted 
(leftedgestart,headerstart) withcolor "boxColor";
  fill unitsquare xscaled marginwidth yscaled headerheight shifted 
(leftmarginstart,headerstart) withcolor "boxColor";
  fill unitsquare xscaled textwidth   yscaled headerheight shifted 
(textleftstart,headerstart) withcolor "boxColor";
  fill unitsquare xscaled marginwidth yscaled headerheight shifted 
(rightmarginstart,headerstart) withcolor "boxColor";
  fill unitsquare xscaled edgewidth   yscaled headerheight shifted 
(rightedgestart,headerstart) withcolor "boxColor";
  label.u

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-08 Thread Marco Patzer
On Sun, 5 Nov 2023 18:11:45 +
Bruce Horrocks  wrote:

> When I go to the page layout page on the Contextgarden wiki
> 
>   <https://wiki.contextgarden.net/Page_Layout>
> 
> the "typesetting areas" diagram is missing its text labels.

Fixed.

> Any suggestions as to what needs to be changed to get the diagram to
> display correctly?

I saved it again and now it seems to work.

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

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


[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-07 Thread Andres Conrado Montoya
A possible reason for this is that the use of xlink:href, the attribute
used to render the text glyphs created by symbol elements in
https://wiki.contextgarden.net/images/5/54/layout.svg, has been deprecated
since SVG 2.0, as you can see in
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href

Instead, as the article recommends, just href should be used instead, and
the xlink:href attribute can be preserved as a fallback for (very) old
browsers.


-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Taco Hoekwater


> On 6 Nov 2023, at 00:35, Bruce Horrocks  wrote:
> 
> 
> [1] Now there's an irony: the Wiki software creates different-sized previews 
> of a vector image so that it can show the image at different sizes on 
> different clients.

I bet it started doing this back 'in the day’ to support Internet Explorer 6.



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

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


[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Bruce Horrocks


> On 5 Nov 2023, at 20:24, peter.hopcroft--- via ntg-context 
>  wrote:
> 
> I see this problem on my iPad: Safari and Orion browsers. 
> 
> I do not see this problem on my mac: Safari and Orion browsers. 
> 

Thank-you both for checking.

Looking more closely it seems that the web page is actually showing a PNG 
preview of the SVG file

https://wiki.contextgarden.net/images/thumb/5/54/layout.svg/525px-layout.svg.png

(NB: there are alternate size variants so the px value may vary for you.[1])

But the issue is still the same - the text labels won't display when the .png 
is viewed via the main page but do display correctly when opened directly.

I'll keep delving.


[1] Now there's an irony: the Wiki software creates different-sized previews of 
a vector image so that it can show the image at different sizes on different 
clients.

—
Bruce Horrocks
Hampshire, UK

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

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


[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread peter.hopcroft--- via ntg-context
I see this problem on my iPad: Safari and Orion browsers. 

I do not see this problem on my mac: Safari and Orion browsers. 

Peter

> On 6/11/2023, at 8:19 AM, Henning Hraban Ramm  wrote:
> 
> Am 05.11.23 um 19:11 schrieb Bruce Horrocks:
>> When I go to the page layout page on the Contextgarden wiki
>>   <https://wiki.contextgarden.net/Page_Layout>
>> the "typesetting areas" diagram is missing its text labels. If I click on 
>> the diagram the Wiki takes me to the underlying layout.svg file and then I 
>> /do/ see the labels.
>> This happens in both Safari and Firefox.
>> Any suggestions as to what needs to be changed to get the diagram to display 
>> correctly?
> 
> Probably a problem on your side – works for me with Firefox and Chrome based 
> browsers. And I’ve no clue which setting would influence that.
> 
> Web developer tools as well as Inkscape show that there’s no real text in the 
> SVG, just paths.
> 
> Hraban
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

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

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


[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Henning Hraban Ramm

Am 05.11.23 um 19:11 schrieb Bruce Horrocks:

When I go to the page layout page on the Contextgarden wiki

   <https://wiki.contextgarden.net/Page_Layout>

the "typesetting areas" diagram is missing its text labels. If I click on the 
diagram the Wiki takes me to the underlying layout.svg file and then I /do/ see the 
labels.

This happens in both Safari and Firefox.

Any suggestions as to what needs to be changed to get the diagram to display 
correctly?


Probably a problem on your side – works for me with Firefox and Chrome 
based browsers. And I’ve no clue which setting would influence that.


Web developer tools as well as Inkscape show that there’s no real text 
in the SVG, just paths.


Hraban

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

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


[NTG-context] Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Bruce Horrocks
When I go to the page layout page on the Contextgarden wiki

  <https://wiki.contextgarden.net/Page_Layout>

the "typesetting areas" diagram is missing its text labels. If I click on the 
diagram the Wiki takes me to the underlying layout.svg file and then I /do/ see 
the labels.

This happens in both Safari and Firefox.

Any suggestions as to what needs to be changed to get the diagram to display 
correctly?

—
Bruce Horrocks
Hampshire, UK

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

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


[NTG-context] Footnotes on the bottom of the column's current page, instead of the columns' end

2023-10-25 Thread Juliano David Hilario
>
>
> Hello, I'm trying to achieve a look similar to a magazine our religious
organization frequently discusses, but unfortunately can't find the correct
settings to do so. Whenever I call a custom note on a column, instead of
the note showing on the bottom of the page, it shows at the end of the
column. (like an endnote, except, it shows as a small footnote at the
beginning)

How should I make it shown on the bottom of the page of the current
footnote instead of the end of the column command?

My MWE:

\definenote[question][textcommand=\gobbleoneargument, numbercommand=\gobbleoneargument]
\setupnotation[question][counter=]

\startdocument
\startcolumns[n=2, balanced]
\dorecurse{19}{
	\question{1. This is a question for discussion. I wished it was on the current page instead of the end}
	\input{knuth}

}
\stopcolumns
\stopdocument


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

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


[NTG-context] Finding the position of an image on the page.

2023-10-01 Thread peter.hopcroft--- via ntg-context


Hello list,

Can I find the position of an image on the page after I have placed the image 
with \externalfigure? 

For example, the top, left corner of the image might be 50 mm in from left side 
of page and 120 mm down from the top of the page.

I know I can use \getfiguredimensions to find information about the placed  
image, but it does  not give me the position of the image.

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

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


[NTG-context] Bug? Text following columns at end of page goes into footer not next page

2023-09-30 Thread Bruce Horrocks
Two column text that ends near the foot of a page can push the next line into 
the footer rather than starting a new page.

MWE for ConTeXt  ver: 2023.09.26 18:19 LMTX :-

\setuppapersize [A4]
\showframe

\starttext
Knuth in knolumns
\dorecurse{30}{\crlf}

\startcolumns
  \input knuth
\stopcolumns

This line goes into the footer rather than the next page.
\stoptext

—
Bruce Horrocks
Hampshire, UK

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

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

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

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


Hraban


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

\starttext
\startcolumnset[Two]

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

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

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

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

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


[NTG-context] Re: Chapters without new page

2023-09-15 Thread Bruce Horrocks


> On 15 Sep 2023, at 13:56, Taco Hoekwater  wrote:
> 
> Like this?
> 
>  \definehead[mychapter][chapter]
>  \setuphead[mychapter][page=no]

Taco beat me to it... a simple example:

\starttext

\chapter{First}
Some text

\chapter{Second}
More text

\chapter{Third}
More text

\setuphead[chapter][page=no]
\chapter{Fourth}
More text

\chapter{Fifth}
More text

\stoptext

—
Bruce Horrocks
Hampshire, UK

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

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

[NTG-context] Re: Chapters without new page

2023-09-15 Thread Taco Hoekwater


> On 15 Sep 2023, at 14:07, Rik Kabel  wrote:
> 
> 
> On 9/15/2023 4:10 AM, Taco Hoekwater wrote:
>> 
>> 
>>> On 15 Sep 2023, at 09:58,   
>>> wrote:
>>> 
>>> I thought there should be a setups key on \setupsectionblock, but 
>>> apparently there isn’t. So, the example below does not work, but maybe it 
>>> wouldn’t be too hard to add it…
>>> 
>> There is a ‘before' key, but note that the sectionblock itself is called 
>> “backpart”, not “backmatter”
>> 
>> Either use
>> 
>> \setupsectionblock[backpart][before={\setuphead[chapter][page=no]}]
>> 
>> Or, nicer:
>> 
>> \startsectionblockenvironment[backpart]
>> \setuphead[chapter][page=no]
>> \stopsectionblockenvironment
>> 
>> 
>>> Best,
>>> Denis
>>> \setuphead[chapter][page=yes]
>>> \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}]
>>> \starttext
>>> \chapter{One}
>>> \input knuth
>>> \chapter{Two}
>>> \input ward
>>> \startbackmatter
>>> \chapter{Three}
>>> \input knuth
>>> \chapter{Four}
>>> \input ward
>>> \stopbackmatter
>>> \stoptext
>>> Von: Jeroen  
>>> Gesendet: Donnerstag, 14. September 2023 23:50
>>> An: mailing list for ConTeXt users 
>>> Betreff: [NTG-context] Chapters without new page
>>> In the \startbackmatter ... \stopbackmatter section i would like to have 
>>> some chapters that are not automatically placed on a new page for the next 
>>> chapter. Is there an easy way to suppress the new page for these chapters?
>>> Thanks, Jeroen
>>> 
>> Best wishes,
>> Taco
>> 
>> 
> While this works, it changes behavior for **all** chapters. It does not 
> address the original question of how to have **some** chapters  "not 
> automatically placed on a new page."

Like this?

  \definehead[mychapter][chapter]
  \setuphead[mychapter][page=no]


Taco


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

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

[NTG-context] Re: Chapters without new page

2023-09-15 Thread Rik Kabel


On 9/15/2023 4:10 AM, Taco Hoekwater wrote:



On 15 Sep 2023, at 09:58,wrote:

I thought there should be a setups key on \setupsectionblock, but apparently 
there isn’t. So, the example below does not work, but maybe it wouldn’t be too 
hard to add it…

There is a ‘before' key, but note that the sectionblock itself is called 
“backpart”, not “backmatter”

Either use

\setupsectionblock[backpart][before={\setuphead[chapter][page=no]}]

Or, nicer:

\startsectionblockenvironment[backpart]
   \setuphead[chapter][page=no]
\stopsectionblockenvironment


  Best,
Denis
   \setuphead[chapter][page=yes]
  \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}]
  \starttext
  \chapter{One}
\input knuth
  \chapter{Two}
\input ward
   \startbackmatter
\chapter{Three}
\input knuth
  \chapter{Four}
\input ward
\stopbackmatter
\stoptext
   Von: Jeroen  
Gesendet: Donnerstag, 14. September 2023 23:50

An: mailing list for ConTeXt users
Betreff: [NTG-context] Chapters without new page
  In the \startbackmatter ... \stopbackmatter section i would like to have some 
chapters that are not automatically placed on a new page for the next chapter. 
Is there an easy way to suppress the new page for these chapters?
Thanks, Jeroen

Best wishes,
Taco

While this works, it changes behavior for **all** chapters. It does not 
address the original question of how to have **some** chapters  "not 
automatically placed on a new page."


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

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

[NTG-context] Re: Chapters without new page

2023-09-15 Thread Taco Hoekwater


> On 15 Sep 2023, at 09:58,   wrote:
> 
> I thought there should be a setups key on \setupsectionblock, but apparently 
> there isn’t. So, the example below does not work, but maybe it wouldn’t be 
> too hard to add it…

There is a ‘before' key, but note that the sectionblock itself is called 
“backpart”, not “backmatter”

Either use

\setupsectionblock[backpart][before={\setuphead[chapter][page=no]}]

Or, nicer:

\startsectionblockenvironment[backpart]
  \setuphead[chapter][page=no]
\stopsectionblockenvironment

>  Best,
> Denis
>   \setuphead[chapter][page=yes]
>  \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}]
>  \starttext
>  \chapter{One}
> \input knuth
>  \chapter{Two}
> \input ward
>   \startbackmatter
> \chapter{Three}
> \input knuth
>  \chapter{Four}
> \input ward
> \stopbackmatter
> \stoptext
>   Von: Jeroen  
> Gesendet: Donnerstag, 14. September 2023 23:50
> An: mailing list for ConTeXt users 
> Betreff: [NTG-context] Chapters without new page
>  In the \startbackmatter ... \stopbackmatter section i would like to have 
> some chapters that are not automatically placed on a new page for the next 
> chapter. Is there an easy way to suppress the new page for these chapters?
> Thanks, Jeroen

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Chapters without new page

2023-09-15 Thread denis.maier
I thought there should be a setups key on \setupsectionblock, but apparently 
there isn’t. So, the example below does not work, but maybe it wouldn’t be too 
hard to add it…

Best,
Denis


\setuphead[chapter][page=yes]

\setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}]

\starttext

\chapter{One}
\input knuth

\chapter{Two}
\input ward


\startbackmatter
\chapter{Three}
\input knuth

\chapter{Four}
\input ward
\stopbackmatter
\stoptext


Von: Jeroen 
Gesendet: Donnerstag, 14. September 2023 23:50
An: mailing list for ConTeXt users 
Betreff: [NTG-context] Chapters without new page

In the \startbackmatter ... \stopbackmatter section i would like to have some 
chapters that are not automatically placed on a new page for the next chapter. 
Is there an easy way to suppress the new page for these chapters?
Thanks, Jeroen
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Re: Chapters without new page

2023-09-14 Thread Rik Kabel


On 9/14/2023 10:10 PM, Rik Kabel wrote:



On 9/14/2023 5:49 PM, Jeroen wrote:
In the \startbackmatter ... \stopbackmatter section i would like to 
have some chapters that are not automatically placed on a new page 
for the next chapter. Is there an easy way to suppress the new page 
for these chapters?

Thanks, Jeroen


Untried:

 1. Define a new section head that clones chapter
(\definehead[NPChapter][chapter]).
 2. Modify the new section head so that it does not do a break
(\setuphead[NPChapter][page=no]).
 3. Use the new section head instead of \chapter or \startchapter.

And, if you want them to appear in the table of contents, modify the 
combined list of section headers that go into the contents 
(\setupcombinedlist[content][list=chapter,NPChapter,...]). Perhaps add 
it to the pdf bookmarks as well (\placebookmarks...).


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

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

[NTG-context] Re: Chapters without new page

2023-09-14 Thread Rik Kabel


On 9/14/2023 5:49 PM, Jeroen wrote:
In the \startbackmatter ... \stopbackmatter section i would like to 
have some chapters that are not automatically placed on a new page for 
the next chapter. Is there an easy way to suppress the new page for 
these chapters?

Thanks, Jeroen


Untried:

1. Define a new section head that clones chapter
   (\definehead[NPChapter][chapter]).
2. Modify the new section head so that it does not do a break
   (\setuphead[NPChapter][page=no]).
3. Use the new section head instead of \chapter or \startchapter.

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

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

[NTG-context] Chapters without new page

2023-09-14 Thread Jeroen
In the \startbackmatter ... \stopbackmatter section i would like to have
some chapters that are not automatically placed on a new page for the
next chapter. Is there an easy way to suppress the new page for these
chapters?
Thanks, Jeroen
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Re: TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread jbf
That's kind of you Max, and I will definitely take a look at that, both 
for the current book I am working on, but also for the variations it can 
offer for other titles.


In the meantime, Wolfgang gently reminded me that I had overlooked one 
various obvious (and simple) approach using alternative=d, which I 
confess I had entirely overlooked!


Julian

On 5/9/23 08:43, Max Chernoff wrote:

Hi Julian,


I am attempting to get a TOC that looks like the following (in other
words with section titles and their relative page numbers in a block
below the chapter):
Has
anyone put together a TOC of this kind and might be able to give me a
hint to follow?

This is fairly close to what you're looking for I think (the manual, not
the package itself):


http://mirrors.ctan.org/macros/luatex/generic/lua-widow-control/lua-widow-control.pdf

The source is a little messy, but I've used it in a bunch of other
documents and it seems fairly robust:


https://github.com/gucci-on-fleek/lua-widow-control/blob/7c4544/docs/manual/lwc-manual.mkxl#L167-L234

There aren't any page numbers for the subsections in that, but you
should be able to add those inside the definition of
\SubsectionTOCcommand with either #3 or \currentlistentrypagenumber.

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

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

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

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


[NTG-context] Re: TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread Max Chernoff


Hi Julian,

> I am attempting to get a TOC that looks like the following (in other 
> words with section titles and their relative page numbers in a block 
> below the chapter):

> Has 
> anyone put together a TOC of this kind and might be able to give me a 
> hint to follow?

This is fairly close to what you're looking for I think (the manual, not
the package itself):

   
http://mirrors.ctan.org/macros/luatex/generic/lua-widow-control/lua-widow-control.pdf

The source is a little messy, but I've used it in a bunch of other
documents and it seems fairly robust:

   
https://github.com/gucci-on-fleek/lua-widow-control/blob/7c4544/docs/manual/lwc-manual.mkxl#L167-L234

There aren't any page numbers for the subsections in that, but you
should be able to add those inside the definition of
\SubsectionTOCcommand with either #3 or \currentlistentrypagenumber.

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

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


[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Jeroen
Pablo,

Thanks, even though I use LMTX, only this form works:

[\pagenumber{} of \the\numexpr\totalnumberofpages - 1\relax]

Thanks
Jeroen

Op ma 4 sep 2023 om 18:43 schreef Pablo Rodriguez :

> On 9/4/23 18:09, Jeroen wrote:
> > The following MWE shows pagenumbering starting at the second page with
> > page number 1. With the totalnumberofpages we end up with one page too
> > many. Is there a way to reduce this with 1?
>
> Hi Jeroen,
>
> this might do the work (LMTX only):
>
>   [\pagenumber{} of \the\numexpr{\totalnumberofpages - 1}]
>
> For MkIV, you would need:
>
>   [\pagenumber{} of \the\numexpr\totalnumberofpages - 1\relax]
>
> Just in case it helps,
>
> Pablo
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Hans Hagen via ntg-context

On 9/4/2023 6:09 PM, Jeroen wrote:

The following MWE shows pagenumbering starting at the second page with page
number 1. With the totalnumberofpages we end up with one page too many. Is
there a way to reduce this with 1?



\setupfootertexts
   [title]
   [\pagenumber{} of \totalnumberofpages]

\setcounter
   [userpage]
   [0]

\setuppagenumbering
   [location=]

\startdocument

\setupfooter[state=stop]
\startfrontmatter
frontpage
\stopfrontmatter
\setupfooter[state=start]

\startbodymatter
\dorecurse{10}{\samplefile{lorem}}
\stopbodymatter

\stopdocument

\setupfootertexts
  [title]
  [\pagenumber\space of \lastpagenumber]


-
  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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: Adjust pagenumbering while skipping first page

2023-09-04 Thread Pablo Rodriguez
On 9/4/23 18:09, Jeroen wrote:
> The following MWE shows pagenumbering starting at the second page with
> page number 1. With the totalnumberofpages we end up with one page too
> many. Is there a way to reduce this with 1?

Hi Jeroen,

this might do the work (LMTX only):

  [\pagenumber{} of \the\numexpr{\totalnumberofpages - 1}]

For MkIV, you would need:

  [\pagenumber{} of \the\numexpr\totalnumberofpages - 1\relax]

Just in case it helps,

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

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

[NTG-context] Adjust pagenumbering while skipping first page

2023-09-04 Thread Jeroen
The following MWE shows pagenumbering starting at the second page with page
number 1. With the totalnumberofpages we end up with one page too many. Is
there a way to reduce this with 1?



\setupfootertexts
  [title]
  [\pagenumber{} of \totalnumberofpages]

\setcounter
  [userpage]
  [0]

\setuppagenumbering
  [location=]

\startdocument

\setupfooter[state=stop]
\startfrontmatter
frontpage
\stopfrontmatter
\setupfooter[state=start]

\startbodymatter
\dorecurse{10}{\samplefile{lorem}}
\stopbodymatter

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

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

[NTG-context] Re: Different Layout for First Page

2023-09-04 Thread Wolfgang Schuster

Jeroen schrieb am 04.09.2023 um 14:10:
I have a document with the first page in startfrontmatter and all 
other pages in  startbodymatter. The layout setting is as following


[...]

What would be the easiest way to change the layout only for the first 
page since it has no footer. For the first page, I would like to have 
the text run all the way to the bottom with \vfill where normally the 
footer would be.


You need the two settings

\setupheader[state=high]
\setupfooter[state=high]

to get rid of the header and footer on the page where the commands take 
effect.


The nice thing is that both values are reset on the following page and 
with \startsectionblockenvironment

you can make this layout change in the style file of your document.

\startsectionblockenvironment[frontpart]
\setupheader[state=high]
\setupfooter[state=high]
\stopsectionblockenvironment

\showframe

\starttext

\startfrontmatter
\samplefile{lorem}
\stopfrontmatter

\startbodymatter
\dorecurse{10}{\samplefile{lorem}}
\stopbodymatter

\stoptext

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

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

[NTG-context] Different Layout for First Page

2023-09-04 Thread Jeroen
I have a document with the first page in startfrontmatter and all other
pages in  startbodymatter. The layout setting is as following

\setuplayout
  [backspace=20mm,
   width=175mm,
   topspace=15mm,
   header=0mm,
   footer=2mm,
   height=275mm,
   bottomheight=1mm,
   footerdistance=10mm]

\setupfootertexts
  [title]
  [\pagenumber{} of \totalnumberofpages]

\setupfooter[state=stop]
\startfrontmatter
\input{frontpage.tex}
\stopfrontmatter
\setupfooter[state=start]

\startbodymatter
\input{introduction.tex}
\stopbodymatter

What would be the easiest way to change the layout only for the first page
since it has no footer. For the first page, I would like to have the text
run all the way to the bottom with \vfill where normally the footer would
be.

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

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

[NTG-context] Re: Reinserting a section title followed by (continued) after a page break

2023-09-04 Thread Hans Hagen via ntg-context

On 9/4/2023 5:55 AM, Calvin Ross wrote:

On the off chance anyone seeing this is interested, I have a solution uploaded 
as part of a module I wrote for screenplay and stageplay writing: 
https://github.com/cjayross/drama.mkiv/blob/4a9b2576c8630fd03352d95f99456092f6e21190/drama.mkiv#L480


A few remarks:

- you can best name modules like t-drama and then t-drame-screenplay and 
so in order to avoid clashes with files in the tex tree


- you really have to be careful with defining additional intercace 
constants; as you don't define them for other interface languages there 
is no real reason for them


- be aware that when you add key sto existign commands, future clashes 
can occur


- best define new commands CamelCase so that ther ei sno clash with 
existing or future commands


- as you basically define in mkii style, you can use \setevalue {xxx} 
{\getvalue{yyy}} which is a bit more readable


If you load the module in lmtx you get an error on \checkparameters 
which is not available in lmtx (here \ifparameters is a primitive) 
because \doifelseassignment is the real tester (checkparameters is more 
an mkii thing).


However, when you \enabledirectives[overloadmode=error] loading will be 
aborted earlier on because you overload existing macros.


It sounds worse than it is because if you use mkiv/lmtx there are easier 
ways to define an enviroment, think:


\unprotect

\installnamespace  {Slug}
\installcommandhandler \Slug {Slug} \Slug

\protect

\setupSlug[this=that]

\Slugparameter{this}

etc

Which would reduce the amount of code.

Anyway, I advise users of LMTX to testtheir local definitions with

\enabledirectives[overloadmode=error]

or at least

\enabledirectives[overloadmode=warning]


The solution ended up being very detailed and tightly coupled to this 
particular problem. However, the general approach was to use box registers to 
capture the portions of dialog marked using a command sequence (`\continue` in 
this case) that designates acceptable locations to insert a page break in the 
dialog. The markup is then placed into the document in pieces with each 
placement testing the `\pagetotal` against the `\pagegoal` to measure whether 
the current piece will fit on the current page.

This solution had to up using `\synchronizeoutput` as opposed to 
`\triggerpagebuilder`. I'm not sure why there's a difference in behavior 
between the two, but the former seems to fix bugs where the `\pagetotal`s would 
output the measure of the previous page rather than the current one -- leading 
to sporadic page breaks.


This is indeed a problem. Forcing the page builder is not always the 
solution, but neither is synchronize output. The first one triggers a 
check for pending contributions while the second forces it using a 
penalty which can have side effects.


One problem is that pagegoal and pagetotal are not always reliable. 
There is a wrap up about this which isnot yet in the disibution because 
it is part of a larger experiment. In luametatex we have a few more ways 
to influence the page builder and also get more reliable info about the 
state so far. It is something Mikael and I are experimenting with (using 
large complex mixed text/math documents) in the perspective of par and 
page building. We will come back to this later this year but some 
already trickled into context lmtx.


So, keep an eye on what shows up,

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Re: TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread Wolfgang Schuster

jbf schrieb am 04.09.2023 um 08:34:


I am attempting to get a TOC that looks like the following (in other 
words with section titles and their relative page numbers in a block 
below the chapter):


Chapter 1 ...5

Section 1   5, Section 2  6, Section 3  7,

Section 4   8, Section 5   9 etc

Chapter 2 10

Section 1   10, Section 2  11, Section 3  12,

Section 4   13, Section 5   14 etc

As I really had no idea how to do this, I found 
https://wiki.contextgarden.net/Horizontal_Table_of_Contents thinking 
it might help, but none of it compiles (for me) in LMTX. So I tried 
something different, e.g.


[...]

While that produces a result, it is nothing like what I want above. 
Has anyone put together a TOC of this kind and might be able to give 
me a hint to follow?




Please send *working* (which include some dummy content) examples.

The example below results in section entries which are listed as a 
paragraph, what output do you expect here.


\setuplist[chapter][alternative=c]
\setuplist[section][alternative=d]

\starttext

\completecontent

\dorecurse{2}
  {\chapter{Chapter #1}
   \dorecurse{10}{\section{Section ##1}}}

\stoptext

Wolfgang

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

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

[NTG-context] TOC with sections titles and page numbers like a paragraph beneath chapter

2023-09-04 Thread jbf
I am attempting to get a TOC that looks like the following (in other 
words with section titles and their relative page numbers in a block 
below the chapter):


Chapter 1 ...5

Section 1   5, Section 2  6, Section 3  7,

Section 4   8, Section 5   9 etc

Chapter 2 10

Section 1   10, Section 2  11, Section 3  12,

Section 4   13, Section 5   14 etc

As I really had no idea how to do this, I found 
https://wiki.contextgarden.net/Horizontal_Table_of_Contents thinking it 
might help, but none of it compiles (for me) in LMTX. So I tried 
something different, e.g.


\definelist[chapter]

\setuplist[chapter][label=yes,distance=1.5cm,alternative=c,style=normal,before=\blank] 



\definelist[section]

\setuplist[section] [textcommand=\setups{SecToc}]

\setupcombinedlist

[content]o

[list={chapter,section}]


\startsetups [SecToc]

\startframedtext [width=\textwidth, align=middle, frame=off]

\placelist [section]

[

criterium=chapter,

]

\stopframedtext

\stopsetups

While that produces a result, it is nothing like what I want above. Has 
anyone put together a TOC of this kind and might be able to give me a 
hint to follow?


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

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

[NTG-context] Re: Reinserting a section title followed by (continued) after a page break

2023-09-03 Thread Calvin Ross
On the off chance anyone seeing this is interested, I have a solution uploaded 
as part of a module I wrote for screenplay and stageplay writing: 
https://github.com/cjayross/drama.mkiv/blob/4a9b2576c8630fd03352d95f99456092f6e21190/drama.mkiv#L480

The solution ended up being very detailed and tightly coupled to this 
particular problem. However, the general approach was to use box registers to 
capture the portions of dialog marked using a command sequence (`\continue` in 
this case) that designates acceptable locations to insert a page break in the 
dialog. The markup is then placed into the document in pieces with each 
placement testing the `\pagetotal` against the `\pagegoal` to measure whether 
the current piece will fit on the current page.

This solution had to up using `\synchronizeoutput` as opposed to 
`\triggerpagebuilder`. I'm not sure why there's a difference in behavior 
between the two, but the former seems to fix bugs where the `\pagetotal`s would 
output the measure of the previous page rather than the current one -- leading 
to sporadic page breaks.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Re: An strange error with section and page

2023-08-27 Thread Xavier B.
Thanks. It works.

On Sun, 27 Aug 2023 21:24:54 +0200
Wolfgang Schuster  ha escrit:

> Am So., 27. Aug. 2023 um 19:54 Uhr schrieb Xavier B.  >:
> 
> > What is the state of this problem?
> > Is it some deadline here?
> >
> > I need to have a "production" document in mid september to show to my
> > students.
> > Can you please make a "push" in this topic.
> >
> 
> 
> Just update your installation, the problem is already fixed.
> 
> Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Re: An strange error with section and page

2023-08-27 Thread Wolfgang Schuster
Am So., 27. Aug. 2023 um 19:54 Uhr schrieb Xavier B. :

> What is the state of this problem?
> Is it some deadline here?
>
> I need to have a "production" document in mid september to show to my
> students.
> Can you please make a "push" in this topic.
>


Just update your installation, the problem is already fixed.

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

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

[NTG-context] Re: An strange error with section and page

2023-08-27 Thread Xavier B.
What is the state of this problem?
Is it some deadline here?

I need to have a "production" document in mid september to show to my students.
Can you please make a "push" in this topic.

Thanks in advance,
Xavier

On Wed, 23 Aug 2023 22:04:36 +0200
Wolfgang Schuster  ha escrit:

> Xavier B. schrieb am 23.08.2023 um 15:02:
> > Wolfgang,
> >
> > I detect something extrange: when I use \startexercici \stopexercici (see 
> > [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-entorn-minimal.conTeXt])
> >  in some cases there is an *undesired* indent (see attachment image). I saw 
> > the source 
> > [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-aritmetica-problemes-nombres-fraccions.conTeXt]
> >  which is the first time it happens.
> >
> > I don't see anything weird.
> >
> > Can you please help me?
> 
> I found the problem but I have to discuss it with Hans.
> 
> Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Re: An strange error with section and page

2023-08-24 Thread Xavier B.
Oh Awesome.

I'm looking forward to the solution.

Thanks a lot,
Xavier


On Wed, 23 Aug 2023 22:04:36 +0200
Wolfgang Schuster  ha escrit:

> Xavier B. schrieb am 23.08.2023 um 15:02:
> > Wolfgang,
> >
> > I detect something extrange: when I use \startexercici \stopexercici (see 
> > [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-entorn-minimal.conTeXt])
> >  in some cases there is an *undesired* indent (see attachment image). I saw 
> > the source 
> > [https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-aritmetica-problemes-nombres-fraccions.conTeXt]
> >  which is the first time it happens.
> >
> > I don't see anything weird.
> >
> > Can you please help me?
> 
> I found the problem but I have to discuss it with Hans.
> 
> Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Re: An strange error with section and page

2023-08-23 Thread Wolfgang Schuster

Xavier B. schrieb am 23.08.2023 um 15:02:

Wolfgang,

I detect something extrange: when I use \startexercici \stopexercici (see 
[https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-entorn-minimal.conTeXt])
 in some cases there is an *undesired* indent (see attachment image). I saw the 
source 
[https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-aritmetica-problemes-nombres-fraccions.conTeXt]
 which is the first time it happens.

I don't see anything weird.

Can you please help me?


I found the problem but I have to discuss it with Hans.

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

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


[NTG-context] Re: An strange error with section and page

2023-08-23 Thread Xavier B.
On Tue, 22 Aug 2023 20:06:52 +0200
Wolfgang Schuster  ha escrit:

> While the solution here is to convert all subject headings to subsubject 
> (be sure to also take care
> of even lower section) a quick way to fix the page break is to disable 
> the page-value for subject,
> look at the commented line in the example how this can be done.
> 
>  begin example
> \setuphead[section][page=yes]
> %\setuphead[subject][page=no]
> 

Thank you VERY much.
You solved my problem

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

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


[NTG-context] Re: An strange error with section and page

2023-08-22 Thread Wolfgang Schuster

Xavier B. schrieb am 22.08.2023 um 19:32:

Hi,

I have a long document 
[https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-exercicis.conTeXt.pdf]
 which I migrated from MKIV to LMTX version of ConTeXt. As Wolfgang recommened. 
I migrated old syntax to new one and replace \page[yes] before each section to

\setupheads[section][style={\bf \ssc}, alternative=margin, page=yes]

but now after each section there is a new page.

Why? I don't know.
Can someone help me to see what happens?

The source code is here [https://repo.or.cz/apunts-espa-matematiques.git]


You're using the structure for section of the following example in your 
document. This is a problem
because subjects are the same level as section or to be precise, 
subjects are unnumbered versions

of sections and inherit all settings from them unless configured otherwise.

While the solution here is to convert all subject headings to subsubject 
(be sure to also take care
of even lower section) a quick way to fix the page break is to disable 
the page-value for subject,

look at the commented line in the example how this can be done.

 begin example
\setuphead[section][page=yes]
%\setuphead[subject][page=no]

\starttext

\startsection[title=Section]

\startsubject [title=Subject]

\stopsubject

\stopsection

\stoptext
 end example

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

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


[NTG-context] An strange error with section and page

2023-08-22 Thread Xavier B.
Hi,

I have a long document 
[https://repo.or.cz/apunts-espa-matematiques.git/blob/HEAD:/ng-exercicis.conTeXt.pdf]
 which I migrated from MKIV to LMTX version of ConTeXt. As Wolfgang recommened. 
I migrated old syntax to new one and replace \page[yes] before each section to 

\setupheads[section][style={\bf \ssc}, alternative=margin, page=yes]

but now after each section there is a new page.

Why? I don't know.
Can someone help me to see what happens?

The source code is here [https://repo.or.cz/apunts-espa-matematiques.git]

Thanks in advance,
Xavier

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

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


[NTG-context] Re: Not getting a page break in the ToC

2023-08-22 Thread Hans Hagen via ntg-context

On 8/22/2023 8:51 AM, Andres Conrado Montoya wrote:

Apologies, I just found the solution:
https://wiki.contextgarden.net/Command/setinjector

El lun, 21 ago 2023 a las 23:43, Andres Conrado Montoya (<
andresconr...@gmail.com>) escribió:


I'm trying to force a page break in a table of contents, using what is
recommended at
https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break

However, it does not work. Here's a MWE:

\definelistextra[page][before=\page]
\starttext
\starttitle[title={Table of contents}]
\placecontent[extras={2=page}]
\stoptitle
\startchapter[title={First chapter}]
\input knuth
\stopchapter
\startchapter[title={Second chapter}]
\input knuth
\stopchapter
\startchapter[title={Third chapter}]
\input knuth
\stopchapter
\stoptext

Is there a new way of obtaining a page break before a given part, chapter
or section in the ToC?

Here is another method:

\showpageprogress % [all]
%resetforcedbreak

\starttext
\registerforcedbreak[8][before]
\dorecurse{10}{\samplefile{tufte}\par}
    \page
\resetforcedbreak
\registerforcedbreak[12][after]
\dorecurse{10}{\samplefile{tufte}\par}
\stoptext

(by-product of some new mechanisms that we are exploring)

(not yet wikified)

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Not getting a page break in the ToC

2023-08-22 Thread Andres Conrado Montoya
Apologies, I just found the solution:
https://wiki.contextgarden.net/Command/setinjector

El lun, 21 ago 2023 a las 23:43, Andres Conrado Montoya (<
andresconr...@gmail.com>) escribió:

> I'm trying to force a page break in a table of contents, using what is
> recommended at
> https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break
>
> However, it does not work. Here's a MWE:
>
> \definelistextra[page][before=\page]
> \starttext
> \starttitle[title={Table of contents}]
> \placecontent[extras={2=page}]
> \stoptitle
> \startchapter[title={First chapter}]
> \input knuth
> \stopchapter
> \startchapter[title={Second chapter}]
> \input knuth
> \stopchapter
> \startchapter[title={Third chapter}]
> \input knuth
> \stopchapter
> \stoptext
>
> Is there a new way of obtaining a page break before a given part, chapter
> or section in the ToC?
>
> Thank you in advance.
>
> --
> Andrés Conrado Montoya
> Andi Kú
> andresconr...@gmail.com
> http://sesentaycuatro.com
> http://messier87.com
> http://chiquitico.org
> 
> Los fines no justifican los medios, porque la medida verdadera de nuestro
> carácter está dada por los medios que estamos dispuestos a utilizar, no por
> los fines que proclamamos.
> 
>
> “You develop an instant global consciousness, a people orientation, an
> intense dissatisfaction with the state of the world, and a compulsion to do
> something about it. From out there on the moon, international politics look
> so petty. You want to grab a politician by the scruff of the neck and drag
> him a quarter of a million miles out and say, ‘Look at that, you son of a
> bitch.’” — Apollo 14 astronaut Edgar Mitchell
>


-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Not getting a page break in the ToC

2023-08-21 Thread Andres Conrado Montoya
I'm trying to force a page break in a table of contents, using what is
recommended at
https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break

However, it does not work. Here's a MWE:

\definelistextra[page][before=\page]
\starttext
\starttitle[title={Table of contents}]
\placecontent[extras={2=page}]
\stoptitle
\startchapter[title={First chapter}]
\input knuth
\stopchapter
\startchapter[title={Second chapter}]
\input knuth
\stopchapter
\startchapter[title={Third chapter}]
\input knuth
\stopchapter
\stoptext

Is there a new way of obtaining a page break before a given part, chapter
or section in the ToC?

Thank you in advance.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Reinserting a section title followed by (continued) after a page break

2023-07-30 Thread Calvin Ross
I'm trying to use ConTeXt for playwriting, and I think it would be best to use
sections for dialog. However, if a dialog's text is interrupted by a page
break, it is customary to restate the character name followed by (continued) on
the following page:

--- open ---

John
My name is John, and I seek help with my

--- page break ---

John (cont'd)
typesetting needs...

--- end ---

Maybe what I need is instead a mark? Here's a catch though, I will also need
this to work for simultaneous dialog as well. This kind of dialog is
represented by having dialog sections in columns:

--- open ---

Alice  Bob
John, you fool.John, you imbecile.

--- page break ---

Alice (cont'd)
Don't you know that
everyone uses Word
to typeset their plays?

--- end ---

How can I do this kind of thing in ConTeXt? At the moment, I've been looking
into adding a hook to shipout to prepend a section header with the last custom
mark I've set. Even still, I don't know if this would work, or how to go about
achieving this. If columns would be too difficult to implement, I'd be fine
with living without (continued) support in them since they are pretty rare.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Re: MPcode inserts page

2023-07-06 Thread Henning Hraban Ramm

Am 06.07.23 um 12:02 schrieb Alan Braslau:

On 06/07/23 06/07/23, 11:23, Henning Hraban Ramm wrote:
Hi, if I use \startMPcode to declare variables etc. that I need in 
several MP graphics, it always inserts an empty page. How can I avoid 
that?
(Actually, I load an external mp file, and for random value reasons I 
must load it only once. But the MWE already shows the problem.)



"""
\startMPcode
numeric something;
something := 1;
\stopMPcode

\starttext
\chapter{Something}

Anything.

\stoptext
"""


\startMPinitializations % used by ALL MP instances
% also called repeatedly
\stopMPinitializations

\startMPdefinitions
\stopMPdefinitions

This is what you want.


Exactly, the latter.
Thank you, these two environments were missing in my book.

Hraban

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

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


[NTG-context] Re: MPcode inserts page

2023-07-06 Thread Alan Braslau via ntg-context

On 06/07/23 06/07/23, 11:23, Henning Hraban Ramm wrote:
Hi, if I use \startMPcode to declare variables etc. that I need in 
several MP graphics, it always inserts an empty page. How can I avoid that?
(Actually, I load an external mp file, and for random value reasons I 
must load it only once. But the MWE already shows the problem.)



"""
\startMPcode
numeric something;
something := 1;
\stopMPcode

\starttext
\chapter{Something}

Anything.

\stoptext
"""


\startMPinitializations % used by ALL MP instances
% also called repeatedly
\stopMPinitializations

\startMPdefinitions
\stopMPdefinitions

This is what you want.

--
Alan

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

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


[NTG-context] MPcode inserts page

2023-07-06 Thread Henning Hraban Ramm
Hi, if I use \startMPcode to declare variables etc. that I need in 
several MP graphics, it always inserts an empty page. How can I avoid that?
(Actually, I load an external mp file, and for random value reasons I 
must load it only once. But the MWE already shows the problem.)



"""
\startMPcode
numeric something;
something := 1;
\stopMPcode

\starttext
\chapter{Something}

Anything.

\stoptext
"""


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

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


Re: [NTG-context] setuphead page=right and blank even page.

2023-06-11 Thread Wolfgang Schuster via ntg-context

Alan Braslau schrieb am 11.06.2023 um 20:12:

On 10/06/23 10/06/23, 12:42, Wolfgang Schuster via ntg-context wrote:

Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28:

Hello,

\setuphead
  [part,chapter,title]
  [page=right]

will start a part, chapter, or title on an odd page (right), 
inserting a "blank" even page if necessary. How can I get this blank 
even page to be truely blank, that is with no headers nor footers?


I tried several thinks and must be missing something really simple 
and obvious.


\setuphead [...] [page={yes,header,footer,right}]


Wolfgang
Thank you for this hint. It works (almost) as expected:
Strangely, I had to add, explicitly,

\startfrontmatter

\component FrontMatterStuff

\page[yes,header,footer,right]

\stopfrontmatter

\startbodymatter

...

\stopbodymatter


In order to get the frontmatter end with a totally blank page before a 
right Chapter 1 header. Using just the setuphead resulted in headers 
and footers on the "blank" left page. No problems for Chapters 2, etc.


Section block force by default a page break which can produce unexpected 
headers/footers on the first chapter etc.


You can fix this by disabling the page break at the start/end of the 
section block with


    \setupsectionblock [bodypart] [page=]

Wolfgang

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

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


Re: [NTG-context] setuphead page=right and blank even page.

2023-06-11 Thread Alan Braslau via ntg-context

On 10/06/23 10/06/23, 12:42, Wolfgang Schuster via ntg-context wrote:

Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28:

Hello,

\setuphead
  [part,chapter,title]
  [page=right]

will start a part, chapter, or title on an odd page (right), inserting 
a "blank" even page if necessary. How can I get this blank even page 
to be truely blank, that is with no headers nor footers?


I tried several thinks and must be missing something really simple and 
obvious.


\setuphead [...] [page={yes,header,footer,right}]


Wolfgang
Thank you for this hint. It works (almost) as expected:
Strangely, I had to add, explicitly,

\startfrontmatter

\component FrontMatterStuff

\page[yes,header,footer,right]

\stopfrontmatter

\startbodymatter

...

\stopbodymatter


In order to get the frontmatter end with a totally blank page before a 
right Chapter 1 header. Using just the setuphead resulted in headers and 
footers on the "blank" left page. No problems for Chapters 2, etc.


--
Alan


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

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


Re: [NTG-context] setuphead page=right and blank even page.

2023-06-10 Thread Wolfgang Schuster via ntg-context

Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28:

Hello,

\setuphead
  [part,chapter,title]
  [page=right]

will start a part, chapter, or title on an odd page (right), inserting 
a "blank" even page if necessary. How can I get this blank even page 
to be truely blank, that is with no headers nor footers?


I tried several thinks and must be missing something really simple and 
obvious.


\setuphead [...] [page={yes,header,footer,right}]

Wolfgang

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

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


[NTG-context] setuphead page=right and blank even page.

2023-06-10 Thread Alan Braslau via ntg-context

Hello,

\setuphead
  [part,chapter,title]
  [page=right]

will start a part, chapter, or title on an odd page (right), inserting a 
"blank" even page if necessary. How can I get this blank even page to be 
truely blank, that is with no headers nor footers?


I tried several thinks and must be missing something really simple and 
obvious.


Thank you.

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

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


Re: [NTG-context] Page breaks with \defineparagraphs possible?

2023-06-05 Thread Berend de Boer via ntg-context

Hi Wolfgang,


\definetabulate[bilingual][|pA{normal,verytolerant,stretch}|pA{normal,verytolerant,stretch}|]


One more on this actually: how can I influence the white space between
the columns? I tried to set distance, but that didn't do anything.

Setting p(4cm) or so, made the paragraphs smaller, but did not impact
the white space between the columns.

--
All the best,

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

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


Re: [NTG-context] Page breaks with \defineparagraphs possible?

2023-06-05 Thread Berend de Boer via ntg-context

Hi Wolfgang,


You can use the tabulate environment to create parallel paragraphs.


Just one thing for others, this solution as the same problem as
paragraphs: \placeinitial won't work.

I.e. this:

   \setupinitial[text=#1]\placeinitial

inside the tabulate or paragraphs doesn't work (but here I simply use
a \hbox{\vbox{}\hfil\vbox{}} solution which works well enough I think,
as I only need this for the opening paragraph.

--
All the best,

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

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


Re: [NTG-context] Page breaks with \defineparagraphs possible?

2023-06-05 Thread Berend de Boer via ntg-context

Hi Wolfgang,


You can use the tabulate environment to create parallel paragraphs.


Ah yes, that's working! Thank you so much!

One question on the pA{normal,verytolerant,stretch}: what does that do exactly?


From the manual I got that A only takes one key, what does specifying three 
keys mean?


--
All the best,

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

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


Re: [NTG-context] Page breaks with \defineparagraphs possible?

2023-06-04 Thread Wolfgang Schuster via ntg-context

Berend de Boer via ntg-context schrieb am 05.06.2023 um 00:02:

Dear all,

I've noticed that \defineparagraphs does not break across pages. That
would be a huge page saver in my case. Do I have any options for page
breaking across a set of parallel paragraphs?

Initially I just had a \hbox{\vtop{#1}\hfil\vtop{#2}} but obviously
that doesn't break, so went for more ConTeXt style, but couldn't see a
good mechanism.


You can use the tabulate environment to create parallel paragraphs.

\setuppapersize[A5]

\definetabulate[bilingual][|pA{normal,verytolerant,stretch}|pA{normal,verytolerant,stretch}|]

\starttext

\startbilingual
\NC \input tufte
\NC \input knuth
\NC\NR
\stopbilingual

\stoptext

Wolfgang

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

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


[NTG-context] Page breaks with \defineparagraphs possible?

2023-06-04 Thread Berend de Boer via ntg-context

Dear all,

I've noticed that \defineparagraphs does not break across pages. That
would be a huge page saver in my case. Do I have any options for page
breaking across a set of parallel paragraphs?

Initially I just had a \hbox{\vtop{#1}\hfil\vtop{#2}} but obviously
that doesn't break, so went for more ConTeXt style, but couldn't see a
good mechanism.


Example file where you can see the entire paragraphs thing is put on the next 
page.

==

\setuppapersize[A5]

\defineparagraphs[bilingual][n=2,tolerance=stretch,before=,after=,distance=\0.06\textwidth]
\setupparagraphs[bilingual][1][width=0.47\textwidth]
\setupparagraphs[bilingual][2][width=0.47\textwidth]

\starttext

\input tufte

\startbilingual
 \input tufte
 \nextbilingual
 \input knuth

\stopbilingual

\stoptext

==

--
All the best,

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

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


Re: [NTG-context] SOLVED: text under page floats

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

Am 24.05.23 um 21:07 schrieb Henning Hraban Ramm via ntg-context:
If the page float is placed before a title, the next section starts 
below the float.


This is solved now after a one-line fix by Hans. (And I was dense.)

Hraban

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

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


Re: [NTG-context] text under page floats

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

I found a MWE that shows the problem:

"""
\setuppapersize[C5]

\showframe

\starttext

\startplacefigure[location=page,title={Pagefloat}]
\framed[width=\textwidth,height=.75\textheight]{TEST}
\stopplacefigure

\dorecurse{4}{\section{Tufte \recurselevel}

\samplefile{tufte}}

\stoptext
"""

If the page float is placed before a title, the next section starts 
below the float.


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

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


Re: [NTG-context] text under page floats

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

Am 24.05.23 um 16:44 schrieb Henning Hraban Ramm via ntg-context:

Hi,

in more than one of my books, I struggle with some lines of text below 
page floats. They start below the regular text area (i.e. in the bottom) 
and can even consist of a table float or a section title.


I can’t reproduce it in a simple example like this:

"""
\starttext

\dorecurse{2}{\samplefile{tufte}}

\startplacefigure[location=page,title={Pagefloat}]
\framed[width=\textwidth,height=.5\textheight]{TEST}
\stopplacefigure

\dorecurse{5}{\samplefile{knuth}}

\stoptext
"""

What could cause this behavior? For what should I look in my setups?


In this instances, location=opposite causes the float to disappear.

Hraban

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

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


[NTG-context] text under page floats

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

Hi,

in more than one of my books, I struggle with some lines of text below 
page floats. They start below the regular text area (i.e. in the bottom) 
and can even consist of a table float or a section title.


I can’t reproduce it in a simple example like this:

"""
\starttext

\dorecurse{2}{\samplefile{tufte}}

\startplacefigure[location=page,title={Pagefloat}]
\framed[width=\textwidth,height=.5\textheight]{TEST}
\stopplacefigure

\dorecurse{5}{\samplefile{knuth}}

\stoptext
"""

What could cause this behavior? For what should I look in my setups?

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

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


[NTG-context] How to place a page reference multiple times?

2023-03-01 Thread Joel via ntg-context
I need to report every chapter that a particular macro appeared. I would do 
this by placing `\pagereference[sample]` inside the macro definition, so 
whenever it is called, it marks the reference info. But I can't seem to get 
references to work with multiple reference locations marked, example:
\starttext

    You can find it at \at{page}[sample] in \at{chapter}[sample].

\chapter{Fish}

\pagereference[sample]

\input knuth

\input knuth

\pagebreak
\chapter{Whales}

\input knuth

\pagereference[sample]

\stoptext
(you can see in this example, it only finds `\pagereference[sample]` on page 1 
and ignores the second appearance.



Ideally, I need to be able to output something like, "See examples in Chapter 
3, 8, 19" (because those chapters contain a particular macro that I marked with 
\pagereference. Or, if even possible, see chapters 3 (p. 22), 8 (p. 40), and 20 
(though the first example is fine.
Is there a way to place a page reference multiple times, so multiple pages or 
chapter details will appear?
--Joel
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context

Hi Bruce, and thanks for your answer.

In the end, I think a combination of `insidesection` and `placehead` 
does what I want:


###

\setuphead[interview][
placehead=hidden,
insidesection={\setup{interview:cover}},
]

###

I'll test it harder in the coming days!

Alex

Le 23/02/23 à 14:24, Bruce Horrocks via ntg-context a écrit :

Hi Alex,

I couldn't get it to work with \tabulate so I switched to TABLE instead. The 
workaround for the horizontal mode problem is to put the chapter title into row 
two of the table. Hopefully this works with your actual text. Also I'm not sure 
where \layoutcolumnwidth is coming from so I just hard-coded a width for now. 
Lastly there are neater ways (using \setuptable) to define the table but it's 
just an example...

\define[2]\MyChapter{
\bTABLE[frame=off]
\bTR
  \bTD[width=4cm] \structureuservariable{author} \eTD
  \bTD \structureuservariable{bio} \eTD
\eTR
\bTR
  \bTD[nc=2] #1 #2 \eTD
\eTR
\eTABLE
}

\definehead[interview][chapter]
\setuphead[interview][
page=right,
command=\MyChapter,
% insidesection={\page},
style={\tfa},
]

\starttext
\startinterview[title={My Interview}][
author={Jane Doe},
year={2022},
month={Decembre},
bio={\input ward}
]

\dorecurse{10}{\input ward \crlf}
\stopinterview
\stoptext



On 23 Feb 2023, at 10:21, Alex Leray via ntg-context  wrote:

Hello,

I'm trying to figure out how to design a chapter page for a custom head section 
with uservariables defined.

I'd like to have the chapter page start on a right page. I'd like this page to feature 
the title of the chapter (here: an interview) along with some other info like the 
interviewee name and bio. All in a "fancy" layout.

I'm having issue putting it all together. The command parameter allow me to 
override the content of the title but has some drawbacks (it seems to be stuck 
in horizontal mode for instance).

I'm open to any solution but would find it nice to keep the \startstopinterview 
structure.

Here is my code at the moment:

%%%

\define[2]\MyChapter{
\starttabulate[|p(\layoutcolumnwidth)|p(\layoutcolumnwidth)|]
\NC \structureuservariable{author} \NC \structureuservariable{bio} \NR
\stoptabulate
}

\definehead[interview][chapter]
\setuphead[interview][
page=right,
command=\MyChapter,
% insidesection={\page},
style={\tfa},
]


\starttext
\startinterview[title={My Interview}][
author={Jane Doe},
year={2022},
month={Decembre},
bio={\input ward}
]

\dorecurse{10}{\input ward \crlf}
\stopinterview
\stoptext

%%%

Many thanks

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

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


—
Bruce Horrocks
Hampshire, UK

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

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


--
Alexandre Leray
+32 487 947 030

Avez-vous pensé à (vous) offrir Médor ?
https://medor.coop/ideescadeau
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Chapter cover page

2023-02-23 Thread Bruce Horrocks via ntg-context
Hi Alex,

I couldn't get it to work with \tabulate so I switched to TABLE instead. The 
workaround for the horizontal mode problem is to put the chapter title into row 
two of the table. Hopefully this works with your actual text. Also I'm not sure 
where \layoutcolumnwidth is coming from so I just hard-coded a width for now. 
Lastly there are neater ways (using \setuptable) to define the table but it's 
just an example...

\define[2]\MyChapter{
   \bTABLE[frame=off]
   \bTR
 \bTD[width=4cm] \structureuservariable{author} \eTD
 \bTD \structureuservariable{bio} \eTD
   \eTR
   \bTR
 \bTD[nc=2] #1 #2 \eTD
   \eTR
   \eTABLE
}

\definehead[interview][chapter]
\setuphead[interview][
   page=right,
   command=\MyChapter,
   % insidesection={\page},
   style={\tfa},
]

\starttext
\startinterview[title={My Interview}][
   author={Jane Doe},
   year={2022},
   month={Decembre},
   bio={\input ward}
]

\dorecurse{10}{\input ward \crlf}
\stopinterview
\stoptext


> On 23 Feb 2023, at 10:21, Alex Leray via ntg-context  
> wrote:
> 
> Hello,
> 
> I'm trying to figure out how to design a chapter page for a custom head 
> section with uservariables defined.
> 
> I'd like to have the chapter page start on a right page. I'd like this page 
> to feature the title of the chapter (here: an interview) along with some 
> other info like the interviewee name and bio. All in a "fancy" layout.
> 
> I'm having issue putting it all together. The command parameter allow me to 
> override the content of the title but has some drawbacks (it seems to be 
> stuck in horizontal mode for instance).
> 
> I'm open to any solution but would find it nice to keep the 
> \startstopinterview structure.
> 
> Here is my code at the moment:
> 
> %%%
> 
> \define[2]\MyChapter{
>\starttabulate[|p(\layoutcolumnwidth)|p(\layoutcolumnwidth)|]
>\NC \structureuservariable{author} \NC \structureuservariable{bio} \NR
>    \stoptabulate
> }
> 
> \definehead[interview][chapter]
> \setuphead[interview][
>page=right,
>command=\MyChapter,
>% insidesection={\page},
>style={\tfa},
> ]
> 
> 
> \starttext
> \startinterview[title={My Interview}][
>author={Jane Doe},
>year={2022},
>month={Decembre},
>bio={\input ward}
> ]
> 
> \dorecurse{10}{\input ward \crlf}
> \stopinterview
> \stoptext
> 
> %%%
> 
> Many thanks
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

—
Bruce Horrocks
Hampshire, UK

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

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


[NTG-context] Chapter cover page

2023-02-23 Thread Alex Leray via ntg-context

Hello,

I'm trying to figure out how to design a chapter page for a custom head 
section with uservariables defined.


I'd like to have the chapter page start on a right page. I'd like this 
page to feature the title of the chapter (here: an interview) along with 
some other info like the interviewee name and bio. All in a "fancy" layout.


I'm having issue putting it all together. The command parameter allow me 
to override the content of the title but has some drawbacks (it seems to 
be stuck in horizontal mode for instance).


I'm open to any solution but would find it nice to keep the 
\startstopinterview structure.


Here is my code at the moment:

%%%

\define[2]\MyChapter{
\starttabulate[|p(\layoutcolumnwidth)|p(\layoutcolumnwidth)|]
\NC \structureuservariable{author} \NC 
\structureuservariable{bio} \NR

\stoptabulate
}

\definehead[interview][chapter]
\setuphead[interview][
page=right,
command=\MyChapter,
% insidesection={\page},
style={\tfa},
]


\starttext
\startinterview[title={My Interview}][
author={Jane Doe},
year={2022},
month={Decembre},
bio={\input ward}
]

\dorecurse{10}{\input ward \crlf}
\stopinterview
\stoptext

%%%

Many thanks

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

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


Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Pablo Rodriguez via ntg-context
On 2/15/23 12:40, Alex Leray via ntg-context wrote:
> Thanks a lot Wolfgang, that's perfect!
> 
> I added an example in the wiki:
> 
> https://wiki.contextgarden.net/Command/setupmakeup

Hi Alex,

many thanks for adding the info to the wiki.

Just in case it might help, I added an explanation to the main article:

  https://wiki.contextgarden.net/Makeup

Let me know whether it could be improved.

Welcome back to ConTeXt,

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

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


Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Alex Leray via ntg-context

Thanks a lot Wolfgang, that's perfect!

I added an example in the wiki:

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

Have a good day,

Alex

Le 15/02/23 à 12:03, Wolfgang Schuster via ntg-context a écrit :
Alex Leray via ntg-context > schrieb am Mi., 15. Feb. 2023, 11:59:


Hi Mikael,

here it is:

%%%
\definemakeup [title] [doublesided=empty]


Add pagestate=start to the settings.

Wolfgang


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

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


--
Alexandre Leray
+32 487 947 030

Avez-vous pensé à (vous) offrir Médor ?
https://medor.coop/ideescadeau
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Wolfgang Schuster via ntg-context
Alex Leray via ntg-context  schrieb am Mi., 15. Feb.
2023, 11:59:

> Hi Mikael,
>
> here it is:
>
> %%%
> \definemakeup [title] [doublesided=empty]
>

Add pagestate=start to the settings.

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

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


Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Alex Leray via ntg-context

Hi Mikael,

here it is:

%%%
\definemakeup [title] [doublesided=empty]

\starttext
\input knuth
\starttitlemakeup
Title
\stoptitlemakeup
\input knuth
\stoptext
%%%

thanks

Le 15/02/23 à 11:43, Mikael Sundqvist via ntg-context a écrit :

Hi, and welcome back!

On Wed, Feb 15, 2023 at 11:42 AM Alex Leray via ntg-context
 wrote:


Dear Context users,

I'm new to this mailing-list. I've decided to use Context for two
separate publications. My previous experience with Context was almost 10
years ago and it seems like the resources on Context have greatly
expanded. So thank you all!

There is a little thing that I can't figure out though... In one of my
document I have makeup pages. But inserting them result in wrong page
numbering of subsequent pages. It appears that makeups do not increment
page numbers.

Is this a feature? How could re-establish the right page number for the
rest of the document?

Thank you in advance,

Alex


Can you show a small example of this behavior?

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

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


--
Alexandre Leray
+32 487 947 030

Avez-vous pensé à (vous) offrir Médor ?
https://medor.coop/ideescadeau
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Makeup and page numbering increment

2023-02-15 Thread Mikael Sundqvist via ntg-context
Hi, and welcome back!

On Wed, Feb 15, 2023 at 11:42 AM Alex Leray via ntg-context
 wrote:
>
> Dear Context users,
>
> I'm new to this mailing-list. I've decided to use Context for two
> separate publications. My previous experience with Context was almost 10
> years ago and it seems like the resources on Context have greatly
> expanded. So thank you all!
>
> There is a little thing that I can't figure out though... In one of my
> document I have makeup pages. But inserting them result in wrong page
> numbering of subsequent pages. It appears that makeups do not increment
> page numbers.
>
> Is this a feature? How could re-establish the right page number for the
> rest of the document?
>
> Thank you in advance,
>
> Alex

Can you show a small example of this behavior?

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

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


[NTG-context] Makeup and page numbering increment

2023-02-15 Thread Alex Leray via ntg-context

Dear Context users,

I'm new to this mailing-list. I've decided to use Context for two 
separate publications. My previous experience with Context was almost 10 
years ago and it seems like the resources on Context have greatly 
expanded. So thank you all!


There is a little thing that I can't figure out though... In one of my 
document I have makeup pages. But inserting them result in wrong page 
numbering of subsequent pages. It appears that makeups do not increment 
page numbers.


Is this a feature? How could re-establish the right page number for the 
rest of the document?


Thank you in advance,

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

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


  1   2   3   4   5   6   7   8   9   10   >