Inserting pictures into LaTeX documents is realized by using some LaTeX graphic processing macro commands, and many macro commands support inserting eps format graphic files into latex documents, mainly including: using includegraphics macro command (graphicx package): firstly, add: \ usepackage {graphcx} in the file description part of latex documents.
Then, reference it where you need to insert the picture: \ includegraphics [height = height] {picture file name}.
Or: \ include graphics[width = width]{ image file name}. Where "height" and "width" refer to the height and width of the picture to be printed, and units must be given, which can be centimeters (cm) or inches (in). You can also give both height and width in the above format, so you can change the aspect ratio of the original image. The image file name in the above command refers to the file name of the image file to be inserted. The picture must be in eps format. You can also rotate a picture when you insert it with the macro command of graphicx package. The method is: \ includegraphics [height = height] [angle = rotation angle] {image file name}. Use the macro command include graphics: It is troublesome to insert pictures using graphics packages. Please refer to the article "Graphics and Colors of Latex" for details.
Use psfig macro command: first add: \usepackage{psfig} in the file description part of latex document.
Then quote where you need to insert the picture:? \ PS fig {fig = picture file name, height= height} or: \ PS fig {fig = picture file name, width= width}.
"Height" and "width" refer to the height and width of the picture you want to print, and the unit must be given, which can be centimeters (cm) or inches (in). You can also give both height and width in the above format, so you can change the aspect ratio of the original image. The image file name in the above command refers to the file name of the image file to be inserted. The picture must be in eps format. Use the epsfig macro command: the usage of the epsfig macro command is exactly the same as that of psfig. The specific method is as follows: first, add: \usepackage{epsfig} in the file description part of latex document, and then reference: \ EPS fig {fig = image file name, height= height} or: \ EPS fig {fig = image file name, width= width}. Where "height" and "width" refer to the height and width of the picture to be printed, and the unit must be given, or both height and width can be given in the above format, so that the aspect ratio of the original picture can be changed. The image file name in the above command refers to the file name of the image file to be inserted, and the image must be eps.
Use epsf macro command: the usage of epsf macro command is as follows: first, in the file description part of latex document: \usepackage{epsf}, and then reference \ epsfxsize = width \ epsfile {image file name} or \ epsfysize = height \ Epsfile {image file name} where "height" and "width" refer to the height and width of the image to be printed, the unit must be given, and the height and width can also be given in the above format at the same time, thus changing the aspect ratio of the original image. The image file name in the above command refers to the file name of the image file to be inserted, and the image must be in eps format.
How to get a file in PostScript. Ps or. Eps) format;
LaTeX generally only supports direct insertion of graphics files in eps(Encapsulated PostScript) format, so before inserting latex documents, we should try our best to obtain eps format files of pictures.
All kinds of application software under UNIX can output results in ps format, and most software can also output results in eps format.
If the software can only output the results in ps format but not eps format, it can be converted into eps format by ps2epsi command. Please refer to the description of man ps2epsi.
If the format of a picture file is a bitmap graphic file, it can be converted into a ps or eps file through the display and conversion tools of the Image Magick software package. For more information, please refer to the man page and instructions for use.