[OS X TeX] figures in plain TeX

juan tolosa juantolo at me.com
Thu Jul 14 04:05:07 CEST 2016


Unfortunately, there seems to be no pdftex.def file, neither in the older distribution file (2015) nor in the present one (2016)     :(
juan

> On Jul 13, 2016, at 9:56 PM, juan tolosa <juantolo at me.com> wrote:
> 
> Thank you, Ross,
> 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.
> 
> 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.
> 
> Best,
>              Juan
> 
>> On Jul 13, 2016, at 6:00 PM, Ross Moore <ross.moore at mq.edu.au <mailto:ross.moore at mq.edu.au>> wrote:
>> 
>> Hi Juan,
>> 
>>> On Jul 14, 2016, at 7:28 AM, juan tolosa <juantolo at me.com <mailto:juantolo at me.com>> wrote:
>>> 
>>> 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. 
>>> I had transitioned from TeXtures, which used the \special{…} command for inserting pictures, to a more transparent, and more universally accepted method.
>>> 
>>> In particular, I used
>>> \input miniltx.tex
>>> and next, something like
>>> \RequirePackage{graphicx} 
>>> and then I inserted pictures using, for example
>>> \includegraphics[height=60mm]{RubiKo}
>>> 
>>> Today, to my surprise, I found the method is not working anymore.
>>> 
>>> As soon as the \input miniltx.tex is typeset, I get an error. The console displays:
>>> 
>>> This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdftex)
>>>  \write18 enabled.
>>> entering extended mode
>>> (./PicturesInPlainTex.tex
>>> (/usr/local/texlive/2016/texmf-dist/tex/plain/graphics-pln/miniltx.tex)
>> 
>> miniltx.tex  doesn’t define everything from LaTeX.
>> It only gives you enough to do some basic things.
>> The more LaTeX packages that you try to use, the more
>> you’ll encounter things that LaTeX uses, but haven’t been supported in miniltx.
>> So you need to be prepared to write snippets of patch coding when this occurs.
>> 
>> 
>>> (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty
>>> (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)
>>> (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty
>>> (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)
>>> (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
>>> (/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/pdftex.def
>>> (/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
>>> (/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
>>> /usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/pdftex.def:1569: Unde
>>> fined control sequence.
>>> l.1569      \@ifpackageloaded
>>>                              {pst-pdf}%          hv 20160630
>> 
>> The  graphics-def/  bundle is very, very new — see that date: 2016-06-30 !!!
>> It is about uniformising the different .def  files for different processing engines.
>> 
>> Here it seems to be calling a revised  pdftex.def  which is now checking
>> whether some other package  pst-pdf  has been loaded.
>> Unfortunately the  \@ifpackageloaded  command isn’t supported in  miniltx.tex .
>> 
>> What to do?
>> 
>> If you have an older distribution available, find the  pdftex.def  file from there.
>> Put a copy into the local directory where you are processing your job.
>> Hopefully you will have no further problem — this time!
>> 
>> 
>> If not, then you’ll need to do some hacking.
>> Take a copy of the actual  pdftex.def  to your working directory.
>> Look inside it for how  \@ifpackageloaded  is being used;
>> that is, how many arguments does it take? 
>> Comment-out those lines.
>> Test your job. How much further does it get?
>> Do this kind of thing for each such problem.
>> 
>> Eventually you should be left with something that works —this time!
>> 
>> 
>> Even more eventually, you should switch to using the full LaTeX.
>> Appreciate it’s power and flexibility, and all the good work that others put into it.
>> 
>> 
>> Or maybe one of the LaTeX developers will consider the use-case
>> of  \input  miniltx.tex  when further developing  graphics-def .
>> That won’t help you today, but maybe in the near future.
>> 
>> 
>>> ? 
>>> Process aborted
>>> 
>>> Does anyone have an advice?
>>> Thanks,
>>>                 Juan
>> 
>> 
>> Hope this helps.
>> 
>> Ross
>> 
>> 
>> Dr Ross Moore
>> Mathematics Dept | Level 2, S2.638 AHH
>> Macquarie University, NSW 2109, Australia
>> 
>> T: +61 2 9850 8955  |  F: +61 2 9850 8114 <tel:%2B61%202%209850%209695>
>> M:+61 407 288 255 <tel:%2B61%20409%20125%20670>  |  E: ross.moore at mq.edu.au <mailto:rick.minter at mq.edu.au>
>> http://www.maths.mq.edu.au <http://mq.edu.au/>
>> 
>> <image001.png> <http://mq.edu.au/>
>> 
>> CRICOS Provider Number 00002J. Think before you print. 
>> Please consider the environment before printing this email. <http://mq.edu.au/>
>> This message is intended for the addressee named and may 
>> contain confidential information. If you are not the intended 
>> recipient, please delete it and notify the sender. Views expressed 
>> in this message are those of the individual sender, and are not 
>> necessarily the views of Macquarie University. <http://mq.edu.au/>
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq <http://www.tex.ac.uk/faq>
>> List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/ <https://www.esm.psu.edu/~gray/tex/>
>> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx <http://dir.gmane.org/gmane.comp.tex.macosx>
>>                https://email.esm.psu.edu/pipermail/macosx-tex/ <https://email.esm.psu.edu/pipermail/macosx-tex/>
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/ <http://mactex-wiki.tug.org/>
>> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex <https://email.esm.psu.edu/mailman/listinfo/macosx-tex>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>                https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/macostex-archives/attachments/20160713/4a3760e3/attachment-0001.html>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://www.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


More information about the macostex-archives mailing list