From e81a60fdf2021ddc97e2a50e67dd068a27e603fe Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 7 Feb 2024 08:15:47 -0800 Subject: Support "pagetotal" in converting BibLaTeX. --- src/Text/Pandoc/Citeproc/BibTeX.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Citeproc/BibTeX.hs b/src/Text/Pandoc/Citeproc/BibTeX.hs index 4b8b54ded..3e8f99e50 100644 --- a/src/Text/Pandoc/Citeproc/BibTeX.hs +++ b/src/Text/Pandoc/Citeproc/BibTeX.hs @@ -147,6 +147,7 @@ writeBibtexString opts variant mblang ref = , "volumes" , "number" , "pages" + , "pagetotal" , "version" , "date" , "eventdate" @@ -327,6 +328,8 @@ writeBibtexString opts variant mblang ref = getContentsFor "year" = getVariable "issued" >>= getYear getContentsFor "month" = getVariable "issued" >>= getMonth getContentsFor "pages" = getVariable "page" >>= toLaTeX . valToInlines + getContentsFor "pagetotal" = getVariable "number-of-pages" + >>= toLaTeX . valToInlines getContentsFor "langid" = getVariable "language" >>= toLaTeX . valToInlines getContentsFor "number" = (getVariable "number" <|> getVariable "collection-number" -- cgit v1.2.3