[PDF] Including Graphics in LATEX Marko Boon 14th March 2005



Previous PDF Next PDF







Strategies for including graphics in LATEX documents

follow later In the case of using \includegraphics without options the image is included at its natural size, as shown above When using the graphicx style, you can scale your image by a factor: \includegraphics[scale=0 5]{sample} \includegraphics[scale=1 2]{sample} 5



Graphics in LaTeX - Auburn University

The includegraphics Command Graphics can be included with the command \includegraphics[key=value]{filename} where the options for key are widthresize image to the width given heightresize image to the height given totalheightresize image to totalheight keepaspectratioif both width and height are defined, then scale the image to fit the



Including Graphics in LATEX Marko Boon 14th March 2005

2 The includegraphics command \includegraphics[options]{filename} When including EPS or PDF files, use the file name without extension LATEX will take the EPS, PDFLATEX will take the PDF Supported options are: scale=number magnifies the figure by number over its natural size width=length specifies the width to which the figure should be scaled



How to Use the graphicx Package

\includegraphics{demo} (note that none of the keys is used) Figure 2 shows the same figure scaled by a factor of three and rotated by 60 degrees anticlockwise and using the command \includegraphics[scale = 3, angle = 60]{demo} 2If the width is not given, it too is scaled by the same amount



Graphics and Colour with LaTeX - LORIA

\includegraphics[height=2cm,angle=30]{clock eps} For compatibility with the graphics package, there also exists an \includegraphics* version that clips the imported gure; this is equivalent to including the key clip With the graphicx package, the \rotatebox command is similarly rede ned to accept the optional key origin





Packages in the `graphics bundle - ConcertPasscom

The following driver options are declared in the packages The matching def-inition les (driver def) are now also maintained by the LATEX project, but distributed separately, in the CTAN graphics-def collection dvi pdf mx, dvips, dvisvgm, luatex, pdf tex, xetex The following two options are also supported, they do not correspond to separate



The adjustbox Package - The CTAN archive

the macro \includegraphics[hoptionsi]{hfile namei}which can be used to in-clude graphic files Several options can be used to scale, resize, rotate, trim and/or



The pdfpages Package - The CTAN archive

\includegraphics, or other low-level commands ) However, there’s a glimmer of hope Some links may be extracted and later reinserted by a package called pax which can be downloaded from CTAN [3] Have a look at it 2 Usage 2 1 Package Options \usepackage[ options ]{ pdf pages} option { final: Inserts pages This is the default



The asymptote package

2 1 Package loading and options The package may take two options at load time: inline or attach These options can also be set at any time with the \asysetup{hoptionsi} command, or speci ed individually in the optional argument to each asy environment or asyinclude command The inline option uses Asymptote’s ‘inline’ mode whereby included

[PDF] figure cote a cote latex

[PDF] légende image latex

[PDF] apprendre 20 pages en 1 jour

[PDF] apprendre 40 pages en 1 jour

[PDF] apprendre 100 pages en 2 jours

[PDF] comment apprendre par coeur rapidement

[PDF] apprendre 60 pages en 2 jours

[PDF] apprendre 50 pages en un jour

[PDF] méthodologie de recherche définition

[PDF] définition de la méthodologie

[PDF] proverbe qui cherche trouve

[PDF] citation trouver

[PDF] qui cherche trouve citation

[PDF] on ne trouve que ce que l'on cherche

[PDF] cherche des proverbes

Including Graphics in L

ATEX

Marko Boon

14th March 2005

1 Including external graphicsEPSPDFJPGGIFPNG

L

ATEXyesnoyes

?noyes ?PDFL

ATEXnoyesyesnoyes

Please note: only EPS and PDF are scalable. Use JPG and PNG for pho- tographs only! Many programs can generate EPS directly. You can use Micrografx/Corel Designer to export (almost?) everything to EPS format. Just Copy/Paste objects in Designer and export to "EPS no header or preview". Use EPS2PDF (installed on your Windows desktop) to convert EPS to PDF.? does not work automatically when working with LATEX. You should enter the coordinates of the bounding box manually.

Including graphics:•In preamble:

\usepackage{graphicx} •Including the graphic file: 1 Use the file namewithoutextension! LATEX will take the EPS file, PDFLATEX will take the PDF file automatically.

2 The includegraphics command\includegraphics[options]{filename}

When including EPS or PDF files, use the file namewithoutextension! L ATEX will take the EPS, PDFLATEX will take the PDF.

Supported options are:scale=numbermagnifies the figure bynumberover its natural size.width=lengthspecifies the width to which the figure should be scaled

height=lengthspecifies the height to which the figure should be scaled angle=numberrotates the figure counterclockwise over the specified angle (in degrees)bb=llx lly urx uryenters the coordinates of the bounding box manually.

3 Floating Figures

Use a figure environment to create floating figures. L

ATEX will position the

image on the place that you specify, or on the top of the next page if it doesn"t fit on the current page anymore. In a figure environment you can use a caption to give a description of the figure, and a label to refer to the image.\begin{figure}[ht] \begin{center} \includegraphics[width=8cm]{images/rsm} \caption{a response surface.} 2 \label{fig:surface} \end{center} \end{figure}

Now you can refer to the image:

See figure \ref{fig:figure}.

Please note:

The external figures will be embedded in the PostScript and PDF file, but not in the DVI file!

4 Inline floats

The packagewrapfigmakes it possible to place text next to floats:\begin{wrapfigure}{placement}[overhang]{width}

\end{wrapfigure} placementhorizontal placement: l (left) or r (right). For two-sided docu-

ments: i (inside edge) or o (outside edge).overhangoverhang of the float into the margin (default: 0pt).

widthwidth of the figure or table (usewraptablefor tables).

5 Two floats next to each other

5.1 No caption\includegraphics[width=0.45\linewidth]{pic1}

\hfill 3 1 2 3 4 5

Pressure

1 2 3 4 Temp 0 10 20 30

Response

1 2 3 4

Pressure

0 10 20 30
1 2 3 4 5

Pressure

1 2 3 4 Temp 0 10 20 30

Response

1 2 3 4

Pressure

0 10 20

305.2 One caption

\begin{figure}[ht] \hfill \caption{a response surface.} \label{fig:surface} \end{figure} 1 2 3 4 5

Pressure

1 2 3 4 Temp 0 10 20 30

Response

1 2 3 4

Pressure

0 10 20 30
1 2 3 4 5

Pressure

1 2 3 4 Temp 0 10 20 30

Response

1 2 3 4

Pressure

0 10 20

30Figure 1: a response surface.

4

5.3 Two captions

Now we need the packagecaption. This package has very extensive function- ality to change the appearance of captions. In this case we are only going to use the new command\captionof.\parbox[t]{0.45\textwidth}{ \includegraphics[width=\linewidth]{pic1} \captionof{figure}{the first figure} \hfill \parbox[t]{0.45\textwidth}{ \includegraphics[width=\linewidth]{pic2} \captionof{figure}{the second figure}

For tables, just repacefigurebytable.1

2 3 4 5

Pressure

1 2 3 4 Temp 0 10 20 30

Response

1 2 3 4

Pressure

0 10 20

30Figure 2: the first figure

1 2 3 4 5

Pressure

1 2 3 4 Temp 0 10 20 30

Response

1 2 3 4

Pressure

0 10 20

30Figure 3: the second figure

5.4 Sub-captions

Now we need the packagesubfig:\begin{figure}[ht]

\begin{center} \subfloat[First figure]{ \subfloat[Second figure]{ 5 \caption{Two figures} \end{center} \end{figure}1 2 3 4 5

Pressure

1 2 3 4 Temp 0 10 20 30

Response

1 2 3 4

Pressure

0 10 20

30(a) First figure

1 2 3 4 5

Pressure

1 2 3 4 Temp 0 10 20 30

Response

1 2 3 4

Pressure

0 10 20

30(b) Second figure

Figure 4: Two figures6

quotesdbs_dbs13.pdfusesText_19