From 20833b557e99820120b879c82e6911cdce006183 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Fri, 12 Aug 2016 12:41:05 +0200 Subject: [PATCH] set test to compile with some packages when luatex is the compiler and others when luatex is not the compiler --- commun/commun.sty | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/commun/commun.sty b/commun/commun.sty index b4ea222..c8958a0 100644 --- a/commun/commun.sty +++ b/commun/commun.sty @@ -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 -\RequirePackage{polyglossia} % LuaLaTeX -\setdefaultlanguage{french} % LuaLaTeX -% \RequirePackage[utf8]{inputenc} % LuaLaTeX => fontspec -% \RequirePackage[T1]{fontenc} % LuaLaTeX => fontspec -\RequirePackage{fontspec} % LuaLaTeX +\ifluatex + \RequirePackage{polyglossia} % LuaLaTeX + \setdefaultlanguage{french} % LuaLaTeX + \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}