<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="">(1) Does </div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>% !TEX parameter = "&mylatex”</div><div class=""><br class=""></div><div class="">refer to making the fmt file, or typesetting runs after making the fmt file?</div><div class=""><br class=""></div>(2) It turns out I have to use the package mylatexformat rather than mylatex in order to successfully compile a fmt file from my source’s preamble.<div class=""><br class=""></div><div class="">In that case, do I correctly assume that I just change “&mylatex” to “&mylatexformat”?</div><div class=""><br class=""></div><div class="">I note that <a href="https://tex.stackexchange.com/a/377033/13492" class="">https://tex.stackexchange.com/a/377033/13492</a> gives instead the instruction to put the line</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">      </span>%&foo</div><div class=""><br class=""></div><div class="">at the top of my source named foo during typesetting runs (after I created the .fmt).<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 5 Dec2020, at 11:59 AM, Herbert Schulz <<a href="mailto:herbs@wideopenwest.com" class="">herbs@wideopenwest.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><blockquote type="cite" class="">On Dec 5, 2020, at 9:47 AM, Murray Eisenberg <<a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a>> wrote:<br class=""><br 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> .<br class=""><br class="">Once the package has been used to create the specialized .fmt, one would use it from the command line like this:<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">    </span>pdflatex "&mylatex” doc<br class=""><br class="">where doc is the name of the .tex source file.<br class=""><br class="">How can the existing TeXShop engines latex and pdflatexmk be modified so as to use the new format?<br class=""><br 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.<br class="">---<br class="">Murray Eisenberg<span class="Apple-tab-span" style="white-space:pre">  </span><span class="Apple-tab-span" style="white-space:pre">    </span><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=""><br class=""></blockquote><br class="">Howdy,<br class=""><br class="">I think this will work with the pdflatexmk engine since it accepts the TeXShop `parameter' directive: simply add the line<br class=""><br class="">% !TEX parameter = "&mylatex"<br class=""><br class="">below the `program' (or `TS-program') directive for using pdflatexmk. If you ever need shell-escape you can use the same method wwith the line<br class=""><br class="">% !TEX parameter = -shell-escape<br class=""><br class="">and you can even combine them with<br class=""><br class="">% !TEX parameter = "&mylatex" -shell-escape<br class=""><br class="">and add other parameters for pdflatex on that line.<br class=""><br class="">One nice thing about that is that it works for any of the basic latexmk based engines, (pdf/xe/lua)latexmk.<br class=""><br class="">Good Luck,<br class=""><br class="">Herb Schulz<br class=""><a href="mailto:herbs@wideopenwest.com" class="">herbs@wideopenwest.com</a><br class=""><br class=""><br class=""></div></div></blockquote></div><br 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>