Under Options > Configure TeXstudio > Commands
I changed PdfLateX to use the -output-directory=tex
option. I checked Show Advanced Options
in the bottom right corner and set all additional search paths under Build
to the used directory name.
Everything works (I can compile to PDF and preview it in the internal PDF viewer) but I don't know how I should change the External PDF Viewer
command so that it opens the PDF from the subdirectory.
Best Answer
This worked for me (on Windows 7, note that I use PDFViewer, not Adobe Reader):
External PDF Viewer command (where 'build' is my custom output directory):
Notice the quotes around the argument; they are needed if there are any spaces in the file/sub-directory name.