-
Notifications
You must be signed in to change notification settings - Fork 13
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
Biblatex option #1
Comments
Currently, the only way to do this currently is to pass panzer does not allow arbitrary pandoc command line options to set via metadata. I have been thinking of implementing this, but haven't thought of a good metadata syntax to express it. There are some use cases, like the one you mention, Over time pandoc has moved some command-line only options to permit them to be set via metadata (e.g. |
I've figured out a way to do this. I will implement it. All command line options, with the exception of reader and writer, will be settable via a metadata field. I'll push the changes once the feature is implemented. |
That's great. I think panzer is going to be a lot more convenient than my current setup with make files.
|
It's now implemented in the latest commit. I've added a new style definition field, Your new style definition should be:
Let me know if there are any problems. |
It's working for me. Thanks!
|
For some reason I haven't been able to figure out yet, adding
So the option is being passed, and adding it explicitly to the call to panzer works fine. My style.yaml looks like this:
The same thing happens with HTML(5). |
I've noticed something else: LaTeX output should be 'smart' by default, but now it is as if the |
Can you describe the issue more accurately? I don't follow.
pandoc's LaTeX writer is not 'smart' by default; you need to explicitly pass I don't follow the comment on |
Sorry, 'commandline: smart' was a typo; I have been doing correctly as in the style file in the above post. Here's an MWE for the problem. This is the 'styles.yaml':
This is a markdown file:
That should set the I run the following commands and get three files where the quotes aren't 'smart':
These with Pandoc do give me 'smart' quotes:
The interesting thing with LaTeX is the default would be smart, and
|
I've worked out what is going on. The current implementation only sets pandoc writer options. The latex writer issue is an interesting edge case. It is an instance when a pandoc reader option ( |
Both issues -- setting reader options and automatically setting |
It's working for me now. Thanks for a great tool.
|
Thank you!
|
I would like to use pandoc's
--biblatex
option. I though that the following 'style.yaml' file would do it:But when I do
$ panzer --output foo.tex foo.txt
it's clear that the biblatex option hasn't been called: my cite keys haven't turned to citations commands, and biblatex hasn't been called. I do get numbered sections, so it's not that panzer doesn't see my files or anything like that.By the way, doing this works fine:
$panzer --biblatex --output foo.tex foo.txt
. Have I failed to set something up right in my style file?The text was updated successfully, but these errors were encountered: