pandoc, to random
@pandoc@fosstodon.org avatar

Below is a custom 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

pandoc, to random
@pandoc@fosstodon.org avatar

Writing one sentence per line can make collaborating via source control systems (like git) more convenient. Here's a that does that:
https://gist.github.com/tarleb/ef395339d4ce8d940cae0c48e5de9e82

pandoc, to random
@pandoc@fosstodon.org avatar

🆕 release of section-bibliographies v1.0.0, a that allows to produce separate bibliographies for each chapter or section. Works with , too.
The new version comes with a number of performance improvements, as well as additional customization options.
https://github.com/pandoc-ext/section-bibliographies

pandoc, to typst
@pandoc@fosstodon.org avatar

See https://pandoc.org/typst-property-output for more info about the new property support introduced in 3.2.

pwaring, to Fonts
@pwaring@fosstodon.org avatar

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:

  1. Use xelatex instead of pdflatex:

pandoc --pdf-engine=xelatex

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

jfdm, to orgmode
@jfdm@discuss.systems avatar

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

pandoc, to random
@pandoc@fosstodon.org avatar

@mxp wrote a small that helps to preserve DOI info when converting from to .
https://gist.github.com/mxpiotrowski/0e7d26980db8554b62ca61a476adc958

pandoc, to random
@pandoc@fosstodon.org avatar

The 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.
images now ship with 2024.

https://hub.docker.com/r/pandoc/minimal
https://hub.docker.com/r/pandoc/core
https://hub.docker.com/r/pandoc/latex
https://hub.docker.com/r/pandoc/extra

meriem, to random French
@meriem@mastodon.xyz avatar

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.

meriem,
@meriem@mastodon.xyz avatar

Allez, je tente un tableau .xlsx, préalablement converti en .csv 🤞

meriem,
@meriem@mastodon.xyz avatar

Fail total 😂 Mon tableau des 7 couches du modèle OSI n’a aucune gueule 😅

pandoc, to random
@pandoc@fosstodon.org avatar

Small example of how the subsystem can be used to query '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

pandoc, to accessibility
@pandoc@fosstodon.org avatar

Starting with version 3.1.12, -generated s conform to the EU Accessibility Act. https://www.w3.org/TR/epub-a11y-eaa-mapping/

Relevant metadata fields are listed in the "EPUB metadata" section of the manual: https://pandoc.org/MANUAL#epub-metadata.

pandoc, (edited ) to random
@pandoc@fosstodon.org avatar

The default LaTeX template in 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 .


mainfontfallback:

  • Noto Color Emoji

🌻

Requires as the PDF engine (i.e., pandoc --pdf-engine=lualatex ...).
Alternatively, try 'NotoColorEmoji:mode=harf'.

alecm, to emacs

How To Use NotebookLM As A Research Tool | by Steven Johnson | Feb, 2024 | stevenberlinjohnson

This sounds like fun, but it is

  1. from Google, and thus apt to be killed, and
  2. restricted to the US

…so I shall just soldier on with Emacs and Pandoc.

https://stevenberlinjohnson.com/how-to-use-notebooklm-as-a-research-tool-6ad5c3a227cc

https://www.addtoany.com/add_to/copy_link?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F109566&linkname=How%20To%20Use%20NotebookLM%20As%20A%20Research%20Tool%20%7C%20by%20Steven%20Johnson%20%7C%20Feb%2C%202024%20%7C%20stevenberlinjohnsonhttps://www.addtoany.com/add_to/threads?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F109566&linkname=How%20To%20Use%20NotebookLM%20As%20A%20Research%20Tool%20%7C%20by%20Steven%20Johnson%20%7C%20Feb%2C%202024%20%7C%20stevenberlinjohnsonhttps://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F109566&linkname=How%20To%20Use%20NotebookLM%20As%20A%20Research%20Tool%20%7C%20by%20Steven%20Johnson%20%7C%20Feb%2C%202024%20%7C%20stevenberlinjohnsonhttps://www.addtoany.com/add_to/whatsapp?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F109566&linkname=How%20To%20Use%20NotebookLM%20As%20A%20Research%20Tool%20%7C%20by%20Steven%20Johnson%20%7C%20Feb%2C%202024%20%7C%20stevenberlinjohnsonhttps://www.addtoany.com/add_to/email?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F109566&linkname=How%20To%20Use%20NotebookLM%20As%20A%20Research%20Tool%20%7C%20by%20Steven%20Johnson%20%7C%20Feb%2C%202024%20%7C%20stevenberlinjohnsonhttps://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F109566&linkname=How%20To%20Use%20NotebookLM%20As%20A%20Research%20Tool%20%7C%20by%20Steven%20Johnson%20%7C%20Feb%2C%202024%20%7C%20stevenberlinjohnsonhttps://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F109566&linkname=How%20To%20Use%20NotebookLM%20As%20A%20Research%20Tool%20%7C%20by%20Steven%20Johnson%20%7C%20Feb%2C%202024%20%7C%20stevenberlinjohnsonhttps://www.addtoany.com/add_to/mastodon?linkurl=https%3A%2F%2Falecmuffett.com%2Farticle%2F109566&linkname=How%20To%20Use%20NotebookLM%20As%20A%20Research%20Tool%20%7C%20by%20Steven%20Johnson%20%7C%20Feb%2C%202024%20%7C%20stevenberlinjohnsonhttps://www.addtoany.com/share

