add _extensions

This commit is contained in:
2026-05-21 13:37:53 +08:00
parent 6a9a5fc90e
commit 61bd0bea2f
252 changed files with 33972 additions and 1 deletions
@@ -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$