add _extensions
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
$-- Implements the frontmatter, title page, and abstract.
|
||||
|
||||
% for some reason this does not work in header
|
||||
\renewcommand{\abstractname}{Abstract.}
|
||||
|
||||
% add the short title to the fancy header
|
||||
$if(shorttitle)$
|
||||
\fancyhead[R]{$shorttitle$}
|
||||
$endif$
|
||||
$if(shortauthors)$
|
||||
\fancyhead[L]{$shortauthors$}
|
||||
$endif$
|
||||
|
||||
$if(has-frontmatter)$
|
||||
\frontmatter
|
||||
$endif$
|
||||
$if(title)$
|
||||
\maketitle
|
||||
%\noindent \rule{\linewidth}{.5pt}
|
||||
$if(abstract)$
|
||||
\begin{abstract}
|
||||
$abstract$
|
||||
\end{abstract}
|
||||
$if(keywords)$
|
||||
\begin{keywords}
|
||||
\def\sep{;\ }
|
||||
$for(keywords/allbutlast)$$keywords$\sep $endfor$
|
||||
$for(keywords/last)$$keywords$$endfor$
|
||||
\end{keywords}
|
||||
$endif$
|
||||
$endif$
|
||||
%\noindent \rule{\linewidth}{.5pt}
|
||||
$endif$
|
||||
|
||||
|
||||
@@ -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