PDF-Toc text is wrong for new \start… commands
Hi all, I just converted my thesis from the old \chapter format to the new \startchapter … commands, to be more flexible when defining the titles for toc etc. If you're just giving a title, e.g. \startsection[ title={my fancy section} ] bla \stopsection then the title is correctly displayed within the document. Nevertheless, it ends up enclosed in curly braces in the PDF-Toc. My current workaround, if I put a comma after the title \startsection[ title={my fancy section}, ] it looks fine. Guess this is bug, not expected behavior. Cheers, Steffen
A similar problem occurs, when using references:
\startsection[
title={my fancy section},
]
\startsubsection[title={first subsection}]
\in{see}[secsub]
\stopsubsection
\startsubsection[
title={second subsection},
reference=secsub
]
foo
\stopsubsection
\stopsection
the \in reference does not work, as long as you don't declare the reference as
\startsubsection[
title={second subsection},
reference=secsub,
]
Since other context commands don't work that way, I guess something is wrong …
Steffen
Am 16.07.2013 um 10:10 schrieb Steffen Kram
Hi all,
I just converted my thesis from the old \chapter format to the new \startchapter … commands, to be more flexible when defining the titles for toc etc. If you're just giving a title, e.g.
\startsection[ title={my fancy section} ] bla \stopsection
then the title is correctly displayed within the document. Nevertheless, it ends up enclosed in curly braces in the PDF-Toc. My current workaround, if I put a comma after the title
\startsection[ title={my fancy section}, ]
it looks fine. Guess this is bug, not expected behavior.
Cheers, Steffen ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On 2013–07–16 Steffen Kram wrote:
A similar problem occurs, when using references:
It might be a parser issue. ConTeXt uses different parsers for different commands. Most commands happily accept values without trailing comma. The commands using a different parser require a trailing comma. I recall this applied to \definepalet, \usepath and a few others. The issue occasionally pops up on the mailing list, since it's inconsistent and non-intuitive behaviour. http://www.ntg.nl/pipermail/ntg-context/2012/067585.html https://gist.github.com/phi-gamma/2941284#file-features-wiki-L258 Personally I don't use that syntax any more. It doesn't work reliably and fails occasionally with particular commands. Marco
There’s a similar quirk in the title and author attributes of \setupinteraction. I’ve just got myself into a habit of always having a trailing comma in […,…] lists, and haven’t had any problems with that so far. Gareth
On Tue, Jul 16, 2013 at 10:10 AM, Steffen Kram
Hi all,
I just converted my thesis from the old \chapter format to the new \startchapter … commands, to be more flexible when defining the titles for toc etc. If you're just giving a title, e.g.
\startsection[ title={my fancy section} ] bla \stopsection
then the title is correctly displayed within the document. Nevertheless, it ends up enclosed in curly braces in the PDF-Toc. My current workaround, if I put a comma after the title
\startsection[ title={my fancy section}, ]
it looks fine. Guess this is bug, not expected behavior.
\starttext \startsection[ title={my fancy section} ] bla \stopsection then the title is correctly displayed within the document. Nevertheless, it ends up enclosed in curly braces in the PDF-Toc. My current workaround, if I put a comma after the title \startsection[ title={my fancy section}, ] foo \stopsection \stoptext is ok here $ context --version mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /opt/luatex/standalone-mkiv-new/tex/texmf-context/tex/context/base/context.mkiv mtx-context | current version: 2013.07.12 19:10 -- luigi
participants (4)
-
Gareth Jones
-
luigi scarso
-
Marco Patzer
-
Steffen Kram