From ca348940e3197180b25a64fdba16df7a62e88b6e Mon Sep 17 00:00:00 2001 From: Akash Patel <17132214+acxz@users.noreply.github.com> Date: Sun, 22 Sep 2024 13:49:52 -0500 Subject: 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 --- doc/pandoc-server.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') diff --git a/doc/pandoc-server.md b/doc/pandoc-server.md index c5c4e36d9..881e16f46 100644 --- a/doc/pandoc-server.md +++ b/doc/pandoc-server.md @@ -190,6 +190,14 @@ the first one given is the default. : Depth of sections to include in the table of contents. +`list-of-figures` (boolean, default false) + +: Include a list of figures (in supported formats). + +`list-of-tables` (boolean, default false) + +: Include a list of tables (in supported formats). + `strip-comments` (boolean, default false) : Causes HTML comments to be stripped in Markdown or Textile -- cgit v1.2.3