ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: A couple of questions on heads.
Date: Tue, 2 Jan 2007 20:20:31 -0500 (EST)	[thread overview]
Message-ID: <alpine.WNT.0.81.0701021955230.1764@nqvgln> (raw)
In-Reply-To: <e65d34bf0701021518o7c33bfc7gf7c2374950995c0@mail.gmail.com>

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

  reply	other threads:[~2007-01-03  1:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-02 23:18 Elliot Clifton
2007-01-03  1:20 ` Aditya Mahajan [this message]
2007-01-03 16:28 Elliot Clifton
2007-01-03 17:32 ` Aditya Mahajan
2007-01-03 21:09 Elliot Clifton

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=alpine.WNT.0.81.0701021955230.1764@nqvgln \
    --to=adityam@umich.edu \
    --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).