mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 02:06:32 +00:00
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 <jgm@berkeley.edu>
71 lines
1.7 KiB
XML
71 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing">
|
|
<w:body>
|
|
$if(title)$
|
|
<w:p>
|
|
<w:pPr>
|
|
<w:pStyle w:val="Title" />
|
|
</w:pPr>
|
|
$title$
|
|
</w:p>
|
|
$endif$
|
|
$if(subtitle)$
|
|
<w:p>
|
|
<w:pPr>
|
|
<w:pStyle w:val="Subtitle" />
|
|
</w:pPr>
|
|
$subtitle$
|
|
</w:p>
|
|
$endif$
|
|
$for(author)$
|
|
<w:p>
|
|
<w:pPr>
|
|
<w:pStyle w:val="Author" />
|
|
</w:pPr>
|
|
$author$
|
|
</w:p>
|
|
$endfor$
|
|
$if(date)$
|
|
<w:p>
|
|
<w:pPr>
|
|
<w:pStyle w:val="Date" />
|
|
</w:pPr>
|
|
$date$
|
|
</w:p>
|
|
$endif$
|
|
$if(abstract)$
|
|
$if(abstract-title)$
|
|
<w:p>
|
|
<w:pPr>
|
|
<w:pStyle w:val="AbstractTitle" />
|
|
</w:pPr>
|
|
<w:r><w:t xml:space="preserve">$abstract-title$</w:t></w:r>
|
|
</w:p>
|
|
$endif$
|
|
$abstract$
|
|
$endif$
|
|
$for(include-before)$
|
|
$include-before$
|
|
$endfor$
|
|
$if(toc)$
|
|
$toc$
|
|
$endif$
|
|
$if(lof)$
|
|
$lof$
|
|
$endif$
|
|
$if(lot)$
|
|
$lot$
|
|
$endif$
|
|
$body$
|
|
$for(include-after)$
|
|
$include-after$
|
|
$endfor$
|
|
$-- sectpr will be set to the last sectpr in a reference.docx, if present
|
|
$if(sectpr)$
|
|
$sectpr$
|
|
$else$
|
|
<w:sectPr />
|
|
$endif$
|
|
</w:body>
|
|
</w:document>
|