https://alecmuffett.com/article/109566

garritfra, to random
@garritfra@fosstodon.org avatar
nonlinear, to random
@nonlinear@praxis.nyc avatar

Anyone knows a legit to converter, with , not these free "install my malware app" or "stare at my spinning wheel for hours for nothing"?

It can be mac, windows, online, anything.

guetto,
@guetto@mathstodon.xyz avatar

@danilo @nonlinear

maybe would do the job.

boilingsteam, to linux
@boilingsteam@mastodon.cloud avatar

Quarto - in case you did not know this fantastic tool yet: https://quarto.org/

joeroe, to random
@joeroe@archaeo.social avatar

I just love the + 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!

nilocram, to markdown Italian
@nilocram@framapiaf.org avatar

M2HTML è una semplice applicazione per convertire del codice scritto in in una pagina : https://ciaconelli.forge.aeif.fr/md2html/ È stata creata dall'insegnante francese @nicolay_lilicre (Un grand merci 😃 ). Per chi ne avesse bisogno, ecco la traduzione italiana del testo su : https://hedgedoc.devol.it///sZuu4KvJSIy6CrvaUK3u2A?both# @maupao @mauriziocarnago @scuola @scuola @macfranc

nilocram,
@nilocram@framapiaf.org avatar

@trem Sono strumenti molto differenti per complessità: è uno strumento online e fa una sola cosa, ma direttamente da browser, se hai già installato e configurato non ne hai bisogno e puoi fare diversi altri tipi di conversione.Per chi comincia con MD2HTML può essere sicuramente utile, anche per ricordare alcuni comandi fondamentali.

s3thi, to emacs
@s3thi@fantastic.earth avatar

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.

phpdoc, to php Dutch
@phpdoc@phpc.social avatar

After two years of development, we are removing the feature flag for guides. The next release of will come with an out of the box ReStructuredText format.

Allowing you to write end-user documentation next to you api docs.

dgoosens,
@dgoosens@phpc.social avatar

hi @mvriel

A couple of days ago, we implemented @phpdoc in our CI (to generate Gitlab pages)

One of the things we had to deal with was that our documentation is written in MD and we wanted it to be included

So wrote a little script to automate this (with )
I extracted the useful part of the script here: https://gitlab.com/-/snippets/3646183

maybe useful

cc @jaapio
(another part of the script parses our bounded context configuration and generates one rst file per BC to generate the UML)

salcode, to markdown
@salcode@phpc.social avatar

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 and made these notes about it.

https://salferrarello.com/convert-markdown-to-plaintext/

liw, to random

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

mwop, to markdown
@mwop@phpc.social avatar

Advent 2023 blogging, day 20, in which I detail how I use Pandoc 99% of the time.

https://mwop.net/blog/2023-12-20-advent-pandoc.html

janriemer, to typst

Wow, did you know that already supports as input and output!?

How cool is that!? 🚀 📄

https://pandoc.org/MANUAL.html#general-options

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • thenastyranch
  • tacticalgear
  • ethstaker
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • Youngstown
  • mdbf
  • khanakhh
  • slotface
  • rosin
  • provamag3
  • kavyap
  • everett
  • cisconetworking
  • Durango
  • modclub
  • osvaldo12
  • tester
  • Leos
  • cubers
  • normalnudes
  • megavids
  • anitta
  • lostlight
  • All magazines