Browse code

Improve xelatex support

Michael F. Schönitzer authored on03/08/2019 21:58:48
Showing2 changed files
... ...
@@ -1,25 +1,27 @@
1
+CC=xelatex
2
+
1 3
 all:  audio.pdf edu.pdf web.pdf video.pdf office.pdf grafik.pdf games.pdf
2 4
 
3 5
 grafik.pdf: leaflet/leaflet.cls grafik.tex header.tex
4
-	lualatex -interaction=nonstopmode grafik.tex
6
+	$(CC) -interaction=nonstopmode grafik.tex
5 7
 
6 8
 office.pdf: leaflet/leaflet.cls office.tex header.tex
7
-	lualatex -interaction=nonstopmode office.tex
9
+	$(CC) -interaction=nonstopmode office.tex
8 10
 
9 11
 video.pdf: leaflet/leaflet.cls video.tex header.tex
10
-	lualatex -interaction=nonstopmode video.tex
12
+	$(CC) -interaction=nonstopmode video.tex
11 13
 
12 14
 web.pdf: leaflet/leaflet.cls web.tex header.tex
13
-	lualatex -interaction=nonstopmode web.tex
15
+	$(CC) -interaction=nonstopmode web.tex
14 16
 
15 17
 edu.pdf: leaflet/leaflet.cls edu.tex header.tex
16
-	lualatex -interaction=nonstopmode edu.tex
18
+	$(CC) -interaction=nonstopmode edu.tex
17 19
 
18 20
 audio.pdf: leaflet/leaflet.cls audio.tex header.tex
19
-	lualatex -interaction=nonstopmode audio.tex
21
+	$(CC) -interaction=nonstopmode audio.tex
20 22
 
21 23
 games.pdf: leaflet/leaflet.cls games.tex header.tex
22
-	lualatex -interaction=nonstopmode games.tex
24
+	$(CC) -interaction=nonstopmode games.tex
23 25
 
24 26
 leaflet/leaflet.cls: leaflet/leaflet.ins leaflet/leaflet.dtx
25 27
 	cd leaflet; pdflatex leaflet.ins 
... ...
@@ -1,7 +1,13 @@
1 1
 \documentclass[12pt,a4paper,foldcorr]{leaflet/leaflet}
2
-\usepackage[utf8]{luainputenc} % remove if you want to use XeTeX
2
+\usepackage{ifxetex}
3
+\ifxetex
4
+  \usepackage{fontspec}
5
+\else
6
+  \usepackage[T1]{fontenc}
7
+  \usepackage[utf8]{inputenc}
8
+  \usepackage{lmodern}
9
+\fi
3 10
 \usepackage[ngerman]{babel}
4
-\usepackage[T1]{fontenc}
5 11
 \usepackage{microtype}
6 12
 \usepackage{graphicx}
7 13
 \usepackage[cmyk]{xcolor}