Поддержка xelatex
This commit is contained in:
parent
9bcd9e0276
commit
8952bcc648
16
espdfont.sty
16
espdfont.sty
@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
\NeedsTeXFormat{LaTeX2e}
|
\NeedsTeXFormat{LaTeX2e}
|
||||||
\ProvidesPackage{espdfont}[2010/01/14 v0.98 Font Definitions]
|
\ProvidesPackage{espdfont}[2010/01/14 v0.98 Font Definitions]
|
||||||
\RequirePackage{gostfont}
|
|
||||||
|
|
||||||
\newcommand{\ESPDfontBaseLineStretch}{1}
|
\newcommand{\ESPDfontBaseLineStretch}{1}
|
||||||
|
|
||||||
@ -55,12 +54,27 @@
|
|||||||
\newcommand{\ESPDfontX}{%
|
\newcommand{\ESPDfontX}{%
|
||||||
\ESPDfontSetBaseLineStretch
|
\ESPDfontSetBaseLineStretch
|
||||||
\ESPDfontXsize\selectfont\ESPDfontShape}
|
\ESPDfontXsize\selectfont\ESPDfontShape}
|
||||||
|
|
||||||
|
\RequirePackage{ifxetex}
|
||||||
|
\ifxetex
|
||||||
|
\newcommand{\ESPDtheGostFontName}{}
|
||||||
|
\newcommand{\ESPDgostFontName}[1]{\renewcommand{\ESPDtheGostFontName}{#1}}
|
||||||
|
\usepackage{fontspec}
|
||||||
|
\newcommand{\ESPDfontGostIII}{%
|
||||||
|
\ESPDfontSetBaseLineStretch
|
||||||
|
\ESPDfontIIIsize\setmainfont{\ESPDtheGostFontName}}
|
||||||
|
\newcommand{\ESPDfontGostIV}{%
|
||||||
|
\ESPDfontSetBaseLineStretch
|
||||||
|
\ESPDfontIVsize\setmainfont{\ESPDtheGostFontName}}
|
||||||
|
\else
|
||||||
|
\RequirePackage{gostfont}
|
||||||
\newcommand{\ESPDfontGostIII}{%
|
\newcommand{\ESPDfontGostIII}{%
|
||||||
\ESPDfontSetBaseLineStretch
|
\ESPDfontSetBaseLineStretch
|
||||||
\ESPDfontIIIsize\selectfont\GostBFont}
|
\ESPDfontIIIsize\selectfont\GostBFont}
|
||||||
\newcommand{\ESPDfontGostIV}{%
|
\newcommand{\ESPDfontGostIV}{%
|
||||||
\ESPDfontSetBaseLineStretch
|
\ESPDfontSetBaseLineStretch
|
||||||
\ESPDfontIVsize\selectfont\GostBFont}
|
\ESPDfontIVsize\selectfont\GostBFont}
|
||||||
|
\fi
|
||||||
|
|
||||||
\newcommand{\ESPDfontTabHead}{\ESPDfontV}
|
\newcommand{\ESPDfontTabHead}{\ESPDfontV}
|
||||||
\newcommand{\ESPDfontTabBody}{\ESPDfontV}
|
\newcommand{\ESPDfontTabBody}{\ESPDfontV}
|
||||||
|
@ -35,11 +35,14 @@
|
|||||||
|
|
||||||
\ProcessOptions\relax
|
\ProcessOptions\relax
|
||||||
|
|
||||||
|
\RequirePackage{ifxetex}
|
||||||
|
\ifxetex\RequirePackage{xecyr}
|
||||||
|
\else
|
||||||
\ifESPD@given@encoding
|
\ifESPD@given@encoding
|
||||||
\RequirePackage{inputenc}
|
\RequirePackage{inputenc}
|
||||||
\fi
|
\fi
|
||||||
|
|
||||||
\RequirePackage[T2A]{fontenc}
|
\RequirePackage[T2A]{fontenc}
|
||||||
|
\fi
|
||||||
|
|
||||||
\RequirePackage[\ESPD@lang]{babel}
|
\RequirePackage[\ESPD@lang]{babel}
|
||||||
\input{espd\ESPD@lang.def}
|
\input{espd\ESPD@lang.def}
|
||||||
|
Loading…
Reference in New Issue
Block a user