Hide temporary files created by TeXShop |
|
|
The problem: (pdf)LaTeX creates loads of intermediate files before it creates the PDF file. This results in your directory being cluttered by useless files (.log, .aux, .vrb and so on). You may try to get rid of them by using the command pdflatex --output-directory=.tmp in TeXShop, but then your PDF file won't automatically show up (because it also ends up in the temporary directory). Here comes a possible solution.Save the following python script in a location of your choice (say /Library » TeX » Root » bin » pdflatex.py):tmp_dir = '.tmp'import os, sys, shutiltex_file = sys.argv[-1]f, ext = os.path.splitext(tex_file)assert ext[1:] == 'tex'if not os.path.isdir(tmp_dir): os.mkdir(tmp_dir)os.system('pdflatex --shell-escape --output-directory=%s %s' % (tmp_dir...
|