[OS X TeX] Finding macros

Murray Eisenberg murrayeisenberg at gmail.com
Mon Aug 12 13:18:38 EDT 2019

When you first save the file in TeXShop, at the bottom of the Save dialog window, there’s a field “File Format”. Just select “sty" there instead of the default “TeX file”.

So of course now that you’ve already saved the file as something.sty.tex, open it, copy and past into a blank source window, then do the above.

> On 12 Aug2019, at 12:56 PM, Nitecki, Zbigniew H. <Zbigniew.Nitecki at tufts.edu> wrote:
> This is a system (OS10.14.6) question, rather than a TeX question per se.
> I have been generating a set of TeXed homework assignments for a course (Math 135), trying to make it stand-alone so that others teaching the course could use my .tex files.  I habitually use a lot of macros, and have several extensive files of user-defined macros.  So far, I have been copying individual 
> macro definitions into the .tex file for each assignment, but this has proliferated, and I have finally decided to create a dedicated macro file for this purpose (to include whenever I distribute the .tex files for these assignments), called 135HWMacros.sty.  I created this by copying the list of \newcommands from the latest assignment into a new file in TeXShop.  When I tried to save it as 135HWMacros.sty, I was not allowed to (I was told to use 135HWMacros.sty.tex).  Now, I have a folder in Dropbox called Macros, with a subfolder called MyMacros, where I keep all of my older self-defined macro files.Things are configured so that when I compile a .tex file this folder (and subfolder) is searched first for macros.  When I saved my new file there as  135HWMacros.sty.tex, I would get an error saying “can’t find file 135HWMacros.sty.  Of course—in fact, the icon for that file was different from those of the other style files there.  So I renamed it 135HWMacros.sty (having saved it there earlier with the longer filename.)  But now I still get the same error message.  What should I do (or have done) differently?
> Zbigniew Nitecki
> Department of Mathematics
> Tufts University
> Medford, MA 02155
> telephones:
> Office    (617)627-3843
> Dept.    (617)627-3234
> Dept. fax    (617)627-3966
> http://www.tufts.edu/~znitecki/ <http://www.tufts.edu/~znitecki/>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>                https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

Murray Eisenberg			murrayeisenberg at gmail.com
503 King Farm Blvd #101	Home (240)-246-7240
Rockville, MD 20850-6667	Mobile (413)-427-5334

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20190812/111e97df/attachment.htm>

More information about the MacOSX-TeX mailing list