Bilder » Historie » Version 8
Patrick Schulz, 01.07.2021 12:01
| 1 | 1 | Patrick Schulz | h1. Bilder |
|---|---|---|---|
| 2 | |||
| 3 | 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) |
||
| 4 | |||
| 5 | h3. Einzelbilder |
||
| 6 | 3 | Patrick Schulz | |
| 7 | h4. Einspaltiger Satz |
||
| 8 | |||
| 9 | 1 | Patrick Schulz | <pre><code class="text"> |
| 10 | 5 | Patrick Schulz | \begin{tpFigure}[<options>] |
| 11 | 2 | Patrick Schulz | \tpCaption{<caption>} |
| 12 | \tpSource{<Quelle>} |
||
| 13 | \tpLegend{<Legende>} |
||
| 14 | \tpNumber{<Nummer>} |
||
| 15 | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
||
| 16 | 1 | Patrick Schulz | \end{tpFigure} |
| 17 | </code></pre> |
||
| 18 | |||
| 19 | 8 | Patrick Schulz | * @<options>@ Attribute, kommaseparierte KeyVal-Syntax @<attribut>=<value>@ bzw. @<attribut>={<value>}@, wenn @<value>@ "=" oder "," enthalten (optional): |
| 20 | 5 | Patrick Schulz | ** @float-pos@ |
| 21 | *** fehlt das oder ist @<value>@ leer, wird das Bild fix (d.h. nicht-gleitend) platziert. Ggf. wird dabei (viel) vertikaler Weißraum erzeugt. |
||
| 22 | *** t top |
||
| 23 | *** b bottom |
||
| 24 | *** h falls Bild noch auf Seite passt: nichtgleitend, sonst: top auf nächster Seite |
||
| 25 | *** p Bild allein auf nächster Seite. |
||
| 26 | ** @class@ |
||
| 27 | *** Layout-Klasse des Gleitobjektes |
||
| 28 | 1 | Patrick Schulz | * @\tpCaption{}@ Bildunterschrift |
| 29 | 2 | Patrick Schulz | * @\tpSource{}@ Quellenangabe |
| 30 | * @\tpLegend{}@ Legende |
||
| 31 | 1 | Patrick Schulz | * @\tpNumber{}@ Abbildungszähler samt Präfix, z.B. "Abb. 10", "Fig. 1.2", "Abbildung 22", etc. |
| 32 | 2 | Patrick Schulz | * @\tpFig{}@ Hiermit wird die Bilddatei eingebunden, beinhaltet i.d.R. @\includegraphics[<optionen>]{<pfad>}@ |
| 33 | 3 | Patrick Schulz | |
| 34 | h4. zweispaltiger Satz |
||
| 35 | |||
| 36 | 6 | Philipp Glatza | Soll ein Gleitobjekt im zweispaltigen Satz über beide spalten gehen, wird dem Umgebungsnamen ein @*@ am Ende angefügt. Auch ist dann das @float-pos@-Attribut zwingend anzugeben (und darf nicht leer sein), da zweispaltige Objekte in TeX zwangsweise immer gleiten. |
| 37 | 3 | Patrick Schulz | |
| 38 | Ein seitenbreites Bild wäre demnach |
||
| 39 | <pre><code class="text"> |
||
| 40 | 5 | Patrick Schulz | \begin{tpFigure*}[<options>] |
| 41 | 3 | Patrick Schulz | … |
| 42 | \end{tpFigure*} |
||
| 43 | </code></pre> |
||
| 44 | Ohne die * wird das Bild in einer einzelnen Spalte platziert. |
||
| 45 | |||
| 46 | Die übrigen Parameter sind dieselben wie im einspaltigen Satz, oben. |
||
| 47 | 1 | Patrick Schulz | |
| 48 | h3. komplexe Abbildungen |
||
| 49 | |||
| 50 | h4. Mehrere Bilder unter einer Caption |
||
| 51 | |||
| 52 | <pre><code class="text"> |
||
| 53 | \begin{tpFigure} |
||
| 54 | 2 | Patrick Schulz | \tpCaption{<caption>} |
| 55 | \tpLegend{<Legende>} |
||
| 56 | \tpSource{<source>} |
||
| 57 | \tpNumber{<Counter>} |
||
| 58 | 1 | Patrick Schulz | \begin{tpSubFloat} |
| 59 | 2 | Patrick Schulz | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
| 60 | 1 | Patrick Schulz | \end{tpSubFloat} |
| 61 | \begin{tpSubFloat} |
||
| 62 | 2 | Patrick Schulz | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
| 63 | 1 | Patrick Schulz | \end{tpSubFloat} |
| 64 | \end{tpFigure} |
||
| 65 | </code></pre> |
||
| 66 | |||
| 67 | h4. Mehrere Bilder mit separaten Captions |
||
| 68 | |||
| 69 | <pre><code class="text"> |
||
| 70 | \begin{tpFigure} |
||
| 71 | \begin{tpSubFloat} |
||
| 72 | 2 | Patrick Schulz | \tpCaption{<caption>} |
| 73 | \tpLegend{<Legende>} |
||
| 74 | \tpSource{<source>} |
||
| 75 | \tpNumber{<Counter>} |
||
| 76 | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
||
| 77 | 1 | Patrick Schulz | \end{tpSubFloat} |
| 78 | \begin{tpSubFloat} |
||
| 79 | 2 | Patrick Schulz | \tpCaption{<caption>} |
| 80 | \tpLegend{<Legende>} |
||
| 81 | \tpSource{<source>} |
||
| 82 | \tpNumber{<Counter>} |
||
| 83 | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
||
| 84 | 1 | Patrick Schulz | \end{tpSubFloat} |
| 85 | \end{tpFigure} |
||
| 86 | </code></pre> |