[NTG-context] Re: sectionblocks (matters)

2026-03-04 Thread wangzhongtian
as Wolfgang said,I resolved the  empty pages problem in doublesided configuration  by using below code. \setupsectionblock[bodypart] [page=no,number=yes,before=\pagebreak[right], ## force the page setup before the sectionblock,after=\pagebreak[yes],## force the page setup after the sectionblock,]The codes works well with different head(chapter/section)‘s page setup.zhongtian wang Shijiazhuang YouWen Information Technology Co.,Ltd,China13311202589 [email protected] -- 原始邮件 --发件人:Wolfgang Schuster "[email protected]"时 间:2026/02/14 15:35:01 周六收件人:[email protected]抄送人:主 题:[NTG-context] Re: sectionblocks (matters)Am 13.02.2026 um 23:23 schrieb Henning Hraban Ramm:> Hi, my book is nearly finished, but it has one page too much.> I could shorten one, but it doesn’t help, because the appendix insists > to start on a right page (after an empty left page).> > This is my setup:> > \setupsectionblock[frontpart][page=no,number=no]> \setupsectionblock[bodypart][page=right,number=yes,setups=headeryes]The page setting for section blocks is applied at the begin and end of the block and therefore forces the next block after bodypart to start on a right page.Wolfgang___If your question is of interest to others as well, please add an entry to the Wiki!maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nlwebpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)archive  : https://github.com/contextgarden/contextwiki : https://wiki.contextgarden.net__
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-20 Thread Jim
On Wed, Feb 18, 2026 at 08:16 (+0100), Joaquín Ataz López wrote:

> Thank you for the message and for the interest in the *ANSS* .

Thanks for getting back!

> Regarding the points raised:

>*Editorial control and updates:* I have no problem with the
> community updating and extending the work. I believe the best way to
> ensure its continuity is to make it a collective project.

Great.

>*Naming:* I agree that a slight change in the name (perhaps adding
>'Community Edition' or similar) would be useful to avoid confusion
> with the original versions.

Also, given that Mk IV has been superseded, I would suggest changing "Mark
IV" in the title to "LMTX".  (And other places will need analogous updates.)

>*Management:* I think it would be wise to have a small group of
> coordinators to oversee the changes, although giving write access to
> a selection of trusted contributors is a great way to keep the
> project dynamic.

This might be one of the trickier parts to getting things going.

> I am excited to see how the community takes this project forward.

Me too!


Everyone:
-

Speaking of "management", who "owns" the github contextgarden user?


Cheers.

Jim



> El 16/2/26 a las 22:10, Jim escribió:
>> On Sun, Feb 15, 2026 at 13:01 (+0100), Henning Hraban Ramm wrote:

>>> Am 15.02.26 um 12:48 schrieb Pablo Rodriguez via ntg-context:
>>> > Congratulations again for the new book. May its high sales require (at
>>> > least, English and Spanish) translations,
>> Hear, hear!

>>> I have ideas for an English/international edition that I’d like to discuss
>>> (in a new thread); the current edition is quite German-centered, there are
>>> things that don’t apply to most other countries/languages, and it would be
>>> necessary to include more international options; let’s discuss which other
>>> languages make sense (would that be European Spanish or one of the American
>>> ones?), I couldn’t help with any.
>>> A much lower hanging fruit would be updating and extending the “not so short
>>> introduction”,
>>> https://urldefense.com/v3/__https://github.com/contextgarden/not-so-short-introduction-to-context__;!!D9dNQwwGXtA!VcNBshdTO_ve8mOZIclPSqwSciUR25Zo0NhEfAEc_ENp82SOZ6EvDUDPunaPnRo8kv5sPsmJD5v-lEWG3j88$
>> While I can't comment on whether updating ANSS would be a lower-hanging
>> fruit than an English edition of your book,
>> (1) I hear that all of a sudden you have lots of time on your hands.  :-)
>> (2) I agree that updating and extending ANSS would be a worthwhile project.

>> To that end... can anyone enlighten me (and other list members) on any of
>> these points:
>> (a) Would Joaquín Ataz-López want to retain editorial control?
>> (b) If not,
>>  (i)   Is he ok with other people updating and extending this work?
>>  (ii)  Would he prefer a document with a (slightly?) changed name
>> to avoid confusion?
>>  (iii) Would we need one or more people in charge of accepting changes,
>> or does anyone think that it would work if some (carefully
>> curated?) selection of contributors were write access to the
>> repository?
>> (c) How can the ConTeXt community get this ball rolling?

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

>> maillist :[email protected] 
>> /https://urldefense.com/v3/__https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl__;!!D9dNQwwGXtA!VcNBshdTO_ve8mOZIclPSqwSciUR25Zo0NhEfAEc_ENp82SOZ6EvDUDPunaPnRo8kv5sPsmJD5v-lMju6XSb$
>> webpage  
>> :https://urldefense.com/v3/__https://www.pragma-ade.nl__;!!D9dNQwwGXtA!VcNBshdTO_ve8mOZIclPSqwSciUR25Zo0NhEfAEc_ENp82SOZ6EvDUDPunaPnRo8kv5sPsmJD5v-lF-Tt6v8$
>>   
>> /https://urldefense.com/v3/__https://context.aanhet.net__;!!D9dNQwwGXtA!VcNBshdTO_ve8mOZIclPSqwSciUR25Zo0NhEfAEc_ENp82SOZ6EvDUDPunaPnRo8kv5sPsmJD5v-lA-mwwu2$
>> (mirror)
>> archive  
>> :https://urldefense.com/v3/__https://github.com/contextgarden/context__;!!D9dNQwwGXtA!VcNBshdTO_ve8mOZIclPSqwSciUR25Zo0NhEfAEc_ENp82SOZ6EvDUDPunaPnRo8kv5sPsmJD5v-lBBDMGOS$
>> wiki 
>> :https://urldefense.com/v3/__https://wiki.contextgarden.net__;!!D9dNQwwGXtA!VcNBshdTO_ve8mOZIclPSqwSciUR25Zo0NhEfAEc_ENp82SOZ6EvDUDPunaPnRo8kv5sPsmJD5v-lMRSOOcy$
>>  
>> ___

> -- 
> Joaquín Ataz López
> Departamento de Derecho civil
> Universidad de Murcia - España

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

> maillist : [email protected] / 
> 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: sectionblocks (matters)

2026-02-17 Thread Joaquín Ataz López
Thank you for the message and for the interest in the *ANSS* . Regarding 
the points raised:


 *

   *Editorial control and updates:* I have no problem with the
   community updating and extending the work. I believe the best way to
   ensure its continuity is to make it a collective project.

 *

   *Naming:* I agree that a slight change in the name (perhaps adding
   'Community Edition' or similar) would be useful to avoid confusion
   with the original versions.

 *

   *Management:* I think it would be wise to have a small group of
   coordinators to oversee the changes, although giving write access to
   a selection of trusted contributors is a great way to keep the
   project dynamic.

I am excited to see how the community takes this project forward.

Best regards,

Joaquín"




El 16/2/26 a las 22:10, Jim escribió:

On Sun, Feb 15, 2026 at 13:01 (+0100), Henning Hraban Ramm wrote:


Am 15.02.26 um 12:48 schrieb Pablo Rodriguez via ntg-context:

Congratulations again for the new book. May its high sales require (at
least, English and Spanish) translations,

Hear, hear!


I have ideas for an English/international edition that I’d like to discuss
(in a new thread); the current edition is quite German-centered, there are
things that don’t apply to most other countries/languages, and it would be
necessary to include more international options; let’s discuss which other
languages make sense (would that be European Spanish or one of the American
ones?), I couldn’t help with any.
A much lower hanging fruit would be updating and extending the “not so short
introduction”,
https://urldefense.com/v3/__https://github.com/contextgarden/not-so-short-introduction-to-context__;!!D9dNQwwGXtA!VcNBshdTO_ve8mOZIclPSqwSciUR25Zo0NhEfAEc_ENp82SOZ6EvDUDPunaPnRo8kv5sPsmJD5v-lEWG3j88$ 

While I can't comment on whether updating ANSS would be a lower-hanging
fruit than an English edition of your book,
(1) I hear that all of a sudden you have lots of time on your hands.  :-)
(2) I agree that updating and extending ANSS would be a worthwhile project.

To that end... can anyone enlighten me (and other list members) on any of
these points:
(a) Would Joaquín Ataz-López want to retain editorial control?
(b) If not,
 (i)   Is he ok with other people updating and extending this work?
 (ii)  Would he prefer a document with a (slightly?) changed name
   to avoid confusion?
 (iii) Would we need one or more people in charge of accepting changes,
   or does anyone think that it would work if some (carefully
   curated?) selection of contributors were write access to the
   repository?
(c) How can the ConTeXt community get this ball rolling?

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

maillist :[email protected] /https://urldefense.com/v3/__https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl__;!!D9dNQwwGXtA!VcNBshdTO_ve8mOZIclPSqwSciUR25Zo0NhEfAEc_ENp82SOZ6EvDUDPunaPnRo8kv5sPsmJD5v-lMju6XSb$ 
webpage  :https://urldefense.com/v3/__https://www.pragma-ade.nl__;!!D9dNQwwGXtA!VcNBshdTO_ve8mOZIclPSqwSciUR25Zo0NhEfAEc_ENp82SOZ6EvDUDPunaPnRo8kv5sPsmJD5v-lF-Tt6v8$  /https://urldefense.com/v3/__https://context.aanhet.net__;!!D9dNQwwGXtA!VcNBshdTO_ve8mOZIclPSqwSciUR25Zo0NhEfAEc_ENp82SOZ6EvDUDPunaPnRo8kv5sPsmJD5v-lA-mwwu2$  (mirror)
archive  :https://urldefense.com/v3/__https://github.com/contextgarden/context__;!!D9dNQwwGXtA!VcNBshdTO_ve8mOZIclPSqwSciUR25Zo0NhEfAEc_ENp82SOZ6EvDUDPunaPnRo8kv5sPsmJD5v-lBBDMGOS$ 
wiki :https://urldefense.com/v3/__https://wiki.contextgarden.net__;!!D9dNQwwGXtA!VcNBshdTO_ve8mOZIclPSqwSciUR25Zo0NhEfAEc_ENp82SOZ6EvDUDPunaPnRo8kv5sPsmJD5v-lMRSOOcy$ 
___


