LaTeX: Use ifxetex and ifluatex instead of iftex package.
These are included in "core" latex distributions, like BasicTeX.
This commit is contained in:
parent
88e782fa8e
commit
201b99a239
1 changed files with 5 additions and 4 deletions
|
@ -1,11 +1,12 @@
|
|||
\documentclass$if(fontsize)$[$fontsize$]$endif${article}
|
||||
\usepackage{amssymb,amsmath}
|
||||
\usepackage{iftex}
|
||||
\ifXeTeX
|
||||
\usepackage{ifxetex}
|
||||
\usepackage{ifluatex}
|
||||
\ifxetex
|
||||
\usepackage{fontspec,xltxtra,xunicode}
|
||||
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
||||
\else
|
||||
\ifLuaTeX
|
||||
\ifluatex
|
||||
\usepackage{fontspec}
|
||||
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
||||
\else
|
||||
|
@ -62,7 +63,7 @@ $if(graphics)$
|
|||
\let\Oldincludegraphics\includegraphics
|
||||
\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
|
||||
$endif$
|
||||
\ifXeTeX
|
||||
\ifxetex
|
||||
\usepackage[setpagesize=false, % page size defined by xetex
|
||||
unicode=false, % unicode breaks when used with xetex
|
||||
xetex]{hyperref}
|
||||
|
|
Loading…
Reference in a new issue