I am trying to install the package "listings" so I can show python code on LaTeX, with R sweave.

I found the folder /Library and the only thing LaTeX related I found there is a folder called /TeX I don't know how to go on.

  • What TeX distribution are you using? If you installed TeX Live via MacTeX the listings package is already there. Did you try to use it? – Herb Schulz Jul 22 at 17:01
  • How can I know what distribution I am using? I know I have installed MacTex to see if "listings" became available, but it didn't. – Samuel García Companys Jul 23 at 8:08
  • Garcia Companys: Please run the commands kpsewhich listings.sty and which pdflatex in Terminal and let us know the information returned. – Herb Schulz Jul 23 at 11:25
  • @HerbSchulz for which pdflatex I am getting: /usr/local/bin/pdflatex – Samuel García Companys Jul 23 at 13:53
  • nothing shown for kpsewhich listings.sty – Samuel García Companys Jul 23 at 13:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.