He reasoned that this state could not persist for ever, but that it would be foolish for him to define TeX primitives that allowed the import of graphical image definitions. Notable examples are the epsf package distributed with dvips and the psfig package. All such packages were tied to a particular DVI driver dvips , in the above two cases , but their code could be configured for others. The obvious next step was to make the code configurable dynamically. The LaTeX standard graphics package and its derivatives made this step: it is strongly preferred for all current work.

Author:Aracage Daikora
Language:English (Spanish)
Genre:Health and Food
Published (Last):16 August 2018
PDF File Size:20.87 Mb
ePub File Size:18.69 Mb
Price:Free* [*Free Regsitration Required]

We used the LaTeX graphics package epsf , which was designed to work with the dvips driver. Since you may want to do similar work on another system, which may use a different driver for converting dvi files, we will also look at the package called graphicx and at the package called epsfig. Open a terminal window and a text editor, and then use your mouse to copy the following LaTeX source code into your editor.

Here is an example. Can you tell whether the width was adjusted before or after the rotation? Make sure that the file golfer. Then run latex graphicx-test and use dvips to convert the resulting dvi file to graphicx-test. Print this file and turn in hard copy by the end of class. To conserve disk space, you should remove the final PostScript file, and you may want to remove the other files produced by LaTeX as well, saving only the source file.

Homework for after class Of course, you may start on the homework during class if you have time. An exercise on the epsfig package Copy the following text into a text editor, and choose one of the the PostScript files that you worked with last time to replace the filename in the various graphics commands. Then save the modified file as epsfig-test.

Before you run latex on the new file, make sure that the PostScript files that you want to use have been moved to the same directory. View your file by using dvips epsfig-test -o epsfig-test. See the example further down. When you have things working to your satisfaction, write up a LaTeX document that displays the effects that you can get with epsfig. You should have at least three included figures. I suggest that you keep the dimensions of the figures modest to avoid creating a huge PostScript file.

Please hand in the typeset version of your document at the beginning of our next class meeting. If you have done all the in-class activities suggested above, and there is still time left, here are some other activities you can do.


Importing graphics into (La)TeX documents

By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. It only takes a minute to sign up. Preferably the images should be enclosed as PostScript files — best as EPS data using the epsfig package. My question is simply "are they serious about this? I have even found comments on this very page that it is better to use graphicx. I usually use the pdfLaTeX compiler for my writing as it most directly gives me what I want.


LaTeX Lesson 7 --Graphics in LaTeX



Including Figures in a LaTeX document



Subscribe to RSS


Related Articles