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

Question: support of YAML config as pandoc command line arguments? #117

Closed
cavo789 opened this issue Sep 10, 2019 · 2 comments
Closed

Question: support of YAML config as pandoc command line arguments? #117

cavo789 opened this issue Sep 10, 2019 · 2 comments
Labels

Comments

@cavo789
Copy link

cavo789 commented Sep 10, 2019

Good morning.

I've made a lot of .md documentations for my company and I wish to be able to specify the logo not in my document but as command line arguments.

So, in my .md, I've this:

logo: "logo.pdf"
logo-width: "200"

But I need to put these two lines in all my markdown files...

Is it possible to specify YAML arguments as pandoc arguments like in:

pandoc example.md -o example.pdf --from markdown --template eisvogel --listings --logo logo.pdf

Many thanks!!!

@cavo789
Copy link
Author

cavo789 commented Sep 10, 2019

Found after posting here... jgm/pandoc#1960 (comment)

There is an --metadata-file arguments for this:

pandoc example.md -o example.pdf --from markdown --template eisvogel --metadata-file=defaults.yaml

Many thanks

@cavo789 cavo789 closed this as completed Sep 10, 2019
@Wandmalfarbe
Copy link
Owner

You can also set the variable directly on the command line with the -V option:

pandoc example.md -o example.pdf --from markdown --template eisvogel --listings -V logo="logo.pdf"

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