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}
|
\documentclass$if(fontsize)$[$fontsize$]$endif${article}
|
||||||
\usepackage{amssymb,amsmath}
|
\usepackage{amssymb,amsmath}
|
||||||
\usepackage{iftex}
|
\usepackage{ifxetex}
|
||||||
\ifXeTeX
|
\usepackage{ifluatex}
|
||||||
|
\ifxetex
|
||||||
\usepackage{fontspec,xltxtra,xunicode}
|
\usepackage{fontspec,xltxtra,xunicode}
|
||||||
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
||||||
\else
|
\else
|
||||||
\ifLuaTeX
|
\ifluatex
|
||||||
\usepackage{fontspec}
|
\usepackage{fontspec}
|
||||||
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
||||||
\else
|
\else
|
||||||
|
@ -62,7 +63,7 @@ $if(graphics)$
|
||||||
\let\Oldincludegraphics\includegraphics
|
\let\Oldincludegraphics\includegraphics
|
||||||
\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
|
\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
|
||||||
$endif$
|
$endif$
|
||||||
\ifXeTeX
|
\ifxetex
|
||||||
\usepackage[setpagesize=false, % page size defined by xetex
|
\usepackage[setpagesize=false, % page size defined by xetex
|
||||||
unicode=false, % unicode breaks when used with xetex
|
unicode=false, % unicode breaks when used with xetex
|
||||||
xetex]{hyperref}
|
xetex]{hyperref}
|
||||||
|
|
Loading…
Add table
Reference in a new issue