Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have been puzzling over this for the past few hours and can't quite figure it out. I am using AUCTeX 11.87 and MiKTeX 2.9 on Emacs 24.2 (obtained from Vincent Goulet with AUCTeX pre-packaged):

I am having trouble getting AUCTeX to compile my LaTeX file on windows 7 and throws me into a blank screen with a cryptic message of 'Error after last TeX file closed". Even though same file compiles on my set-up on Ubuntu 12.1. From my searching this site and Google I seem to have tracked the problem to the need to use the -file-line-error flag when pdfTeX gets called. I read through the code for AUCTeX but it gets very convoluted and I can't figure out where I would need to insert -file-line-error in any of the customizable options.

Any suggestions on how to proceed would be welcome. I would prefer not to manually change any configuration files as I came across an admonishment not to do so in the pdfTeX manual.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

The easiest way is M-x customize-variable RET LaTeX-command RET, then add -file-line-error to the command, and Save for Future Sessions. You may also have to do the same for other engines e.g. by customizing TeX-command. You can have more control over which engines you want to use by customizing the TeX-engine-alist.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.