diff --git a/man/pandoc-lua.1 b/man/pandoc-lua.1
--- a/man/pandoc-lua.1
+++ b/man/pandoc-lua.1
@@ -1,6 +1,6 @@
-.\" Automatically generated by Pandoc 3.4
+.\" Automatically generated by Pandoc 3.5
 .\"
-.TH "pandoc-lua" "1" "September 22, 2022" "pandoc 3.4" "Pandoc User\[cq]s Guide"
+.TH "pandoc-lua" "1" "September 22, 2022" "pandoc 3.5" "Pandoc User\[cq]s Guide"
 .SH SYNOPSIS
 \f[CR]pandoc\-lua\f[R] [\f[I]options\f[R]] [\f[I]script\f[R]
 [\f[I]args\f[R]]]
diff --git a/man/pandoc-server.1 b/man/pandoc-server.1
--- a/man/pandoc-server.1
+++ b/man/pandoc-server.1
@@ -1,6 +1,6 @@
-.\" Automatically generated by Pandoc 3.4
+.\" Automatically generated by Pandoc 3.5
 .\"
-.TH "pandoc-server" "1" "August 15, 2022" "pandoc 3.4" "Pandoc User\[cq]s Guide"
+.TH "pandoc-server" "1" "August 15, 2022" "pandoc 3.5" "Pandoc User\[cq]s Guide"
 .SH SYNOPSIS
 \f[CR]pandoc\-server\f[R] [\f[I]options\f[R]]
 .SH DESCRIPTION
@@ -166,6 +166,12 @@
 .TP
 \f[CR]toc\-depth\f[R] (integer, default 3)
 Depth of sections to include in the table of contents.
+.TP
+\f[CR]list\-of\-figures\f[R] (boolean, default false)
+Include a list of figures (in supported formats).
+.TP
+\f[CR]list\-of\-tables\f[R] (boolean, default false)
+Include a list of tables (in supported formats).
 .TP
 \f[CR]strip\-comments\f[R] (boolean, default false)
 Causes HTML comments to be stripped in Markdown or Textile source,
diff --git a/man/pandoc.1 b/man/pandoc.1
--- a/man/pandoc.1
+++ b/man/pandoc.1
@@ -1,6 +1,6 @@
-.\" Automatically generated by Pandoc 3.4
+.\" Automatically generated by Pandoc 3.5
 .\"
-.TH "pandoc" "1" "September 9, 2024" "pandoc 3.4" "Pandoc User\[cq]s Guide"
+.TH "pandoc" "1" "October 5, 2024" "pandoc 3.5" "Pandoc User\[cq]s Guide"
 .SH NAME
 pandoc - general markup converter
 .SH SYNOPSIS
@@ -890,6 +890,20 @@
 The default is 3 (which means that level\-1, 2, and 3 headings will be
 listed in the contents).
 .TP
+\f[CR]\-\-lof[=true|false]\f[R], \f[CR]\-\-list\-of\-figures[=true|false]\f[R]
+Include an automatically generated list of figures (or, in some formats,
+an instruction to create one) in the output document.
+This option has no effect unless \f[CR]\-s/\-\-standalone\f[R] is used,
+and it only has an effect on \f[CR]latex\f[R], \f[CR]context\f[R], and
+\f[CR]docx\f[R] output.
+.TP
+\f[CR]\-\-lot[=true|false]\f[R], \f[CR]\-\-list\-of\-tables[=true|false]\f[R]
+Include an automatically generated list of tables (or, in some formats,
+an instruction to create one) in the output document.
+This option has no effect unless \f[CR]\-s/\-\-standalone\f[R] is used,
+and it only has an effect on \f[CR]latex\f[R], \f[CR]context\f[R], and
+\f[CR]docx\f[R] output.
+.TP
 \f[CR]\-\-strip\-comments[=true|false]\f[R]
 Strip out HTML comments in the Markdown or Textile source, rather than
 passing them on to Markdown, Textile or HTML output as raw HTML.
@@ -2010,6 +2024,14 @@
 
  \-\-listings                        listings: true                
 
+ \-\-list\-of\-figures                 list\-of\-figures: true         
+
+ \-\-lof                             lof: true                     
+
+ \-\-list\-of\-tables                  list\-of\-tables: true          
+
+ \-\-lot                             lot: true                     
+
  \-\-incremental                     incremental: true             
 
  \-\-slide\-level 2                   slide\-level: 2                
