From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Michael Urban via ntg-context <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
Michael Urban <urban.m@ca.rr.com>
Subject: Re: Get Current Section Number
Date: Sun, 9 Jan 2022 19:40:55 +0100 [thread overview]
Message-ID: <9bffbfa4-3cd7-5bef-2730-758e486f8445@gmail.com> (raw)
In-Reply-To: <0CBF031A-ECD8-4131-86EE-F77FAEF0E9D9@ca.rr.com>
Michael Urban via ntg-context schrieb am 09.01.2022 um 17:25:
> I want to put a book title above the Chapter title for the first chapter of a book. I suppose that this can be accomplished with a 'before=' clause that checks to see if it is the first chapter... but how do I look at the chapter number in order to set up the conditional?
Can you show a example of your document, maybe there is a better way to
produce the desired result.
\startsetups [document:start]
\startalignment[middle]
{\ssd\documentparameter{title}}
\stopalignment
\stopsetups
\setuphead [chapter] [page=no]
\startdocument [title={Dummy title}]
\dorecurse{5}
{\startchapter[title={Chapter \convertnumber{word}{#1}}]
\samplefile{lorem}
\stopchapter}
\stopdocument
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2022-01-09 18:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-09 16:25 Michael Urban via ntg-context
2022-01-09 18:15 ` Pablo Rodriguez via ntg-context
2022-01-09 18:40 ` Wolfgang Schuster via ntg-context [this message]
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=9bffbfa4-3cd7-5bef-2730-758e486f8445@gmail.com \
--to=ntg-context@ntg.nl \
--cc=urban.m@ca.rr.com \
--cc=wolfgang.schuster.lists@gmail.com \
/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).