I have a LaTeX file using lots of PDF figures (mostly because converting figures to EPS is a waste of disk space), so it requires to use
I added there lines to the end of my main file:
%% Local Variables: %% latex-run-command: pdflatex %% End:
Whenever when I open the file, Emacs asks me whether to evaluate these settings, and I confirm.
C-c C-f still runs
latex \\nonstopmode\\input input.tex.
Why doesn't it work? (this is the question I should point out clearly)
Also in Customize the setting of
latex-run-command still is
After a significant waste of time, I wrote a Makefile that builds my document (keeping the PDF open in evince). So I use
compile to build the file now.
When I run
C-c C-f, the output starts like this:
latex \\nonstopmode\\input Farbe.tex This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/TeX Live for SUSE Linux) (preloaded format=latex)
When I run
pdflatex manually, the output starts like this:
pdflatex Farbe This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/TeX Live for SUSE Linux) (preloaded format=pdflatex)
So the preloaded format is different, causing errors like
! LaTeX Error: Cannot determine size of graphic in RGB-Cube-3D.pdf (no Bounding Box).
latex-run-command: "pdflatex" makes no difference:
pdflatex is not being used.
When I load the file (having changed the settings to the following)
%% Local Variables: %% latex-run-command: "pdflatex" %% End:
and then do
C-h v latex-run-command, I get:
latex-run-command’s value is "pdflatex" Original value was "latex" Local in buffer Farbe.tex; global value is "latex" This variable’s value is file-local. This variable may be risky if used as a file-local variable. Documentation: Command used to run LaTeX subjob. LaTeX Mode sets ‘tex-command’ to this string. See the documentation of that variable.
But still, the command run is not