Bilder » Historie » Version 3
Patrick Schulz, 25.02.2021 13:35
| 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 | \begin{tpFigure}[<floatpos>] |
||
| 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 | * @<floatpos>@ Float-Position (optional): |
||
| 19 | ** 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. |
||
| 20 | ** t top |
||
| 21 | ** b bottom |
||
| 22 | ** h falls Bild noch auf Seite passt: nichtgleitend, sonst: top auf nächster Seite |
||
| 23 | ** p Bild allein auf nächster Seite. |
||
| 24 | 2 | Patrick Schulz | * @\tpCaption{}@ Bildunterschrift |
| 25 | * @\tpSource{}@ Quellenangabe |
||
| 26 | * @\tpLegend{}@ Legende |
||
| 27 | * @\tpNumber{}@ Abbildungszähler samt Präfix, z.B. "Abb. 10", "Fig. 1.2", "Abbildung 22", etc. |
||
| 28 | * @\tpFig{}@ Hiermit wird die Bilddatei eingebunden, beinhaltet i.d.R. @\includegraphics[<optionen>]{<pfad>}@ |
||
| 29 | 3 | Patrick Schulz | |
| 30 | h4. zweispaltiger Satz |
||
| 31 | |||
| 32 | 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. |
||
| 33 | |||
| 34 | Ein seitenbreites Bild wäre demnach |
||
| 35 | <pre><code class="text"> |
||
| 36 | \begin{tpFigure*}[<floatpos>] |
||
| 37 | … |
||
| 38 | \end{tpFigure*} |
||
| 39 | </code></pre> |
||
| 40 | Ohne die * wird das Bild in einer einzelnen Spalte platziert. |
||
| 41 | |||
| 42 | Die übrigen Parameter sind dieselben wie im einspaltigen Satz, oben. |
||
| 43 | 1 | Patrick Schulz | |
| 44 | h3. komplexe Abbildungen |
||
| 45 | |||
| 46 | h4. Mehrere Bilder unter einer Caption |
||
| 47 | |||
| 48 | <pre><code class="text"> |
||
| 49 | \begin{tpFigure} |
||
| 50 | 2 | Patrick Schulz | \tpCaption{<caption>} |
| 51 | \tpLegend{<Legende>} |
||
| 52 | \tpSource{<source>} |
||
| 53 | \tpNumber{<Counter>} |
||
| 54 | 1 | Patrick Schulz | \begin{tpSubFloat} |
| 55 | 2 | Patrick Schulz | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
| 56 | 1 | Patrick Schulz | \end{tpSubFloat} |
| 57 | \begin{tpSubFloat} |
||
| 58 | 2 | Patrick Schulz | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
| 59 | 1 | Patrick Schulz | \end{tpSubFloat} |
| 60 | \end{tpFigure} |
||
| 61 | </code></pre> |
||
| 62 | |||
| 63 | h4. Mehrere Bilder mit separaten Captions |
||
| 64 | |||
| 65 | <pre><code class="text"> |
||
| 66 | \begin{tpFigure} |
||
| 67 | \begin{tpSubFloat} |
||
| 68 | 2 | Patrick Schulz | \tpCaption{<caption>} |
| 69 | \tpLegend{<Legende>} |
||
| 70 | \tpSource{<source>} |
||
| 71 | \tpNumber{<Counter>} |
||
| 72 | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
||
| 73 | 1 | Patrick Schulz | \end{tpSubFloat} |
| 74 | \begin{tpSubFloat} |
||
| 75 | 2 | Patrick Schulz | \tpCaption{<caption>} |
| 76 | \tpLegend{<Legende>} |
||
| 77 | \tpSource{<source>} |
||
| 78 | \tpNumber{<Counter>} |
||
| 79 | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
||
| 80 | 1 | Patrick Schulz | \end{tpSubFloat} |
| 81 | \end{tpFigure} |
||
| 82 | </code></pre> |