Skip to content

Instantly share code, notes, and snippets.

@mseri
Created January 28, 2026 09:18
Show Gist options
  • Select an option

  • Save mseri/0f8b627eaa665e461bf3ba3614f92a5b to your computer and use it in GitHub Desktop.

Select an option

Save mseri/0f8b627eaa665e461bf3ba3614f92a5b to your computer and use it in GitHub Desktop.
convert markdown to pdf - atkinson font - decent
function HorizontalRule(el)
return pandoc.RawBlock('tex', '\\newpage')
end
pandoc --pdf-engine=lualatex -V mainfont="Atkinson Hyperlegible Next" -V fontsize="12pt" -V geometry:a4paper -V geometry:margin=2cm --lua-filter=hr-to-newpage.lua "$1.md" -o "$1.pdf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment