Below is a custom #Lua writer that behaves like a built-in writer. It can serve as the basis for a modified writer, e.g., one with a programmatically modified template. https://pandoc.org/custom-writers
local format = 'commonmark'
Extensions = pandoc.format.extensions(format)
Template = pandoc.template.default(format)
Writer = function (doc, opts)
return pandoc.write(doc, {format=format, extensions=opts.extensions}, opts)
end
🆕 release of section-bibliographies v1.0.0, a #pandoc#LuaFilter that allows to produce separate bibliographies for each chapter or section. Works with #Quarto, too.
The new version comes with a number of performance improvements, as well as additional customization options. https://github.com/pandoc-ext/section-bibliographies
Getting Greek characters to display properly in a PDF generated from Markdown with Pandoc has caused some frustration today - here's what eventually worked for me:
Use xelatex instead of pdflatex:
pandoc --pdf-engine=xelatex
Use Linux Liberatine O as the font in your Markdown metadata:
mainfont: "Linux Libertine O"
I'm a bit sad that I can't use Palatino, which I think is a nicer font, but Linux Libertine 'just worked' and is free (as in beer and speech).
It always annoys me that both #OrgMode and #Pandoc do not appear to have a 'clean'/plain flag for generating output.
I want 'plain' LaTeX and HTML with no additions or custom elements...no \tightlist in list environments, nor <div> around sections. Just plain unadulterated markup, that is all...
The #pandoc#Docker images had been experiencing some bit-rot, but have been updated and are back in service now. The images include the latest release (3.1.13) and the current development version. They continue to be available in the four flavors minimal, core, latex, and extra. #TeXLaTeX images now ship with #TeXLive 2024.
Est-ce que je dois bosser aujourd'hui ?
Eh oui, parce que maintenant que j'ai trouvé la méthodologie qui me convient pour prendre des notes, j'ai 6-7 semaines de cours à rattraper 😬
Mais ça me fait plaisir, j'en ai envie, ce n'est pas une corvée 😊
C'est super important d'avoir des notes utilisables, on va en avoir besoin pour la mise en situation professionnelle dans 2 semaines.
Small example of how the #Lua subsystem can be used to query #pandoc's capabilities:
The default binary allows to --list-extensions of a given format, but there is no analogous option to list all formats which work with a given extension, so here is a pandoc Lua program that provides this functionality: https://gist.github.com/tarleb/ef63974ab18d92acf0eb40180d832c48
The default LaTeX template in #pandoc v3.1.12 and later supports font fallbacks. The fallback is used if a glyph cannot be found in a font.
Example use-case: get color emojis in #PDF.
mainfontfallback:
Noto Color Emoji
🌻
Requires #LuaLaTeX as the PDF engine (i.e., pandoc --pdf-engine=lualatex ...). #TeXLaTeX
Alternatively, try 'NotoColorEmoji:mode=harf'.
Anyone knows a legit #pdf to #epub converter, with #ocr, not these free "install my malware app" or "stare at my spinning wheel for hours for nothing"?
I just love the #pandoc + #Quarto ecosystem. This morning I wrote up a short statistical analysis for a colleague. One source document in RMarkdown gets me: a Word document for my coauthor, a README for GitHub/Zenodo, and the figure images for the journal. And when the reviewers inevitably suggest changes, I can just change it in one place and regenerate them all!
@trem Sono strumenti molto differenti per complessità: #MD2HTML è uno strumento online e fa una sola cosa, ma direttamente da browser, se hai già installato e configurato #Pandoc non ne hai bisogno e puoi fare diversi altri tipi di conversione.Per chi comincia con #Markdown MD2HTML può essere sicuramente utile, anche per ricordare alcuni comandi fondamentali.
i just learned that pandoc not only converts Org files to Word files cleanly, it also maintains semantic style information in the output!
gosh, i really love this little tool. it lets me keep all my writing in Markdown/Org, and export to PDF, HTML, and Word depending on who i need to send it to without mangling the output in the process.
After two years of development, we are removing the feature flag for guides. The next release of #phpdoc will come with an out of the box ReStructuredText format.
Allowing you to write end-user documentation next to you api docs.
I had to convert some markdown into plaintext and I wanted to do it locally rather than use an online tool. I ended up using #pandoc and made these notes about it.
The #Pandoc abstract syntax tree as JSON would make an interesting and interoperable document exchange format, except it's very stable. That'd be fixable, though. With a little effort, it could be specified quite formally.
Imagine using that for, say, emails, or instead of markdown. No need to understand badly defined HTML subsets or markdown flavors, except for you local client. Everyone could interoperate.
It's not human-readable, or human-writable, but it's powerful.