<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">My understanding is that a .sty file may be anywhere if you provide an explicit path to it relative to the location of the .tex source that loads it.</div><div class=""><br class=""></div>I’m using the same kind of file configuration, also for a book. The main file, let’s call it <font face="Courier" class="">NewBook.tex</font>, which inputs (actually, includes) all the other content files is in a folder <font face="Courier" class="">~/Documents/Publications/NewBook</font>.  (For the sake of clarity, in this message I’ve changed the actual folder and file names).<div class=""><br class=""></div><div class="">Most of my own custom .sty packages are in a subfolder <font face="Courier" class="">~/Documents/Publications/NewBook/preamble</font>. (A few, common to many projects, are in the local texmf tree.) One of them is <font face="Courier" class="">mystyle.sty</font>. This is loaded in <font face="Courier" class="">NewBook.tex</font> by:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">     </span><span style="text-indent: -30px;" class=""><font face="Courier" class="">\usepackage{preamble/mystyle}</font></span></div><div class=""><br class=""></div><div class="">This works just fine. </div><div class=""><br class=""></div><div class="">Actually, I’ve made things more complicated than that, because I have a great many customizations, which I’ve chunked into a bunch of separate custom .sty files. The main file <font face="Courier" class="">NewBook.tex</font> has the command</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">      </span><span style="text-indent: -30px;" class=""><font face="Courier" class="">\input{preamble/preamble}</font></span></div><div class=""><span style="font-size: 18px; text-indent: -30px;" class=""><br class=""></span></div><div class="">and in subfolder preamble I have a file preamble.tex that contains the actual loading of those custom style files, e.g.:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">       </span><span style="text-indent: -30px;" class=""><font face="Courier" class="">\usepackage{preamble/style}</font></span></div><div class=""><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On 1 Oct2018, at 11:21 AM, Nitecki, Zbigniew H. <<a href="mailto:Zbigniew.Nitecki@tufts.edu" class="">Zbigniew.Nitecki@tufts.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">

<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
I am, even after many years and several changes of computers and TeXShop installations, still confused about where to put things.
<div class=""><br class="">
</div>
<div class="">Here is my immediate problem:</div>
<div class="">I have a folder, called “Book(update 2018) which has the text files for a book; among the .tex file is also a folder called Bookmacros(2018) in which I have the user-defined macros I use in this book.This is an update of a book already submitted
 and in fact under production at the publisher, but I wanted an up-to-date corrected version, which is the intention of this folder.  In the master tex file (which calls all the others) I have the command</div>
<div class="">\usepackage{Bookmacros(2018)/formatstyle} pointing to the macro file inside the Bookmacros(2018) folder that governs some formatting issues.</div>
<div class="">It is clear to me that this file is not being accessed (but some other version elsewhere on my computer is) because when I compile the masterful</div>
<div class="">i get an error message about an undefined control sequence referring to a macro that I have triple-checked is correctly defined in the format macros.sty file inside this folder.</div>
<div class=""><br class="">
</div>
<div class="">Can someone clarify how TeX searches for .sty files (and other macro files).</div>
<div class="">I recall that there is a central place where such files can be put to always be accessible to .tex files anywhere on the computer, and would like to be reminded of this, but also here I am concerned with overriding any obsolete versions of this
 file that may have been left lying around.  Am I using the wrong format to point into this subfolder?</div>
<div class=""><br class="">
<div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Zbigniew Nitecki<br class="">
Department of Mathematics<br class="">
Tufts University<br class="">
Medford, MA 02155<br class="">
<br class="">
telephones:<br class="">
my office     (617) 627-3843<br class="">
dept. off.    (617) 627-3234<br class="">
dept. fax    (617) 627-3966<br class="">
<br class="">
<a href="http://sites.tufts.edu/znitecki/" class="">http://sites.tufts.edu/znitecki/</a></div>
</div>
<br class="">
</div>
</div>

----------- Please Consult the Following Before Posting -----------<br class="">TeX FAQ: <a href="http://www.tex.ac.uk/faq" class="">http://www.tex.ac.uk/faq</a><br class="">List Reminders and Etiquette: <a href="https://sites.esm.psu.edu/~gray/tex/" class="">https://sites.esm.psu.edu/~gray/tex/</a><br class="">List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" class="">http://dir.gmane.org/gmane.comp.tex.macosx</a><br class="">                <a href="https://email.esm.psu.edu/pipermail/macosx-tex/" class="">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br class="">TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" class="">http://mactex-wiki.tug.org/</a><br class="">List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" class="">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br class=""></div></blockquote></div><br class=""><div class="">
---<br class="">Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;">                       </span><a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a><br class="">503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;">     </span>Home (240)-246-7240<br class="">Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;">  </span>Mobile (413)-427-5334<br class=""><br class="">

</div>
<br class=""></div></body></html>