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

\subsubsubsection in LaTeX

3,361 views
Skip to first unread message

Douglas C. Schmidt

unread,
Sep 9, 1991, 8:50:39 PM9/9/91
to

Hi,

I'm curious whether anyone has a hack to add integrated
support for some feature akin to a \subsubsubsection section specifier
in LaTeX? I know that the LaTeX manual says that \subsubsection is
the highest level of sectioning officially supported, (and I also know
that good style dictates not having zillions of subsubsubsections,
etc.). I'm stuck integrating a previous existing LaTeX document into
a larger document (grant proposal stuff, you know), and it would be
really nice if I could get that extra level of sectioning!

If there is no good way to do this, does anyone know a good
workaround?!

Thanks,

doug
--
His life was gentle, and the elements so | Douglas C. Schmidt
Mixed in him that nature might stand up | (sch...@ics.uci.edu)
And say to all the world: "This was a man." | (714) 856-4101
-- In loving memory of Terry Williams (1971-1991)|

Rainer Schoepf

unread,
Sep 10, 1991, 4:15:31 AM9/10/91
to
In article <28CC16...@ics.uci.edu> sch...@bastille.ics.uci.edu (Douglas C. Schmidt) writes:

I'm curious whether anyone has a hack to add integrated
support for some feature akin to a \subsubsubsection section specifier
in LaTeX? I know that the LaTeX manual says that \subsubsection is
the highest level of sectioning officially supported, (and I also know
that good style dictates not having zillions of subsubsubsections,
etc.). I'm stuck integrating a previous existing LaTeX document into
a larger document (grant proposal stuff, you know), and it would be
really nice if I could get that extra level of sectioning!

Look into art??.doc (or art??.sty) where the sectioning commands are
defined. Write a small style option file that contains exactly one
definition for \subsubsubsection. How to do that is explained in the
.doc file.

--

Rainer Schoepf
Konrad-Zuse-Zentrum ,,Ich mag es nicht, wenn
fuer Informationstechnik Berlin sich die Dinge so frueh
Heilbronner Strasse 10 am Morgen schon so
D-1000 Berlin 31 dynamisch entwickeln!''
Federal Republic of Germany
<Sch...@sc.ZIB-Berlin.dbp.de> or <Sch...@sc.ZIB-Berlin.de>

Fernando M Branco

unread,
Sep 10, 1991, 10:46:49 AM9/10/91
to


Aren't there lower sectioning commands (such as \paragraph) ?

******************************************************************************
* *
* Fernando Ribeiro Branco *
* ======================= *
* Massachusetts Department of Technology Department of Economics *
* 50 Memorial Drive E52-300 *
* Cambridge, MA 02139 Ph: (617) 253-3592 *
* United States of America e-mail: fbr...@athena.mit.edu *
* *
******************************************************************************

Anita Marie Hoover

unread,
Sep 10, 1991, 2:25:24 PM9/10/91
to
In article <28CC16...@ics.uci.edu> sch...@ics.uci.edu (Douglas C. Schmidt) writes:
=>
=>Hi,
=>
=> I'm curious whether anyone has a hack to add integrated
=>support for some feature akin to a \subsubsubsection section specifier
=>in LaTeX? I know that the LaTeX manual says that \subsubsection is
=>the highest level of sectioning officially supported, (and I also know
=>that good style dictates not having zillions of subsubsubsections,
=>etc.). I'm stuck integrating a previous existing LaTeX document into
=>a larger document (grant proposal stuff, you know), and it would be
=>really nice if I could get that extra level of sectioning!
=>
=> If there is no good way to do this, does anyone know a good
=>workaround?!

There are other sectioning commands liek \paragraph and \subparagraph.
You can get these to number by setting the secnumdepth counter to be
more.

\documentstyle {report}
\setcounter{secnumdepth}{5}
\begin{document}
\chapter{First Chapter}
\section{Section One}
The text that follows.
\subsection{Subsection One}
The text that follows.
\subsubsection{Subsubsection One}
The text that follows.
\paragraph{Paragraph One}
The text that follows.
\end{document}

