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