LaTeX controls the position of the picture

Source: Internet
Author: User
Tags bmp image

Add an exclamation mark to ignore the "aesthetics" standard.

\BEGIN{FIGURE}[!HTB]

\usepackage{float}
\BEGIN{FIGURE}[H]
Plug in the appropriate location of your code.

1, inserting a parallel sub-graph

\usepackage{subfigure}


\BEGIN{FIGURE}[H]
\centering
\subfigure[subfigurecaption]{
\label{fig.sub.1}
\includegraphics[width=0.4\textwidth]{figurename.eps}}
\subfigure[subfigurecaption]{
\label{fig.sub.2}
\includegraphics[width=0.4\textwidth]{figurename.eps}}
\caption{mainfigurecaption}
\label{fig.lable}
\end{figure}


2, control picture position
If you do not like to have Latex automatically arrange picture locations, you can use the float package and
With \begin{figure}[h].

\usepackage{float}
1, inserting JPG images
In the command-line environment, use the command:
Ebb Figure.jpg
Generate a bounding box file FIGURE.BB.

Use the following command:
\includegraphics[width=0.8\textwidth]{figure.jpg}

You can use PDF texify to compile directly into PDF files.

2. Insert BMP image
There is no way to insert a BMP image directly. The current approach is to use the
GIMP converts the BMP into JPG and then inserts it as described above. Do not convert
With Windows Painter, the picture quality is lost too much. With GIMP or
Fastone image Viewer, the JPG quality is selected as the highest, the conversion is obtained after the
Picture quality is good.

3. Insert jpg and EPS pictures simultaneously
The inserted command does not change. Compile-time using Latex, dvi2pdf, two-format
Pictures can be displayed. 

Insert EPS picture
Use \includegraphics[option]{file} command to insert an EPS picture. The following is one of the simplest examples:

\documentclass{article}
\usepackage{graphicx}% using Graphicx package
\begin{document}
\ Includegraphics{file.eps}% Insert Picture, insert the original size of the image
\end{document}

Note:
(1) The EPS file and the Tex file are placed in the same folder and can be called only with the file name. Do not write the path.

(2) cannot use Pdflatex at compile time, error occurs. Even if there is no error, you cannot see the diagram. You should use Latex compilation to generate DVI, and then dvi2ps,ps2pdf can see the diagram.

Use [options] to specify the size of the picture:

\includegraphics[width=3in]{file.eps}
Set the picture width to 3 inches, and the image height will be automatically scaled.

\includegraphics[width=\testwidth]{file.eps}
Sets the width of the picture to text.

\includegraphics[width=0.8\textwidth]{file.eps}
Set the picture width to 0.8 times times the text width

\includegraphics[width=\ Testwidth-2.0in]{file.eps}
Sets the width of the picture to 2 inches less than the text width.

Specifies the rotation angle of the picture using [options]:
\includegraphics[angle=270]{file.eps}
Rotates the picture 270 degrees.

Two options are used at the same time, separated by commas:
\includegraphics[width=\testwidth, angle=270]{file.eps}

Transfer from/HTTP hi.baidu.com/bend90/blog/item/45236a100dcf6006203f2e4c.html

The location of the LaTeX control picture

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.