Hans, the following sample shows three long-standing issues with ConTeXt (I’m afraid they might be bugs): \definestructureconversionset[chapternumbers][0,I,a,n,g][n] \setupheads[sectionconversionset=chapternumbers] \setupsectionblock[bodypart][page=no] \setupheadertexts[chapter] \setupinteraction[state=start] \placebookmarks[chapter] \starttext \chapter{\TeX} \input knuth\par \startfrontmatter \dorecurse{5}{\chapter{Front matter} \input zapf\par} \stopfrontmatter \startbodymatter \dorecurse{5}{\chapter{Body matter} \input zapf\par} \stopbodymatter \stoptext 1. PDF bookmarks don’t contain Roman capital numerals (as I think they should). 2. \setupsectionblock[...][page=no] causes the last page in bodypart to have its header removed. 3. \chapter{\TeX} causes bookmarks from bodymatter to be located before bookmarks from frontmatter. I have tested this file against ConTeXt from TeX Live 2013 (2013.05.28 00:36), ConTeXt Suite stable (2014.01.03 00:40), and latest beta (2014.04.06 13:09). Except issue 3 and ConTeXt from TeX Live 2013, all three versions suffer from these issues. Could you fix these issues? Many thanks for your help, Pablo -- http://www.ousia.tk
On 4/6/2014 6:53 PM, Pablo Rodriguez wrote:
Hans,
the following sample shows three long-standing issues with ConTeXt (I’m afraid they might be bugs):
\definestructureconversionset[chapternumbers][0,I,a,n,g][n] \setupheads[sectionconversionset=chapternumbers] \setupsectionblock[bodypart][page=no] \setupheadertexts[chapter] \setupinteraction[state=start] \placebookmarks[chapter] \starttext \chapter{\TeX} \input knuth\par
\startfrontmatter \dorecurse{5}{\chapter{Front matter} \input zapf\par} \stopfrontmatter
\startbodymatter \dorecurse{5}{\chapter{Body matter} \input zapf\par} \stopbodymatter \stoptext
1. PDF bookmarks don’t contain Roman capital numerals (as I think they should).
be verbose : \definestructureconversionset[chapternumbers][0,Romannumerals,a,n,g][n]
2. \setupsectionblock[...][page=no] causes the last page in bodypart to have its header removed.
make sure not have a \page someplace (as the last setting applies till a page has been flushed)
3. \chapter{\TeX} causes bookmarks from bodymatter to be located before bookmarks from frontmatter.
wrap the first chapters in some sectionblock too ... i could do more extensive checking in bookmark construction but a messy structure is kind of asking for troubles
I have tested this file against ConTeXt from TeX Live 2013 (2013.05.28 00:36), ConTeXt Suite stable (2014.01.03 00:40), and latest beta (2014.04.06 13:09).
Except issue 3 and ConTeXt from TeX Live 2013, all three versions suffer from these issues.
Could you fix these issues?
Many thanks for your help,
Pablo
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 04/07/2014 01:23 PM, Hans Hagen wrote:
On 4/6/2014 6:53 PM, Pablo Rodriguez wrote:
[...]
Many thanks for your help, Hans.
2. \setupsectionblock[...][page=no] causes the last page in bodypart to have its header removed.
make sure not have a \page someplace (as the last setting applies till a page has been flushed)
Sorry, I’m afraid I don’t get it. There was no \page in my original code. I thought that replacing \chapter with \section would display the header in all pages (since \chapter introduces a page break), but it doesn’t. \setupsectionblock[bodypart][page=no] \setupheadertexts[section] \starttext \startbodymatter \dorecurse{50}{\section{Body matter} \input zapf\par} \stopbodymatter \stoptext Sorry, which would be the right way to fix the sample above? (And if that makes a difference, which would be the right way to fix it, if \section were replaced with \chapter.) Sorry for the questions, but I don’t have a clue on how to do it. Many thanks for your help, Pablo -- http://www.ousia.tk
Am 07.04.2014 um 18:34 schrieb Pablo Rodriguez
On 04/07/2014 01:23 PM, Hans Hagen wrote:
On 4/6/2014 6:53 PM, Pablo Rodriguez wrote:
[...]
Many thanks for your help, Hans.
2. \setupsectionblock[...][page=no] causes the last page in bodypart to have its header removed.
make sure not have a \page someplace (as the last setting applies till a page has been flushed)
Sorry, I’m afraid I don’t get it.
There was no \page in my original code. I thought that replacing \chapter with \section would display the header in all pages (since \chapter introduces a page break), but it doesn’t.
\setupsectionblock[bodypart][page=no] \setupheadertexts[section] \starttext
\startbodymatter \dorecurse{50}{\section{Body matter} \input zapf\par} \stopbodymatter \stoptext
Sorry, which would be the right way to fix the sample above? (And if that makes a difference, which would be the right way to fix it, if \section were replaced with \chapter.)
Sorry for the questions, but I don’t have a clue on how to do it.
Try this: \setupsectionblock[bodypart][page=no,after=\page] Wolfgang
On 04/07/2014 06:49 PM, Wolfgang Schuster wrote:
Am 07.04.2014 um 18:34 schrieb Pablo Rodriguez:
[...] \setupsectionblock[bodypart][page=no] \setupheadertexts[section] \starttext
\startbodymatter \dorecurse{50}{\section{Body matter} \input zapf\par} \stopbodymatter \stoptext
Sorry, which would be the right way to fix the sample above? (And if that makes a difference, which would be the right way to fix it, if \section were replaced with \chapter.)
Try this: \setupsectionblock[bodypart][page=no,after=\page]
Many thanks for your help, Wolfgang. It fixed the issue. Pablo -- http://www.ousia.tk
participants (3)
-
Hans Hagen
-
Pablo Rodriguez
-
Wolfgang Schuster