All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -perfbook] Load amsmath before fvextra (for lineno v5.0)
@ 2022-12-11 12:34 Akira Yokosawa
  2022-12-11 18:56 ` Paul E. McKenney
  0 siblings, 1 reply; 2+ messages in thread
From: Akira Yokosawa @ 2022-12-11 12:34 UTC (permalink / raw
  To: Paul E. McKenney; +Cc: perfbook, 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.

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -perfbook] Load amsmath before fvextra (for lineno v5.0)
  2022-12-11 12:34 [PATCH -perfbook] Load amsmath before fvextra (for lineno v5.0) Akira Yokosawa
@ 2022-12-11 18:56 ` Paul E. McKenney
  0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2022-12-11 18:56 UTC (permalink / raw
  To: Akira Yokosawa; +Cc: perfbook

On Sun, Dec 11, 2022 at 09:34:20PM +0900, Akira Yokosawa wrote:
> 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>

Queued and pushed, thank you!

							Thanx, Paul

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-11 18:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-11 12:34 [PATCH -perfbook] Load amsmath before fvextra (for lineno v5.0) Akira Yokosawa
2022-12-11 18:56 ` Paul E. McKenney

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.