<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thank you, Ross,<div class="">I must confess I am not skilled at “hacking” input code. I will try your first advise though, it seems doable given my very limited skills.</div><div class=""><br class=""></div><div class="">I have been considering more and more the switch from plain TeX to LaTeX. The problem is, I have scores (a lot!) of files in plain TeX that I have been produced over the years, by me, and/or shamelessly borrowed from more skilled programmers; an example: code that produces a set of problems with hints and answers, so that the hints and the answers are afterwards printed separately. Even more basic things, like matrix commands (\pmatrix{…} and the like) are not recognized by LaTeX, and are not easily translatable. So, I am still struggling with plain TeX.</div><div class=""><br class=""></div><div class="">Best,</div><div class="">             Juan</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 13, 2016, at 6:00 PM, Ross Moore <<a href="mailto:ross.moore@mq.edu.au" class="">ross.moore@mq.edu.au</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Hi Juan,</span><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jul 14, 2016, at 7:28 AM, juan tolosa <<a href="mailto:juantolo@me.com" class="">juantolo@me.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I am baffled. Since I joined the Mac OS TeX community, I was given a method for processing pictures in plain TeX, which has been working seamlessly—until today. <div class="">I had transitioned from TeXtures, which used the \special{…} command for inserting pictures, to a more transparent, and more universally accepted method.</div><div class=""><br class=""></div><div class="">In particular, I used</div><div class="">\input miniltx.tex</div><div class="">and next, something like</div><div class="">\RequirePackage{graphicx} </div><div class="">and then I inserted pictures using, for example</div><div class="">\includegraphics[height=60mm]{RubiKo}</div><div class=""><br class=""></div><div class="">Today, to my surprise, I found the method is not working anymore.</div><div class=""><br class=""></div><div class="">As soon as the \input miniltx.tex is typeset, I get an error. The console displays:</div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdftex)</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;"> \write18 enabled.</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">entering extended mode</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">(./PicturesInPlainTex.tex</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">(/usr/local/texlive/2016/texmf-dist/tex/plain/graphics-pln/miniltx.tex)</div></div></div></div></blockquote><div class=""><br class=""></div><div class="">miniltx.tex  doesn’t define everything from LaTeX.</div><div class="">It only gives you enough to do some basic things.</div><div class="">The more LaTeX packages that you try to use, the more</div><div class="">you’ll encounter things that LaTeX uses, but haven’t been supported in miniltx.</div><div class="">So you need to be prepared to write snippets of patch coding when this occurs.</div><div class=""><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/pdftex.def</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/pdftex.def:1569: Unde</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">fined control sequence.</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">l.1569      \@ifpackageloaded</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">                             {pst-pdf}%          hv 20160630</div></div></div></div></blockquote><div class=""><br class=""></div><div class="">The  graphics-def/  bundle is very, very new — see that date: 2016-06-30 !!!</div><div class="">It is about uniformising the different .def  files for different processing engines.</div><div class=""><br class=""></div><div class="">Here it seems to be calling a revised  pdftex.def  which is now checking</div><div class="">whether some other package  pst-pdf  has been loaded.</div><div class="">Unfortunately the  \@ifpackageloaded  command isn’t supported in  miniltx.tex .</div><div class=""><br class=""></div><div class="">What to do?</div><div class=""><br class=""></div><div class="">If you have an older distribution available, find the  pdftex.def  file from there.</div><div class="">Put a copy into the local directory where you are processing your job.</div><div class="">Hopefully you will have no further problem — this time!</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">If not, then you’ll need to do some hacking.</div><div class="">Take a copy of the actual  pdftex.def  to your working directory.</div><div class="">Look inside it for how  \@ifpackageloaded  is being used;</div><div class="">that is, how many arguments does it take? </div><div class="">Comment-out those lines.</div><div class="">Test your job. How much further does it get?</div><div class="">Do this kind of thing for each such problem.</div><div class=""><br class=""></div><div class="">Eventually you should be left with something that works —this time!</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Even more eventually, you should switch to using the full LaTeX.</div><div class="">Appreciate it’s power and flexibility, and all the good work that others put into it.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Or maybe one of the LaTeX developers will consider the use-case</div><div class="">of  \input  miniltx.tex  when further developing  graphics-def .</div><div class="">That won’t help you today, but maybe in the near future.</div><div class=""><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">? </div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">Process aborted</div></div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;"><br class=""></div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">Does anyone have an advice?</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">Thanks,</div><div class="" style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;">                Juan</div></div></div></blockquote><br class=""></div><div class=""><br class=""></div><div class="">Hope this helps.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space: pre;"></span>Ross</div><br class=""><div apple-content-edited="true" class=""><div class="" style="font-family: Arial, sans-serif; orphans: 2; widows: 2;"><span class="Apple-style-span" style="font-size: 9px;"><b class=""><span class="" style="font-size: 9pt;"><br class="Apple-interchange-newline">Dr Ross Moore</span></b></span></div><div class="" style="font-family: Arial, sans-serif; orphans: 2; widows: 2;"><p class="" style="font-family: Arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(119, 119, 119); font-size: 7pt; margin-bottom: 3.75pt;"><font class=""><span class="" style="font-size: 9pt;"><b class="">Mathematics Dept </b><b class="">|</b> Level 2, S2.638 AHH<br class="">Macquarie University, NSW 2109, Australia</span><span class="" style="font-family: 'Times New Roman', serif; font-size: 12pt;"></span></font></p><p class="" style="font-family: Arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(119, 119, 119); font-size: 7pt; line-height: 11.25pt; margin-bottom: 3.75pt;"><b class=""><span class="" style="font-size: 9pt;"><font class="">T:</font></span></b><span class="" style="font-size: 9pt;"><font class=""> +61 2 9850 <b class="">8955  |  F:</b> </font><a href="tel:%2B61%202%209850%209695" value="+61298509695" target="_blank" class=""><font class="">+61 2 9850 8114</font></a><br class=""><font class=""><b class="">M:</b><a href="tel:%2B61%20409%20125%20670" value="+61409125670" target="_blank" class="">+61 407 288 255</a><b class="">  |  </b>E: </font><a href="mailto:rick.minter@mq.edu.au" target="_blank" class=""><font class="">ross.moore@mq.edu.au</font><font color="#1155cc" class=""><span class="" style=""></span></font></a><font color="#1155cc" class=""><span class="" style=""></span></font><span class="" style=""></span><br class=""></span></p><p class="" style="font-family: Arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(119, 119, 119); font-size: 7pt; line-height: 11.25pt; margin-bottom: 3.75pt;"><span class="" style="font-size: 9pt;"><span class="" style=""><a title="Macquarie University" href="http://mq.edu.au/" target="_blank" class="">http://www.maths.mq.edu.au</a></span></span></p><p class="" style="font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><a href="http://mq.edu.au/" target="_blank" class=""><br class="Apple-interchange-newline"><span class=""><span id="cid:image001.png@01D030BE.D37A46F0"><image001.png></span></span></a></p><p class="" style="font-family: Arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(119, 119, 119); font-size: 7pt;"><a href="http://mq.edu.au/" target="_blank" class=""><span class="" style="color: rgb(119, 119, 119); font-size: 7pt;"><br class="Apple-interchange-newline">CRICOS Provider Number 00002J. Think before you print. <br class="">Please consider the environment before printing this email.</span><span class="" style="font-family: 'Times New Roman', serif; font-size: 12pt;"></span></a></p><p class="" style="font-family: Arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; color: rgb(119, 119, 119); font-size: 7pt;"><a href="http://mq.edu.au/" target="_blank" class=""><span class="" style="color: rgb(119, 119, 119); font-size: 7pt;">This message is intended for the addressee named and may <br class="">contain confidential information. If you are not the intended <br class="">recipient, please delete it and notify the sender. Views expressed <br class="">in this message are those of the individual sender, and are not <br class="">necessarily the views of Macquarie University.</span></a></p></div></div><br class=""></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">----------- Please Consult the Following Before Posting -----------</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">TeX FAQ:<span class="Apple-converted-space"> </span></span><a href="http://www.tex.ac.uk/faq" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://www.tex.ac.uk/faq</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">List Reminders and Etiquette:<span class="Apple-converted-space"> </span></span><a href="https://www.esm.psu.edu/~gray/tex/" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://www.esm.psu.edu/~gray/tex/</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">List Archives:<span class="Apple-converted-space"> </span></span><a href="http://dir.gmane.org/gmane.comp.tex.macosx" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://dir.gmane.org/gmane.comp.tex.macosx</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">               </span><a href="https://email.esm.psu.edu/pipermail/macosx-tex/" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">TeX on Mac OS X Website:<span class="Apple-converted-space"> </span></span><a href="http://mactex-wiki.tug.org/" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://mactex-wiki.tug.org/</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">List Info:<span class="Apple-converted-space"> </span></span><a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a></div></blockquote></div><br class=""></div></body></html>