<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="">Dear Coleman,<div class=""><br class=""></div><div class="">You can use a magic comment like</div><div class="">%!TEX root = ../main.tex</div><div class="">to typeset another TeX file when you press Command+T.</div><div class=""><br class=""></div><div class="">Yusuke Terada<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">2022/09/14 19:00、Brian Coleman <<a href="mailto:brian.coleman.velchron@gmail.com" class="">brian.coleman.velchron@gmail.com</a>>のメール:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<div class="">My book tex file contains several \include chapters. </div><div class="">After editing a chapter tex file, in order to typeset, I must type "cmd s" to save the edit, then type "ctrl tab" to change focus to the book tex file, and finally type "cmd t" to typeset, or do 3 mouse clicks.</div><div class=""><br class=""></div><div class="">I would like to have a macro to manage all three steps with one key stroke such as "cmd §".</div><div class=""><br class=""></div><div class="">Is there a way to enter "cmd s", "ctrl tab" and "cmd t" into the Macro Editor content window to achieve this?</div><div class=""><br class=""></div><div class="">I am not knowledgeable about AppleScript.</div><div class=""><br class=""></div><div class="">Any help much appreciated.</div><div class=""><br class=""></div><div class="">Brian Coleman</div></div>
----------- Please Consult the Following Before Posting -----------<br class="">TeX FAQ: <a href="https://www.tug.org/mactex/faq/index.html" class="">https://www.tug.org/mactex/faq/index.html</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="https://www.tug.org/mactex/index.html" class="">https://www.tug.org/mactex/index.html</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></body></html>