aboutsummaryrefslogtreecommitdiff
path: root/pandoc-server
diff options
context:
space:
mode:
authorAkash Patel <[email protected]>2024-09-22 13:49:52 -0500
committerGitHub <[email protected]>2024-09-22 11:49:52 -0700
commitca348940e3197180b25a64fdba16df7a62e88b6e (patch)
treebdb537d0750d7db697c1bdaf1ffece568f7063bd /pandoc-server
parent46ebe25b69d59a670d3b3e2ff61d93c80bfad7f3 (diff)
Add support for list of figures (lof) and list of tables (lot) (#10029)
Two new command-line options are added: `--lof[=true|false]`, `--list-of-figures[=true|false]` `--lot[=true|false]`, `--list-of-tables[=true|false]` Only docx, latex, and context are supported at this point. Setting the `lof` and `lot` variables will also work for the formats that are currently supported. [API changes] + Lua: `list_of_figures` and `list_of_tables` can now be used in writer options. + Text.Pandoc.Options: add `writerListOfFigures` and `writerListOfTables` fields to `WriterOptions`. + Text.Pandoc.App.Opt: add `optListOfFigures` and `optListOfTables` to `Opt`. Closes #8245. Co-authored-by: John MacFarlane <[email protected]>
Diffstat (limited to 'pandoc-server')
-rw-r--r--pandoc-server/src/Text/Pandoc/Server.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/pandoc-server/src/Text/Pandoc/Server.hs b/pandoc-server/src/Text/Pandoc/Server.hs
index b5b8a77e7..e5f8dee90 100644
--- a/pandoc-server/src/Text/Pandoc/Server.hs
+++ b/pandoc-server/src/Text/Pandoc/Server.hs
@@ -312,6 +312,8 @@ server = convertBytes
, writerSyntaxMap = defaultSyntaxMap
, writerVariables = optVariables opts
, writerTableOfContents = optTableOfContents opts
+ , writerListOfFigures = optListOfFigures opts
+ , writerListOfTables = optListOfTables opts
, writerIncremental = optIncremental opts
, writerHTMLMathMethod = optHTMLMathMethod opts
, writerNumberSections = optNumberSections opts