Skip to content

Instantly share code, notes, and snippets.

@linjunpop
Last active July 15, 2018 13:30
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save linjunpop/5252450 to your computer and use it in GitHub Desktop.
Save linjunpop/5252450 to your computer and use it in GitHub Desktop.
Install pandoc

Install pandoc on Mac OS X 10.8

Install

Install haskell-platform

$ brew install haskell-platform

Update cabal

$ cabal update

Install pandoc

$ cabal install pandoc

Set PATH in ~/.zshenv

export PATH="$HOME/.cabal/bin:$PATH"

Convert to PDF

For PDF output, you’ll also need LaTeX. We recommend installing BasicTeX (64M), and using the tlmgr tool to install additional > packages as needed. -- http://johnmacfarlane.net/pandoc/installing.html

Install BasicTex

http://www.tug.org/mactex/morepackages.html

Direct Link: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg

set PATH

export PATH="/usr/local/texlive/2012basic/bin/universal-darwin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment