When I use xelatex.exe --output-directory=./tmp TeXwork PDF preview will not work. Is there any solution?
Asked
Active
Viewed 1,429 times
4
Real Dreams
- 8,298
- 12
- 56
- 78
-
Please see: synctex problem with -output-directory in TeXLive – Marco Daniel Feb 01 '13 at 08:28
2 Answers
2
The short answer here is 'no', as TeXworks expects to find the PDF file in the same directory as the .tex file when doing a typesetting run. The only obvious work-around would be to create a short script as a wrapper around XeLaTeX, which would copy the PDF from the output directory to the 'current' one after the xelatex run, leaving all of the other files out of the way. You'd then use the script in place of the xelatex binary when setting up the typesetting entry.
Joseph Wright
- 259,911
- 34
- 706
- 1,036
-
Thanks, I hope we see a config for pdf path in future TeXworks releases. – Real Dreams Aug 06 '13 at 07:41
-
@PHPst Well yes, would answer this answer some other questions: have you made a feature request? – Joseph Wright Aug 06 '13 at 07:42
-
-
@PHPst Look at http://code.google.com/p/texworks/issues and http://code.google.com/p/texworks/issues/entry – Joseph Wright Aug 06 '13 at 09:35
-
-
0
Not sure if applicable on Windows, but on Linux I can create a symlink from the source directory to the build directory. This fixes the TeXworks preview.
cd <source directory>
ln -s build/<output>.pdf <output>.pdf
xyakimo1
- 1