mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2025-01-31 00:23:56 +00:00
Merged with changes from jgm/pandoc-templates/blob/master/default.latex
This commit is contained in:
parent
1a84bcb053
commit
a761929412
@ -37,11 +37,15 @@ $if(euro)$
|
|||||||
\usepackage{eurosym}
|
\usepackage{eurosym}
|
||||||
$endif$
|
$endif$
|
||||||
\else % if luatex or xelatex
|
\else % if luatex or xelatex
|
||||||
|
$if(mathspec)$
|
||||||
\ifxetex
|
\ifxetex
|
||||||
\usepackage{mathspec}
|
\usepackage{mathspec}
|
||||||
\else
|
\else
|
||||||
\usepackage{fontspec}
|
\usepackage{unicode-math}
|
||||||
\fi
|
\fi
|
||||||
|
$else$
|
||||||
|
\usepackage{unicode-math}
|
||||||
|
$endif$
|
||||||
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
|
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
|
||||||
$for(fontfamilies)$
|
$for(fontfamilies)$
|
||||||
\newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
|
\newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
|
||||||
@ -59,7 +63,15 @@ $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)$
|
||||||
|
\ifxetex
|
||||||
\setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
|
\setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
|
||||||
|
\else
|
||||||
|
\setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
|
||||||
|
\fi
|
||||||
|
$else$
|
||||||
|
\setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
|
||||||
|
$endif$
|
||||||
$endif$
|
$endif$
|
||||||
$if(CJKmainfont)$
|
$if(CJKmainfont)$
|
||||||
\usepackage{xeCJK}
|
\usepackage{xeCJK}
|
||||||
@ -73,9 +85,6 @@ $endif$
|
|||||||
\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(geometry)$
|
|
||||||
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
|
|
||||||
$endif$
|
|
||||||
\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
|
\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
|
||||||
$if(verbatim-in-note)$
|
$if(verbatim-in-note)$
|
||||||
\usepackage{fancyvrb}
|
\usepackage{fancyvrb}
|
||||||
@ -113,6 +122,9 @@ $endif$
|
|||||||
$if(verbatim-in-note)$
|
$if(verbatim-in-note)$
|
||||||
\VerbatimFootnotes % allows verbatim text in footnotes
|
\VerbatimFootnotes % allows verbatim text in footnotes
|
||||||
$endif$
|
$endif$
|
||||||
|
$if(geometry)$
|
||||||
|
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
|
||||||
|
$endif$
|
||||||
$if(lang)$
|
$if(lang)$
|
||||||
\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=$babel-lang$]{babel}
|
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
|
||||||
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 284 KiB After Width: | Height: | Size: 284 KiB |
Loading…
x
Reference in New Issue
Block a user