Pandoc template support
See original GitHub issueRequested by @EleanorKonik on the Discord’s #creative channel
Basically, you can write template files for most output formats which use a templating language to include bits of the input document. Using the Pandoc CLI the command will have a --template=file.tex
if you’ve got a template called file.tex
in the working directory or ~/.pandoc/templates
.
My idea for the UX is to have a setting where you list files anywhere in your vault that you’d like to be templates (or specify a template directory?). Then, when you export, if there are any custom templates for that export type you should be prompted for the template you want, including the default one.
Related links:
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (4 by maintainers)
Top Results From Across the Web
Pandoc User's Guide
The package does not support multi-byte encoding for source code. To handle UTF-8 you would need to use a custom template. This issue...
Read more >GitHub - kjhealy/pandoc-templates
A collection of support files for use with Pandoc, and specifically for helping to turn pandoc markdown files into nice HTML, LaTeX, and...
Read more >17.3 Custom Pandoc templates | R Markdown - Bookdown
17.3 Custom Pandoc templates. An R Markdown is first compiled to Markdown through knitr, and then converted to an output document (e.g., PDF,...
Read more >Pandoc Templates - Fractaled Mind
A collection of support files for use with Pandoc, and specifically for helping to turn pandoc markdown files into nice HTML, LaTeX, PDF,...
Read more >Academic Pandoc template - GitHub Pages
Write beautiful academic texts with the distraction-free Pandoc Markdown and typademic. ... make help to get a list of all available commands ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
What about having a template: in the YAML front matter. For example, saying:
would be the same as
--template=local.latex
. That would allow to choose a different template per note. No need therefore to change the settings or to ask the user to choose a template each time one exports a note.As I said, the only time I tested this, I used a web URL (which is supported by the
--template
pandoc option, and also worked when i added it to the “additional arguments” section of the plugin settings), so no, no spaces!