Search
539 results for “pandoc”
-
𝗣𝗮𝗻𝗱𝗼𝗰:
#Document #Convert #Pandoc
https://thewhale.cc/posts/pandocPandoc is a universal document converter.
-
New in pandoc 3.9:
Many CSL styles will format citations differently when the same source has been cited earlier. In documents with chapters, it is usually desirable to reset this position information at the beginning of every chapter. To do this, add the class `reset-citation-positions` to the heading for each chapter:# The Beginning {.reset-citation-positions}
Note that this class only has an effect when placed on top-level headings; it is ignored in nested blocks.
-
Off-label-use: pandoc as a network downloader
Lua helper script (pget.lua):
#!/usr/bin/env pandoc-lua
local mb = require 'pandoc.mediabag'
local path = require 'pandoc.path'
local uri = arg[1] or error"No URI given"
local out = arg[2] or path.filename(uri)
local mt, content = mb.fetch(uri)
mb.insert(out, mt, content)
mb.write('.')Usage:
pandoc lua pget.lua URI [OUTFILE]
Example:
pandoc lua pget.lua https://pandoc.org/diagram.svgz diagram.svg
-
Off-label-use: pandoc as a network downloader
Lua helper script (pget.lua):
#!/usr/bin/env pandoc-lua
local mb = require 'pandoc.mediabag'
local path = require 'pandoc.path'
local uri = arg[1] or error"No URI given"
local out = arg[2] or path.filename(uri)
local mt, content = mb.fetch(uri)
mb.insert(out, mt, content)
mb.write('.')Usage:
pandoc lua pget.lua URI [OUTFILE]
Example:
pandoc lua pget.lua https://pandoc.org/diagram.svgz diagram.svg
-
Off-label-use: pandoc as a network downloader
Lua helper script (pget.lua):
#!/usr/bin/env pandoc-lua
local mb = require 'pandoc.mediabag'
local path = require 'pandoc.path'
local uri = arg[1] or error"No URI given"
local out = arg[2] or path.filename(uri)
local mt, content = mb.fetch(uri)
mb.insert(out, mt, content)
mb.write('.')Usage:
pandoc lua pget.lua URI [OUTFILE]
Example:
pandoc lua pget.lua https://pandoc.org/diagram.svgz diagram.svg
-
Off-label-use: pandoc as a network downloader
Lua helper script (pget.lua):
#!/usr/bin/env pandoc-lua
local mb = require 'pandoc.mediabag'
local path = require 'pandoc.path'
local uri = arg[1] or error"No URI given"
local out = arg[2] or path.filename(uri)
local mt, content = mb.fetch(uri)
mb.insert(out, mt, content)
mb.write('.')Usage:
pandoc lua pget.lua URI [OUTFILE]
Example:
pandoc lua pget.lua https://pandoc.org/diagram.svgz diagram.svg
-
Off-label-use: pandoc as a network downloader
Lua helper script (pget.lua):
#!/usr/bin/env pandoc-lua
local mb = require 'pandoc.mediabag'
local path = require 'pandoc.path'
local uri = arg[1] or error"No URI given"
local out = arg[2] or path.filename(uri)
local mt, content = mb.fetch(uri)
mb.insert(out, mt, content)
mb.write('.')Usage:
pandoc lua pget.lua URI [OUTFILE]
Example:
pandoc lua pget.lua https://pandoc.org/diagram.svgz diagram.svg
-
Off-label-use of pandoc: convert numbers from Roman numerals to Arabic numerals.
echo 'MMXXVI.' | pandoc -t commonmark
⇒ 2026. -
Off-label-use of pandoc: convert numbers from Roman numerals to Arabic numerals.
echo 'MMXXVI.' | pandoc -t commonmark
⇒ 2026. -
Off-label-use of pandoc: convert numbers from Roman numerals to Arabic numerals.
echo 'MMXXVI.' | pandoc -t commonmark
⇒ 2026. -
Off-label-use of pandoc: convert numbers from Roman numerals to Arabic numerals.
echo 'MMXXVI.' | pandoc -t commonmark
⇒ 2026. -
Off-label-use of pandoc: convert numbers from Roman numerals to Arabic numerals.
echo 'MMXXVI.' | pandoc -t commonmark
⇒ 2026. -
🆕 pandoc 3.8.3 🎉
This release adds three new input formats (#Asciidoc, #PPTX, and #XLSX) and one new output format (#BBCode + variants).
It also fixes a number of bugs (including some regressions in 3.8). See the changelog for full details.
Thanks to all who contributed!
-
Format-specific output can be passed through from input to output via “raw blocks” and “raw inlines”. E.g., inserting a pagebreak in docx would work via “raw_attributes” in Markdown:
```{=openxml}
<w:p>
<w:r><w:br w:type="page"/></w:r>
</w:p>
```Or to insert HTML from org mode:
@@html:<var>x</var>@@
-
Line breaks within a paragraph are treated as spaces in Markdown. However, this gives bad results in East Asian languages, where spaces between words are unusual. Use
pandoc -f markdown+east_asian_line_breaks
to ensure that line breaks between East Asian wide characters get ignored.
The extension also works with #CommonMark (commonmark), GitHub Flavored Markdown (gfm), and pandoc's CommonMark extension (commonmark_x).
-
"Moloch" is a clean, simple, and freshly modernized LaTeX beamer theme. It's the successor to the popular "Metropolis" theme, brought up to current standards by @jolars with some help from @samcarter.
Usage with pandoc:
pandoc --to=beamer --variable=theme:moloch …
Blog post: https://jolars.co/blog/2024-05-30-moloch/
-
Article by R. N. West on how to use #pandoc in an advanced way in order to generate corporate-styled Word documents.
The post explains custom styles, shows how #openxml templates can be used, and includes a short primer on important aspects of the #docx-format.
https://rnwest.engineer/auto-generate-docx-with-pandoc/ -
The "pandoc user's guide" Markdown file is part of the executable; it can be accessed by running
pandoc --print-default-data-file MANUAL.txt
Use
pandoc --print-default-data-file MANUAL.txt | pandoc …
to convert it to any pandoc-supported format. E.g., to read it in a terminal, try `--to=ansi`.