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