--
Joaquín Ataz López
Departamento de Derecho civil
Universidad de Murcia - España
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-16 Thread Jim
On Sun, Feb 15, 2026 at 13:01 (+0100), Henning Hraban Ramm wrote:

> Am 15.02.26 um 12:48 schrieb Pablo Rodriguez via ntg-context:

>> Congratulations again for the new book. May its high sales require (at
>> least, English and Spanish) translations,

Hear, hear!

> I have ideas for an English/international edition that I’d like to discuss
> (in a new thread); the current edition is quite German-centered, there are
> things that don’t apply to most other countries/languages, and it would be
> necessary to include more international options; let’s discuss which other
> languages make sense (would that be European Spanish or one of the American
> ones?), I couldn’t help with any.

> A much lower hanging fruit would be updating and extending the “not so short
> introduction”,
> https://github.com/contextgarden/not-so-short-introduction-to-context

While I can't comment on whether updating ANSS would be a lower-hanging
fruit than an English edition of your book,
(1) I hear that all of a sudden you have lots of time on your hands.  :-)
(2) I agree that updating and extending ANSS would be a worthwhile project.

To that end... can anyone enlighten me (and other list members) on any of
these points:
(a) Would Joaquín Ataz-López want to retain editorial control?
(b) If not,
(i)   Is he ok with other people updating and extending this work?
(ii)  Would he prefer a document with a (slightly?) changed name
  to avoid confusion?
(iii) Would we need one or more people in charge of accepting changes,
  or does anyone think that it would work if some (carefully
  curated?) selection of contributors were write access to the
  repository?
(c) How can the ConTeXt community get this ball rolling?

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

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-15 Thread Jean-Pierre Delange via ntg-context

Hraban, Pablo,

I see that the day has been rich in exchanges and discussions that 
interest me in several ways. Firstly, because it seems to me that 
“Drucksachen mit ConTeXt” (from what I have been able to gather) 
provides a very precise and unique insight into the implementation of 
ConTeXt, and from this point of view I join Pablo in congratulating the 
author on his admirable determination to produce such a useful work. 
However, I would not compare “Drucksachen mit ConTeXt” with “A Not So 
Short Introduction.” That would not be very interesting, even if the 
comparison is legitimate. On the other hand, delving into technical 
details that may be useful to people whose job is to make books, 
especially by documenting thoughts that are not readily accessible when 
it comes to ConTeXt, deserves an international (English) version and 
perhaps also, as Pablo points out, localized versions in European 
languages (after all, many of us think and communicate in languages 
other than English).


For my part, I have been working for months (when I have a little time 
for it) on developing a kind of “ConTeXt Manual for the Humanities,” 
precisely to try to make public MWEs on specific topics that are of 
primary interest to academics working on ancient or rare languages who 
know nothing other than their experience with LaTeX.


This gives me the opportunity to explore the facets and potential of 
ConTeXt. In addition, I have a large translation project ahead of me 
that I hope to publish, and I am using the ‘environment’ method for this.


It seems fairly simple (frontmatter, bodymatter, backmatter; ‘env’ 
directories, etc.), yet I'm having a hell of a time numbering the 
frontmatter pages in Roman numerals and the rest in Arabic numerals, and 
handling the indexes correctly. I'm having similar problems to Hraban 
with blank, unnumbered pages, etc. These situations make me grateful 
once again (or yet again) to the contributors to the discussion list for 
their insights and the help they often provide unexpectedly but always 
quickly. Thank you folks and thank you Hraban, for your work!


Best//JP

Le 15/02/2026 à 14:57, Pablo Rodriguez via ntg-context a écrit :

On 2/15/26 13:01, Henning Hraban Ramm wrote:

Am 15.02.26 um 12:48 schrieb Pablo Rodriguez via ntg-context:

[...]
Congratulations again for the new book. May its high sales require (at
least, English and Spanish) translations,

I have ideas for an English/international edition that I’d like to
discuss (in a new thread); the current edition is quite German-centered,
there are things that don’t apply to most other countries/languages, and
it would be necessary to include more international options;

