figures in plain TeX

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

figures in plain TeX

juan tolosa
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

----------- 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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

Herbert Schulz
> 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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

Ross Moore-3
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: <a href="tel:%2B61%202%209850%209695" value="&#43;61298509695" target="_blank" class="">+61 2 9850 8114
M:<a href="tel:%2B61%20409%20125%20670" value="&#43;61409125670" target="_blank" class="">+61 407 288 255  |  E: [hidden email]

http://www.maths.mq.edu.au



CRICOS Provider Number 00002J. Think before you print. 
Please consider the environment before printing this email.

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.



----------- 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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

juan tolosa
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 <[hidden email]> wrote:

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: <a href="tel:%2B61%202%209850%209695" value="+61298509695" target="_blank" class="">+61 2 9850 8114
M:<a href="tel:%2B61%20409%20125%20670" value="+61409125670" target="_blank" class="">+61 407 288 255  |  E: [hidden email]

http://www.maths.mq.edu.au


<image001.png>


CRICOS Provider Number 00002J. Think before you print. 
Please consider the environment before printing this email.

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.


----------- 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/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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

juan tolosa
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 <[hidden email]> 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 <[hidden email]> wrote:

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: <a href="tel:%2B61%202%209850%209695" value="+61298509695" target="_blank" class="">+61 2 9850 8114
M:<a href="tel:%2B61%20409%20125%20670" value="+61409125670" target="_blank" class="">+61 407 288 255  |  E: [hidden email]

http://www.maths.mq.edu.au


<image001.png>


CRICOS Provider Number 00002J. Think before you print. 
Please consider the environment before printing this email.

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.


----------- 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/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/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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

Alain Schremmer-2
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/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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

juan tolosa
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/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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

Alain Schremmer-2
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/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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

juan tolosa
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,
               Juan
On 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/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/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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

juan tolosa
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,
             Juan
On 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/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/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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

Axel E. Retif-3
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/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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

Ross Moore-3
In reply to this post by juan tolosa
Hi Juan,

On Jul 14, 2016, at 11:56 AM, juan tolosa <[hidden email]> wrote:


Even more basic things, like matrix commands (\pmatrix{…} and the like) are not recognized by LaTeX,

The LaTeX answer is:   \usepackage{amsmath}

Then  use  \begin{matrix} … \end{pmatrix} .
Doing the editing to get this from  \pmatrix{….}  is not that hard.

I have to do it all the time, with assignment questions and solutions from my teaching colleagues,
who are at a similar level to what you described concerning yourself.

and are not easily translatable. So, I am still struggling with plain TeX.

AMSTeX used to be very popular with my math colleagues, but the  amsmath  package *is* 
the adaptation of that to LaTeX. 
So all those Plain TeX and AMSTeX extensions and macros should have an equivalent.
Frequently the LaTeX commands actually produce better, improved layouts than what AMSTeX did. 



Best,
             Juan



BTW. If you are having trouble finding  pdftex.def  get it this way:

SCI:~ ross$ kpsewhich pdftex.def
/usr/local/texlive/2016/texmf-dist/tex/latex/pdftex-def/pdftex.def

Also, David Carlisle email’d me saying that the latest version of it, updated since you last did,
should no longer give this problem. That line ...

… is not in the current version in the sources

https://github.com/latex3/graphics-def/blob/master/pdftex.def

and the test file works for me.

That release was pushed to ctan  a couple of days ago, so should be getting to texlive update
any day now, or you can get the file from the above link.

David

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: <a href="tel:%2B61%202%209850%209695" value="&#43;61298509695" target="_blank" class="">+61 2 9850 8114
M:<a href="tel:%2B61%20409%20125%20670" value="&#43;61409125670" target="_blank" class="">+61 407 288 255  |  E: [hidden email]

http://www.maths.mq.edu.au



CRICOS Provider Number 00002J. Think before you print. 
Please consider the environment before printing this email.

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.



----------- 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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

Alain Schremmer-2
In reply to this post by juan tolosa

On , at 2016 Jul 13,10:10 PM, juan tolosa wrote:

> Maybe.

If and when you find out which one you need, let me know and I might be able to email it to you.

Regards
--schremmer


----------- 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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

juan tolosa
In reply to this post by Axel E. Retif-3
I want to thank everybody, the problem has been solved. (For now, as Ross points out. I’ll have to seriously considering changing to LaTeX.)

Here is my report. Following various advices, I obtained the old, 2015 version of pdftex.def. Here I used a suitably modified version of Ross’s suggestion:

/usr/local/texlive/2015/texmf-dist/tex/latex/pdftex-def/pdftex.def

(By the way, Axel’s suggestion 

/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/pdftex.def

works for 2016, but not for 2015, and Ross’s works for 2015, but not for 2016.)

Then I put the older version of pdftex.def in the folder in which I have the document, and it worked fine!

Juan


