enabling font choice for bold, italic, bold-italic.

This commit is contained in:
Manuel Schmalstieg 2016-04-04 23:01:19 +02:00
parent 6499c30323
commit c620c4d904
2 changed files with 19 additions and 5 deletions

View File

@ -50,11 +50,15 @@ END {
## "Work Sans"
## "Archivo Narrow"
## "Sophia Nubian"
## "Limousine"
## Monoid
## "Limousine" - by OSP Foundry
## Monoid - by Andreas Larsen
## HK Grotesk - by Alfredo Marco Pradil, Hanken Design Co.
pandoc -f markdown -o $OUTPUT --template=../templates/customV2 $TEMP --latex-engine=xelatex \
--variable mainfont="Monoid" \
--variable mainfont="Roboto" \
--variable boldfont="Roboto Bold" \
--variable italicfont="Roboto Italic" \
--variable bolditalicfont="Roboto Bold Italic" \
--variable sansfont=Futura \
--variable monofont=Inconsesi \
--variable fontsize=9pt \

View File

@ -8,7 +8,7 @@
paperheight=6.875in,
paperwidth=4.25in,
top = 1.8cm,
bottom = 1.2cm,
bottom = 1.4cm,
left = 2cm,
right = 1.2cm,
footskip = 0.8cm,
@ -78,7 +78,17 @@ $endif$
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\newcommand{\euro}{€}
$if(mainfont)$
\setmainfont{$mainfont$}
\setmainfont[
$if(boldfont)$
BoldFont={$boldfont$},
$endif$
$if(italicfont)$
ItalicFont={$italicfont$},
$endif$
$if(bolditalicfont)$
BoldItalicFont={$bolditalicfont$}
$endif$
]{$mainfont$}
$endif$
$if(sansfont)$
\setsansfont{$sansfont$}