# What kind of files can TeXShop open?

TeXShop can open most files for editing. This facility has been provided so users can read TeX-related files with extensions ".log", ".aux", etc.

## Recognized text file types

TeXShop can open ".ins", ".dts", ".sty", ".cls", "mf", ".def", ".fd", ".ltx", ".clo", ".ctx", ".bst", ".bib", ".engine", ".htx", ".sk", "dtx", ".drv", ".dn", ".abc", ".ly", ".texi", ".Rnw", ".asy", ".akt", ".bbx", ".cbx", ".lbx", and "mp" files for processing.

It can also open any text file.

## Non-text files

Files with extensions ".jpg", ".tif", ".eps", or ".pdf" are opened as graphic files.

TeXShop can also open ".dvi" and ".ps" files. In these cases, it converts the file to pdf and displays this pdf file.

## Other file types

It is not a good idea to use TeXShop as a general editor. TeXShop can read files written in UniCode and other formats, but it saves files in the format chosen in Preferences. Consequently, information may be lost if TeXShop is used to edit files which really aren't related to TeX.

If TeXShop opens a file with an unusual extension, and later saves the file, the saved file will have the same extension. Thus if TeXShop opens, edits, and saves an "akt" file, the saved file will still have extension "akt."

When TeXShop creates a new file, the saved file will have extension ".tex" unless special action is taken. Your computer's preference settings may have been set to hide extensions in the Finder; in that case you may not see the extension, but it is there. It is not possible to change the extension by adding it explicitly to the file name. For instance, in some circumstances saving a file "MyFile.htx" will actually create "MyFile.htx.tex." This can be particularly tricky if your computer hides extensions.

But the TeXShop "Save Panel" includes a drop down menu named "File Format". Choose a format in this menu to initially save a new file with a nonstandard extension.

## Adding to the list of file types

There is a hidden preference to add file extensions to the list of files that TeXShop recognizes as source files which can be typeset and syntax colored. This is useful when you want to use syntax coloring when editing TeX files with non-standard extensions. For example,

  defaults write TeXShop OtherTeXExtensions -array-add "lbx"

tells TeXShop to syntax color biblatex 'lbx' files.

Advanced Help
Opening Other Files with TeXShop