Skip to content

Commit

Permalink
feat(class): add \subtitle command
Browse files Browse the repository at this point in the history
For compatibility with LNCS style
  • Loading branch information
yamadharma committed Mar 19, 2021
1 parent c6fb0f4 commit 31788c5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions doc/latex/ceurart/sample/sample-1col.tex
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ \subsection{Title variants}
\begin{minted}{latex}
\title[mode=sub]{This is a sub title}
\end{minted}
You can just use \mintinline{latex}{\subtitle} command, as follows:
\begin{minted}{latex}
\subtitle{This is a sub title}
\end{minted}

\item \verb|trans|: Translated title.
\begin{minted}{latex}
Expand Down
4 changes: 4 additions & 0 deletions doc/latex/ceurart/sample/sample-2col.tex
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ \subsection{Title variants}
\begin{minted}{latex}
\title[mode=sub]{This is a sub title}
\end{minted}
You can just use \mintinline{latex}{\subtitle} command, as follows:
\begin{minted}{latex}
\subtitle{This is a sub title}
\end{minted}

\item \verb|trans|: Translated title.
\begin{minted}{latex}
Expand Down
6 changes: 4 additions & 2 deletions tex/latex/ceurart/ceurart.cls
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
%

\def\RCSfile{ceurart}%
\def\RCSversion{0.4.0}%
\def\RCSdate{2021/03/18}%
\def\RCSversion{0.4.3}%
\def\RCSdate{2021/03/19}%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{\RCSfile}[\RCSdate, \RCSversion: Typesetting articles for CEUR Workshop Proceedings (CEUR-WS.org)]

Expand Down Expand Up @@ -470,6 +470,8 @@

\renewcommand \@title { \seq_use:Nn \g_ceur_title_seq { } }

\renewcommand{\subtitle}[1]{\title[mode=sub]{#1}}

\NewDocumentCommand \wrAun { m } % unexpanded write to aux
{ \iow_now:Nn \@auxout { #1 } }
\NewDocumentCommand \wrAux { m } % expanded write to aux
Expand Down

0 comments on commit 31788c5

Please sign in to comment.