# figures in plain TeX

16 messages
Open this post in threaded view
|

## figures in plain TeX

 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.texand 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)(/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: Undefined control sequence.l.1569      \@ifpackageloaded                             {pst-pdf}%          hv 20160630? Process abortedDoes anyone have an advice?Thanks,                Juan----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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
Open this post in threaded view
|

## Re: figures in plain TeX

 > On Jul 13, 2016, at 4:28 PM, juan tolosa <[hidden email]> 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) > (/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 > ? > Process aborted > > Does anyone have an advice? > Thanks, >                 Juan Howdy, I can confirm the problem. I'd guess that some other changes involved with the recent graphicx package has caused this and miniltx wasn't updated. Please get in contact with David Carlisle at [hidden email] with your example. Good Luck, Herb Schulz (herbs at wideopenwest dot com) ----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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
Open this post in threaded view
|

## Re: figures in plain TeX

 In reply to this post by juan tolosa Hi Juan, On Jul 14, 2016, at 7:28 AM, juan tolosa <[hidden email]> 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 M:+61 407 288 255  |  E: [hidden email] ----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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
Open this post in threaded view
|

## Re: figures in plain TeX

Open this post in threaded view
|

## Re: figures in plain TeX

Open this post in threaded view
|

## Re: figures in plain TeX

 In reply to this post by juan tolosa On , at 2016 Jul 13,9:56 PM, juan tolosa wrote: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.1. If I can handle LaTeX, which I do with a lot of help, anyone can.2. Re. "set of problems with hints and answers, so that the hints and the answers are afterwards printed separately" By now, there are quite a number of packages out there that do that sort of things.Regards--schremmer----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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
Open this post in threaded view
|

## Re: figures in plain TeX

 In reply to this post by Herbert Schulz Thank you, Herb. I have e-mailed David Carlisle, hope he has some advice. Juan > On Jul 13, 2016, at 5:48 PM, Herbert Schulz <[hidden email]> wrote: > >> On Jul 13, 2016, at 4:28 PM, juan tolosa <[hidden email]> 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) >> (/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 >> ? >> Process aborted >> >> Does anyone have an advice? >> Thanks, >>                Juan > > Howdy, > > I can confirm the problem. I'd guess that some other changes involved with the recent graphicx package has caused this and miniltx wasn't updated. Please get in contact with David Carlisle at [hidden email] with your example. > > Good Luck, > > Herb Schulz > (herbs at wideopenwest dot com) > > > > > > > > ----------- 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----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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
Open this post in threaded view
|

## Re: figures in plain TeX

 In reply to this post by juan tolosa On , at 2016 Jul 13,10:05 PM, juan tolosa wrote:Unfortunately, there seems to be no pdftex.def file, neither in the older distribution file (2015) nor in the present one (2016)     :(How far back do you need? 2002 old enough?Regards--schremmer----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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
Open this post in threaded view
|

## Re: figures in plain TeX

 In reply to this post by Alain Schremmer-2 1. Thanks, I’ll definitely try. Sometime.2. I know. I even found one of these for one of my students, who is smarter than me and has been using LaTeX all the time. The only problem is doing the translation from one package to another.Best,               JuanOn Jul 13, 2016, at 10:07 PM, Alain Schremmer <[hidden email]> wrote:On , at 2016 Jul 13,9:56 PM, juan tolosa wrote: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.1. If I can handle LaTeX, which I do with a lot of help, anyone can.2. Re. "set of problems with hints and answers, so that the hints and the answers are afterwards printed separately" By now, there are quite a number of packages out there that do that sort of things.Regards--schremmer----------- Please Consult the Following Before Posting -----------TeX FAQ: http://www.tex.ac.uk/faqList 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----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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
Open this post in threaded view
|

## Re: figures in plain TeX

 In reply to this post by Alain Schremmer-2 Maybe. What I find intriguing is, pictures worked fine with the 2015 package, although the file you mention does not seem to be there.Best,             JuanOn Jul 13, 2016, at 10:09 PM, Alain Schremmer <[hidden email]> wrote:On , at 2016 Jul 13,10:05 PM, juan tolosa wrote:Unfortunately, there seems to be no pdftex.def file, neither in the older distribution file (2015) nor in the present one (2016)     :(How far back do you need? 2002 old enough?Regards--schremmer----------- Please Consult the Following Before Posting -----------TeX FAQ: http://www.tex.ac.uk/faqList 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----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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
Open this post in threaded view
|

## Re: figures in plain TeX

 In reply to this post by juan tolosa On 13/07/16 21:05, juan tolosa wrote: > Unfortunately, there seems to be no pdftex.def file, neither in the > older distribution file (2015) nor in the present one (2016)     :( /usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/pdftex.def Best Axel ----------- Please Consult the Following Before Posting ----------- TeX FAQ: http://www.tex.ac.uk/faqList 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