add _extensions
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
$if(title)$
|
||||
\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
|
||||
$endif$
|
||||
$if(subtitle)$
|
||||
\usepackage{etoolbox}
|
||||
\makeatletter
|
||||
\providecommand{\subtitle}[1]{% add subtitle to \maketitle
|
||||
\apptocmd{\@title}{\par {\large\sffamily\bfseries #1 \par}}{}{}
|
||||
}
|
||||
\makeatother
|
||||
\subtitle{$subtitle$}
|
||||
$endif$
|
||||
$-- This supports Quarto's authors normalization
|
||||
\author{$for(authors)$\footnotesize $it.name.literal$$sep$ \and $endfor$}
|
||||
\date{$date$}
|
||||
$if(isSM)$
|
||||
\let\oldsection\section
|
||||
\renewcommand{\section}{\clearpage\oldsection}
|
||||
$if(newpagesubsection)$
|
||||
\let\oldsubsection\subsection
|
||||
\renewcommand{\subsection}{\clearpage\oldsubsection}
|
||||
$endif$
|
||||
\renewcommand{\thetable}{S\arabic{table}}
|
||||
\renewcommand{\thefigure}{S\arabic{figure}}
|
||||
\renewcommand{\theequation}{S\arabic{equation}}
|
||||
\renewcommand{\figurename}{Figure}
|
||||
\renewcommand{\tablename}{Table}
|
||||
\usepackage{titlesec}
|
||||
\newcommand{\sectionbreak}{\clearpage}
|
||||
$endif$
|
||||
$if(isRN)$
|
||||
\renewcommand{\thetable}{R\arabic{table}}
|
||||
\renewcommand{\thefigure}{R\arabic{figure}}
|
||||
\renewcommand{\theequation}{R\arabic{equation}}
|
||||
\renewcommand{\figurename}{Figure}
|
||||
\renewcommand{\tablename}{Table}
|
||||
\usepackage{titlesec}
|
||||
\newcommand{\sectionbreak}{\clearpage}
|
||||
$endif$
|
||||
$if(endfloat)$
|
||||
\usepackage{endfloat}
|
||||
\renewcommand{\efloatseparator}{\vspace{\floatsep}}
|
||||
\DeclareDelayedFloatFlavor{sidewaystable}{table}
|
||||
\DeclareDelayedFloatFlavor{sidewaysfigure}{figure}
|
||||
\DeclareDelayedFloatFlavor{landscape}{table}
|
||||
|
||||
\let\normallongtable=\longtable
|
||||
\renewcommand{\longtable}{\clearpage\normallongtable}
|
||||
|
||||
\DeclareDelayedFloatFlavour*{longtable}{table}
|
||||
|
||||
$endif$
|
||||
$if(linenumber)$
|
||||
\linenumbers
|
||||
$endif$
|
||||
$if(doublespacing)$
|
||||
\doublespacing
|
||||
$endif$
|
||||
Reference in New Issue
Block a user