LaTeX Tips 96: LaTeX picture control commands, position control

LaTeX Tips 96: LaTeX picture control commands, position control

LaTeX control the position of the picture, it is to add an exclamation point to ignore the "aesthetic" standards.
\ Figure the begin {} [! HTB]
\ a float usepackage {}
\} the begin Figure {[H]
into the appropriate position of your code.

1, juxtaposed insert subgraph
\ 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}\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, the position of the control picture
if dislike Latex position automatically arrange images, may be used float package and use
\ Figure the begin {} [H]
\ usepackage {float}

 

  • Jpg image inserted
    in the command line environment, use the command:
    EBB figure.jpg
    generate bounding box file figure.bb.
    Using the following command:
    \ includegraphics [width = 0.8 \ textwidth]} {figure.jpg
    may be used to compile directly to Pdf Texify pdf file.
  • Insert bmp picture
    has no way of directly into bmp images found. The present method is the use of gimp converted into bmp jpg, then inserted as described above. Do not use windows built painter conversion, the picture quality loss too much. With gimp or fastone image viewer, jpg will be selected as the highest quality, better picture quality obtained after the conversion.
  • Jpg and eps picture while inserting
    insertion orders unchanged. Use Latex, dvi2pdf, two formats of images can be displayed at compile time.
  • Eps picture inserted
    using \ includegraphics [options] {file} command to insert eps picture.
    The following is a simple example:
    \ Article This article was DocumentClass {}
    \ usepackage {%} graphicx use package graphicx
    \ Document the begin {} 
    \ includegraphics%} {file.eps insert pictures, the size of the original image by inserting 
    \ end {Document} \ begin {document} \ includegraphics { file.eps}% insert pictures, the size of the original image by inserting \ end { document}

Note:
(1) tex and eps file file in the same folder, only the file name you can call, do not write path.
(2) can not be used pdflatex compile-time error. Even without mistakes, you can not see Fig. Use latex compiled dvi, then dvi2ps, ps2pdf we can see a plan.
Use [option] image size can be specified:
\ includegraphics [width = 3in]} {file.eps
set image width of 3 inches, a height image will be automatically scaled.
\ includegraphics [width = \ testwidth] {file.eps}
is set to image width the text width.
\ includegraphics [width = 0.8 \ textwidth ] {file.eps}
is set to 0.8 times the width of the image of the text width
\ includegraphics [width = \ testwidth-2.0 in]} {file.eps
2 inches less than the width of the image for setting the width of the text .
Use [option] Specifies image rotation angle:
\ includegraphics [angle = 270]} {file.eps
the image rotated 270 degrees.
Two options simultaneously, separated by commas:
\ includegraphics [width = \ testwidth, angle = 270]} {file.eps

Guess you like

Origin www.cnblogs.com/think90/p/11787215.html