Projekt

Allgemein

Profil

Aktionen

Figures » Historie » Revision 2

« Zurück | Revision 2/4 (Vergleich) | Weiter »
Martin Kraetke, 22.12.2021 16:35


Figures

TeX Fundamentals

The following image formats are not supported by TeX and must be converted to PDF or PNG in a discrete image conversion.

  • .tif, .tiff
  • .svg

The image formats below are supported by TeX and should be used.

  • .jpg, .jpeg
  • .pdf
  • .png
  • .eps

Images in transpect-tex framework (transpect-floats.dtx)

Individual images

Single-column

\begin{tpFigure}[<options>]
  \tpCaption{<caption>}
  \tpSource{<source>}
  \tpLegend{<additional caption>}
  \tpNumber{<number override>}
  \tpFig{\includegraphics[<options>]{<path to image>}}
\end{tpFigure}
  • <options> comma-separated list of key-value pairs. The syntax is <attribute>=<value> or <attribute>={<value>}, if <value> contains "=" or "," (optional):
    • float-pos
      • if the attribute is missing or <value> is empty, the image is fixed to the location in the text (not floating)
      • t top
      • b bottom
      • h if image fits to the page, its placed non-floating otherwise top on the next page
      • p image is placed on a blank page
    • class
      • layout class of the float object
  • \tpCaption{} Caption
  • \tpSource{} Source
  • \tpLegend{} Additional caption
  • \tpNumber{} Override for automatic numbering, should include prefix eg. "Fig. 10", "Figure 1.2" etc.
  • \tpFig{} Reference to the image file \includegraphics[<options>]{<path>}

Two-column

If a floating object should span over two columns in the two-column sentence, an asterisk * is added to the end of the environment name. The float-pos attribute must then also be specified (and must not be empty), since two-column objects always are float objects in TeX.

An example for an image with page width

\begin{tpFigure*}[<options>]
  …
\end{tpFigure*}

Without the asterisk (*), the image would be placed in a single column. The other parameters are identical to one-column figures.

komplexe Abbildungen

Mehrere Bilder unter einer Caption

\begin{tpFigure}
  \tpCaption{<caption>}
  \tpLegend{<Legende>}
  \tpSource{<source>}
  \tpNumber{<Counter>}
  \begin{tpSubFloat}
    \tpFig{\includegraphics[<optionen>]{<pfad>}}
  \end{tpSubFloat}
  \begin{tpSubFloat}
    \tpFig{\includegraphics[<optionen>]{<pfad>}}
  \end{tpSubFloat}
\end{tpFigure}

Mehrere Bilder mit separaten Captions

\begin{tpFigure}
  \begin{tpSubFloat}
    \tpCaption{<caption>}
    \tpLegend{<Legende>}
    \tpSource{<source>}
    \tpNumber{<Counter>}
    \tpFig{\includegraphics[<optionen>]{<pfad>}}
  \end{tpSubFloat}
  \begin{tpSubFloat}
    \tpCaption{<caption>}
    \tpLegend{<Legende>}
    \tpSource{<source>}
    \tpNumber{<Counter>}
    \tpFig{\includegraphics[<optionen>]{<pfad>}}
  \end{tpSubFloat}
\end{tpFigure}

Von Martin Kraetke vor fast 3 Jahren aktualisiert · 2 Revisionen