Bilder » Historie » Revision 3
Revision 2 (Patrick Schulz, 25.02.2021 13:30) → Revision 3/17 (Patrick Schulz, 25.02.2021 13:35)
h1. Bilder
h2. Bilder im *transpect-tex Common Framework* ("transpect-floats.dtx":https://gitlab.le-tex.de/transpect-tex/transpect-tex/-/blob/master/src/transpect-floats.dtx)
h3. Einzelbilder
h4. Einspaltiger Satz
<pre><code class="text">
\begin{tpFigure}[<floatpos>]
\tpCaption{<caption>}
\tpSource{<Quelle>}
\tpLegend{<Legende>}
\tpNumber{<Nummer>}
\tpFig{\includegraphics[<optionen>]{<pfad>}}
\end{tpFigure}
</code></pre>
* @<floatpos>@ Float-Position (optional):
** fehlt das opt. Argument oder ist die Klammer leer, wird das Bild fix (d.h. nicht-gleitend) platziert. Ggf. wird dabei (viel) vertikaler Weißraum erzeugt.
** t top
** b bottom
** h falls Bild noch auf Seite passt: nichtgleitend, sonst: top auf nächster Seite
** p Bild allein auf nächster Seite.
* @\tpCaption{}@ Bildunterschrift
* @\tpSource{}@ Quellenangabe
* @\tpLegend{}@ Legende
* @\tpNumber{}@ Abbildungszähler samt Präfix, z.B. "Abb. 10", "Fig. 1.2", "Abbildung 22", etc.
* @\tpFig{}@ Hiermit wird die Bilddatei eingebunden, beinhaltet i.d.R. @\includegraphics[<optionen>]{<pfad>}@
h4. zweispaltiger Satz
Soll ein Gleitobjekt im zweispaltigen Satz über beide spalten gehen, wird dem Umgebungsnamen ein @*@ am Ende angefügt. Auch ist dann der @<floatpos>@-Parameter zwingend anzugeben, da zweispaltige Objekte in TeX zwangsweise immer gleiten.
Ein seitenbreites Bild wäre demnach
<pre><code class="text">
\begin{tpFigure*}[<floatpos>]
…
\end{tpFigure*}
</code></pre>
Ohne die * wird das Bild in einer einzelnen Spalte platziert.
Die übrigen Parameter sind dieselben wie im einspaltigen Satz, oben.
h3. komplexe Abbildungen
h4. Mehrere Bilder unter einer Caption
<pre><code class="text">
\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}
</code></pre>
h4. Mehrere Bilder mit separaten Captions
<pre><code class="text">
\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}
</code></pre>