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