From: Akira Yokosawa <akiyks@gmail.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: perfbook@vger.kernel.org, Akira Yokosawa <akiyks@gmail.com>
Subject: [PATCH -perfbook] Load amsmath before fvextra (for lineno v5.0)
Date: Sun, 11 Dec 2022 21:34:20 +0900 [thread overview]
Message-ID: <53062ca0-0fe0-8cb3-5758-c77a010b8776@gmail.com> (raw)
LaTeX package lineno v5.0 incorporated patching of amsmath code
for compatibility. (Pre-v5.0 lineno needs a separate package
linenoamsmath --- now obsolete --- for such compatibility.)
This introduced the ordering requirement that lineno needs to be
loaded after amsmath [1].
In perfbook, lineno is required by fvextra and amsmath is required
by glossaries which is again required by glossaries-extra.
Hence lineno is loaded before amsmath and causes a fatal error with
lineno v5.0.
As a workaround, explicitly load amsmath before fvextra.
Link: [1] https://github.com/latex-lineno/lineno/issues/5
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
Hi,
Having seen no response from lineno's new maintainer for a couple
of days, let's go forward and apply this otherwise harmless change
in our preamble.
Thanks, Akira
--
perfbook-lt.tex | 1 +
1 file changed, 1 insertion(+)
diff --git a/perfbook-lt.tex b/perfbook-lt.tex
index 80e36084ed3b..d5383f07c5a6 100644
--- a/perfbook-lt.tex
+++ b/perfbook-lt.tex
@@ -55,6 +55,7 @@
\usepackage{pifont} % symbols for qqz reference points and carriagereturn
\usepackage{gensymb} % symbols for both text and math modes such as \degree and \micro
\usepackage{verbatimbox}[2014/01/30] % for centering verbatim listing in figure environment
+\usepackage{amsmath} % lineno v5.0 (loaded via fvextra) needs amsmath in front
\usepackage{fancyvrb}
\usepackage{fvextra}[2016/09/02]
\usepackage[bottom]{footmisc} % place footnotes under floating figures/tables
base-commit: 4b38d9da63b7a90bcd2046df249b406bb465f5bd
--
2.25.1
next reply other threads:[~2022-12-11 12:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-11 12:34 Akira Yokosawa [this message]
2022-12-11 18:56 ` [PATCH -perfbook] Load amsmath before fvextra (for lineno v5.0) Paul E. McKenney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53062ca0-0fe0-8cb3-5758-c77a010b8776@gmail.com \
--to=akiyks@gmail.com \
--cc=paulmck@kernel.org \
--cc=perfbook@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).