How to insert an EPS format picture in latex

Source: Internet
Author: User

How to insert an EPS format picture in latex

First step: Generate a picture of the. eps format

1. Save a picture in PDF format using Visio Paint

Use Adobe Acrobat trimming to make the picture fit

Save As. eps format as shown in:

Note: This step must be saved as shown in the diagram, you cannot directly forcibly change the suffix name, otherwise it cannot be displayed after inserting.

2, using Matlab drawing, directly saved as EPS format can be

Step Two: Insert code

1. Add a macro Package

\USEPACKAGE{GRAPHICX}

\usepackage{epstopdf}

2. Place the. eps picture and the. tex file under one path, using the following code:

[Plain]View PlainCopy
    1. \begin{figure}
    2. \centering
    3. \includegraphics[height=2cm,width=3cm]{exp.eps}
    4. \caption{yes}
    5. \label{1}
    6. \end{figure}

A simple and complete sample code is as follows:

[Plain]View PlainCopy
    1. \documentclass[12pt]{article}
    2. \USEPACKAGE{GRAPHICX}%use Graph format
    3. \usepackage{epstopdf}
    4. \begin{document}
    5. \begin{figure}
    6. \centering
    7. \includegraphics[height=2cm,width=3cm]{exp.eps}
    8. \caption{yes}
    9. \label{1}
    10. \end{figure}
    11. \end{document}

Put your own saved. EPS pictures and. tex files in the same directory, you can compile and run the view effect

How to insert an EPS format picture in latex

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.