\ ifx \ pdfoutput \ undefined
\ usepackage {graphicx}
\ else
\ usepackage [pdftex]{graphicx}
\ fi
\ includegraphics
command. The command syntax is:\ includegraphics [keyval-list]{file}
,
file
is the name of the file, and keyval-list
is the list of keys, which are specified as key = value
, separated by commas.\ includegraphics
command can be omitted, since the driver itself knows which types of files it can process and which ones cannot. For the driver, dvips are files with the extension eps , ps , eps.gz , ps.gz , eps.Z , and for the pdftex driver - png , pdf , jpg , mps , tif . When the file extension in the command is not specified, the driver successively adds all the extensions known to it to the file name until it finds the first matching file. Example:\ includegraphics {01}
width = length
- sets in any TeX units of length the width of the area allocated for the drawing. Example:\ includegraphics [width=1in]{01}
height = length
- sets the height of the image. Example:\ includegraphics [width=1in,height=10mm]{01}
totalheight = length
- full height. I did not understand why he is needed)))keepaspectratio
- maintains the proportion of the pattern when changing the width and / or height. Example:\ includegraphics [width=1in,%
height=1cm,keepaspectratio]{01}
scale = scale
- scale image in scale
times. Example:\ includegraphics [scale=0.5]{01}
viewport = llx lly urx ury
trim = dl db dr du
- these keys define the so-called visible area of the pattern. Here llx lly urx ury
are the x- and y-coordinates of the lower left and upper right corners of the visible area of the picture relative to the reference point, and dl db dr du
are the distances between the left, lower, right and upper boundaries of the visible area of the figure and the figure itself. Example:\ includegraphics [viewport=-5 -5 50 50]{01}
clip = boolean
- if the value is true
, then this key cuts off the part of the picture that goes beyond the borders of the visible area. Example:\ includegraphics [viewport=-5 -5 50 50,clip]{01}
angle = angle
- this key rotates the pattern by angle
degrees counterclockwise. The axis of rotation passes through the starting point of the box. Example:\ includegraphics [scale=0.3,angle=30]{01}
draft
- at the stage of preparing the document, you can use this key. He points out that instead of drawing, one should draw a frame and type the name of the file inside it. Example:\ includegraphics [scale=0.5,draft]{01}
Source: https://habr.com/ru/post/48122/
All Articles