LaTeX template: Reindent
Use two spaces to be consistent internally and with other templates.
This commit is contained in:
parent
3160836983
commit
6a71997fcb
1 changed files with 71 additions and 46 deletions
|
@ -2,14 +2,40 @@
|
||||||
\PassOptionsToPackage{hyphens}{url}
|
\PassOptionsToPackage{hyphens}{url}
|
||||||
$if(colorlinks)$
|
$if(colorlinks)$
|
||||||
\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
|
\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
|
||||||
$endif$$if(dir)$$if(latex-dir-rtl)$
|
$endif$
|
||||||
|
$if(dir)$
|
||||||
|
$if(latex-dir-rtl)$
|
||||||
\PassOptionsToPackage{RTLdocument}{bidi}
|
\PassOptionsToPackage{RTLdocument}{bidi}
|
||||||
$endif$$endif$%
|
$endif$
|
||||||
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
|
$endif$
|
||||||
|
%
|
||||||
|
\documentclass[
|
||||||
|
$if(fontsize)$
|
||||||
|
$fontsize$,
|
||||||
|
$endif$
|
||||||
|
$if(lang)$
|
||||||
|
$babel-lang$,
|
||||||
|
$endif$
|
||||||
|
$if(papersize)$
|
||||||
|
$papersize$paper,
|
||||||
|
$endif$
|
||||||
|
$if(beamer)$
|
||||||
|
ignorenonframetext,
|
||||||
|
$if(handout)$
|
||||||
|
handout,
|
||||||
|
$endif$
|
||||||
|
$if(aspectratio)$
|
||||||
|
aspectratio=$aspectratio$,
|
||||||
|
$endif$
|
||||||
|
$endif$
|
||||||
|
$for(classoption)$
|
||||||
|
$classoption$$sep$,
|
||||||
|
$endfor$
|
||||||
|
]{$documentclass$}
|
||||||
$if(beamer)$
|
$if(beamer)$
|
||||||
$if(background-image)$
|
$if(background-image)$
|
||||||
\usebackgroundtemplate{%
|
\usebackgroundtemplate{%
|
||||||
\includegraphics[width=\paperwidth]{$background-image$}%
|
\includegraphics[width=\paperwidth]{$background-image$}%
|
||||||
}
|
}
|
||||||
$endif$
|
$endif$
|
||||||
\usepackage{pgfpages}
|
\usepackage{pgfpages}
|
||||||
|
@ -25,22 +51,22 @@ $endfor$
|
||||||
\raggedbottom
|
\raggedbottom
|
||||||
$if(section-titles)$
|
$if(section-titles)$
|
||||||
\setbeamertemplate{part page}{
|
\setbeamertemplate{part page}{
|
||||||
\centering
|
\centering
|
||||||
\begin{beamercolorbox}[sep=16pt,center]{part title}
|
\begin{beamercolorbox}[sep=16pt,center]{part title}
|
||||||
\usebeamerfont{part title}\insertpart\par
|
\usebeamerfont{part title}\insertpart\par
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
}
|
}
|
||||||
\setbeamertemplate{section page}{
|
\setbeamertemplate{section page}{
|
||||||
\centering
|
\centering
|
||||||
\begin{beamercolorbox}[sep=12pt,center]{part title}
|
\begin{beamercolorbox}[sep=12pt,center]{part title}
|
||||||
\usebeamerfont{section title}\insertsection\par
|
\usebeamerfont{section title}\insertsection\par
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
}
|
}
|
||||||
\setbeamertemplate{subsection page}{
|
\setbeamertemplate{subsection page}{
|
||||||
\centering
|
\centering
|
||||||
\begin{beamercolorbox}[sep=8pt,center]{part title}
|
\begin{beamercolorbox}[sep=8pt,center]{part title}
|
||||||
\usebeamerfont{subsection title}\insertsubsection\par
|
\usebeamerfont{subsection title}\insertsubsection\par
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
}
|
}
|
||||||
\AtBeginPart{
|
\AtBeginPart{
|
||||||
\frame{\partpage}
|
\frame{\partpage}
|
||||||
|
@ -89,16 +115,16 @@ $for(fontfamilies)$
|
||||||
\newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
|
\newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
|
||||||
$endfor$
|
$endfor$
|
||||||
$if(mainfont)$
|
$if(mainfont)$
|
||||||
\setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
|
\setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(romanfont)$
|
$if(romanfont)$
|
||||||
\setromanfont[$for(romanfontoptions)$$romanfontoptions$$sep$,$endfor$]{$romanfont$}
|
\setromanfont[$for(romanfontoptions)$$romanfontoptions$$sep$,$endfor$]{$romanfont$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(sansfont)$
|
$if(sansfont)$
|
||||||
\setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
|
\setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(monofont)$
|
$if(monofont)$
|
||||||
\setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$}
|
\setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(mathfont)$
|
$if(mathfont)$
|
||||||
$if(mathspec)$
|
$if(mathspec)$
|
||||||
|
@ -151,21 +177,20 @@ $endif$
|
||||||
$endif$
|
$endif$
|
||||||
% use upquote if available, for straight quotes in verbatim environments
|
% use upquote if available, for straight quotes in verbatim environments
|
||||||
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
|
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
|
||||||
% use microtype if available
|
\IfFileExists{microtype.sty}{% use microtype if available
|
||||||
\IfFileExists{microtype.sty}{%
|
\usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
|
||||||
\usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
|
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
|
||||||
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
|
|
||||||
}{}
|
}{}
|
||||||
$if(indent)$
|
$if(indent)$
|
||||||
$else$
|
$else$
|
||||||
\makeatletter
|
\makeatletter
|
||||||
\@ifundefined{KOMAClassName}{%
|
\@ifundefined{KOMAClassName}{% if non-KOMA class
|
||||||
\IfFileExists{parskip.sty}{%
|
\IfFileExists{parskip.sty}{%
|
||||||
\usepackage{parskip}
|
\usepackage{parskip}
|
||||||
}{% else
|
}{% else
|
||||||
\setlength{\parindent}{0pt}
|
\setlength{\parindent}{0pt}
|
||||||
\setlength{\parskip}{6pt plus 2pt minus 1pt}}
|
\setlength{\parskip}{6pt plus 2pt minus 1pt}}
|
||||||
}{% else
|
}{% if KOMA class
|
||||||
\KOMAoptions{parskip=half}}
|
\KOMAoptions{parskip=half}}
|
||||||
\makeatother
|
\makeatother
|
||||||
$endif$
|
$endif$
|
||||||
|
@ -177,24 +202,24 @@ $endif$
|
||||||
\usepackage{hyperref}
|
\usepackage{hyperref}
|
||||||
\hypersetup{
|
\hypersetup{
|
||||||
$if(title-meta)$
|
$if(title-meta)$
|
||||||
pdftitle={$title-meta$},
|
pdftitle={$title-meta$},
|
||||||
$endif$
|
$endif$
|
||||||
$if(author-meta)$
|
$if(author-meta)$
|
||||||
pdfauthor={$author-meta$},
|
pdfauthor={$author-meta$},
|
||||||
$endif$
|
$endif$
|
||||||
$if(keywords)$
|
$if(keywords)$
|
||||||
pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
|
pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
|
||||||
$endif$
|
$endif$
|
||||||
$if(colorlinks)$
|
$if(colorlinks)$
|
||||||
colorlinks=true,
|
colorlinks=true,
|
||||||
linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
|
linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
|
||||||
filecolor=$if(filecolor)$$filecolor$$else$Maroon$endif$,
|
filecolor=$if(filecolor)$$filecolor$$else$Maroon$endif$,
|
||||||
citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
|
citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
|
||||||
urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
|
urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
|
||||||
$else$
|
$else$
|
||||||
pdfborder={0 0 0},
|
pdfborder={0 0 0},
|
||||||
$endif$
|
$endif$
|
||||||
breaklinks=true}
|
breaklinks=true}
|
||||||
\urlstyle{same} % don't use monospace font for urls
|
\urlstyle{same} % don't use monospace font for urls
|
||||||
$if(verbatim-in-note)$
|
$if(verbatim-in-note)$
|
||||||
\VerbatimFootnotes % allows verbatim text in footnotes
|
\VerbatimFootnotes % allows verbatim text in footnotes
|
||||||
|
@ -262,12 +287,12 @@ $if(subparagraph)$
|
||||||
$else$
|
$else$
|
||||||
% Redefines (sub)paragraphs to behave more like sections
|
% Redefines (sub)paragraphs to behave more like sections
|
||||||
\ifx\paragraph\undefined\else
|
\ifx\paragraph\undefined\else
|
||||||
\let\oldparagraph\paragraph
|
\let\oldparagraph\paragraph
|
||||||
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
|
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
|
||||||
\fi
|
\fi
|
||||||
\ifx\subparagraph\undefined\else
|
\ifx\subparagraph\undefined\else
|
||||||
\let\oldsubparagraph\subparagraph
|
\let\oldsubparagraph\subparagraph
|
||||||
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
|
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
|
||||||
\fi
|
\fi
|
||||||
$endif$
|
$endif$
|
||||||
$endif$
|
$endif$
|
||||||
|
@ -371,9 +396,9 @@ $endif$
|
||||||
$if(beamer)$
|
$if(beamer)$
|
||||||
\begin{frame}
|
\begin{frame}
|
||||||
$if(toc-title)$
|
$if(toc-title)$
|
||||||
\frametitle{$toc-title$}
|
\frametitle{$toc-title$}
|
||||||
$endif$
|
$endif$
|
||||||
\tableofcontents[hideallsubsections]
|
\tableofcontents[hideallsubsections]
|
||||||
\end{frame}
|
\end{frame}
|
||||||
$else$
|
$else$
|
||||||
{
|
{
|
||||||
|
@ -404,9 +429,9 @@ $endif$
|
||||||
$endif$
|
$endif$
|
||||||
$if(beamer)$
|
$if(beamer)$
|
||||||
\begin{frame}[allowframebreaks]{$biblio-title$}
|
\begin{frame}[allowframebreaks]{$biblio-title$}
|
||||||
\bibliographytrue
|
\bibliographytrue
|
||||||
$endif$
|
$endif$
|
||||||
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
|
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
|
||||||
$if(beamer)$
|
$if(beamer)$
|
||||||
\end{frame}
|
\end{frame}
|
||||||
$endif$
|
$endif$
|
||||||
|
@ -416,8 +441,8 @@ $endif$
|
||||||
$if(biblatex)$
|
$if(biblatex)$
|
||||||
$if(beamer)$
|
$if(beamer)$
|
||||||
\begin{frame}[allowframebreaks]{$biblio-title$}
|
\begin{frame}[allowframebreaks]{$biblio-title$}
|
||||||
\bibliographytrue
|
\bibliographytrue
|
||||||
\printbibliography[heading=none]
|
\printbibliography[heading=none]
|
||||||
\end{frame}
|
\end{frame}
|
||||||
$else$
|
$else$
|
||||||
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
|
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
|
||||||
|
|
Loading…
Add table
Reference in a new issue