home.social

Search

539 results for “pandoc”

  1. 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.

  2. New off-label use: packing zip archives with pandoc:

    pandoc --extract-media=archive.zip <<EOF
    ![](file1.txt)
    ![](document.pdf)
    EOF

    #pandoc #offlabel

  3. New off-label use: packing zip archives with pandoc:

    pandoc --extract-media=archive.zip <<EOF
    ![](file1.txt)
    ![](document.pdf)
    EOF

  4. New off-label use: packing zip archives with pandoc:

    pandoc --extract-media=archive.zip <<EOF
    ![](file1.txt)
    ![](document.pdf)
    EOF

    #pandoc #offlabel

  5. New off-label use: packing zip archives with pandoc:

    pandoc --extract-media=archive.zip <<EOF
    ![](file1.txt)
    ![](document.pdf)
    EOF

    #pandoc #offlabel

  6. New off-label use: packing zip archives with pandoc:

    pandoc --extract-media=archive.zip <<EOF
    ![](file1.txt)
    ![](document.pdf)
    EOF

    #pandoc #offlabel

  7. Or as a single command, without a helper script:

    pandoc lua -l m=pandoc.mediabag \
    -e 'm.insert(OUTFILE, m.fetch(URI))' \
    -e 'm.write(".")'

    #pandoc #offLabel

  8. Or as a single command, without a helper script:

    pandoc lua -l m=pandoc.mediabag \
    -e 'm.insert(OUTFILE, m.fetch(URI))' \
    -e 'm.write(".")'

  9. Or as a single command, without a helper script:

    pandoc lua -l m=pandoc.mediabag \
    -e 'm.insert(OUTFILE, m.fetch(URI))' \
    -e 'm.write(".")'

    #pandoc #offLabel

  10. Or as a single command, without a helper script:

    pandoc lua -l m=pandoc.mediabag \
    -e 'm.insert(OUTFILE, m.fetch(URI))' \
    -e 'm.write(".")'

    #pandoc #offLabel

  11. Or as a single command, without a helper script:

    pandoc lua -l m=pandoc.mediabag \
    -e 'm.insert(OUTFILE, m.fetch(URI))' \
    -e 'm.write(".")'

    #pandoc #offLabel

  12. 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 pandoc.org/diagram.svgz diagram.svg

    #pandoc #lua #offLabel

  13. 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 pandoc.org/diagram.svgz diagram.svg

  14. 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 pandoc.org/diagram.svgz diagram.svg

    #pandoc #lua #offLabel

  15. 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 pandoc.org/diagram.svgz diagram.svg

    #pandoc #lua #offLabel

  16. 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 pandoc.org/diagram.svgz diagram.svg

    #pandoc #lua #offLabel

  17. Off-label-use of pandoc: convert numbers from Roman numerals to Arabic numerals.

    echo 'MMXXVI.' | pandoc -t commonmark
    ⇒ 2026.

    #pandoc #offLabel #romanNumerals

  18. Off-label-use of pandoc: convert numbers from Roman numerals to Arabic numerals.

    echo 'MMXXVI.' | pandoc -t commonmark
    ⇒ 2026.

  19. Off-label-use of pandoc: convert numbers from Roman numerals to Arabic numerals.

    echo 'MMXXVI.' | pandoc -t commonmark
    ⇒ 2026.

    #pandoc #offLabel #romanNumerals

  20. Off-label-use of pandoc: convert numbers from Roman numerals to Arabic numerals.

    echo 'MMXXVI.' | pandoc -t commonmark
    ⇒ 2026.

    #pandoc #offLabel #romanNumerals

  21. Off-label-use of pandoc: convert numbers from Roman numerals to Arabic numerals.

    echo 'MMXXVI.' | pandoc -t commonmark
    ⇒ 2026.

    #pandoc #offLabel #romanNumerals

  22. 🆕 pandoc 3.8.3 🎉

    This release adds three new input formats (, , and ) and one new output format ( + 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!

    github.com/jgm/pandoc/releases

  23. 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>@@

  24. 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), GitHub Flavored Markdown (gfm), and pandoc's CommonMark extension (commonmark_x).

  25. Article by @alefunguju on how to use pandoc to produce nice-looking diffs for docx and odt with , and even how to provide that functionality with .

    spiffyk.cz/blog/git-pandoc/

  26. "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: jolars.co/blog/2024-05-30-molo

  27. Article by R. N. West on how to use in an advanced way in order to generate corporate-styled Word documents.
    The post explains custom styles, shows how templates can be used, and includes a short primer on important aspects of the -format.
    rnwest.engineer/auto-generate-

  28. @pandoc Interesting tip. It's worth nothing that "pandoc.read" takes a second optional argument, the format (default markdown), so using "djot" here for instance woudld allow metadata in #djot etc.
    Subsequent question; can this be derived from the input file (or specified input format with -f) ?

  29. 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`.