eljuanchosf / source-code-to-pdf

A BASH script to put your source code to PDF
MIT License
40 stars 4 forks source link

Test it and get it ready for more distributions #1

Open eljuanchosf opened 8 years ago

dufferzafar commented 8 years ago

@eljuanchosf You'll be happy to know that the script is working on OSX El Capitan.

I first installed mactex!

brew install caskroom/cask/brew-cask
brew cask install mactex

then included the path to binaries

export PATH=$PATH:/usr/local/texlive/2016/bin/x86_64-darwin

commented out the apt-get lines

diff --git src2pdf src2pdf
index 882f73f..c39e41a 100644
--- src2pdf
+++ src2pdf
@@ -1,8 +1,8 @@
 #!/bin/bash -e

 # Check everything is installed:
-sudo apt-get -y -qq install python python-pip texlive-latex-extra
-sudo pip install Pygments
+# sudo apt-get -y -qq install python python-pip texlive-latex-extra
+# sudo pip install Pygments

and boom! things were working. 😄