On Jul 13, 2016, at 10:15 PM, Axel E. Retif <[hidden email]> wrote:

/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-def/pdftex.def


----------- 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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

juan tolosa
In reply to this post by Ross Moore-3
Thank you Ross!

I’ll definitely try the amsmath package, as I begin my (inevitable!) transition to LaTeX.

Juan

On Jul 13, 2016, at 10:18 PM, Ross Moore <[hidden email]> wrote:

Hi Juan,

On Jul 14, 2016, at 11:56 AM, juan tolosa <[hidden email]> wrote:


Even more basic things, like matrix commands (\pmatrix{…} and the like) are not recognized by LaTeX,

The LaTeX answer is:   \usepackage{amsmath}

Then  use  \begin{matrix} … \end{pmatrix} .
Doing the editing to get this from  \pmatrix{….}  is not that hard.

I have to do it all the time, with assignment questions and solutions from my teaching colleagues,
who are at a similar level to what you described concerning yourself.

and are not easily translatable. So, I am still struggling with plain TeX.

AMSTeX used to be very popular with my math colleagues, but the  amsmath  package *is* 
the adaptation of that to LaTeX. 
So all those Plain TeX and AMSTeX extensions and macros should have an equivalent.
Frequently the LaTeX commands actually produce better, improved layouts than what AMSTeX did. 



Best,
             Juan



BTW. If you are having trouble finding  pdftex.def  get it this way:

SCI:~ ross$ kpsewhich pdftex.def
/usr/local/texlive/2016/texmf-dist/tex/latex/pdftex-def/pdftex.def

Also, David Carlisle email’d me saying that the latest version of it, updated since you last did,
should no longer give this problem. That line ...

… is not in the current version in the sources

https://github.com/latex3/graphics-def/blob/master/pdftex.def

and the test file works for me.

That release was pushed to ctan  a couple of days ago, so should be getting to texlive update
any day now, or you can get the file from the above link.

David

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: <a href="tel:%2B61%202%209850%209695" value="+61298509695" target="_blank" class="">+61 2 9850 8114
M:<a href="tel:%2B61%20409%20125%20670" value="+61409125670" target="_blank" class="">+61 407 288 255  |  E: [hidden email]

http://www.maths.mq.edu.au


<image001.png>


CRICOS Provider Number 00002J. Think before you print. 
Please consider the environment before printing this email.

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.


----------- 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/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
Reply | Threaded
Open this post in threaded view
|

Re: figures in plain TeX

juan tolosa
I also replaced the old pdftex.def with the updated version, as suggested by Ross.
Sucess!
Thank you!

On Jul 14, 2016, at 12:07 AM, juan tolosa <[hidden email]> wrote:

Thank you Ross!

I’ll definitely try the amsmath package, as I begin my (inevitable!) transition to LaTeX.

Juan

On Jul 13, 2016, at 10:18 PM, Ross Moore <[hidden email]> wrote:

Hi Juan,

On Jul 14, 2016, at 11:56 AM, juan tolosa <[hidden email]> wrote:


Even more basic things, like matrix commands (\pmatrix{…} and the like) are not recognized by LaTeX,

The LaTeX answer is:   \usepackage{amsmath}

Then  use  \begin{matrix} … \end{pmatrix} .
Doing the editing to get this from  \pmatrix{….}  is not that hard.

I have to do it all the time, with assignment questions and solutions from my teaching colleagues,
who are at a similar level to what you described concerning yourself.

and are not easily translatable. So, I am still struggling with plain TeX.

AMSTeX used to be very popular with my math colleagues, but the  amsmath  package *is* 
the adaptation of that to LaTeX. 
So all those Plain TeX and AMSTeX extensions and macros should have an equivalent.
Frequently the LaTeX commands actually produce better, improved layouts than what AMSTeX did. 



Best,
             Juan



BTW. If you are having trouble finding  pdftex.def  get it this way:

SCI:~ ross$ kpsewhich pdftex.def
/usr/local/texlive/2016/texmf-dist/tex/latex/pdftex-def/pdftex.def

Also, David Carlisle email’d me saying that the latest version of it, updated since you last did,
should no longer give this problem. That line ...

… is not in the current version in the sources

https://github.com/latex3/graphics-def/blob/master/pdftex.def

and the test file works for me.

That release was pushed to ctan  a couple of days ago, so should be getting to texlive update
any day now, or you can get the file from the above link.

David

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: <a href="tel:%2B61%202%209850%209695" value="+61298509695" target="_blank" class="">+61 2 9850 8114
M:<a href="tel:%2B61%20409%20125%20670" value="+61409125670" target="_blank" class="">+61 407 288 255  |  E: [hidden email]

http://www.maths.mq.edu.au


<image001.png>


CRICOS Provider Number 00002J. Think before you print. 
Please consider the environment before printing this email.

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.


----------- 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/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/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