[NTG-context] A couple of questions on heads.

Aditya Mahajan adityam at umich.edu
Wed Jan 3 02:20:31 CET 2007


On Tue, 2 Jan 2007, Elliot Clifton wrote:

> I'm typesetting a journal. I use \chapter to divide it into articles.
> I've defined my own heads, and I need to redefine \appendix, however
> despite reading the manual I cant get them behave as I want.
>
> Problems:
> 
> 1. Each article may have appendices. I've tried defining my own
> 'appendix' head to replace the default one, but I can't decide which
> to use, should I derive from chapter or section? The problem with
> using section as the base, is that the count from my previous sections
> is inherited.  I don't want numbers of the form 1.1, 1.2, etc, either.
> I want to number my appendices independently, starting from 1 without
> the chapter  number. Also, I would like to use roman numerals.

You can separate the appendices by a section block. For example

% appendix is already a section block. By default, a section
% block starts a new page, you may not want that in a journal
\setupsectionblock[appendix][page=]


% Change the conversion for sections in appendices.
\setupsection
   [section-3]
   [appendixconversion=Romannumerals]


\starttext

\section{Test}

\startappendices
\section{An Appendix}
\stopappendices

\stoptext


> 2. I derived \Author from \section with expectation that
> \setupheadertexts[Papertitle][Author] would yield a header containing
> the author's name and the paper's title, however I get the title of
> the most recent section instead of the author. What can I do about
> this?

You need not redrive \Author from section. You can use use totally 
different markings, as shown below.


% Define your own marking.

\definemarking[Papertitle]
\definemarking[Author]

% Set that marking.

\marking[Papertitle]{This is a \CONTEXT\ example}
\marking[Author]{Aditya Mahajan}

% Allow ConTeXt to do the rest :-)

\setupheadertexts[Papertitle][Author]

\starttext test \stoptext

HTH,

Aditya


More information about the ntg-context mailing list