I am interested in saving a Latex template (that I wrote) so that I can use it via the "create new from template" file option. Can anyone tell me where I need to save this template in order to do this?

I am using a Mac OSX with Lion installed.

  • 1
    Welcome to TeX.SE. Depends on which editor you are using: TeXShop/\TeXworks, something else? The place is ~/Library/... rest depends on the editor. – Peter Grill Nov 15 '12 at 2:25
  • Just had the same issue with TeXWorks from TeXLive 2017 under Windows 7. After quite some searching I found the template directory under: C:\Users\<username>\.texlive2017\texmf-config\texworks\templates – Martin Scharrer Mar 15 '18 at 7:54

For TeXworks to access a template via File → New from Templates place it under:


For TeXShop, to access the files from File → New from Stationary, place the file under:

  • This worked perfectly (I am using TexWorks). Thank you very much! – david Nov 16 '12 at 3:37
  • 2
    Hi @Peter Grill, I tried this but my file does not appear in the Select Source window that pops up after I choose File->New From Stationary. Do I have to save the file as a special format or something first? I'm on OSX Lion, using TeXShop v. 3.11. – ruya Feb 10 '13 at 19:14

As is pointed out earlier, different TeX previewers manage this function differently. I am familiar with two previewers under Max OS 10.9:

TeXShop 3.11 stores "stationary" in the folder


It uses two files, a TeX file containing the stationary and a text file containing a brief comment describing the stationary. The TeX file must have the extension ".tex" to be recognized. The comment file is optional, but if present must have the same name as the TeX file but with the extension ".txt".

TexWorks 0.4.4 stores "templates" in the folder


It uses a TeX file only. These files can be organized in folders.

  1. TeXShop does not update its stationary menu during runtime, so it must be closed and reopened for the new stationary file to appear.TeXWorks, however, does update while open.

  2. It's not clear whether updates to the previewers will save your added files. It would be good practice to save a backup copy of your stationary/templates.

  3. Recent versions of MacOS hide the Library folder by default, so it may not be obvious how to find the folder you need. Paste the path into Finders Go -> Go to folder... command to locate it.


For TexMaker, create your template and save it in a convenient folder or directory. Now you just load it with File → New by Copying an Existing File menu selection. You now have a copy of the template which you now save with an appropriate file name in the proper location for this new file.

  • You must have a new version, as I don't see a File-New by Copying and Existing File option. I am using TeXworks 4.4. Did you perhaps mean File-Open? – Peter Grill Nov 15 '12 at 3:09
  • 1
    @doncherry: Opppsss, deleting comments shortly... I blame David Carlise for this, he taught me that reading documentation is evil, and I extended it to questions and answers without realizing it. :-) – Peter Grill Nov 15 '12 at 4:08
  • I was trying to find out where to save the file...a "convenient folder" wasn't very clear :) – david Nov 16 '12 at 3:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.