In practice, the centering is the only one of the above you're likely to use much with text. Note that some of these commands work with text as well (see reflecting) - diagrams are not the only items that can be reflected, rotated, etc. In this section we'll discuss how you can manipulate images in LaTeX. To include a specific image, we use the statement: This line includes the package graphicx, which contains all the image-handling routines you need to include images. Let's take a closer look at how this code works. If you followed all the steps correctly, you should get a file that looks a lot like what you'll see when you click here. If you don't, you'll get a bunch of errors because LaTeX will expect your pictures to be in the EPS (Encapsulated PostScript) format. Make sure you have TeXnicCenter set up to produce PDF documents (LaTeX => PDF in the appropriate drop-menu). (Very important - if you save it in a different folder, you will get an error!)Ĭompile your source code and view the result. Save your source file in the same folder as you saved myimage.png. Next, open a new LaTeX source file in TeXnicCenter and input the following: Make sure you pay attention to what folder you are saving the image to. (Alternatively, depending on your browser, you may be able to right-click on the link to the image and choose "Save link as.") Save the image with the name 'myimage.png'. To walk through this example, first download a sample image by clicking here to open the image, then save it to your own computer. The machine that we'll use to include images is the graphicx package. Otherwise, if you are using LaTeX to produce PDF documents, you can make images such as geometric diagrams in your documents. pdf file as your image! You could also produce geometric diagrams within LaTeX as shown in the Asymptote article.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |