Skip to content

Instantly share code, notes, and snippets.

@jfrobbins
Created October 29, 2024 18:30
Show Gist options
  • Select an option

  • Save jfrobbins/c3d272bb20e138c2ed970fbdd49e70e1 to your computer and use it in GitHub Desktop.

Select an option

Save jfrobbins/c3d272bb20e138c2ed970fbdd49e70e1 to your computer and use it in GitHub Desktop.
Converting markdown to PDFs with pandoc on macOS

Converting markdown to PDFs with pandoc on macOS

Original Source:

Install pandoc with brew:

brew install pandoc

Install basictex with brew:

brew install --cask basictex

Symlink the pdflatex binary into /usr/local/bin:

foo@bar-mbp % sudo ln -s /Library/Tex/Distributions/.DefaultTeX/Contents/Programs/arm64/pdflatex /usr/local/bin/

Convert the file:

foo@bar-mbp % pandoc readme.md -o readme.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment