mirror of
https://github.com/moderncv/moderncv.git
synced 2026-02-06 10:05:19 +01:00
Added starred version of \section and \subsection
This commit is contained in:
parent
9a16b2a344
commit
fb2e17c876
2 changed files with 11 additions and 10 deletions
10
moderncv.cls
10
moderncv.cls
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue