Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need Roman numerals for sections, letters for subsections (LaTeX)

3,395 views
Skip to first unread message

Richard Stanton

unread,
Dec 13, 1996, 3:00:00 AM12/13/96
to

A journal requires that sections and subsections look like this:

II. Section 2

A. First subsection

In addition, I use \ref{sectionlabel} in the text to refer to sections
by number. These also need to appear as Roman numerals.

How do I get LaTeX(2e) to do all this (using the "article" document
class)? (I'd like not only to change the numerical style, but also add
the "." after the number in the header, but NOT in textual references
to the section).

Thanks for any suggestions.

Richard Stanton

Robin Fairbairns

unread,
Dec 14, 1996, 3:00:00 AM12/14/96
to

In article <stantonk9...@haas.berkeley.edu>,

Doing what you ask is pretty trivial:

\renewcommand\thesection{\Roman{section}}
\renewcommand\thesubsection{\Alph{subsection}}
\renewcommand\@seccntformat[1]{\csname the#1\endcsname.}

This will make all the things you ask for work but:

-- subsubsections will come out as A.1. (for example), which may not
be what you want/like (or you may not care)
-- references to subsections won't give any context; I would be
inclined to add to the above:

\renewcommand\p@subsection{\thesection--}

or something like that.

The code I've written needs to be in a package file, or within
\makeatletter ... \makeatother, since it refers to LaTeX internal
names.
--
Robin (Campaign for Real Radio 3) Fairbairns r...@cl.cam.ac.uk
U of Cambridge Computer Lab, Pembroke St, Cambridge CB2 3QG, UK
Home page: http://www.cl.cam.ac.uk/users/rf/robin.html

0 new messages