* \title with extra content in toc
@ 2020-08-11 23:51 jbf
2020-08-12 3:23 ` Aditya Mahajan
0 siblings, 1 reply; 4+ messages in thread
From: jbf @ 2020-08-11 23:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \title with extra content in toc
2020-08-11 23:51 \title with extra content in toc jbf
@ 2020-08-12 3:23 ` Aditya Mahajan
2020-08-12 3:46 ` jbf
0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2020-08-12 3:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 905 bytes --]
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
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \title with extra content in toc
2020-08-12 3:23 ` Aditya Mahajan
@ 2020-08-12 3:46 ` jbf
2020-08-12 5:41 ` Mikael Sundqvist
0 siblings, 1 reply; 4+ messages in thread
From: jbf @ 2020-08-12 3:46 UTC (permalink / raw)
To: Aditya Mahajan; +Cc: ntg >> mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \title with extra content in toc
2020-08-12 3:46 ` jbf
@ 2020-08-12 5:41 ` Mikael Sundqvist
0 siblings, 0 replies; 4+ messages in thread
From: Mikael Sundqvist @ 2020-08-12 5:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1077 bytes --]
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 <roma83537@gmail.com> skrev:
> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2231 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-08-12 5:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11 23:51 \title with extra content in toc jbf
2020-08-12 3:23 ` Aditya Mahajan
2020-08-12 3:46 ` jbf
2020-08-12 5:41 ` Mikael Sundqvist
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).