Use iftex to detect luatex, xetex, ...
This commit is contained in:
parent
d19a3dcab5
commit
a053c6d1b0
1 changed files with 9 additions and 9 deletions
|
@ -1,18 +1,18 @@
|
|||
\documentclass$if(fontsize)$[$fontsize$]$endif${article}
|
||||
\usepackage{amssymb,amsmath}
|
||||
$if(xetex)$
|
||||
\usepackage{ifxetex}
|
||||
\ifxetex
|
||||
\usepackage{iftex}
|
||||
\ifXeTeX
|
||||
\usepackage{fontspec,xltxtra,xunicode}
|
||||
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
||||
\else
|
||||
\ifLuaTeX
|
||||
\usepackage{fontspec}
|
||||
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
||||
\else
|
||||
\usepackage[mathletters]{ucs}
|
||||
\usepackage[utf8x]{inputenc}
|
||||
\fi
|
||||
$else$
|
||||
\usepackage[mathletters]{ucs}
|
||||
\usepackage[utf8x]{inputenc}
|
||||
$endif$
|
||||
\fi
|
||||
$if(natbib)$
|
||||
\usepackage{natbib}
|
||||
\bibliographystyle{plainnat}
|
||||
|
|
Loading…
Add table
Reference in a new issue