This question is the same as a previous question, although I'm using emacs24. On attempting to compile a latex document, after starting emacs from ubuntu's launcher, the file, or the terminal, I get the error that authblk.sty cannot be found. The solution posted in the previous answer is to modify the .emacs file with

(setenv “PATH” (shell-command-to-string “bash -i -c ‘echo -n $PATH’”))

When I do this and start emacs, I get the error,

Warning (initialization): An error occurred while loading

Symbol's value as variable is void: “PATH”

What does this mean, and how do I fix it?


Unlike the original question, pdflatex foo.tex also does not compile the document, because it too does not find authblk.sty. So I guess the problem is more basically in pdflatex?

closed as off-topic by egreg, Kurt, user13907, Werner, R. Schumacher Sep 11 '15 at 0:10

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – egreg, Kurt, Community, Werner, R. Schumacher
If this question can be reworded to fit the rules in the help center, please edit the question.

  • @noname - What is the result when you type tlmgr info preprint in your shell? – Arash Esbati Sep 10 '15 at 20:27
  • The original error message turns out to only have been superficially similar. The actual problem was that emacs does not find and load packages during the compilation process, which is what I was expecting coming from Windows. A full install of texlive-full fixed the problem. – noname Sep 10 '15 at 21:12
  • Emacs only questions are off topic. – egreg Sep 10 '15 at 22:20

Browse other questions tagged or ask your own question.