🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #744

Help with \subsection definition

#744
From: Saturn
Date: Tue, 07 Apr 1992 03:44
78 lines
2987 bytes

The following is from ieeetr.sty

% The value of the counter secnumdepth gives the depth of the
% highest-level sectioning command that is to produce section numbers.
%
\setcounter{secnumdepth}{4}

\def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
    -.2ex}{2.3ex plus .2ex}{\Large\bf\centering}}
\def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
   -.2ex}{1.5ex plus .2ex}{\large\it}}
\def\realsubsubsection{\@startsection{subsubsection}{3}{\parindent}
         {3.25ex plus 1ex minus .2ex}{-1.5em}{\normalsize\it}}
\def\realparagraph{\@startsection
     {paragraph}{4}{\parindent}{3.25ex plus 1ex minus .2ex}
     {-1.5em}{\normalsize\it}}

\def\subsubsection#1{\realsubsubsection{#1:}}
\def\paragraph#1{\realparagraph{#1:}}

\def\thesection{\Roman{section}.}
\def\thesubsection{\rm\Alph{subsection}.}
\def\thesubsubsection{ {\rm\arabic{subsubsection})} }
\def\theparagraph{ {\rm\alph{paragraph})} }

% bye
--------------------------------------------------------------------



I want section to do what subsection does and subsection to do what
subsubsection does. I changed it to read


\setcounter{secnumdepth}{5}

\def\section{\@startsection {section}{1}{\z@}{3.5ex plus 1ex minus 
    -.2ex}{2.3ex plus .2ex}{\normalsize\it}}
\def\realsubsection{\@startsection{subsection}{2}{\parindent}
     {3.25ex plus 1ex minus .2ex}{-1.5em}{\normalsize\it}}
\def\realsubsubsection{\@startsection{subsubsection}{3}{\parindent}
         {3.25ex plus 1ex minus .2ex}{-1.5em}{\normalsize\it}}
\def\realparagraph{\@startsection
     {paragraph}{4}{\parindent}{3.25ex plus 1ex minus .2ex}
     {-1.5em}{\normalsize\it}}
\def\realsubparagraph{\@startsection
	{subparagraph}{5}{\parindent}{3.25ex plus 1ex minus .2ex}
	{-1.5em}{\normalsize}}


\def\subsection#1{\realsubsection{#1:}}
\def\subsubsection#1{\realsubsubsection{#1:}}
\def\paragraph#1{\realparagraph{#1:}}
..... (the rest of the stuff)
.....
.....


\subsection is supposed to do

	1) Subsection title:   Text begins here.

	It does this properly but does not italisize the heading.  If I 
change  the  {-1.5em} to {-1.5ex}, it works just fine.   This problem was
not there initially, but pop up suddenly.  It is badly hampering my thesis
writing.  Can somebody help me.  Please email responses ASAP. 


Thanks in advance.


------------------------------------------------------------------------------
"I don't repeat the same mistakes again,
	I only work on new ones!"

*Sudhakaran Ram*
Technical Details
Message-ID: <1992Apr6.214423.54257@cc.usu.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!cc.usu.edu!pluto.ee.usu.edu!sl0k3

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!cc.usu.edu!pluto.ee.usu.edu!sl0k3
From: sl0k3@pluto.ee.usu.edu (Saturn)
Newsgroups: comp.text.tex
Subject: Help with \subsection definition
Message-ID: <1992Apr6.214423.54257@cc.usu.edu>
Date: 7 Apr 92 03:44:22 GMT
Article-I.D.: cc.1992Apr6.214423.54257
Organization: Utah State University
Lines: 78
Nntp-Posting-Host: pluto.ee.usu.edu