Added starred version of \section and \subsection

This commit is contained in:
Xavier Danaux 2012-01-15 01:28:26 +01:00
commit fb2e17c876
2 changed files with 11 additions and 10 deletions

View file

@ -253,17 +253,13 @@
% usage: \section{<title>}
\newcommand*{\section}[1]{}
% starred variant, which is identical but defined to allow its use (e.g. for natbib compatibility, who uses \section*{} for the bibliography header)
\AtEndPreamble{%
\@ifpackageloaded{natbib}
{
\RequirePackage{suffix}
\WithSuffix\newcommand\section*{\section}
}{}
}
\RequirePackage{suffix}
\AtBeginDocument{\WithSuffix\newcommand\section*{\section}}
% makes a cv subsection
% usage: \subsection{title}
\newcommand*{\subsection}[1]{}
\AtBeginDocument{\WithSuffix\newcommand\subsection*{\subsection}}
% makes a cv line with a header and a corresponding text
% usage: \cvitem[spacing]{header}{text}