<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="">
Hi Juan,
<div class=""><br class="">
<div>
<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 style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
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 style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdftex)</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
\write18 enabled.</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
entering extended mode</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
(./PicturesInPlainTex.tex</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
(/usr/local/texlive/2016/texmf-dist/tex/plain/graphics-pln/miniltx.tex)</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>miniltx.tex doesn’t define everything from LaTeX.</div>
<div>It only gives you enough to do some basic things.</div>
<div>The more LaTeX packages that you try to use, the more</div>
<div>you’ll encounter things that LaTeX uses, but haven’t been supported in miniltx.</div>
<div>So you need to be prepared to write snippets of patch coding when this occurs.</div>
<div><br class="">
</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/pdftex.def</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/pdftex.def:1569: Unde</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
fined control sequence.</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
l.1569 \@ifpackageloaded</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
{pst-pdf}% hv 20160630</div>
</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>The graphics-def/ bundle is very, very new — see that date: 2016-06-30 !!!</div>
<div>It is about uniformising the different .def files for different processing engines.</div>
<div><br class="">
</div>
<div>Here it seems to be calling a revised pdftex.def which is now checking</div>
<div>whether some other package pst-pdf has been loaded.</div>
<div>Unfortunately the \@ifpackageloaded command isn’t supported in miniltx.tex .</div>
<div><br class="">
</div>
<div>What to do?</div>
<div><br class="">
</div>
<div>If you have an older distribution available, find the pdftex.def file from there.</div>
<div>Put a copy into the local directory where you are processing your job.</div>
<div>Hopefully you will have no further problem — this time!</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div>If not, then you’ll need to do some hacking.</div>
<div>Take a copy of the actual pdftex.def to your working directory.</div>
<div>Look inside it for how \@ifpackageloaded is being used;</div>
<div>that is, how many arguments does it take? </div>
<div>Comment-out those lines.</div>
<div>Test your job. How much further does it get?</div>
<div>Do this kind of thing for each such problem.</div>
<div><br class="">
</div>
<div>Eventually you should be left with something that works —this time!</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div>Even more eventually, you should switch to using the full LaTeX.</div>
<div>Appreciate it’s power and flexibility, and all the good work that others put into it.</div>
<div><br class="">
</div>
<div><br class="">
</div>
<div>Or maybe one of the LaTeX developers will consider the use-case</div>
<div>of \input miniltx.tex when further developing graphics-def .</div>
<div>That won’t help you today, but maybe in the near future.</div>
<div><br class="">
</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
? </div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
Process aborted</div>
</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
Does anyone have an advice?</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
Thanks,</div>
<div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">
Juan</div>
</div>
</div>
</blockquote>
<br class="">
</div>
<div><br class="">
</div>
<div>Hope this helps.</div>
<div><br class="">
</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>Ross</div>
<br class="">
<div apple-content-edited="true" class="">
<div style="font-family: Arial, sans-serif; orphans: 2; widows: 2; " class=""><span class="Apple-style-span" style="font-size: 9px;"><b class=""><span style="font-size: 9pt;" class=""><br class="Apple-interchange-newline">
Dr Ross Moore</span></b></span></div>
<div style="font-family: Arial, sans-serif; orphans: 2; widows: 2;" class="">
<p style="font-family: Arial, sans-serif; font-style: normal; font-variant: 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;" class="">
<font color="#000000" class=""><span style="font-size: 9pt;" class=""><b class="">Mathematics Dept </b><b class="">|</b> Level 2, S2.638 AHH<br class="">
Macquarie University, NSW 2109, Australia</span><span style="font-family: 'Times New Roman', serif; font-size: 12pt;" class=""></span></font></p>
<p style="font-family: Arial, sans-serif; font-style: normal; font-variant: 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;" class="">
<b class=""><span style="font-size: 9pt;" class=""><font color="#000000" class="">T:</font></span></b><span style="font-size: 9pt;" class=""><font color="#000000" class=""> +61 2 9850 <b class="">8955 | F:</b> </font><a href="tel:%2B61%202%209850%209695" value="+61298509695" target="_blank" class=""><font color="#000000" class="">+61
2 9850 8114</font></a><br class="">
<font color="#000000" 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 color="#000000" class="">ross.moore@mq.edu.au</font><font color="#1155cc" class=""><span style="color: black;" class=""></span></font></a><font color="#1155cc" class=""><span style="color: black;" class=""></span></font><span style="color: black;" class=""></span><br class="">
</span></p>
<p style="font-family: Arial, sans-serif; font-style: normal; font-variant: 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;" class="">
<span style="font-size: 9pt;" class=""><span style="color: black;" class=""><a title="Macquarie University" href="http://mq.edu.au/" target="_blank" class="">http://www.maths.mq.edu.au</a></span></span></p>
<p style="color: rgb(0, 0, 0); font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-variant: 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;" class="">
<a href="http://mq.edu.au/" target="_blank" class=""><br class="Apple-interchange-newline">
<span><img height="58" width="260" apple-inline="yes" id="21AA985F-F197-4108-B404-08C79071AD67" apple-width="yes" apple-height="yes" src="cid:image001.png@01D030BE.D37A46F0" class=""></span></a></p>
<p style="font-family: Arial, sans-serif; font-style: normal; font-variant: 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;" class="">
<a href="http://mq.edu.au/" target="_blank" class=""><span style="color: rgb(119, 119, 119); font-size: 7pt;" class=""><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 style="font-family: 'Times New Roman', serif; font-size: 12pt;" class=""></span></a></p>
<p style="font-family: Arial, sans-serif; font-style: normal; font-variant: 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;" class="">
<a href="http://mq.edu.au/" target="_blank" class=""><span style="color: rgb(119, 119, 119); font-size: 7pt;" class="">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>
</body>
</html>