How to convert org to PDF

  |   Source

All you need to do is to install TexLive. The org-mode has some handy function to find the TexLive and do the conversion. So all you need to trigger the conversion in Emacs is pressing

C-c C-e p
.

At Cygwin and Linux, installing TexLive is a piece of cake by using default package system.

At Mac, I use the default TexLive source package (install-tl-unx.tar.gz). After installation, you need set up environment varaibles.

If you use Bash (default at my OS X 10.7.3), you can paste below code to you ~/.bashrc:

if [[ `uname -s` == *Darwin* ]]; then
   #tex live on OS X
   export PATH=/usr/local/texlive/2011/bin/universal-darwin:$PATH
   export MANPATH=/usr/local/texlive/2011/texmf/doc/man:$MANPAH
   export INFOPATH=/usr/local/texlive/2011/texmf/doc/info:$INFOPATH
fi

Comments powered by Disqus