From bc76ad72f653325d71e2ecfa7ae9163f9d29a402 Mon Sep 17 00:00:00 2001 From: Richard <richard@fsmpi.rwth-aachen.de> Date: Tue, 29 Sep 2020 19:12:41 +0200 Subject: [PATCH] polyglossia for XeTeX, too LuaLaTeX shouldn't be the only choice to get polyglossia --- onlinelip/handout/handout.tex | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/onlinelip/handout/handout.tex b/onlinelip/handout/handout.tex index 5e412db..11f0759 100644 --- a/onlinelip/handout/handout.tex +++ b/onlinelip/handout/handout.tex @@ -8,11 +8,20 @@ % luaLaTeX? XeLaTeX? pdfLaTeX? \usepackage{ifluatex} -\ifluatex -\usepackage{polyglossia} -\setmainlanguage{german} +\usepackage{ifxetex} + +% there are two kinds of "good" tex: Lua and Xe +\newif\ifgoodtex +\goodtexfalse +\ifluatex \goodtextrue \fi +\ifxetex \goodtextrue \fi + +% "good" tex uses polyglossia +\ifgoodtex + \usepackage{polyglossia} + \setmainlanguage{german} \else -\usepackage[ngerman]{babel} + \usepackage[ngerman]{babel} \fi % Man wähle eine Font aus: -- GitLab