This produces numbering like

{\bf Chapter 1
First Chapter}

{\bf 1.1 Section One}

The text that follows.

{\bf 1.1.1 Subsection One}

The text that follows.

{\bf 1.1.1.1 Subsubsection One}

The text that follows.

{\bf 1.1.1.1.1 Paragraph One} The text that follows.


If you want \paragraph to be like \subsubsection, just copy the
\@startsection definition. Since you don't say which style you
were using, here is for the report style at 10pt.

\makeatletter
\def\paragraph{\@startsection{paragraph}{4}{\z@}{-3.25ex plus
-1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\bf}}
\makeatother

Water Reed

unread,
Sep 10, 1991, 9:17:18 PM9/10/91
to
In article <17...@chopin.udel.edu> an...@chopin.udel.edu (Anita Marie Hoover) writes:
>This produces numbering like
>
>{\bf Chapter 1
>First Chapter}
>
>{\bf 1.1 Section One}
^ <-- How would you insert a period here ?
So that it becomes {\bf 1.1. Section One}

>
>The text that follows.
>
>{\bf 1.1.1 Subsection One}
^ <--- And Hd here ?
And becomes {\bf 1.1.1. Subsection One}

>
>The text that follows.
>
>{\bf 1.1.1.1 Subsubsection One}
^ and here ?
and he to becom {\bf 1.1.1.1. Subsubsection One}


Thomas Liew
tom...@rpi.edu

Anita Marie Hoover

unread,
Sep 11, 1991, 9:07:00 AM9/11/91
to
In article <9pf...@rpi.edu> li...@aix.rpi.edu (Water Reed) writes:
=>In article <17...@chopin.udel.edu> an...@chopin.udel.edu (Anita Marie Hoover) writes:
=>>This produces numbering like
=>>
=>>{\bf Chapter 1
=>>First Chapter}
=>>
=>>{\bf 1.1 Section One}
=> ^ <-- How would you insert a period here ?
=> So that it becomes {\bf 1.1. Section One}
=>>
=>>The text that follows.
=>>
=>>{\bf 1.1.1 Subsection One}
=> ^ <--- And Hd here ?
=> And becomes {\bf 1.1.1. Subsection One}
=>>
=>>The text that follows.
=>>
=>>{\bf 1.1.1.1 Subsubsection One}
=> ^ and here ?
=> and he to becom {\bf 1.1.1.1. Subsubsection One}
=>

In the corresponding style file -- In this case I will use report.sty
since you have not specified -- definitions for each counter. Since
each counter is defined in terms of the previous counter, you need to
make sure that you remove excess periods.

Old definitions:

% Produces 1.1
\def\thesection {\thechapter.\arabic{section}}
% Produces 1.1.1
\def\thesubsection {\thesection.\arabic{subsection}}
% Produces 1.1.1.1
\def\thesubsubsection {\thesubsection .\arabic{subsubsection}}
% Produces 1.1.1.1.1
\def\theparagraph {\thesubsubsection.\arabic{paragraph}}

New definitions:

% Produces 1.1.
\def\thesection {\thechapter.\arabic{section}.}
% Produces 1.1.1.
\def\thesubsection {\thesection\arabic{subsection}.}
% Produces 1.1.1.1.
\def\thesubsubsection {\thesubsection\arabic{subsubsection}.}
% Produces 1.1.1.1.1.
\def\theparagraph {\thesubsubsection\arabic{paragraph}.}

ha...@ducvax.auburn.edu

unread,
Sep 11, 1991, 4:14:02 PM9/11/91
to
> [deleted lines]

>
> New definitions:
>
> % Produces 1.1.
> \def\thesection {\thechapter.\arabic{section}.}
> % Produces 1.1.1.
> [deleted lines]
-------------------------------------------

This may not be a completely satisfactory solution, since \thesection also
produces the number for \ref. This means that the extra period will also show
in a \ref, which is probably not desired.

Another possible solution is to go after \@startsection in latex.tex. This
will lead to the defintion of \sect, which has code to print the name and
number of any section. This code could be copied and modified at the top of
your input file. I haven't done this, but if the original poster needs
additional info, send e-mail to me.
--darrel hankerson ha...@ducvax.auburn.edu

