Skip to content

Commit

Permalink
docs: cleanup pgfmanual preamble
Browse files Browse the repository at this point in the history
- 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]>
  • Loading branch information
muzimuzhi committed Dec 21, 2023
1 parent eac0ce6 commit 2b7dbbf
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions doc/generic/pgf/pgfmanual-en-main-preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
perspective,
}

\usepackage{ifluatex}
\usepackage{iftex}
\newif\ifgdccodebasic
\newif\ifgdccodeogdf

Expand Down Expand Up @@ -168,14 +168,7 @@
% required by luatextra. Needs to be \relaxed since
% pgfmanual-en-macros.tex defines an environment named filedescription
\let\filedescription\relax
\usepackage[utf8]{luainputenc}
% dvisvgm does not support OpenType fonts so we have to bite the bullet and
% use T1 where quotes are weird. In LuaTeX \outputmode=0 means DVI.
\ifnum\outputmode=0
\usepackage[T1]{fontenc}
\fi
\else
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\fi

Expand Down

0 comments on commit 2b7dbbf

Please sign in to comment.