I want to use sectioning in letters (section
, subsection
, etc), but here I read that basically all of these sectioning commands do not apply to letters. What is the proper way to create sections in letters?
Using: documentclass[stdletter]{newlfm}
Best Answer
Here's one possible solution, using the kernel command
\@startsection
(you chan find a description of this command in Where can I find help files or documentation for commands like \@startsection for LaTeX?) to redefine the\section
command (thenewlfm
class offers a very basic\section
command) and define the\subsection
command to behave as those fromarticle.cls
. Basically, all you have to do is to define the counters and use\@startsection
with appropriate settings. A simple example:The previous solution doen't make provissions for a ToC, but this is also really simple: all one has to do is to define
\tableofcontents
using\@starttoc
and define\l@section
,\l@subsection
to typeset the corresponding entries.