Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: cleanup pgfmanual preamble #1300

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

muzimuzhi
Copy link
Member

  • 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.

Motivation for this change

Preparation for adding a log analyzing step to manual compiling workflow, using texlogsieve (#1210 proposed a manual way using grep).

texlogsieve --only-summary pgfmanual.log

Currently texlogsieve throws parsing errors among log lines written by luainputinc. I then found it's not required anymore in nowadays LuaLaTeX documents, along with some more cleanup opportunities in pgfmanual preamble.

texlogsieve errors and corresponding log lines

/    texlogsieve: parsing error near input line 1350 (utf8FontMapHandler:handleOtherLines)
    texlogsieve: parsing error near input line 1356 (utf8FontMapHandler:handleOtherLines)
-    texlogsieve: parsing error near input line 1362 (utf8FontMapHandler:handleOtherLines)
\    texlogsieve: parsing error near input line 1368 (utf8FontMapHandler:handleOtherLines)
(/usr/local/texlive/2023/texmf-dist/tex/lualatex/luainputenc/lutf8.def
File: lutf8.def 2010/05/10 v0.97 UTF-8 support for luainputenc
Now handling font encoding OML ...
... no UTF-8 mapping file for font encoding OML
Now handling font encoding OMS ...
... processing UTF-8 mapping file for font encodingOMS

(/usr/local/texlive/2023/texmf-dist/tex/latex/base/omsenc.dfu
File: omsenc.dfu 2022/06/07 v1.3c UTF-8 support
)
Now handling font encoding OT1 ...
... processing UTF-8 mapping file for font encodingOT1

(/usr/local/texlive/2023/texmf-dist/tex/latex/base/ot1enc.dfu
File: ot1enc.dfu 2022/06/07 v1.3c UTF-8 support
)
Now handling font encoding T1 ...
... processing UTF-8 mapping file for font encodingT1

(/usr/local/texlive/2023/texmf-dist/tex/latex/base/t1enc.dfu
File: t1enc.dfu 2022/06/07 v1.3c UTF-8 support
)
Now handling font encoding TS1 ...
... processing UTF-8 mapping file for font encodingTS1

Checklist

Please signoff your commits to explicitly state your agreement to the Developer Certificate of Origin. If that is not possible you may check the boxes below instead:

- 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 <muzimuzhi@gmail.com>
@muzimuzhi muzimuzhi merged commit ca30360 into pgf-tikz:master Dec 21, 2023
3 checks passed
@muzimuzhi muzimuzhi deleted the docs/cleanup-preamble branch December 21, 2023 22:43
loopspace pushed a commit to loopspace/pgf that referenced this pull request Apr 2, 2024
- 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 <muzimuzhi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants