trash all ﬁles in the current source directory with the same name as the source ﬁle
and extension aux, blg, brf, ccs, ent, ﬀf, glo, idx, idv, ilg, ind, ioa, lg, log, lot, mte,
mlf, out, pdfsync, toc, ttt, wrm, xref, 4ct, or 4tc.
Additional extensions can be added to this list. To add “dvi” to the list, activate
the Terminal and type
defaults write TeXShop OtherTrashExtensions -array-add "dvi"
To remove all additions and return to the original default list, tppe
defaults write TeXShop OtherTrashExtensions -array
Sometimes more extensive cleanup is needed. For example, if a book is controlled by
main.tex, and chapters are in subfolders accessed with commands like
then typesetting the book will create main.aux, main.pdfsync, and main.log in the
main folder, and chapter1.aux in the chapter1 folder.
The required extensive cleanup can be done by holding down the option key while
choosing “Trash AUX Files”. In this case: “%!TEX root” and Root File information
will be used to ﬁnd the root document and its folder All ﬁles with appropriate
extensions in this folder or any subfolder will be moved to the trash, regardless of
the name of the ﬁle.
There is a way to make this behavior the default behavior for “Trash AUX Files”
even if the option key is not down:
defaults write TeXShop AggressiveTrashAUX YES
2.4 Using an External Editor
TeXShop can be conﬁgured for an external editor in several ways. Some features
below will be useful and others not depending on how your editor works. In the
future, your editor may come with conﬁguration instructions.
There is a menu item named “Open for Preview..” When this item is chosen, you
will be asked to select a .tex source ﬁle. But only the associated pdf preview window
opens. If the source has not yet been typeset or if the pdf is out of date, TeXShop
will typeset the ﬁle as it is opened. You can open your source ﬁle in any editor.
When it is time to typeset, save the changes in your editor, switch to the preview