Load amsmath before fvextra (for lineno v5.0)
PATCH 1/1 Load amsmath before fvextra (for lineno v5.0)
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.
---
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
Signature · 2 lines
perfbook-lt.tex | 1 + 1 file changed, 1 insertion(+)
perfbook-lt.tex +1 -0
@@ -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
Signature · 1 line
2.25.1
Paul E. McKenney
AppliedQuoted 11 lines · Akira Yokosawa
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.
Quoted 4 lines
As a workaround, explicitly load amsmath before fvextra.
Signed-off-by Akira Yokosawa <[email protected]>
Queued and pushed, thank you!
Thanx, Paul
Quoted 29 lines
---
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
Signature · 2 lines
perfbook-lt.tex | 1 + 1 file changed, 1 insertion(+)perfbook-lt.tex +1
-0@@ -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/tablesbase-commit:
4b38d9da63b7a90bcd2046df249b406bb465f5bdSignature · 1 line
2.25.1