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}
|
\documentclass$if(fontsize)$[$fontsize$]$endif${article}
|
||||||
\usepackage{amssymb,amsmath}
|
\usepackage{amssymb,amsmath}
|
||||||
$if(xetex)$
|
\usepackage{iftex}
|
||||||
\usepackage{ifxetex}
|
\ifXeTeX
|
||||||
\ifxetex
|
|
||||||
\usepackage{fontspec,xltxtra,xunicode}
|
\usepackage{fontspec,xltxtra,xunicode}
|
||||||
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
||||||
|
\else
|
||||||
|
\ifLuaTeX
|
||||||
|
\usepackage{fontspec}
|
||||||
|
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
|
||||||
\else
|
\else
|
||||||
\usepackage[mathletters]{ucs}
|
\usepackage[mathletters]{ucs}
|
||||||
\usepackage[utf8x]{inputenc}
|
\usepackage[utf8x]{inputenc}
|
||||||
\fi
|
\fi
|
||||||
$else$
|
\fi
|
||||||
\usepackage[mathletters]{ucs}
|
|
||||||
\usepackage[utf8x]{inputenc}
|
|
||||||
$endif$
|
|
||||||
$if(natbib)$
|
$if(natbib)$
|
||||||
\usepackage{natbib}
|
\usepackage{natbib}
|
||||||
\bibliographystyle{plainnat}
|
\bibliographystyle{plainnat}
|
||||||
|
|
Loading…
Add table
Reference in a new issue