LaTeX: Use ifxetex and ifluatex instead of iftex package.

These are included in "core" latex distributions, like BasicTeX.
This commit is contained in:
John MacFarlane 2011-07-29 23:48:36 -07:00
parent 88e782fa8e
commit 201b99a239

View file

@ -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}