mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
Support "pagetotal" in converting BibLaTeX.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user