mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2024-12-18 22:07:51 +00:00
Revert "Merge changes from https://github.com/jgm/pandoc/blob/master/data/templates/default.latex (#204)"
This reverts commit 27a5d106dc
.
This commit is contained in:
parent
27a5d106dc
commit
f80ea187cd
380
eisvogel.tex
380
eisvogel.tex
@ -49,9 +49,6 @@ $if(latex-dir-rtl)$
|
||||
\PassOptionsToPackage{RTLdocument}{bidi}
|
||||
$endif$
|
||||
$endif$
|
||||
$if(CJKmainfont)$
|
||||
\PassOptionsToPackage{space}{xeCJK}
|
||||
$endif$
|
||||
%
|
||||
\documentclass[
|
||||
$if(fontsize)$
|
||||
@ -77,7 +74,7 @@ $endif$
|
||||
$for(classoption)$
|
||||
$classoption$$sep$,
|
||||
$endfor$
|
||||
,captions=tableheading
|
||||
,captions=tableheading
|
||||
]{$if(beamer)$$documentclass$$else$$if(book)$scrbook$else$scrartcl$endif$$endif$}
|
||||
$if(beamer)$
|
||||
$if(background-image)$
|
||||
@ -144,17 +141,15 @@ $else$
|
||||
\usepackage{setspace}
|
||||
\setstretch{1.2}
|
||||
$endif$
|
||||
\usepackage{amsmath}
|
||||
\usepackage{amssymb,amsmath}
|
||||
\usepackage{ifxetex,ifluatex}
|
||||
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
||||
\usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage{textcomp} % provide euro and other symbols
|
||||
\usepackage{amssymb}
|
||||
\else % if luatex or xetex
|
||||
$if(mathspec)$
|
||||
\ifxetex
|
||||
\usepackage{amssymb}
|
||||
\usepackage{mathspec}
|
||||
\else
|
||||
\usepackage{unicode-math}
|
||||
@ -374,10 +369,6 @@ $if(graphics)$
|
||||
% margins by default, and it is still possible to overwrite the defaults
|
||||
% using explicit options in \includegraphics[width, height, ...]{}
|
||||
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
|
||||
% Set default figure placement to htbp
|
||||
\makeatletter
|
||||
\def\fps@figure{htbp}
|
||||
\makeatother
|
||||
$endif$
|
||||
$if(links-as-notes)$
|
||||
% Make links footnotes instead of hotlinks:
|
||||
@ -392,7 +383,7 @@ $endif$
|
||||
\providecommand{\tightlist}{%
|
||||
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
||||
$if(numbersections)$
|
||||
\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
|
||||
\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$3$endif$}
|
||||
$else$
|
||||
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
|
||||
$endif$
|
||||
@ -424,16 +415,16 @@ $header-includes$
|
||||
$endfor$
|
||||
$if(lang)$
|
||||
\ifxetex
|
||||
$if(mainfont)$
|
||||
$else$
|
||||
% See issue https://github.com/reutenauer/polyglossia/issues/127
|
||||
\renewcommand*\familydefault{\sfdefault}
|
||||
$endif$
|
||||
$if(mainfont)$
|
||||
$else$
|
||||
% See issue https://github.com/reutenauer/polyglossia/issues/127
|
||||
\renewcommand*\familydefault{\sfdefault}
|
||||
$endif$
|
||||
% Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
|
||||
\usepackage{polyglossia}
|
||||
\setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$}
|
||||
\setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
|
||||
$for(polyglossia-otherlangs)$
|
||||
\setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$}
|
||||
\setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
|
||||
$endfor$
|
||||
\else
|
||||
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
|
||||
@ -442,9 +433,6 @@ $if(babel-newcommands)$
|
||||
$endif$
|
||||
\fi
|
||||
$endif$
|
||||
\ifluatex
|
||||
\usepackage{selnolig} % disable illegal ligatures
|
||||
\fi
|
||||
$if(dir)$
|
||||
\ifxetex
|
||||
% Load bidi as late as possible as it modifies e.g. graphicx
|
||||
@ -471,24 +459,10 @@ $endif$
|
||||
$if(csl-refs)$
|
||||
\newlength{\cslhangindent}
|
||||
\setlength{\cslhangindent}{1.5em}
|
||||
\newlength{\csllabelwidth}
|
||||
\setlength{\csllabelwidth}{3em}
|
||||
\newenvironment{CSLReferences}[3] % #1 hanging-ident, #2 entry spacing
|
||||
{% don't indent paragraphs
|
||||
\setlength{\parindent}{0pt}
|
||||
% turn on hanging indent if param 1 is 1
|
||||
\ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi
|
||||
% set entry spacing
|
||||
\ifnum #2 > 0
|
||||
\setlength{\parskip}{#2\baselineskip}
|
||||
\fi
|
||||
}%
|
||||
{}
|
||||
\usepackage{calc} % for \widthof, \maxof
|
||||
\newcommand{\CSLBlock}[1]{#1\hfill\break}
|
||||
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\maxof{\widthof{#1}}{\csllabelwidth}}{#1}}
|
||||
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth}{#1}}
|
||||
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
|
||||
\newenvironment{cslreferences}%
|
||||
{$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
|
||||
\everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
|
||||
{\par}
|
||||
$endif$
|
||||
|
||||
$if(title)$
|
||||
@ -506,7 +480,9 @@ $else$
|
||||
$endif$
|
||||
\subtitle{$subtitle$}
|
||||
$endif$
|
||||
$if(author)$
|
||||
\author{$for(author)$$author$$sep$ \and $endfor$}
|
||||
$endif$
|
||||
\date{$date$}
|
||||
$if(beamer)$
|
||||
$if(institute)$
|
||||
@ -533,24 +509,24 @@ $endif$
|
||||
%
|
||||
$if(lang)$$else$
|
||||
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
||||
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=english]{babel}
|
||||
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=english]{babel}
|
||||
$if(babel-newcommands)$
|
||||
$babel-newcommands$
|
||||
$babel-newcommands$
|
||||
$endif$
|
||||
\else
|
||||
$if(mainfont)$
|
||||
$else$
|
||||
% Workaround for bug in Polyglossia that breaks `\familydefault` when `\setmainlanguage` is used.
|
||||
% See https://github.com/Wandmalfarbe/pandoc-latex-template/issues/8
|
||||
% See https://github.com/reutenauer/polyglossia/issues/186
|
||||
% See https://github.com/reutenauer/polyglossia/issues/127
|
||||
\renewcommand*\familydefault{\sfdefault}
|
||||
$endif$
|
||||
% load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic)
|
||||
\usepackage{polyglossia}
|
||||
\setmainlanguage[]{english}
|
||||
$if(mainfont)$
|
||||
$else$
|
||||
% Workaround for bug in Polyglossia that breaks `\familydefault` when `\setmainlanguage` is used.
|
||||
% See https://github.com/Wandmalfarbe/pandoc-latex-template/issues/8
|
||||
% See https://github.com/reutenauer/polyglossia/issues/186
|
||||
% See https://github.com/reutenauer/polyglossia/issues/127
|
||||
\renewcommand*\familydefault{\sfdefault}
|
||||
$endif$
|
||||
% load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic)
|
||||
\usepackage{polyglossia}
|
||||
\setmainlanguage[]{english}
|
||||
$for(polyglossia-otherlangs)$
|
||||
\setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
|
||||
\setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
|
||||
$endfor$
|
||||
\fi
|
||||
$endif$
|
||||
@ -613,36 +589,36 @@ $endif$
|
||||
% font family to Source Sans Pro, not \sfdefault.
|
||||
%
|
||||
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
||||
$if(fontfamily)$
|
||||
$else$
|
||||
\usepackage[default]{sourcesanspro}
|
||||
\usepackage{sourcecodepro}
|
||||
$endif$
|
||||
$if(fontfamily)$
|
||||
$else$
|
||||
\usepackage[default]{sourcesanspro}
|
||||
\usepackage{sourcecodepro}
|
||||
$endif$
|
||||
\else % if not pdftex
|
||||
$if(mainfont)$
|
||||
$else$
|
||||
\usepackage[default]{sourcesanspro}
|
||||
\usepackage{sourcecodepro}
|
||||
$if(mainfont)$
|
||||
$else$
|
||||
\usepackage[default]{sourcesanspro}
|
||||
\usepackage{sourcecodepro}
|
||||
|
||||
% XeLaTeX specific adjustments for straight quotes: https://tex.stackexchange.com/a/354887
|
||||
% This issue is already fixed (see https://github.com/silkeh/latex-sourcecodepro/pull/5) but the
|
||||
% fix is still unreleased.
|
||||
% TODO: Remove this workaround when the new version of sourcecodepro is released on CTAN.
|
||||
\ifxetex
|
||||
\makeatletter
|
||||
\defaultfontfeatures[\ttfamily]
|
||||
{ Numbers = \sourcecodepro@figurestyle,
|
||||
Scale = \SourceCodePro@scale,
|
||||
Extension = .otf }
|
||||
\setmonofont
|
||||
[ UprightFont = *-\sourcecodepro@regstyle,
|
||||
ItalicFont = *-\sourcecodepro@regstyle It,
|
||||
BoldFont = *-\sourcecodepro@boldstyle,
|
||||
BoldItalicFont = *-\sourcecodepro@boldstyle It ]
|
||||
{SourceCodePro}
|
||||
\makeatother
|
||||
\fi
|
||||
$endif$
|
||||
% XeLaTeX specific adjustments for straight quotes: https://tex.stackexchange.com/a/354887
|
||||
% This issue is already fixed (see https://github.com/silkeh/latex-sourcecodepro/pull/5) but the
|
||||
% fix is still unreleased.
|
||||
% TODO: Remove this workaround when the new version of sourcecodepro is released on CTAN.
|
||||
\ifxetex
|
||||
\makeatletter
|
||||
\defaultfontfeatures[\ttfamily]
|
||||
{ Numbers = \sourcecodepro@figurestyle,
|
||||
Scale = \SourceCodePro@scale,
|
||||
Extension = .otf }
|
||||
\setmonofont
|
||||
[ UprightFont = *-\sourcecodepro@regstyle,
|
||||
ItalicFont = *-\sourcecodepro@regstyle It,
|
||||
BoldFont = *-\sourcecodepro@boldstyle,
|
||||
BoldItalicFont = *-\sourcecodepro@boldstyle It ]
|
||||
{SourceCodePro}
|
||||
\makeatother
|
||||
\fi
|
||||
$endif$
|
||||
\fi
|
||||
|
||||
%
|
||||
@ -734,52 +710,52 @@ $if(listings)$
|
||||
\definecolor{listing-comment}{HTML}{8E8E8E}
|
||||
|
||||
\lstdefinestyle{eisvogel_listing_style}{
|
||||
language = java,
|
||||
language = java,
|
||||
$if(listings-disable-line-numbers)$
|
||||
xleftmargin = 0.6em,
|
||||
framexleftmargin = 0.4em,
|
||||
xleftmargin = 0.6em,
|
||||
framexleftmargin = 0.4em,
|
||||
$else$
|
||||
numbers = left,
|
||||
xleftmargin = 2.7em,
|
||||
framexleftmargin = 2.5em,
|
||||
numbers = left,
|
||||
xleftmargin = 2.7em,
|
||||
framexleftmargin = 2.5em,
|
||||
$endif$
|
||||
backgroundcolor = \color{listing-background},
|
||||
basicstyle = \color{listing-text-color}\linespread{1.0}$if(code-block-font-size)$$code-block-font-size$$else$\small$endif$\ttfamily{},
|
||||
breaklines = true,
|
||||
frame = single,
|
||||
framesep = 0.19em,
|
||||
rulecolor = \color{listing-rule},
|
||||
frameround = ffff,
|
||||
tabsize = 4,
|
||||
numberstyle = \color{listing-numbers},
|
||||
aboveskip = 1.0em,
|
||||
belowskip = 0.1em,
|
||||
abovecaptionskip = 0em,
|
||||
belowcaptionskip = 1.0em,
|
||||
keywordstyle = {\color{listing-keyword}\bfseries},
|
||||
keywordstyle = {[2]\color{listing-keyword-2}\bfseries},
|
||||
keywordstyle = {[3]\color{listing-keyword-3}\bfseries\itshape},
|
||||
sensitive = true,
|
||||
identifierstyle = \color{listing-identifier},
|
||||
commentstyle = \color{listing-comment},
|
||||
stringstyle = \color{listing-string},
|
||||
showstringspaces = false,
|
||||
escapeinside = {/*@}{@*/}, % Allow LaTeX inside these special comments
|
||||
literate =
|
||||
{á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
|
||||
{Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
|
||||
{à}{{\`a}}1 {è}{{\'e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
|
||||
{À}{{\`A}}1 {È}{{\'E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
|
||||
{ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
|
||||
{Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
|
||||
{â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1
|
||||
{Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1
|
||||
{œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1
|
||||
{ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1
|
||||
{€}{{\EUR}}1 {£}{{\pounds}}1 {«}{{\guillemotleft}}1
|
||||
{»}{{\guillemotright}}1 {ñ}{{\~n}}1 {Ñ}{{\~N}}1 {¿}{{?`}}1
|
||||
{…}{{\ldots}}1 {≥}{{>=}}1 {≤}{{<=}}1 {„}{{\glqq}}1 {“}{{\grqq}}1
|
||||
{”}{{''}}1
|
||||
backgroundcolor = \color{listing-background},
|
||||
basicstyle = \color{listing-text-color}\linespread{1.0}$if(code-block-font-size)$$code-block-font-size$$else$\small$endif$\ttfamily{},
|
||||
breaklines = true,
|
||||
frame = single,
|
||||
framesep = 0.19em,
|
||||
rulecolor = \color{listing-rule},
|
||||
frameround = ffff,
|
||||
tabsize = 4,
|
||||
numberstyle = \color{listing-numbers},
|
||||
aboveskip = 1.0em,
|
||||
belowskip = 0.1em,
|
||||
abovecaptionskip = 0em,
|
||||
belowcaptionskip = 1.0em,
|
||||
keywordstyle = {\color{listing-keyword}\bfseries},
|
||||
keywordstyle = {[2]\color{listing-keyword-2}\bfseries},
|
||||
keywordstyle = {[3]\color{listing-keyword-3}\bfseries\itshape},
|
||||
sensitive = true,
|
||||
identifierstyle = \color{listing-identifier},
|
||||
commentstyle = \color{listing-comment},
|
||||
stringstyle = \color{listing-string},
|
||||
showstringspaces = false,
|
||||
escapeinside = {/*@}{@*/}, % Allow LaTeX inside these special comments
|
||||
literate =
|
||||
{á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
|
||||
{Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
|
||||
{à}{{\`a}}1 {è}{{\'e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
|
||||
{À}{{\`A}}1 {È}{{\'E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
|
||||
{ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
|
||||
{Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
|
||||
{â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1
|
||||
{Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1
|
||||
{œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1
|
||||
{ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1
|
||||
{€}{{\EUR}}1 {£}{{\pounds}}1 {«}{{\guillemotleft}}1
|
||||
{»}{{\guillemotright}}1 {ñ}{{\~n}}1 {Ñ}{{\~N}}1 {¿}{{?`}}1
|
||||
{…}{{\ldots}}1 {≥}{{>=}}1 {≤}{{<=}}1 {„}{{\glqq}}1 {“}{{\grqq}}1
|
||||
{”}{{''}}1
|
||||
}
|
||||
\lstset{style=eisvogel_listing_style}
|
||||
|
||||
@ -787,51 +763,51 @@ literate =
|
||||
% Java (Java SE 12, 2019-06-22)
|
||||
%
|
||||
\lstdefinelanguage{Java}{
|
||||
morekeywords={
|
||||
% normal keywords (without data types)
|
||||
abstract,assert,break,case,catch,class,continue,default,
|
||||
do,else,enum,exports,extends,final,finally,for,if,implements,
|
||||
import,instanceof,interface,module,native,new,package,private,
|
||||
protected,public,requires,return,static,strictfp,super,switch,
|
||||
synchronized,this,throw,throws,transient,try,volatile,while,
|
||||
% var is an identifier
|
||||
var
|
||||
},
|
||||
morekeywords={[2] % data types
|
||||
% primitive data types
|
||||
boolean,byte,char,double,float,int,long,short,
|
||||
% String
|
||||
String,
|
||||
% primitive wrapper types
|
||||
Boolean,Byte,Character,Double,Float,Integer,Long,Short
|
||||
% number types
|
||||
Number,AtomicInteger,AtomicLong,BigDecimal,BigInteger,DoubleAccumulator,DoubleAdder,LongAccumulator,LongAdder,Short,
|
||||
% other
|
||||
Object,Void,void
|
||||
},
|
||||
morekeywords={[3] % literals
|
||||
% reserved words for literal values
|
||||
null,true,false,
|
||||
},
|
||||
sensitive,
|
||||
morecomment = [l]//,
|
||||
morecomment = [s]{/*}{*/},
|
||||
morecomment = [s]{/**}{*/},
|
||||
morestring = [b]",
|
||||
morestring = [b]',
|
||||
morekeywords={
|
||||
% normal keywords (without data types)
|
||||
abstract,assert,break,case,catch,class,continue,default,
|
||||
do,else,enum,exports,extends,final,finally,for,if,implements,
|
||||
import,instanceof,interface,module,native,new,package,private,
|
||||
protected,public,requires,return,static,strictfp,super,switch,
|
||||
synchronized,this,throw,throws,transient,try,volatile,while,
|
||||
% var is an identifier
|
||||
var
|
||||
},
|
||||
morekeywords={[2] % data types
|
||||
% primitive data types
|
||||
boolean,byte,char,double,float,int,long,short,
|
||||
% String
|
||||
String,
|
||||
% primitive wrapper types
|
||||
Boolean,Byte,Character,Double,Float,Integer,Long,Short
|
||||
% number types
|
||||
Number,AtomicInteger,AtomicLong,BigDecimal,BigInteger,DoubleAccumulator,DoubleAdder,LongAccumulator,LongAdder,Short,
|
||||
% other
|
||||
Object,Void,void
|
||||
},
|
||||
morekeywords={[3] % literals
|
||||
% reserved words for literal values
|
||||
null,true,false,
|
||||
},
|
||||
sensitive,
|
||||
morecomment = [l]//,
|
||||
morecomment = [s]{/*}{*/},
|
||||
morecomment = [s]{/**}{*/},
|
||||
morestring = [b]",
|
||||
morestring = [b]',
|
||||
}
|
||||
|
||||
\lstdefinelanguage{XML}{
|
||||
morestring = [b]",
|
||||
moredelim = [s][\bfseries\color{listing-keyword}]{<}{\ },
|
||||
moredelim = [s][\bfseries\color{listing-keyword}]{</}{>},
|
||||
moredelim = [l][\bfseries\color{listing-keyword}]{/>},
|
||||
moredelim = [l][\bfseries\color{listing-keyword}]{>},
|
||||
morecomment = [s]{<?}{?>},
|
||||
morecomment = [s]{<!--}{-->},
|
||||
commentstyle = \color{listing-comment},
|
||||
stringstyle = \color{listing-string},
|
||||
identifierstyle = \color{listing-identifier}
|
||||
morestring = [b]",
|
||||
moredelim = [s][\bfseries\color{listing-keyword}]{<}{\ },
|
||||
moredelim = [s][\bfseries\color{listing-keyword}]{</}{>},
|
||||
moredelim = [l][\bfseries\color{listing-keyword}]{/>},
|
||||
moredelim = [l][\bfseries\color{listing-keyword}]{>},
|
||||
morecomment = [s]{<?}{?>},
|
||||
morecomment = [s]{<!--}{-->},
|
||||
commentstyle = \color{listing-comment},
|
||||
stringstyle = \color{listing-string},
|
||||
identifierstyle = \color{listing-identifier}
|
||||
}
|
||||
$endif$
|
||||
|
||||
@ -845,16 +821,16 @@ $else$
|
||||
\usepackage{fancyhdr}
|
||||
|
||||
\fancypagestyle{eisvogel-header-footer}{
|
||||
\fancyhead{}
|
||||
\fancyfoot{}
|
||||
\lhead[$if(header-right)$$header-right$$else$$date$$endif$]{$if(header-left)$$header-left$$else$$title$$endif$}
|
||||
\chead[$if(header-center)$$header-center$$else$$endif$]{$if(header-center)$$header-center$$else$$endif$}
|
||||
\rhead[$if(header-left)$$header-left$$else$$title$$endif$]{$if(header-right)$$header-right$$else$$date$$endif$}
|
||||
\lfoot[$if(footer-right)$$footer-right$$else$\thepage$endif$]{$if(footer-left)$$footer-left$$else$$for(author)$$author$$sep$, $endfor$$endif$}
|
||||
\cfoot[$if(footer-center)$$footer-center$$else$$endif$]{$if(footer-center)$$footer-center$$else$$endif$}
|
||||
\rfoot[$if(footer-left)$$footer-left$$else$$for(author)$$author$$sep$, $endfor$$endif$]{$if(footer-right)$$footer-right$$else$\thepage$endif$}
|
||||
\renewcommand{\headrulewidth}{0.4pt}
|
||||
\renewcommand{\footrulewidth}{0.4pt}
|
||||
\fancyhead{}
|
||||
\fancyfoot{}
|
||||
\lhead[$if(header-right)$$header-right$$else$$date$$endif$]{$if(header-left)$$header-left$$else$$title$$endif$}
|
||||
\chead[$if(header-center)$$header-center$$else$$endif$]{$if(header-center)$$header-center$$else$$endif$}
|
||||
\rhead[$if(header-left)$$header-left$$else$$title$$endif$]{$if(header-right)$$header-right$$else$$date$$endif$}
|
||||
\lfoot[$if(footer-right)$$footer-right$$else$\thepage$endif$]{$if(footer-left)$$footer-left$$else$$for(author)$$author$$sep$, $endfor$$endif$}
|
||||
\cfoot[$if(footer-center)$$footer-center$$else$$endif$]{$if(footer-center)$$footer-center$$else$$endif$}
|
||||
\rfoot[$if(footer-left)$$footer-left$$else$$for(author)$$author$$sep$, $endfor$$endif$]{$if(footer-right)$$footer-right$$else$\thepage$endif$}
|
||||
\renewcommand{\headrulewidth}{0.4pt}
|
||||
\renewcommand{\footrulewidth}{0.4pt}
|
||||
}
|
||||
\pagestyle{eisvogel-header-footer}
|
||||
$if(page-background)$
|
||||
@ -864,8 +840,8 @@ color=black,
|
||||
opacity=$if(page-background-opacity)$$page-background-opacity$$else$0.2$endif$,
|
||||
angle=0,
|
||||
contents={%
|
||||
\includegraphics[width=\paperwidth,height=\paperheight]{$page-background$}
|
||||
}%
|
||||
\includegraphics[width=\paperwidth,height=\paperheight]{$page-background$}
|
||||
}%
|
||||
}
|
||||
$endif$
|
||||
$endif$
|
||||
@ -908,30 +884,30 @@ $endif$
|
||||
$if(titlepage-background)$
|
||||
% The titlepage with a background image has other text spacing and text size
|
||||
{
|
||||
\setstretch{2}
|
||||
\vfill
|
||||
\vskip -8em
|
||||
\noindent {\huge \textbf{\textsf{$title$}}}
|
||||
$if(subtitle)$
|
||||
\vskip 1em
|
||||
{\Large \textsf{$subtitle$}}
|
||||
$endif$
|
||||
\vskip 2em
|
||||
\noindent {\Large \textsf{$for(author)$$author$$sep$, $endfor$} \vskip 0.6em \textsf{$date$}}
|
||||
\vfill
|
||||
\setstretch{2}
|
||||
\vfill
|
||||
\vskip -8em
|
||||
\noindent {\huge \textbf{\textsf{$title$}}}
|
||||
$if(subtitle)$
|
||||
\vskip 1em
|
||||
{\Large \textsf{$subtitle$}}
|
||||
$endif$
|
||||
\vskip 2em
|
||||
\noindent {\Large \textsf{$for(author)$$author$$sep$, $endfor$} \vskip 0.6em \textsf{$date$}}
|
||||
\vfill
|
||||
}
|
||||
$else$
|
||||
{
|
||||
\setstretch{1.4}
|
||||
\vfill
|
||||
\noindent {\huge \textbf{\textsf{$title$}}}
|
||||
$if(subtitle)$
|
||||
\vskip 1em
|
||||
{\Large \textsf{$subtitle$}}
|
||||
$endif$
|
||||
\vskip 2em
|
||||
\noindent {\Large \textsf{$for(author)$$author$$sep$, $endfor$}}
|
||||
\vfill
|
||||
\setstretch{1.4}
|
||||
\vfill
|
||||
\noindent {\huge \textbf{\textsf{$title$}}}
|
||||
$if(subtitle)$
|
||||
\vskip 1em
|
||||
{\Large \textsf{$subtitle$}}
|
||||
$endif$
|
||||
\vskip 2em
|
||||
\noindent {\Large \textsf{$for(author)$$author$$sep$, $endfor$}}
|
||||
\vfill
|
||||
}
|
||||
$endif$
|
||||
|
||||
@ -982,7 +958,7 @@ $if(toc-title)$
|
||||
\renewcommand*\contentsname{$toc-title$}
|
||||
$endif$
|
||||
$if(beamer)$
|
||||
\begin{frame}[allowframebreaks]
|
||||
\begin{frame}
|
||||
$if(toc-title)$
|
||||
\frametitle{$toc-title$}
|
||||
$endif$
|
||||
@ -996,7 +972,7 @@ $else$
|
||||
$if(colorlinks)$
|
||||
\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$}
|
||||
$endif$
|
||||
\setcounter{tocdepth}{$toc-depth$}
|
||||
\setcounter{tocdepth}{$if(toc-depth)$$toc-depth$$else$3$endif$}
|
||||
\tableofcontents
|
||||
$if(toc-own-page)$
|
||||
\newpage
|
||||
|
Loading…
Reference in New Issue
Block a user