Re: auc-tex and C-c C-c with Makefiles
Daniel Wright <[email protected]>
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
Johan Glimming wrote: > Lately I have started to use a Makefile with each LaTeX document and > divide them into many smaller subdocuments, which are > compiled/preprocessed etc by make. > > I am using emacs and AUCTeX so I wonder if I can somehow change emacs to > start make when I press C-c C-c instead of latex. My "make" command > defaults to making dvi and pdf, and then displaying the pdf on screen. I haven't understood too well how far you've got, so sorry if I'm repeating what you've already done. Have you looked at TeX-command-list with "C-h v TeX-command-list". Somewhere you should see the option to customise this variable, and in the customisation screen you can add a new field and enter your make command there. I'm not sure how you can switch it to be the default command when you type C-c C-c, but it's a step closer. > Finally, I am using Mac OS X, and when I use C-c C-c "Other" and "make" > it compiles the LaTeX, but the "open" command which executes preview (in > the Makefile this is) does _not_ open up a new window. It _does_ open a > new window when run from command-line with "make" or "make show" with my > Makefile, however, so I wonder what makes it not work under emacs > (restricted shell??) Maybe it's because your pdf viewer executable is not in you path, try adding it and see if that helps. Good luck, Daniel