Latex includegraphics manual






















22 Graphics. You can use graphics such as PNG or PDF files in your LaTeX document. You need an additional package, which comes standard with LaTeX. This example is the short how-to. \include {graphicx} % goes in the preamble \includegraphics [width=\linewidth] {www.doorway.ru} To use the commands described here your document preamble must. Use the \includegraphics command with the name of the graphic file foo without extension. By doing so each of latex and pdflatex will choose the correct version of the file to be included, i.e., latex will use www.doorway.ru and pdflatex will use www.doorway.ru (or www.doorway.ru, or whatever graphic format you have chosen). That is, LaTeX will ensure that neither is the graphic wider than width nor taller than height (or totalheight). scale. Factor by which to scale the graphic. To make a graphic twice its nominal size, enter \includegraphics[scale=]{ }. This number may be any value; a number between 0 and 1 will shrink the graphic and a negative number will reflect it.


The minimal code of a LaTeX presentation includes: 1) loading the beamer class package, 2) choosing a default presentation theme and a frame. Here is an example: % Quick start guide. \documentclass{beamer} \usetheme{default} \begin{document} \begin{frame} This is your first presentation! Latex can not manage images by itself, so we need to use the graphicx package. To use it, we include the following line in the preamble: \usepackage{graphicx}. The command \graphicspath{ {./images/} } tells L a T e X that the images are kept in a folder named images under the directory of the main document.. The \includegraphics{universe} command is the one that actually included the image in. [.4\linewidth]{\includegraphics{elephant}} (a) A cat (b) An elephant Figure 3: Two animals The \subcaptionbox is a \parbox with \setcaptionsubtype as first contents line. 5. 3 The subfigure subtable environments subfigure After loading the subcaption package the new environments subfigure and sub-.


The code handling the key=value pairs must be able to see the separating comma, therefore it must not be included in a macro. You either need to expand the content of the macro manually or feed it to \includegraphics in another way. For the first method you can use \expandafter or \edef. graphicx – Enhanced support for graphics. The package builds upon the graphics package, providing a key-value interface for optional arguments to the \includegraphics command. This interface provides facilities that go far beyond what the graphics package offers on its own. For extended documentation, see epslatex. General documentation. A short introduction to LaTeX (with some focus on the differences between the old LaTeX and current standard LaTeX2e) is given in the following document: LaTeX2e for authors. This is augmented by the following document that describes newer features (started ): LaTeX2e for authors — new features.

0コメント

  • 1000 / 1000