Skip to content

Commit ca30360

Browse files
authored
docs: cleanup pgfmanual preamble (#1300)
- Replace deprecated `ifluatex` package with `iftex` - Drop setting input encoding to `utf8` `utf8` has been the new default since LaTeX2e release 2018-04-01. - Drop setting `T1` font encoding for `dvisvgm` `dvisvgm` has supported OpenType fonts for years. Signed-off-by: Yukai Chou <[email protected]>
1 parent eac0ce6 commit ca30360

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

doc/generic/pgf/pgfmanual-en-main-preamble.tex

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
perspective,
101101
}
102102

103-
\usepackage{ifluatex}
103+
\usepackage{iftex}
104104
\newif\ifgdccodebasic
105105
\newif\ifgdccodeogdf
106106

@@ -168,14 +168,7 @@
168168
% required by luatextra. Needs to be \relaxed since
169169
% pgfmanual-en-macros.tex defines an environment named filedescription
170170
\let\filedescription\relax
171-
\usepackage[utf8]{luainputenc}
172-
% dvisvgm does not support OpenType fonts so we have to bite the bullet and
173-
% use T1 where quotes are weird. In LuaTeX \outputmode=0 means DVI.
174-
\ifnum\outputmode=0
175-
\usepackage[T1]{fontenc}
176-
\fi
177171
\else
178-
\usepackage[utf8]{inputenc}
179172
\usepackage[T1]{fontenc}
180173
\fi
181174

0 commit comments

Comments
 (0)