<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="">David Carlisle has a LaTeX package “mylatex” that allows one to create from a document source a special format executing everything from the source’s preamble. See “texdoc mylatex” and <a href="https://github.com/davidcarlisle/dpctex/tree/master/mylatex" class="">https://github.com/davidcarlisle/dpctex/tree/master/mylatex</a> .<div class=""><br class=""></div><div class="">Once the package has been used to create the specialized .fmt, one would use it from the command line like this:</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span><span style="background-color: rgb(255, 255, 255);" class=""><font color="#6a737d" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" class=""><span style="caret-color: rgb(106, 115, 125); font-size: 12px; white-space: pre;" class="">pdflatex "&mylatex” doc</span></font></span></div><div class=""><font color="#6a737d" face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" class=""><span style="caret-color: rgb(106, 115, 125); font-size: 12px; white-space: pre; background-color: rgb(255, 255, 255);" class=""><br class=""></span></font></div><div class="">where <span style="caret-color: rgb(106, 115, 125); color: rgb(106, 115, 125); font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; white-space: pre; background-color: rgb(255, 255, 255);" class="">doc</span> is the name of the .tex source file.</div><div class=""><br class=""></div><div class="">How can the existing TeXShop engines latex and pdflatexmk be modified so as to use the new format?</div><div class=""><br class=""></div><div class="">I want to do this with a book-length document whose preamble loads a great number of packages, so as to speed up the typeset time on each run, but do this still within TeXShop rather than the command line.</div><div class=""><div class="">
<div style="color: rgb(0, 0, 0); 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="">---<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><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>
</div>
<br class=""></div></body></html>