Wandmalfarbe 2019-10-05 17:59:58 +02:00
parent 8f8fc7312f
commit be2d243225

View File

@ -289,12 +289,10 @@ $if(verbatim-in-note)$
\VerbatimFootnotes % allow verbatim text in footnotes \VerbatimFootnotes % allow verbatim text in footnotes
$endif$ $endif$
$if(geometry)$ $if(geometry)$
\usepackage[margin=2.5cm,includehead=true,includefoot=true,centering,$for(geometry)$$geometry$$sep$,$endfor$]{geometry} $if(beamer)$
\geometry{margin=2.5cm,includehead=true,includefoot=true,centering,$for(geometry)$$geometry$$sep$,$endfor$}
$else$ $else$
$if(beamer)$ \usepackage[margin=2.5cm,includehead=true,includefoot=true,centering,$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
$else$
\usepackage[margin=2.5cm,includehead=true,includefoot=true,centering]{geometry}
$endif$
$endif$ $endif$
$if(logo)$ $if(logo)$
\usepackage[export]{adjustbox} \usepackage[export]{adjustbox}
@ -452,6 +450,14 @@ $for(bibliography)$
\addbibresource{$bibliography$} \addbibresource{$bibliography$}
$endfor$ $endfor$
$endif$ $endif$
$if(csl-refs)$
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newenvironment{cslreferences}%
{$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
\everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
{\par}
$endif$
$if(title)$ $if(title)$
\title{$title$$if(thanks)$\thanks{$thanks$}$endif$} \title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
@ -568,30 +574,30 @@ $endif$
% 'default' option sets the default % 'default' option sets the default
% font family to Source Sans Pro, not \sfdefault. % font family to Source Sans Pro, not \sfdefault.
% %
$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$
% %
% heading color % heading color