Skip to content
This repository
Browse code

LaTeX template: use ifxetex, ifluatex instead of iftex.

iftex is not in debian.
  • Loading branch information...
commit ba5f9741a1f96e521bdfbac3795524b83645e8fb 1 parent 8806382
John MacFarlane authored

Showing 1 changed file with 8 additions and 9 deletions. Show diff stats Hide diff stats

  1. +8 9 default.latex
17 default.latex
@@ -2,19 +2,18 @@
2 2 \usepackage[T1]{fontenc}
3 3 \usepackage{lmodern}
4 4 \usepackage{amssymb,amsmath}
5   -\usepackage{iftex}
  5 +\usepackage{ifxetex,ifluatex}
6 6 \usepackage{fixltx2e} % provides \textsubscript
7   -\ifPDFTeX % use microtype with pdflatex if available
8   - \IfFileExists{microtype.sty}{\usepackage{microtype}}{}
9   -\fi
10   -\ifPDFTeX
  7 +% use microtype if available
  8 +\IfFileExists{microtype.sty}{\usepackage{microtype}}{}
  9 +\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
11 10 \usepackage[utf8]{inputenc}
12 11 $if(euro)$
13 12 \usepackage{eurosym}
14 13 $endif$
15   -\else
  14 +\else % if luatex or xelatex
16 15 \usepackage{fontspec}
17   - \ifXeTeX
  16 + \ifxetex
18 17 \usepackage{xltxtra,xunicode}
19 18 \fi
20 19 \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
@@ -82,7 +81,7 @@ $if(graphics)$
82 81 \let\Oldincludegraphics\includegraphics
83 82 \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
84 83 $endif$
85   -\ifXeTeX
  84 +\ifxetex
86 85 \usepackage[setpagesize=false, % page size defined by xetex
87 86 unicode=false, % unicode breaks when used with xetex
88 87 xetex]{hyperref}
@@ -117,7 +116,7 @@ $if(verbatim-in-note)$
117 116 \VerbatimFootnotes % allows verbatim text in footnotes
118 117 $endif$
119 118 $if(lang)$
120   -\ifXeTeX
  119 +\ifxetex
121 120 \usepackage{polyglossia}
122 121 \setmainlanguage{$mainlang$}
123 122 \else

0 comments on commit ba5f974

Please sign in to comment.
Something went wrong with that request. Please try again.