Specify the path to "your" latexmk in the LATEXMK variable. In fact, John Collins has implemented this feature in 4.27a. A recent version of latexmk is required for this Makefile, version 4.24 (from TeXlive 2012 on Ubuntu 12.10) didn't work for me. bib file works automagically, and it calls pdflatex just as many times as required.
Note that, thanks to latexmk, compiling a. To compile filename.tex, simply type make filename.pdf. (Of course, if you don't use SyncTeX, you can omit even that.)įor each source file, a separate subdirectory under the tmp/ directory is created, this can be changed by redefining TMPDIR_BASE. latexmkrc which simply specifies the pdflatex call to use: $pdflatex = 'pdflatex -synctex=1 -src-specials' Mkdir -p $(TMPDIR_BASE)$(subst -pdf -recorder -output-directory=$(TMPDIR_BASE)$(subst -r. The process is automated with a Makefile, I have added a stripped-down version below: SHELL=/bin/bash synctex.gz files (which are the only ones really needed to be in place). I use latexmk with the -output-directory switch and simply copy back the generated. Instead of hiding the files I put them into a Different output directory, with the help of latexmk and a Makefile This doesn't quite answer the question, but I am using the following workflow for quite some time now. It seems to me that a simpler script would do as well: #!/bin/bash
You may also see the docs for how to enable this by default.)Įdit: I showed this little bash script to a friend today, and we noticed that the last two lines are more or less superfluous. (Edit: it seems that at least in Ubuntu, dired-x works out-of-the-box when direding a directory, you may press M-o to toggle hiding all "uninteresting" files. hidden file, but better - it just works™ in all directories without creating any external files. (Important notice: you may use the script presented here, but only at your own risk - my bash-fu is much weaker than my TeX-fu )!)Īlso Emacs (which I'm using - there's no alternative anyway, since it is the single best text editor in existence) has a variable completion-ignored-extensions so that when you are finding (which means opening in emacspeak) a file, autocompletion won't take into account files ending with specified extensions (the default value is rather sound, so you might not need tinker with it at all).Īnd finally, again if you use Emacs (and really, you should), you might want to learn about the dired-x extension to Dired mode, which includes a feature called omitting files (configurable using suffixes and/or regexps) which does the same as Nautilus'. # make LaTeX intermediate files in the current directory hidden in Nautilus Then, it is a question of some simple scripting to create this file. hidden in some directory then Nautilus won't display these files (you may need to refresh the view in Nautilus for this to take effect). You have to make sure that the arara is installed and is in system path.Īpparently there's a not-very-well-known feature of Nautilus (which you might be using if you use Ubuntu )) where you put a list of filenames (no wildcards!), one per line, in a file called. Then compile your document by issuing arara yourfile. You have to add the clean directive as % arara: clean:
It's excellent manual is a worth reading for details. If every thing boils down to cleaning the auxiliary files, one may settle with Arara.
Now ALL output files (unfortunately including pdf file) will be stored inside a folder build inside the main folder. Go to Options -> Configure Texmaker to get the window:Ĭheck the box as shown in the picture, press OK and come out. Hence, this feature is available for texlive also from winedt 6 onwards. TeX Live users can take advantage of this feature, too. That means that this feature does NOT depend on the TeX System you aux-directory command line switch provided by some miktex applications (see 'Auxiliary folder' in the WinEdt manual index). I just wanted you to notice that WinEdt (starting with the latest 6īuilds) uses its own algorithm (written by myself) to manage auxiliaryįiles in TeXAux folder. Similar options may be available for other editors also, but unfortunately I don't have much idea about them :-( Addendumįollowing a personal mail from Karl Koeller (who is a great contributor for winedt and its macros): Hence your main directory will not get cluttered. If you uncheck the box, the directory TeXAux will be created if it doesn't exist already. Now all the auxiliary files will be stored inside a folder TeXAux inside your main folder. Make the modifications as shown in the picture. In the window that opens choose TeX Options: Go to winedt menu Options -> Execution Modes. With winedt, it is done like this ( for miktex only ): This may be a job easily done with the help of your tex editor.