Das Schweizer Taschenmesser des Konvertierens von Dokumenten.
Default data dir: $HOME/.pandoc
Convert Markdown to docx
(with Citations & Bibliography)
Test-Beispiel: Pandoc test file
pandoc "path/to/input.md" -o "path/to/output.docx" --citeproc --bibliography "path/to/library.bib" --csl "path/to/citation_style.csl"
Using a reference doc
pandoc “path/to/input.md” -o “path/to/output.docx” —citeproc —bibliography “path/to/library.bib” —csl “path/to/citation_style.csl”
pandoc "input.md" -o "output.docx" --data-dir="$HOME/.pandoc" --reference-doc=$HOME/.pandoc/reference-docs/custom-academic-paper.docx --citeproc --bibliography "bibliothek/bib/bibliothek.bib" --csl "https://raw.githubusercontent.com/citation-style-language/styles/master/unified-style-sheet-for-linguistics.csl"
Create scannable citations for Word
pandoc -s --lua-filter=zotero.lua --metadata=zotero_scannable_cite:true --metadata=zotero_client:jurism […]
Create default reference docx
and odt
pandoc --print-default-data-file reference.docx > $HOME/.pandoc/reference-docs/default-reference.docx
pandoc --print-default-data-file reference.odt > $HOME/.pandoc/reference-docs/default-reference.odt
Obsidian Plugin: Shell Commands
Convert active file to .docx
/usr/bin/pandoc {{folder_path:absolute}}/{{file_name}} -o {{folder_path:absolute}}/{{title}}.docx --citeproc --bibliography=zotero.bib --csl=apa.csl --reference-doc=essay-template2.docx
Using Emacs to insert Pandoc citations
With citar
, you can insert citations both in Org Mode and in Markdown. With citar-insert-citation
:
[@miestamo2017; @enfield2019; @kendon2004]
References
- Pandoc - Pandoc User’s Guide
- dotfiles · GitHub by Chris Grieser
- How do I add custom formatting to docx files generated in Pandoc? - Stack Overflow
- Pandoc Markdown to Docx with Cover Page and TOC in separated pages - Stack Overflow
- lua-filters · GitHub
- Using Pandoc to write PDFs, Word documents, and slideshows in Markdown - Obsidian Community Talk - YouTube