Well, first I wanted to write versions, since this is what they have to be.

Looking forward that new thread about the English/international edition.


let’s discuss which other languages make sense (would that be
European Spanish or one of the American ones?), I couldn’t help with
any.

As for Spanish, I’d rather say that it would be similar with German
(Austrian and Swiss variants aren’t exactly the same): European Spanish,
but modified to avoid the rough spots (avoid “coger” by all means, to
name an example).


A much lower hanging fruit would be updating and extending the “not so
short introduction”,
https://github.com/contextgarden/not-so-short-introduction-to-context

This is a different issue, since explanations benefit from different
approaches.

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

maillist : [email protected] / 
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 : [email protected] / 
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: sectionblocks (matters)

2026-02-15 Thread Pablo Rodriguez via ntg-context
On 2/15/26 13:01, Henning Hraban Ramm wrote:
> Am 15.02.26 um 12:48 schrieb Pablo Rodriguez via ntg-context:
>> [...]
>> Congratulations again for the new book. May its high sales require (at
>> least, English and Spanish) translations,
> 
> I have ideas for an English/international edition that I’d like to 
> discuss (in a new thread); the current edition is quite German-centered, 
> there are things that don’t apply to most other countries/languages, and 
> it would be necessary to include more international options;

Well, first I wanted to write versions, since this is what they have to be.

Looking forward that new thread about the English/international edition.

> let’s discuss which other languages make sense (would that be
> European Spanish or one of the American ones?), I couldn’t help with
> any.
As for Spanish, I’d rather say that it would be similar with German
(Austrian and Swiss variants aren’t exactly the same): European Spanish,
but modified to avoid the rough spots (avoid “coger” by all means, to
name an example).

> A much lower hanging fruit would be updating and extending the “not so 
> short introduction”, 
> https://github.com/contextgarden/not-so-short-introduction-to-context

This is a different issue, since explanations benefit from different
approaches.

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

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-15 Thread Pablo Rodriguez via ntg-context
On 2/15/26 13:18, Henning Hraban Ramm wrote:
> Am 15.02.26 um 13:01 schrieb Henning Hraban Ramm:
>> Ok, you’re right. While I copied your suggestion to every other project, 
>> I didn’t copy it to this book. Fixed. I’ll try to fit in the explanation.
> 
> I don’t really explain interaction options in the book and I didn’t want 
> to add more pages (I could have documented so much more…), so I just say 
> it enhances the link behavior.

Probably you don’t need to explain all options in your book (otherwise,
you may end up renaming your book to »Die ConTeXtpädie«). But
benefitting from some options is perfectly fine.

> I added a bit about the so far undocumented `prefix` to 
> https://wiki.contextgarden.net/Command/setupinteraction.

Many thanks for that. I modified the `focus=standard` (and `width`,
`height` and `fit`) a bit.

`prefix` was a kind addition by Hans after discussing with me what after
that became its default value (named references starting with `#`). It
took place in the dev-context mailing list, since I started the thread
with a patch.

Many thanks for your work with the wiki,

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

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-15 Thread Henning Hraban Ramm

Am 15.02.26 um 13:01 schrieb Henning Hraban Ramm:
Ok, you’re right. While I copied your suggestion to every other project, 
I didn’t copy it to this book. Fixed. I’ll try to fit in the explanation.


I don’t really explain interaction options in the book and I didn’t want 
to add more pages (I could have documented so much more…), so I just say 
it enhances the link behavior.


I added a bit about the so far undocumented `prefix` to 
https://wiki.contextgarden.net/Command/setupinteraction


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

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-15 Thread Henning Hraban Ramm

Am 15.02.26 um 12:48 schrieb Pablo Rodriguez via ntg-context:

Who do you think I am that I wouldn’t consider that?
And yes, I omitted the "doublesided" setting.


Well, I just meant `focus=standard` and `prefix=target-` (or almost any
other value for that option, since its default [`#`] is technically
invalid).


Ok, you’re right. While I copied your suggestion to every other project, 
I didn’t copy it to this book. Fixed. I’ll try to fit in the explanation.



As you already know (much better than me, but this is a way of
advertising the features), the first option makes following links to and
from footnotes not a pain when browsing the PDF document in “fit to
width”-mode.

The second option improves urls with fragment identifiers, such as
https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#nameddest=https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#G11.1947713
(as per
https://www.rfc-editor.org/pdfrfc/rfc8118.txt.pdf#search=nameddest), but
both search and unique identifiers work with “PDF.js” (”Firefox“
built-in PDF viewer), not with the PDF viewer from “Edge” (and probably
“Chrome”).

Congratulations again for the new book. May its high sales require (at
least, English and Spanish) translations,


I have ideas for an English/international edition that I’d like to 
discuss (in a new thread); the current edition is quite German-centered, 
there are things that don’t apply to most other countries/languages, and 
it would be necessary to include more international options; let’s 
discuss which other languages make sense (would that be European Spanish 
or one of the American ones?), I couldn’t help with any.


A much lower hanging fruit would be updating and extending the “not so 
short introduction”, 
https://github.com/contextgarden/not-so-short-introduction-to-context


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

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-15 Thread Pablo Rodriguez via ntg-context
On 2/15/26 12:15, Henning Hraban Ramm wrote:
> Am 15.02.26 um 11:44 schrieb Pablo Rodriguez via ntg-context:
>> […]
>> Sorry, but what is the effect of `\setupppagenumbering[state=start]`
>> added to your documents?
> 
> Well, you can switch the page numbering on and off.

I see, as far as I can remember, my approach to that was different: I
even created new sectionblocks and I configured them with sectionblock
environments (as far as I can recall that [it was long time ago…] 😅).

>> Just a final recommendation, if the book is also planned as pure PDF
>> download, don’t forget to add convenient "\setupinteraction" values.
> 
> Who do you think I am that I wouldn’t consider that?
> And yes, I omitted the "doublesided" setting.

Well, I just meant `focus=standard` and `prefix=target-` (or almost any
other value for that option, since its default [`#`] is technically
invalid).

As you already know (much better than me, but this is a way of
advertising the features), the first option makes following links to and
from footnotes not a pain when browsing the PDF document in “fit to
width”-mode.

The second option improves urls with fragment identifiers, such as
https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#nameddest=https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#G11.1947713
(as per
https://www.rfc-editor.org/pdfrfc/rfc8118.txt.pdf#search=nameddest), but
both search and unique identifiers work with “PDF.js” (”Firefox“
built-in PDF viewer), not with the PDF viewer from “Edge” (and probably
“Chrome”).

Congratulations again for the new book. May its high sales require (at
least, English and Spanish) translations,

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

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-15 Thread Henning Hraban Ramm

Am 15.02.26 um 11:44 schrieb Pablo Rodriguez via ntg-context:

I must confess I didn’t know that there was such an option. According to
https://www.pragma-ade.com/general/qrcs/setup-en.pdf#search=setuppagenumbering,
this seems to be the default (if I’m not wrong).

Sorry, but what is the effect of `\setupppagenumbering[state=start]`
added to your documents?


Well, you can switch the page numbering on and off.

I didn’t want page numbers in the front matter, and I have quite 
involved headers (and footers). To avoid repeated lines of code in my 
product file, I made several setups that I hooked into the 
sectionblocks. But since that apparently wasn’t enough, I also called 
the setups at the start of the section block.


Don’t ask me why, I’m working on this book since 2017 and probably made 
some bad choices or needed to work around current issues along the way.



I guess this book is complete now (for the first edition).

Thanks for all the help!


Just a final recommendation, if the book is also planned as pure PDF
download, don’t forget to add convenient "\setupinteraction" values.


Who do you think I am that I wouldn’t consider that?
And yes, I omitted the "doublesided" setting.

This is my most consulted manual, and it always needed to work for me.

I really don’t like working with PDFs where there’s no link interaction 
& no bookmarks for the structure. Looking at you, Hans!



Congratulations for your new book,


Thank you!

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

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-15 Thread Pablo Rodriguez via ntg-context
On 2/14/26 19:53, Henning Hraban Ramm wrote:
> Am 14.02.26 um 18:10 schrieb Henning Hraban Ramm:
>> I’m checking other options…
> 
> Ok, I got it.
> I was calling \setuppagenumbering[state=start] in setups twice, 
> apparently that was too much.

Glad to read that you solved the issue, Hraban.

I must confess I didn’t know that there was such an option. According to
https://www.pragma-ade.com/general/qrcs/setup-en.pdf#search=setuppagenumbering,
this seems to be the default (if I’m not wrong).

Sorry, but what is the effect of `\setupppagenumbering[state=start]`
added to your documents?

> I guess this book is complete now (for the first edition).
> 
> Thanks for all the help!

Just a final recommendation, if the book is also planned as pure PDF
download, don’t forget to add convenient "\setupinteraction" values.

Congratulations for your new book,

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

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-14 Thread Henning Hraban Ramm

Am 14.02.26 um 18:10 schrieb Henning Hraban Ramm:

I’m checking other options…


Ok, I got it.
I was calling \setuppagenumbering[state=start] in setups twice, 
apparently that was too much.


I also found that \adaptlayout influenced my header & footer 
calculations and how compact fonts can fail…


I guess this book is complete now (for the first edition).

Thanks for all the help!

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

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-14 Thread Henning Hraban Ramm

Am 14.02.26 um 13:19 schrieb Jean-Pierre Delange via ntg-context:
I answer myself: after reflection, Pablo is right; the extra final page 
does not come from a possible \vfill, but from writing:


\setupagenumbering[alternative=doublesided, location=footer,].

To avoid this final blank page, simply write:

\setuppagenumbering[
alternative=doublesided,
page=,
location=footer,
].


Well, I have location=none since my header and footer setups work 
differently, and "page=," (or page=no) doesn’t help.


I’m checking other options…

Nevertheless, one might legitimately wonder whether a blank page is not 
necessary in a printed work, after the appendices or indexes. Hraban 
knows more about the rules of printing and typography than I do in this 
regard.


I wouldn’t care about a blank page before the appendices, and I prefer 
chapters starting on a right page, but I need to prune one page, and an 
empty one makes the most sense.


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

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-14 Thread Jean-Pierre Delange via ntg-context
I answer myself: after reflection, Pablo is right; the extra final page 
does not come from a possible \vfill, but from writing:


\setupagenumbering[alternative=doublesided, location=footer,].

To avoid this final blank page, simply write:

\setuppagenumbering[

alternative=doublesided,

page=,

location=footer,

].

Nevertheless, one might legitimately wonder whether a blank page is not 
necessary in a printed work, after the appendices or indexes. Hraban 
knows more about the rules of printing and typography than I do in this 
regard.


Best//JP


Le 14/02/2026 à 12:56, Jean-Pierre Delange via ntg-context a écrit :


Hi there !

Like Pablo, I am sure that the Hraban's book will be very precise and 
laid out in an extremely rigorous manner. If I understand correctly 
(and unless I am mistaken), we should aim to achieve something like 
what is suggested in the MWE below?


Best//JP

Note : I propose a commented MWE in order to better understand what 
may be a difficulty in the case presented by Hraban. If this MWE is 
functional but ends with a blank page, it is because the cause is 
almost always one of these two mechanisms:


 1. we artificially force a “fill” at the end of the chapter
(|\vfill|) and ConTeXt ends up with “empty but legitimate” content
on the last page;
 2. a “finish” setting (or a block constraint) forces the front/back
to be completed at the end of the document.

% sectionblock-pageright_hraban-pablo-wolfg.tex
% ==
% FR : MWE — Démarrage des appendices sur une page gauche (even)
%      tout en gardant les chapitres du corps sur une page droite (odd).
% EN : MWE — Start appendices on a left page (even) while keeping
%      body chapters opening on right pages (odd).
%
% Key idea / Idée clé :
% - FR : \setupsectionblock[...][page=...] agit aux transitions de blocs
%        (début ET fin). Si bodypart impose page=right, il "contamine"
%        le bloc suivant (appendix) et peut générer des blancs.
% - EN : sectionblock "page=" is applied at block boundaries (begin+end),
%        so bodypart[page=right] can force the NEXT block to start on 
right

%        (and may yield extra blanks).
%
% Therefore / Donc :
% - FR : On met page=no sur les sectionblocks (transitions neutres),
%        et on gère "open right" via \setuphead[chapter] dans bodypart.
% - EN : Use page=no on sectionblocks (neutral transitions), and enforce
%        "open right" via chapter head setup inside bodypart only.
% ==

\setuppapersize[A5][A5] % FR : format quelconque pour test / EN : any 
test size


\setuplayout[
  backspace=12mm, topspace=12mm,
  width=middle, height=middle,
  header=8mm, footer=10mm,
]

% --
% FR : Recto/verso (pages left/right) + pagination en pied
% EN : Double-sided layout (left/right pages) + footer numbering
% --
\setuppagenumbering[
  alternative=doublesided,
  location=footer,
]

% --
% FR : Sectionblocks — ne PAS imposer de contrainte de page aux 
transitions

%      (sinon un bodypart "open right" force le bloc suivant à droite,
%       cf. remarque de Wolfgang).
% EN : Sectionblocks — do NOT enforce page constraints at block boundaries
%      (otherwise bodypart "open right" can force the next block to 
the right,

%       cf. Wolfgang’s remark).
% --
\setupsectionblock[frontpart][page=no, number=no]
\setupsectionblock[bodypart] [page=no, number=yes]
\setupsectionblock[appendix] [page=no, number=yes]

% --
% FR : Dans le bodypart : chapitres "open right" (odd/right)
% EN : In bodypart: chapters open on right-hand pages (odd/right)
% --
\startsectionblockenvironment[bodypart]
  \setuphead[chapter][page=right]
\stopsectionblockenvironment

% --
% FR : Dans l’appendix : neutraliser l’open-right du chapitre
%      (Pablo propose page=yes ici : pas de forcing odd/right)
% EN : In appendix: neutralize chapter open-right
%      (Pablo suggests page=yes here: no odd/right forcing)
% --
\startsectionblockenvironment[appendix]
  \setuphead[chapter][page=yes]
\stopsectionblockenvironment

% --
% FR : Contenu garanti sur 2 pages (sans dépendre d’un remplissage 
aléatoire)

% EN : Guaranteed two-page content (no reliance on accidental overflow)
% --
\def\TwoPages{%
  \dorecurse{8}{\input knuth\par}%
  \vfill \page
  \dorecurse{8}{\input knuth\par}%
  \vfill
}

\starttext

% ==

[NTG-context] Re: sectionblocks (matters)

2026-02-14 Thread Jean-Pierre Delange via ntg-context

Hi there !

Like Pablo, I am sure that the Hraban's book will be very precise and 
laid out in an extremely rigorous manner. If I understand correctly (and 
unless I am mistaken), we should aim to achieve something like what is 
suggested in the MWE below?


Best//JP

Note : I propose a commented MWE in order to better understand what may 
be a difficulty in the case presented by Hraban. If this MWE is 
functional but ends with a blank page, it is because the cause is almost 
always one of these two mechanisms:


1. we artificially force a “fill” at the end of the chapter (|\vfill|)
   and ConTeXt ends up with “empty but legitimate” content on the last
   page;
2. a “finish” setting (or a block constraint) forces the front/back to
   be completed at the end of the document.

% sectionblock-pageright_hraban-pablo-wolfg.tex
% ==
% FR : MWE — Démarrage des appendices sur une page gauche (even)
%      tout en gardant les chapitres du corps sur une page droite (odd).
% EN : MWE — Start appendices on a left page (even) while keeping
%      body chapters opening on right pages (odd).
%
% Key idea / Idée clé :
% - FR : \setupsectionblock[...][page=...] agit aux transitions de blocs
%        (début ET fin). Si bodypart impose page=right, il "contamine"
%        le bloc suivant (appendix) et peut générer des blancs.
% - EN : sectionblock "page=" is applied at block boundaries (begin+end),
%        so bodypart[page=right] can force the NEXT block to start on right
%        (and may yield extra blanks).
%
% Therefore / Donc :
% - FR : On met page=no sur les sectionblocks (transitions neutres),
%        et on gère "open right" via \setuphead[chapter] dans bodypart.
% - EN : Use page=no on sectionblocks (neutral transitions), and enforce
%        "open right" via chapter head setup inside bodypart only.
% ==

\setuppapersize[A5][A5] % FR : format quelconque pour test / EN : any 
test size


\setuplayout[
  backspace=12mm, topspace=12mm,
  width=middle, height=middle,
  header=8mm, footer=10mm,
]

% --
% FR : Recto/verso (pages left/right) + pagination en pied
% EN : Double-sided layout (left/right pages) + footer numbering
% --
\setuppagenumbering[
  alternative=doublesided,
  location=footer,
]

% --
% FR : Sectionblocks — ne PAS imposer de contrainte de page aux transitions
%      (sinon un bodypart "open right" force le bloc suivant à droite,
%       cf. remarque de Wolfgang).
% EN : Sectionblocks — do NOT enforce page constraints at block boundaries
%      (otherwise bodypart "open right" can force the next block to the 
right,

%       cf. Wolfgang’s remark).
% --
\setupsectionblock[frontpart][page=no, number=no]
\setupsectionblock[bodypart] [page=no, number=yes]
\setupsectionblock[appendix] [page=no, number=yes]

% --
% FR : Dans le bodypart : chapitres "open right" (odd/right)
% EN : In bodypart: chapters open on right-hand pages (odd/right)
% --
\startsectionblockenvironment[bodypart]
  \setuphead[chapter][page=right]
\stopsectionblockenvironment

% --
% FR : Dans l’appendix : neutraliser l’open-right du chapitre
%      (Pablo propose page=yes ici : pas de forcing odd/right)
% EN : In appendix: neutralize chapter open-right
%      (Pablo suggests page=yes here: no odd/right forcing)
% --
\startsectionblockenvironment[appendix]
  \setuphead[chapter][page=yes]
\stopsectionblockenvironment

% --
% FR : Contenu garanti sur 2 pages (sans dépendre d’un remplissage 
aléatoire)

% EN : Guaranteed two-page content (no reliance on accidental overflow)
% --
\def\TwoPages{%
  \dorecurse{8}{\input knuth\par}%
  \vfill \page
  \dorecurse{8}{\input knuth\par}%
  \vfill
}

\starttext

% ==
% FR : Frontmatter (optionnel)
% EN : Frontmatter (optional)
% ==
\startfrontmatter
  \startchapter[title={Front}]
    \TwoPages
  \stopchapter
\stopfrontmatter

% ==
% FR : Bodymatter — chapitres sur page droite (odd/right)
% EN : Bodymatter — chapters open on right pages (odd/right)
% ==
\startbodymatter
  \startchapter[title={Body 1}]
    \TwoPages
  \stopchapter

  \startchapter[title={Body 2}]
    \TwoPages
  \stopchapter
\stopbodymatter

% =

[NTG-context] Re: sectionblocks (matters)

2026-02-14 Thread Pablo Rodriguez via ntg-context
On 2/14/26 09:57, Henning Hraban Ramm wrote:
> [...]
> Thanks, that’s what I needed to know.
> Unfortunately, the empty page is still there, now without header.

You may want to remove the `\startchapter` … `\stopchapter` (or
`\chapter`) right after `\startappendices` and see what happens.

But enjoy your guests now,

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

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-14 Thread Henning Hraban Ramm

Am 14.02.26 um 08:35 schrieb Wolfgang Schuster:

\setupsectionblock[frontpart][page=no,number=no]
\setupsectionblock[bodypart][page=right,number=yes,setups=headeryes]


The page setting for section blocks is applied at the begin and end of 
the block and therefore forces the next block after bodypart to start on 
a right page.


Thanks, that’s what I needed to know.
Unfortunately, the empty page is still there, now without header.

Also thanks to Jean-Pierre and Pablo for trying!
I should have mentioned that my chapter setup has [page=yes].

I’ll check the other suspects tonight (expecting visitors now).

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

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-13 Thread Wolfgang Schuster

Am 13.02.2026 um 23:23 schrieb Henning Hraban Ramm:

Hi, my book is nearly finished, but it has one page too much.
I could shorten one, but it doesn’t help, because the appendix insists 
to start on a right page (after an empty left page).


This is my setup:

\setupsectionblock[frontpart][page=no,number=no]
\setupsectionblock[bodypart][page=right,number=yes,setups=headeryes]


The page setting for section blocks is applied at the begin and end of 
the block and therefore forces the next block after bodypart to start on 
a right page.


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

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-13 Thread Pablo Rodriguez via ntg-context
On 2/13/26 23:23, Henning Hraban Ramm wrote:
> Hi, my book is nearly finished, but it has one page too much.
> I could shorten one, but it doesn’t help, because the appendix insists 
> to start on a right page (after an empty left page).
> […]
> How can I force my appendices to start on a left page? (No, page=left 
> doesn’t help, it inserts another 2 pages.)

Hi Hraban,

as far as I can see, here are two things involved, the sectionblocks and
the chapter (which by default start on a right page).

The `page` key from `\setupsectionblock` seems to belong to what comes
after that section block (not before).

This is why `page=no` is required in `bodypart` (in `appendix` it avoids
adding an extra blank page at the end of the document).

`\setuphead[chapter]` needs to be `page=yes` (ideally, limited to the
`appendix` section block environment).

This works for me:

  \setuppagenumbering[alternative=doublesided, page=,]
  \setupsectionblock[bodypart][page=no]
  \setupsectionblock[appendix][page=no]
  \startsectionblockenvironment[appendix]
 \setuphead[chapter][page=yes]
  \stopsectionblockenvironment
  \starttext
\startbodymatter
 \startchapter[title=Body]
  \input knuth
 \stopchapter
\stopbodymatter
\startappendices
 \startchapter[title=Appendix]
  \blank[.25th]\input zapf
 \stopchapter
\stopappendices
  \stoptext

BTW, all credit goes to Wolfgang, since he explained this fix (or a very
similar solution) to a very similar issue I had years ago. (Of course, I
cannot recall the details right now, but he was the one that helped me
to solve the mess back then).

I really hope it helps to have a good book about ConTeXt,

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

maillist : [email protected] / 
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: sectionblocks (matters)

2026-02-13 Thread Jean-Pierre Delange via ntg-context

Hi,

Before trying further tweaks, could we first clarify which /systemic/ 
constraints are active here, and which /local/ ones apply to the 
appendix block? In particular:


 *

   Is the document globally set to |doublesided=yes|?

 *

   Do the heads (e.g. |\setuphead[chapter]|) enforce |page=right|?

 *

   Are there any |openright|-style settings in the environment?

 *

   Does |\startappendices| implicitly alter page behaviour?

It seems likely that multiple constraints are being combined:

 *

   the |\setupsectionblock[appendix][page=…]|,

 *

   plus a head-level |page=right|,

 *

   possibly plus double-sided layout logic.

That might explain why |page=left| results in /two/ inserted pages: 
ConTeXt satisfies one constraint, then re-adjusts for another.


So the real question may be: which pagination rule has priority here?

Best//JP


Le 13/02/2026 à 23:23, Henning Hraban Ramm a écrit :

Hi, my book is nearly finished, but it has one page too much.
I could shorten one, but it doesn’t help, because the appendix insists 
to start on a right page (after an empty left page).


This is my setup:

\setupsectionblock[frontpart][page=no,number=no]
\setupsectionblock[bodypart][page=right,number=yes,setups=headeryes]
\setupsectionblock[appendix][page=no,number=yes,setups=headeryes]

"setups=headeryes" just changes the header texts; I also tried without.

How can I force my appendices to start on a left page? (No, page=left 
doesn’t help, it inserts another 2 pages.)


Hraban
___ 

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


maillist : [email protected] / 
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 : [email protected] / 
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
___