\title with extra content in toc
Still dealing with \title, but am creating a separate thread because the question is different. As well as using \title within frontmatter (my previous question was about the header not appearing on final page if it is an odd/recto page) I am also using it in the main body for 'chapters' that I don't want numbered, and of course, have ensured that such \title items can appear in the TOC. But I want to add a one-word comment in brackets to the title that appears in the TOC, so that I get: Chapter title (comment).......... 5 or whatever the page number is. Is there are way I can add extra content to an item that appears in the TOC? In this case it would be the same comment in each instance, but my question assumes that there could also be a need for different comments, none of which appear in the 'chapter' title in the main body. Am using MkIV BTW, Julian
On Wed, 12 Aug 2020, jbf wrote:
Still dealing with \title, but am creating a separate thread because the question is different.
As well as using \title within frontmatter (my previous question was about the header not appearing on final page if it is an odd/recto page) I am also using it in the main body for 'chapters' that I don't want numbered, and of course, have ensured that such \title items can appear in the TOC. But I want to add a one-word comment in brackets to the title that appears in the TOC, so that I get:
Chapter title (comment).......... 5 or whatever the page number is.
Is there are way I can add extra content to an item that appears in the TOC?
\startchapter [ title={Title of chapter}, list={What appears in TOC}, bookmark={What appears in bookmarks}, ] .... \stopchapter Aditya
That is clear enough and works (of course!) and reminds me that I'm better off using the \starttitle...\stoptitle format than just \title as I have been. J On 12/8/20 1:23 pm, Aditya Mahajan wrote:
[ title={Title of chapter}, list={What appears in TOC}, bookmark={What appears in bookmarks}, ]
I do not recommend against the start/stop variant, but in this case I think
you can also do
\chapter[title=..., list=..., bookmark=...]
/Mikael
Den ons 12 aug. 2020 05:46jbf
That is clear enough and works (of course!) and reminds me that I'm better off using the \starttitle...\stoptitle format than just \title as I have been.
J
On 12/8/20 1:23 pm, Aditya Mahajan wrote:
[ title={Title of chapter}, list={What appears in TOC}, bookmark={What appears in bookmarks}, ]
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
participants (3)
-
Aditya Mahajan
-
jbf
-
Mikael Sundqvist