@@ -2809,14 +2831,18 @@
 \f[CR]theme\f[R], \f[CR]colortheme\f[R], \f[CR]fonttheme\f[R], \f[CR]innertheme\f[R], \f[CR]outertheme\f[R]
 beamer themes
 .TP
-\f[CR]themeoptions\f[R]
-options for LaTeX beamer themes (a list).
+\f[CR]themeoptions\f[R], \f[CR]colorthemeoptions\f[R], \f[CR]fontthemeoptions\f[R], \f[CR]innerthemeoptions\f[R], \f[CR]outerthemeoptions\f[R]
+options for LaTeX beamer themes (lists)
 .TP
 \f[CR]titlegraphic\f[R]
-image for title slide
+image for title slide: can be a list
 .TP
 \f[CR]titlegraphicoptions\f[R]
 options for title slide image
+.TP
+\f[CR]shorttitle\f[R], \f[CR]shortsubtitle\f[R], \f[CR]shortauthor\f[R], \f[CR]shortinstitute\f[R], \f[CR]shortdate\f[R]
+some beamer themes use short versions of the title, subtitle, author,
+institute, date
 .SS Variables for PowerPoint
 These variables control the visual aspects of a slide show that are not
 easily controlled via templates.
@@ -2930,7 +2956,10 @@
 option or \f[CR]numbersections\f[R] variable)
 .TP
 \f[CR]beamerarticle\f[R]
-produce an article from Beamer slides
+produce an article from Beamer slides.
+Note: if you set this variable, you must specify the beamer writer but
+use the default \f[I]LaTeX\f[R] template: for example,
+\f[CR]pandoc \-Vbeamerarticle \-t beamer \-\-template default.latex\f[R].
 .TP
 \f[CR]handout\f[R]
 produce a handout version of Beamer slides (with overlays condensed into
@@ -3058,7 +3087,9 @@
 .SS Front matter
 .TP
 \f[CR]lof\f[R], \f[CR]lot\f[R]
-include list of figures, list of tables
+include list of figures, list of tables (can also be set using
+\f[CR]\-\-lof/\-\-list\-of\-figures\f[R],
+\f[CR]\-\-lot/\-\-list\-of\-tables\f[R])
 .TP
 \f[CR]thanks\f[R]
 contents of acknowledgments footnote after document title
@@ -7521,7 +7552,7 @@
 To get a JSON version of the \f[CR]pygments\f[R] style, for example:
 .IP
 .EX
-pandoc \-\-print\-highlight\-style pygments > my.theme
+pandoc \-o my.theme \-\-print\-highlight\-style pygments
 .EE
 .PP
 Then edit \f[CR]my.theme\f[R] and use it like this:
@@ -7536,6 +7567,10 @@
 definition file.
 Before writing your own, have a look at KDE\[cq]s repository of syntax
 definitions.
+.PP
+If you receive an error that pandoc \[lq]Could not read highlighting
+theme\[rq], check that the JSON file is encoded with UTF\-8 and has no
+Byte\-Order Mark (BOM).
 .PP
 To disable highlighting, use the \f[CR]\-\-no\-highlight\f[R] option.
 .SH CUSTOM STYLES
diff --git a/pandoc-cli.cabal b/pandoc-cli.cabal
--- a/pandoc-cli.cabal
+++ b/pandoc-cli.cabal
@@ -1,6 +1,6 @@
 cabal-version:   2.4
 name:            pandoc-cli
-version:         3.4
+version:         3.5
 build-type:      Simple
 license:         GPL-2.0-or-later
 license-file:    COPYING.md
@@ -70,7 +70,7 @@
   buildable:       True
   -- Note: we always link to an exact version of pandoc, with the
   -- same version as this package:
-  build-depends:   pandoc == 3.4,
+  build-depends:   pandoc == 3.5,
                    text
   other-modules:   PandocCLI.Lua
                  , PandocCLI.Server
@@ -79,7 +79,7 @@
     build-depends:  template-haskell,
                     time
   if flag(server)
-    build-depends:   pandoc-server >= 0.1.0.6 && < 0.2,
+    build-depends:   pandoc-server >= 0.1.0.9 && < 0.2,
                      wai-extra >= 3.0.24,
                      warp,
                      safe
@@ -89,7 +89,7 @@
 
   if flag(lua)
     build-depends:   hslua-cli         >= 1.4.1 && < 1.5,
-                     pandoc-lua-engine >= 0.3.1 && < 0.4,
+                     pandoc-lua-engine >= 0.3.3 && < 0.4,
                      temporary         >= 1.1 && < 1.4
     hs-source-dirs:  lua
   else
