<div dir="ltr">If the idea is to have a main file which includes other files (one for each chapter), I recommend the subfiles package. A really nice feature of the subfiles package is that you can edit and typeset the subfiles by themselves, which can be much faster and is better for your own mental focus. Of course you can also typeset the entire document.<div><br></div><div>Here is a sample MAIN file:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% /Users/drofnats/Documents/LaTeXDocs/MyMasterpiece.tex</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace"><br></font></div></blockquote></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% This is the main document for </font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% My Masterpiece, a tome of many chapters</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">%</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% I am using the subfiles pkg which allows each subfile (e.g., Preface, Chapter 1, etc.)</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% to be compiled and viewed separately</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace"><br></font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\documentclass[12pt]</font></div></blockquote><div><font face="monospace"><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% begin preamble * * * * * * * * * * * * *</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace"><br></font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% packages (in general) go here, but I've put font-related commands together further down</font></div></blockquote><div><font face="monospace"><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\usepackage{marginnote}</font></div></blockquote><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\newcommand{\vskipp}{\par\vspace{10pt}\noindent}</font></div></blockquote><div><font face="monospace"><br><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% ** start ********************** FONT-RELATED COMMANDS *****************************</font></div></blockquote><div><font face="monospace"><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\usepackage{fontspec}</font></div></blockquote><div><font face="monospace"><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\setmainfont{charis-sil} % For now, my default font</font></div></blockquote><div><font face="monospace"><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% ** end ********************** FONT-RELATED COMMANDS *****************************</font></div></blockquote><div><font face="monospace"><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% <font color="#ff0000">The subfiles package MUST be the last package in the preamble</font></font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\usepackage{subfiles}</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% end preamble * * * * * * * * * * * * * *</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\begin{document} </font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\title{My MasterPiece: In which many mental knots are untied}</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\author{D. E. K. Drofnats} </font></div></blockquote><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\maketitle </font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% </font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% OUTLINE</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">%</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% My Masterpiece</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">%</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% Preface</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% 1. Mathematical revelations</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% 2. Philosophical revelations</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% 3. Spiritual revelations</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% </font></div></blockquote><div><font face="monospace"><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\subfile{Masterpiece_Preface}</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\subfile{Masterpiece_Chap01}</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\subfile{Masterpiece_Chap02}</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\subfile{Masterpiece_Chap03}</font></div></blockquote><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\end{document} </font></div><div><br></div><div><br></div><div><br></div></blockquote>And here is a sample file to be included:<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">% /Users/drofnats/Documents/LaTeXDocs/Masterpiece_Chap01.tex</font></div></blockquote><div><font face="monospace"><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\documentclass[MyMasterpiece]{subfiles}</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\begin{document}</font></div></blockquote><div><font face="monospace"><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\chapter{}</font></div></blockquote><div><font face="monospace"><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\noindent </font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">The story of my mathematical excellence begins in my sixth year. Much like my</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">hero, Norbert Wiener, it is my father I have to thank for my introduction to</font></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">mathematics.</font></div></blockquote><div><font face="monospace"><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font face="monospace">\end{document}</font></div></blockquote><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 15, 2023 at 5:10 PM Herbert Schulz via MacOSX-TeX <<a href="mailto:macosx-tex@email.esm.psu.edu">macosx-tex@email.esm.psu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Jul 15, 2023, at 5:14 PM, Nitecki, Zbigniew H. <<a href="mailto:Zbigniew.Nitecki@tufts.edu" target="_blank">Zbigniew.Nitecki@tufts.edu</a>> wrote:<br>
> <br>
> I’m simultaneously working on two projects. One is a book-length project while the other is a single, short article. <br>
> For each one, I have a root file and then separate files for individual chapters (resp sections).<br>
> <br>
> I’ve been using method described in section 2.4 of the TexShop Tips and Tricks file for a long time on the book project, but am puzzled by a different behavior by the (very recent) article project. <br>
> <br>
> Setup:<br>
> The root file for the book project, Couer.tex, is in a Dropbox folder Books->Couer. The chapter files are also all in this folder. The first line of each reads<br>
> % !TEX root = Coeur.tex<br>
> and the root file calls them via an \input{filename} command.<br>
> <br>
> The root file for the article, SpaceFillCurve.tex, is in a different Dropbox folder, MyPapers->SpaceFill, and the section files (so far, just one) are in that folder. The first line of each reads<br>
> % !TEX root = SpaceFillCurve.tex<br>
> and the root file calls them via an \include{filename} command (I wanted to see how the include option works).<br>
> <br>
> <br>
> The style files I am using are in a texmf folder in my Library.<br>
> <br>
> Behavior:<br>
> In both cases, a command-T on the root file or the output file results in typesetting.<br>
> In the (older) book project, if I am displaying an individual chapter source file and I click either command-T or the “typeset” button the whole thing typesets.<br>
> In the new article project when I do this nothing happens, unless I am in the root file.<br>
> <br>
> I should mention, if it is relevant, that I have root/source/output/console files for both projects open simultaneously.<br>
> <br>
> Any suggestions where to look for a fix? It is relevant if I want, for example, to do bibtex or makeindex.<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> Zbigniew Nitecki<br>
> Professor Emeritus<br>
> Department of Mathematics<br>
> Tufts University<br>
> Medford, MA 02155<br>
> <br>
> telephones:<br>
> Dept. (617)627-3234<br>
> Dept. fax (617)627-3966<br>
> <a href="http://www.tufts.edu/~znitecki/" rel="noreferrer" target="_blank">http://www.tufts.edu/~znitecki/</a><br>
<br>
Howdy,<br>
<br>
What happens if you copy the DropBox folder to the your conputer? Does everything work as expected? What happens if you create a symbolic link to the DropBox folders on your computer? I guess I don't trust DropBox since I've heard of strange things happening.<br>
<br>
Good Luck,<br>
<br>
Herb Schulz<br>
<a href="mailto:herbs2@mac.com" target="_blank">herbs2@mac.com</a><br>
<br>
<br>
----------- Please Consult the Following Before Posting -----------<br>
TeX FAQ: <a href="https://www.tug.org/mactex/faq/index.html" rel="noreferrer" target="_blank">https://www.tug.org/mactex/faq/index.html</a><br>
List Reminders and Etiquette: <a href="https://sites.esm.psu.edu/~gray/TeX/" rel="noreferrer" target="_blank">https://sites.esm.psu.edu/~gray/TeX/</a><br>
List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" rel="noreferrer" target="_blank">http://dir.gmane.org/gmane.comp.tex.macosx</a><br>
<a href="https://email.esm.psu.edu/pipermail/macosx-tex/" rel="noreferrer" target="_blank">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br>
TeX on Mac OS X Website: <a href="https://www.tug.org/mactex/index.html" rel="noreferrer" target="_blank">https://www.tug.org/mactex/index.html</a><br>
List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" rel="noreferrer" target="_blank">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br>
</blockquote></div>