-
-
Save brianephraim/5989445 to your computer and use it in GitHub Desktop.
Convert markdown to pdf.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a test1.md file. CD to its folder | |
# Install Xcode. In Xcode, go to preferences > Downloads. Install "Command Line Tools" | |
# Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg | |
$ sudo chown -R `whoami` /usr/local/texlive | |
$ tlmgr update --self | |
$ tlmgr install ucs | |
$ tlmgr install etoolbox | |
# Install pandoc view homebrew | |
$ brew install haskell-platform | |
$ cabal install pandoc | |
# add to your path "~/.cabal/bin" | |
# Now to convert a document | |
$ pandoc -V geometry:margin=1in test1.md -s -o test1.pdf | |
# There should be a pdf in the folder now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment