<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="">1. Sorry to be so late: my Mac died and then gmail would not deal with my freemathtexts mail anymore. All is fixed now but it took well over a month.<div class="">2. You are correct: "<i class="">you have to enter manually in each of the _copy_ files 1.tex. 2.tex. ... , the number of pages up to and including the last page of the preceding chapter.</i>"</div><div class="">3. I have used this “approach” for twenty years and I don’t recall having been much inconvenienced by this shortcoming, probably because you can always see the correct page number in the pdf of the whole book.</div><div class=""> 4. Thus, it might perhaps be feasible to do it automatically but my knowledge of latex is extremely limited and I cannot even dream of how this might be done.</div><div class=""><br class=""></div><div class=""><div>Apologetic regards</div><div>—schremmer</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 4, 2023, at 6:11 PM, Murray Eisenberg <<a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">It seems you have to enter manually in each of the _copy_ files 1.tex. 2.tex. ... , the number of pages up to and including the last page of the preceding chapter. So then if you edit a prior chapter, you have to go back and change the value of "number" in each of the _copy_ files of the following chapters.</span><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br class=""></div><div style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Is there some nice way to update the number-of-pages-up-to-now values automatically whenever you process a preceding chapter?<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Jul 16, 2023, at 2:28 PM, Alain Schremmer <<a href="mailto:schremmer.alain@freemathtexts.org" class="">schremmer.alain@freemathtexts.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">As far as that goes, I prefer my own,<span class="Apple-converted-space"> </span><i class="">simple minded</i>, approach: <div class=""><br class=""></div><div class="">In the whole book folder, there is only<div class="">— a folder that contains the graphics in the format of the graphics app.</div><div class="">— a folder that contains the pdfs thereof to be included in the text.</div><div class="">— a folder “StyleSheets” that contains the<span class="Apple-converted-space"> </span><b class="">Preamble</b>, the<span class="Apple-converted-space"> </span><b class="">GraphicPaths</b>, and such files as definitions of tcolorboxes.</div><div class="">—a folder that contains:</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">             </span>—a folder called Text-contents that contains the files called 1.tex, 2.tex … containing the<span class="Apple-converted-space"> </span><i class=""><b class="">text</b></i> of each chapter, </div><div class=""><span class="Apple-tab-span" style="white-space: pre;">                      </span>    Each of these <i class=""><b class="">text</b></i> files consists of:</div></div><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div class=""><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">              </span>%!TEX root = ../\jobname.tex </div></blockquote></div><div class=""><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">            </span>%!TEX TS-program = pdflatexmk </div></blockquote></div><div class=""><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">           </span>\chapter{The Name Of The Chapter}</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">               </span>\ChapterToc</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">             </span>Followed by the<span class="Apple-converted-space"> </span><i class=""><b class="">text</b></i><span class="Apple-converted-space"> </span>of the chapter.<span class="Apple-tab-span" style="white-space: pre;"> </span></div></blockquote></div></blockquote><div class=""><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div class="">—for each of the above text files, a <b style="font-style: italic;" class="">copy</b>, also called 1.tex, 2.tex …, of the single following file:</div></blockquote><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">                </span>% !TEX TS-program = pdflatexmk \documentclass[11pt]{book} </div><div class=""><span class="Apple-tab-span" style="white-space: pre;">         </span>\usepackage{../StyleSheets/<b class="">Preamble</b>}<span class="Apple-converted-space"> </span><span class="Apple-tab-span" style="white-space: pre;"> </span></div><div class=""><span class="Apple-tab-span" style="white-space: pre;">                </span>\usepackage{../StyleSheets/<b class="">GraphicsPaths}</b> </div><div class=""><span class="Apple-tab-span" style="white-space: pre;">           </span>\begin{document}</div><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">           </span>\addtocounter{chapter}{\jobname-1} (To get the Chapter Number the same as in the whole book.)</div></blockquote><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">           </span>\addtocounter{page}{<i class="">number</i>} (To keep the pages numbers the same as in the whole book.)</div></blockquote><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">            </span>\input{Text-contents/\jobname}</div></blockquote><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">          </span>\printindex</div></blockquote><div class=""><span class="Apple-tab-span" style="white-space: pre;">          </span>\end{document}</div></blockquote><div class=""><span class="Apple-tab-span" style="white-space: pre;">       </span>—a<span class="Apple-converted-space"> </span><b class="">single file for the whole book</b> which consists of:</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">                            </span>% !TEX TS-program = pdflatexmk  </div><div class=""><span class="Apple-tab-span" style="white-space: pre;">                           </span>\documentclass[11pt]{book} </div><div class=""><span class="Apple-tab-span" style="white-space: pre;">                                </span>\usepackage{../StyleSheets/Preamble}</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">                            </span>\usepackage{../StyleSheets/GraphicsPaths}</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">                               </span>\begin{document}</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">                                </span>         \toc</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">                                  </span> \input{Text-contents/1}</div><div class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">                                     </span> \input{Text-contents/2}</div><div class=""><span class="Apple-tab-span" style="white-space: pre;">                                   </span>...</div></div><div class=""><div class=""><span class="Apple-tab-span" style="white-space: pre;">                                   </span>\printindex</div></div><div class=""><span class="Apple-tab-span" style="white-space: pre;">                         </span>\end{document}</div><div class=""><br class=""></div><div class="">So, the only files I actually open to work are the<span class="Apple-converted-space"> </span><b class=""><i class="">text file(s)</i></b>. </div><div class=""><br class=""></div><div class="">Clicking on either one of the two tex files for a chapter will open both together with the pdf of that chapter so I "<i class="">can edit and typeset the subfiles by themselves</i>” which indeed “<i class="">can be much faster and is better for your own mental focus.</i>” and “<i class="">Of course [I] can also typeset the entire document</i>” by typesetting that<span class="Apple-converted-space"> </span><b class="">single file for the whole book</b>.</div><div class=""><div class=""><br class=""></div><div class=""><br class=""></div></div></div></div></div></blockquote></div><br class=""><div 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="">Mobile (413)-427-5334<br class="">503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;">           </span><br class="">Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;">     </span></div><div class=""><br class=""></div><br class="Apple-interchange-newline"></div><br class=""></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">----------- Please Consult the Following Before Posting -----------</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">TeX FAQ: <a href="https://www.tug.org/mactex/faq/index.html" class="">https://www.tug.org/mactex/faq/index.html</a></span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">List Reminders and Etiquette: <a href="https://sites.esm.psu.edu/~gray/TeX/" class="">https://sites.esm.psu.edu/~gray/TeX/</a></span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" class="">http://dir.gmane.org/gmane.comp.tex.macosx</a></span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">               <a href="https://email.esm.psu.edu/pipermail/macosx-tex/" class="">https://email.esm.psu.edu/pipermail/macosx-tex/</a></span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">TeX on Mac OS X Website: <a href="https://www.tug.org/mactex/index.html" class="">https://www.tug.org/mactex/index.html</a></span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" 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></span></div></blockquote></div><br class=""></div></body></html>