<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="">So if my format file is named, say, “mydoc.fmt”, should the value of “format_name” be “mydoc.fmt” or just “mydoc” ?<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 5 Dec2020, at 10:56 AM, Gary L. Gray <<a href="mailto:glgray@me.com" class="">glgray@me.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Put the .fmt file in:<div class=""><br class=""></div><div class="">~/Libarary/texmf/web2c/</div><div class=""><br class=""></div><div class="">Then, at the top of the file you want to typeset with that format, include the following line:</div><div class=""><br class=""></div><div class="">%!TEX TS-program = format_name</div><div class=""><br class=""></div><div class="">Gary<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Dec 5, 2020, at 10:47 AM, Murray Eisenberg <<a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div 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="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></div></div></blockquote></div><br class=""></div></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=""></body></html>