Thomas Liew

unread,
Sep 11, 1991, 11:21:54 PM9/11/91
to

Darrel is certainly correct. I did not mention that I tried
what anita suggested before putting up the post. Since then we
have found a solution in the latex.tex \@sect definition as Darrel
suggest.

***** from harriet...@mts.rpi.edu ****
If you copy the following lines to your preamble (between the
\documentstyle command and the \begin{document} command)
you should get numbers for section,
subsection and subsection that look like: 1. 1.1. 1.1.1.
These lines are copied out of the file latex.tex, where latex's
macros are defined. (The macro \@sect is used in the \startsection
macro.) The only thing I changed was to add a "." in the 4th line.
---------------------- cut here ------------------------------
\makeatletter
\def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
\def\@svsec{}\else
\refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname .\hskip 1em }\fi
\@tempskipa #5\relax
\ifdim \@tempskipa>\z@
\begingroup #6\relax
\@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}
\endgroup
\csname #1mark\endcsname{#7}\addcontentsline
{toc}{#1}{\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname the#1\endcsname}\fi
#7}\else
\def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname
{#7}\addcontentsline
{toc}{#1}{\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname the#1\endcsname}\fi
#7}}\fi
\@xsect{#5}}
\makeatother
------------------------------------------------------------------
This solution is attibuted to harriet...@mts.rpi.edu

tom...@rpi.edu or
li...@rpi.edu

Anita Marie Hoover

unread,
Sep 12, 1991, 10:04:20 AM9/12/91
to
In article <=tgn...@rpi.edu> tom...@aix.rpi.edu (Thomas Liew) writes:
=>In article <1991Sep11....@ducvax.auburn.edu> ha...@ducvax.auburn.edu writes:
=>>In article <17...@chopin.udel.edu>, an...@chopin.udel.edu (Anita Marie Hoover) writes:
=>>> New definitions:
=>>>
=>>> % Produces 1.1.
=>>> \def\thesection {\thechapter.\arabic{section}.}
=>>> % Produces 1.1.1.
=>>> [deleted lines]
=>>-------------------------------------------
=>> [deleted lines]
=>>--darrel hankerson ha...@ducvax.auburn.edu
=>
=>Darrel is certainly correct. I did not mention that I tried
=>what anita suggested before putting up the post.

Why did not? This certainly would have determined how I would
have answered the question. In the future take the time to specify as
much detail as possible. You could have provided an example of the file
you used and got the wrong results. Then we would have know a lot
more information.

=>Since then we
=>have found a solution in the latex.tex \@sect definition as Darrel
=>suggest.
=> [deleted lines]
=>This solution is attibuted to harriet...@mts.rpi.edu
=>

Mats G L|fdahl

unread,
Sep 11, 1991, 10:47:18 AM9/11/91
to

Douglas C. Schmidt wrote:

I'm curious whether anyone has a hack to add integrated
support for some feature akin to a \subsubsubsection section specifier
in LaTeX? I know that the LaTeX manual says that \subsubsection is
the highest level of sectioning officially supported, (and I also know
that good style dictates not having zillions of subsubsubsections,
etc.). I'm stuck integrating a previous existing LaTeX document into
a larger document (grant proposal stuff, you know), and it would be
really nice if I could get that extra level of sectioning!

If you are integrating lots of documents that are written for the
article style, you should probably use the book or report styles. Then
you can use \chapter as an extra level *upwards*. Then you won't need
to change every \section to \subsection, \subsection to
\subsubsection, etc.

This won't help you, of course, if any of the documents you are
integrating actually uses \chapter...
--
-----------------------------------------------------------------------------
Mats Lofdahl, Stockholm Observatory, S-133 36 Saltsjobaden | +46 - 8 16 44 75
-----------------------------------------------------------------------------
Internet: lof...@astro.su.se | Bitnet: grodan@sekth | Sunet: royacs::lofdahl
-----------------------------------------------------------------------------

0 new messages