🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.tex-l
Article #112

centering titles with number in separate line?

#112
From: Christian Jost
Date: Mon, 24 Apr 1995 00:00
32 lines
1679 bytes
I want my titles centered with now numbering, which I can do with

\renewcommand{\thesection}{}
\renewcommand{\thesubsection}    { }
\renewcommand{\thesubsubsection} { }

\def\section{\@startsection{section}{1}{\z@}{-3.5ex plus-1ex minus
    -.2ex}{2.3ex plus.2ex}{\centering\reset@font\normalsize\bf\sc}}
\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus-1ex
    minus-.2ex}{1.5ex plus.2ex}{\centering\reset@font\normalsize\it}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
 -1ex minus-.2ex}{1.5ex plus.2ex}{\centering\reset@font\normalsize}}

(startsection is defined in latex.ltx).
But in the appendix I would like to have 'Appendix A' in the first line
and the title itself on the second line, all centered. Is it possible just
to modify the above command? Such like
 
\renewcommand{\appendix}{\par
  \setcounter{section}{0}%
  \setcounter{subsection}{0}%
  \renewcommand{\thesection}{Appendix \Alph{section}} }

which adds the numbering 'Appendix A', but on the same line as the title itself.
I tried inserting the \newline command, but that didn't work. Any other
(maybe TeX) command that could do this easily?

Thanks for any help, Christian.

-- 
Christian Jost, Paris, France
jost@psisun.u-psud.fr
Technical Details
Message-ID: <jost-2404951541150001@gollum.epc.u-psud.fr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 143ee4,3c349b32195eaa0d,start
X-Google-Attributes: gid143ee4,public
From: jost@psisun.u-psud.fr (Christian Jost)
Subject: centering titles with number in separate line?
Date: 1995/04/24
Message-ID: <jost-2404951541150001@gollum.epc.u-psud.fr>
X-Deja-AN: 101522148
organization: Universite Paris-Sud XI
newsgroups: bit.listserv.tex-l