Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paru doesn't recognise "lof:true" and "lot:true #24

Open
admin-teametry opened this issue Apr 3, 2019 · 1 comment
Open

Paru doesn't recognise "lof:true" and "lot:true #24

admin-teametry opened this issue Apr 3, 2019 · 1 comment
Labels

Comments

@admin-teametry
Copy link

admin-teametry commented Apr 3, 2019

Hi,

I'm playing around with your Workflow.md example and testet some options. If I want a listoffigures and listoftables I have to set these option in pandocomatic.yaml. So I extended your brief pandocomatic.yaml example with
" paper-with-refs-latex:
extends: ['refs'] #we can inherit from other templates
pandoc:
from: markdown
to: latex
template: ./custom.latex
toc: true
toc-depth: 4
lof: true
lot: true

base-header-level: 2
filter:
- './assimilateMetadata.rb' #regularise metadata fields so pandoc template can use it more easily
metadata:
CJKmainfont: 'PingFang SC'
lang: 'en-GB'
papersize: 'A4'
documentclass: 'article'
fontsize: '12pt'
linestretch: '1.75'
geometry: 'margin=2cm'
nonumberfigures: true
linkcolor: Mahogany
citecolor: Sepia
urlcolor: BrickRed
#########################################
pdf-refs:
extends: [paper-with-refs-latex]
pandoc:
to: pdf
pdf-engine: 'xelatex'
cleanup: ['latexmk -c']
"

And in the scrivomatic.log I get this:
"::: The pandoc option 'lof' (with value 'true') is not recognized by paru. This option is skipped.
::: The pandoc option 'lot' (with value 'true') is not recognized by paru. This option is skipped."

Any hints how to fix it?

Thanks and best regards
Andreas

@iandol
Copy link
Owner

iandol commented Apr 3, 2019

lot and lof are not Pandoc options, but metadata, so try to put lot and lof under the metadata: section of the YAML file. toc is a special case as it is a general writer option with a commandline switch which is why it is under the pandoc: section...

http://pandoc.org/MANUAL.html#front-matter

@iandol iandol added the question label Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants