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" ## "Work Sans"
## "Archivo Narrow" ## "Archivo Narrow"
## "Sophia Nubian" ## "Sophia Nubian"
## "Limousine" ## "Limousine" - by OSP Foundry
## Monoid ## 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 \ 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 sansfont=Futura \
--variable monofont=Inconsesi \ --variable monofont=Inconsesi \
--variable fontsize=9pt \ --variable fontsize=9pt \

View File

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