From: jbf <roma83537@gmail.com>
To: Duncan Hothersall <dh@capdm.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Adding a line after the TOC
Date: Wed, 9 Oct 2024 07:10:21 +1100 [thread overview]
Message-ID: <6e77aa2e-e173-4f96-9b4f-fb45fb9a73d7@gmail.com> (raw)
In-Reply-To: <CAN8fp9U4+aeoxPhVLqv+-8+=VfRnq+yKEQ_CYsGAjJkwABo+fg@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3634 bytes --]
What I have just tried might be rather ugly and unorthodox, but it
achieves what I want. As you can see from below, after the final chapter
I simply created a 'subject' without giving it a title as such. I
realised I needed the [location=here] to place it below the last item in
the TOC.
So I have what I want, in the end, but am I missing something that is
obvious to others but not to me when you say 'Is there something
stopping you just outputting the line of text after the TOC?' Since the
TOC is created automatically from heads like chapter, section etc., I
don't know (other than the solution I came up with below) how to 'just
output a line of text after the TOC'. I suppose I was imagining a
\writeafterlist command or something like that🙂
Thanks for you help Duncan, since at least it made me look to the end of
the document rather than the beginning of it, as I had been doing.
Julian .....
\stopchapter
\startsubject[title={}]
\writebetweenlist[section][location=here]{\blank[2*big] Note: All
translations throughout the book are my own.}
\stopsubject
\stopbodymatter
\stopdocument
On 8/10/24 21:07, Duncan Hothersall wrote:
> You need to write to a list at the end of your document if you want
> what you are writing to appear at the end of the list.
>
> Is there something stopping you just outputting the line of text after
> the TOC? Do you need it to appear as if it was part of the TOC?
>
> Duncan
>
> On Tue, 8 Oct 2024 at 10:25, jbf <roma83537@gmail.com> wrote:
>
> I am struggling with something that might be simple enough, but...
>
> The author is insisting that on the TOC page, after all the
> chapters and their page numbers, I need to add the line (obviously
> without any page number associated with it): 'All translations are
> by the author'.
>
> I have trie various combinations of \writetolist and
> \writebetweenlist, and I can get his comment at the beginning of
> the TOC, but I cannot get it at the end, and perhaps with some
> vertical space separation from the main list. How can I place it
> at the end?
>
> Here is my simple MWE where at least I can get it at the beginning:
>
> \starttochead[title={Contents}]
>
> \setcounter [userpage] [7]
>
> \setupheader[state=stop]
>
> \placecombinedlist[content]
>
> \writebetweenlist[chapter]{All translations are by the author!}
>
> \stoptochead
>
> Julian
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an
> entry to the Wiki!
>
> maillist : ntg-context@ntg.nl /
> 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 :ntg-context@ntg.nl /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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 7862 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-10-08 20:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-08 9:18 [NTG-context] " jbf
2024-10-08 10:07 ` [NTG-context] " Duncan Hothersall
2024-10-08 20:10 ` jbf [this message]
2024-10-08 20:22 ` Duncan Hothersall
2024-10-08 20:29 ` jbf
2024-10-08 20:42 ` Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6e77aa2e-e173-4f96-9b4f-fb45fb9a73d7@gmail.com \
--to=roma83537@gmail.com \
--cc=dh@capdm.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).