1

Have someone an idea, how I could get the output of pdflatex to a specific directory from tex to subfolder temp?

So that only the tex folder contains the .pdf file and the rest will be exported to the subfolder temp after compiling with an LaTeX Editor.

closed as too broad by TeXnician, Stefan Pinnow, Mico, Zarko, Troy Aug 27 '17 at 8:21

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Welcome to TeX.SX! With latexmk you could use -aux-directory= (on Windows). In any other case you could use -output-directory= and a shell script to copy the pdf. – TeXnician Aug 26 '17 at 20:41
  • Ok thank you. Do you have a sample bash script for that. So it has to run in a for loop while working with LaTeX? With an IDE or editor in Windows where I specify the -aux-directory= in windows? – noobcoder1983 Aug 26 '17 at 20:47
  • @noobcoder Welcome. Your comment's question depends on the specific editor. Nobody can answer something else except to tell you to search inside your IDE Settings or Options or similar place to find a 'build method' or build command and add an option there... but this is too general answer for a too general question. – koleygr Aug 26 '17 at 20:56
  • Ok I understand I will read the editors manual. Has someone a bash script for me, that I could use with Linux or Mac OS? – noobcoder1983 Aug 26 '17 at 21:01
  • really there is little advantage to do this, if you set things up so the aux file is in a non standard place you have to configure everything else (tex, bibtex, makeindex, ....) to find it. It is far simpler just to run latex in the build directory so everything gets generated there, and then move the pdf file to the desired final location at the end. – David Carlisle Aug 26 '17 at 21:56