set test to compile with some packages when

luatex is the compiler and others when luatex
is not the compiler
This commit is contained in:
Jeff Lance 2016-08-12 12:41:05 +02:00
parent d8c3c6a855
commit 20833b557e

View File

@ -17,13 +17,26 @@
%-- extensions
% programmation
\RequirePackage{xifthen}
\RequirePackage{ifmtarg}
\RequirePackage{ifpdf}
\RequirePackage{xstring}
\RequirePackage{multido}
\RequirePackage{xparse}
\RequirePackage{etoolbox}
\RequirePackage{ifluatex}
% langue
% \RequirePackage[francais]{babel} % LuaLaTeX =>polyglossia
\ifluatex
\RequirePackage{polyglossia} % LuaLaTeX
\setdefaultlanguage{french} % LuaLaTeX
% \RequirePackage[utf8]{inputenc} % LuaLaTeX => fontspec
% \RequirePackage[T1]{fontenc} % LuaLaTeX => fontspec
\RequirePackage{fontspec} % LuaLaTeX
\else
\RequirePackage[francais]{babel} % LuaLaTeX =>polyglossia
\RequirePackage[utf8]{inputenc} % LuaLaTeX => fontspec
\RequirePackage[T1]{fontenc} % LuaLaTeX => fontspec
\fi
% polices
\RequirePackage{libertine}
@ -32,6 +45,7 @@
\RequirePackage{eurosym}
\RequirePackage{bbding}
% couleur, dessin
\RequirePackage{xcolor}
\RequirePackage[framemethod=tikz]{mdframed}
\RequirePackage{graphicx}
@ -46,15 +60,6 @@
\RequirePackage{asymptote}
\RequirePackage{mathrsfs}
% programmation
\RequirePackage{xifthen}
\RequirePackage{ifmtarg}
\RequirePackage{ifpdf}
\RequirePackage{xstring}
\RequirePackage{multido}
\RequirePackage{xparse}
\RequirePackage{etoolbox}
% tableau
\RequirePackage{array}
\RequirePackage{tabularx}