Re: input graphics in amstex
juan tolosa <[email protected]>
| Newsgroups | gmane.comp.tex.miktex |
|---|---|
| Message-ID | <CY4PR07MB3141423595C789F7FB12CAF6D3FF0@CY4PR07MB3141.namprd07.prod.outlook.com> |
Hi James,
I had exactly the same problem. The \special command was used in the past for TeXtures in the mac, and for PCTeX in the PC, but it is no longer used. I was fortunate enough to get good advice from the MacOSTeX community, which is great. I attach a sample file showing how you can attach pictures to documents, if you use plain TeX.
You may use .jpg, .eps, and other extensions in your pictures, it should work fine (just don't add the extensions when referring to the picture).
For this example to work, you must have your picture, which I named here "Figure1," in the same folder as your TeX document.
For the example in the first NOTE after the document to work, you must also have a "Figure2" and a "Figure3.jpg" in the same folder.
The example in the SECOND NOTE shows how one could put two pictures side by side. In this case, I had created a subfolder called "pictures" inside the folder that contained the TeX document. This is useful when you have a document that has lots of pictures and you want to avoid clutter. Of course, if you don't want to create a subfolder, just replace "pictures/incenter2" by simply "incenter2".
Let me know if this works. For me, it works both in MacOSTeX, and in MikTeX.
Good luck,
Juan Tolosa
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Just in case, I include the code in this message as well:
\input miniltx.tex
\RequirePackage{graphicx}
Trying the recommendation by Ross Moore on how to do graphics in plain \TeX.
\includegraphics[height=60mm]{Figure1}
Let us see if this works.
\bye
NOTE:
Here is another valid way of including a figure:
\includegraphics[scale = .35, angle = 0]{Figure2}
(the above one was in .jpg)
and also:
\includegraphics[scale = .3, angle = 0]{Figure3.jpg}
The above were used in Problem sets 19 and 20 of
the Math Seminar Problem Solving sessions.
SECOND NOTE:
Example of two pictures side-by-side, used in the Applied Geometry Handout;
moreover, these pictures were inside another folder
(inside the main folder that contains the TeX document itself),
which I called "pictures"); this is convenient when you have lots of pictures:
% TWO PICTURES, SIDE BY SIDE:
%________________________________________________________________
% \midinsert
% \vglue 2.0truein
\hbox{
\vbox{\hglue -.3truein{\includegraphics[height=60mm] {pictures/incenter2}}}
\hglue .3in
\raise -5pt\vbox{\hglue -3.8truein{\includegraphics[height=60mm] {pictures/incenter3}}}
}
\centerline{\sc Figure 1 \hglue 2truein Figure 2}
\smallskip
% \endinsert
%________________________________________________________________
________________________________
From: James Ridley <[email protected]>
Sent: Sunday, September 11, 2016 12:41 PM
To: 'A place for MiKTeX users to discuss MiKTeX related questions.'
Subject: Re: [MiKTeX] input graphics in amstex
Dear George,
Thank you very much, but I am exactly in the position you describe, of using
a lot of my own macros, so conversion to LaTeX isn't really an option. This
is a set of lecture notes (over 200 pages) that I wrote in the 90s, using
PC-TeX, but the version I had is not compatible with my new computer, and
they wanted a fortune for an upgrade. Amstex with amsppt.sty recognises all
the macros except for the one for importing the figures, which was \special.
Perhaps I shall have to resort to cut and paste in the literal sense!
Thanks again
James
-----Original Message-----
From: George N. White III [mailto:[email protected]]
Sent: Sunday, 11 September 2016 13:15
To: A place for MiKTeX users to discuss MiKTeX related questions.
Subject: Re: [MiKTeX] input graphics in amstex
On Sat, Sep 10, 2016 at 2:12 PM, James Ridley <[email protected]>
wrote:
> I am running some old files under amstex and amsppt.sty and would like to
> include some figures. Most of my old figures were in .eps format.
>
> My old commands don't work. Please can someone tell me what format the
> figures must be in and what command I must use to import them.
Not much to go here, but I can suggest several approaches:
If you are planning a journal submission, AMS-TeX has been replaced by
http://www.ams.org/publications/authors/tex/amslatex. You would need to
convert your documents to LaTeX. If you make extensive use of your own
macros this could be a big job.
Depending on the fonts used in your old documents you may encounter
problems with current TeX distributions. One workaround is to rasterize
EPS figures and import them as images. It is also possible to convert
fonts in EPS files to outline paths. Rasterizing fonts tends to look good
on a screen but needs a high resolution for typesetting. Outlined fonts
have poor screen quality (no hinting) but work well for typeset output.
https://tex.stackexchange.com/questions/248390/can-i-use-latex-packages-from
-ctan-in-plain-tex
--
I have had success with older documents replacing macros to
include eps fgures with \includegraphics from the latex graphix package.
> Thank you
>
> James Ridley
>
> ------------------------------------------------------------
> ------------------
> _______________________________________________
> Q: How can I leave the mailing list?
> A: See http://docs.miktex.org/faq/support.html#leavingml
>
--
George N. White III <[email protected]>
Head of St. Margarets Bay, Nova Scotia
----------------------------------------------------------------------------
--
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
------------------------------------------------------------------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml
------------------------------------------------------------------------------
_______________________________________________
Q: How can I leave the mailing list?
A: See http://docs.miktex.org/faq/support.html#leavingml