Поддержка xelatex (шрифты)

This commit is contained in:
Andrei Astafev 2018-08-23 16:30:39 +03:00
parent 22094e7a4e
commit f99175a00b

View File

@ -32,6 +32,23 @@ Style Standard
margin-bottom: 2ex; margin-bottom: 2ex;
} }
EndHTMLStyle EndHTMLStyle
Preamble
\usepackage{mathptmx}
\usepackage{ifxetex}
\ifxetex
\ESPDgostFontName{GOST A}
\setsansfont[Mapping=tex-text]{Arial}
\setromanfont[Mapping=tex-text]{Times New Roman}
\setmonofont[Mapping=tex-text]{Pragmata Pro Mono}
\newfontfamily\listingsfont{Pragmata Pro Mono Bold}
\newfontfamily\listingsfontinline{Pragmata Pro Mono Bold}
\else
\usepackage{cmap} % Обязательно в начале (кодировки и поиск в PDF)
\usepackage[defaultroman]{mstimes}
\usepackage[defaultsans]{msarial}
\usepackage[defaultmono]{pragmatapro}
\fi
EndPreamble
End End
#Input stdcharstyles.inc #Input stdcharstyles.inc