I have a directory structure like this:
project
pdf
src
My source file is located in src, and I'm trying to run pdflatex from the project directory using a command like this:
pdflatex -halt-on-error src/foo.tex -output-directory pdf
The compilation works, but foo.pdf ends up in project, rather than in pdf, which is obviously not what I want. I would assume that -output-directory would take care of this, but it doesn't seem to. What am I missing?
latex [options] [file] [commands]. But-output-directoryis not a command; it is an option. – jon Sep 23 '15 at 04:17