aboutsummaryrefslogtreecommitdiff
path: root/data
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 /data
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 'data')
-rw-r--r--data/templates/default.openxml6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/default.openxml b/data/templates/default.openxml
index bfbf102d7..0cfc6e1a2 100644
--- a/data/templates/default.openxml
+++ b/data/templates/default.openxml
@@ -50,6 +50,12 @@ $endfor$
$if(toc)$
$toc$
$endif$
+$if(lof)$
+ $lof$
+$endif$
+$if(lot)$
+ $lot$
+$endif$
$body$
$for(include-after)$
$include-after$