Bilder » Historie » Version 13
Maren Pufe, 12.01.2022 11:18
| 1 | 1 | Patrick Schulz | h1. Bilder |
|---|---|---|---|
| 2 | |||
| 3 | 9 | Philipp Glatza | {{toc}} |
| 4 | |||
| 5 | h2. Grundsätzliches |
||
| 6 | |||
| 7 | 11 | Philipp Glatza | Folgende Bildformate können von TeX nicht verstanden werden und sollten in einem extra Schritt nach PDF oder PNG gewandelt werden: |
| 8 | 9 | Philipp Glatza | |
| 9 | * @.tif@, @.tiff@ |
||
| 10 | * @.svg@ |
||
| 11 | |||
| 12 | Folgende Bildformate werden von TeX verstanden: |
||
| 13 | |||
| 14 | * @.jpg@, @.jpeg@ |
||
| 15 | * @.pdf@ |
||
| 16 | 1 | Patrick Schulz | * @.png@ |
| 17 | 10 | Patrick Schulz | * @.eps@ |
| 18 | 9 | Philipp Glatza | |
| 19 | 1 | Patrick Schulz | 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) |
| 20 | |||
| 21 | h3. Einzelbilder |
||
| 22 | 3 | Patrick Schulz | |
| 23 | h4. Einspaltiger Satz |
||
| 24 | |||
| 25 | 1 | Patrick Schulz | <pre><code class="text"> |
| 26 | 5 | Patrick Schulz | \begin{tpFigure}[<options>] |
| 27 | 2 | Patrick Schulz | \tpCaption{<caption>} |
| 28 | \tpSource{<Quelle>} |
||
| 29 | \tpLegend{<Legende>} |
||
| 30 | \tpNumber{<Nummer>} |
||
| 31 | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
||
| 32 | 1 | Patrick Schulz | \end{tpFigure} |
| 33 | </code></pre> |
||
| 34 | |||
| 35 | 8 | Patrick Schulz | * @<options>@ Attribute, kommaseparierte KeyVal-Syntax @<attribut>=<value>@ bzw. @<attribut>={<value>}@, wenn @<value>@ "=" oder "," enthalten (optional): |
| 36 | 5 | Patrick Schulz | ** @float-pos@ |
| 37 | *** fehlt das oder ist @<value>@ leer, wird das Bild fix (d.h. nicht-gleitend) platziert. Ggf. wird dabei (viel) vertikaler Weißraum erzeugt. |
||
| 38 | *** t top |
||
| 39 | *** b bottom |
||
| 40 | *** h falls Bild noch auf Seite passt: nichtgleitend, sonst: top auf nächster Seite |
||
| 41 | *** p Bild allein auf nächster Seite. |
||
| 42 | ** @class@ |
||
| 43 | *** Layout-Klasse des Gleitobjektes |
||
| 44 | 13 | Maren Pufe | ** @nolist@ |
| 45 | *** Wenn "@nolist@" gesetzt ist, wird die Abbildung nicht in das Abbildungsverzeichnis übernommen (\listoffigures) |
||
| 46 | 1 | Patrick Schulz | * @\tpCaption{}@ Bildunterschrift |
| 47 | 2 | Patrick Schulz | * @\tpSource{}@ Quellenangabe |
| 48 | * @\tpLegend{}@ Legende |
||
| 49 | 1 | Patrick Schulz | * @\tpNumber{}@ Abbildungszähler samt Präfix, z.B. "Abb. 10", "Fig. 1.2", "Abbildung 22", etc. |
| 50 | 2 | Patrick Schulz | * @\tpFig{}@ Hiermit wird die Bilddatei eingebunden, beinhaltet i.d.R. @\includegraphics[<optionen>]{<pfad>}@ |
| 51 | 3 | Patrick Schulz | |
| 52 | h4. zweispaltiger Satz |
||
| 53 | |||
| 54 | 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. |
| 55 | 3 | Patrick Schulz | |
| 56 | Ein seitenbreites Bild wäre demnach |
||
| 57 | <pre><code class="text"> |
||
| 58 | 5 | Patrick Schulz | \begin{tpFigure*}[<options>] |
| 59 | 3 | Patrick Schulz | … |
| 60 | \end{tpFigure*} |
||
| 61 | </code></pre> |
||
| 62 | Ohne die * wird das Bild in einer einzelnen Spalte platziert. |
||
| 63 | |||
| 64 | Die übrigen Parameter sind dieselben wie im einspaltigen Satz, oben. |
||
| 65 | 1 | Patrick Schulz | |
| 66 | h3. komplexe Abbildungen |
||
| 67 | |||
| 68 | h4. Mehrere Bilder unter einer Caption |
||
| 69 | |||
| 70 | <pre><code class="text"> |
||
| 71 | \begin{tpFigure} |
||
| 72 | 2 | Patrick Schulz | \tpCaption{<caption>} |
| 73 | \tpLegend{<Legende>} |
||
| 74 | \tpSource{<source>} |
||
| 75 | \tpNumber{<Counter>} |
||
| 76 | 1 | Patrick Schulz | \begin{tpSubFloat} |
| 77 | 2 | Patrick Schulz | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
| 78 | 1 | Patrick Schulz | \end{tpSubFloat} |
| 79 | \begin{tpSubFloat} |
||
| 80 | 2 | Patrick Schulz | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
| 81 | 1 | Patrick Schulz | \end{tpSubFloat} |
| 82 | \end{tpFigure} |
||
| 83 | </code></pre> |
||
| 84 | |||
| 85 | h4. Mehrere Bilder mit separaten Captions |
||
| 86 | |||
| 87 | <pre><code class="text"> |
||
| 88 | \begin{tpFigure} |
||
| 89 | \begin{tpSubFloat} |
||
| 90 | 2 | Patrick Schulz | \tpCaption{<caption>} |
| 91 | \tpLegend{<Legende>} |
||
| 92 | \tpSource{<source>} |
||
| 93 | \tpNumber{<Counter>} |
||
| 94 | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
||
| 95 | 1 | Patrick Schulz | \end{tpSubFloat} |
| 96 | \begin{tpSubFloat} |
||
| 97 | 2 | Patrick Schulz | \tpCaption{<caption>} |
| 98 | \tpLegend{<Legende>} |
||
| 99 | \tpSource{<source>} |
||
| 100 | \tpNumber{<Counter>} |
||
| 101 | \tpFig{\includegraphics[<optionen>]{<pfad>}} |
||
| 102 | 1 | Patrick Schulz | \end{tpSubFloat} |
| 103 | \end{tpFigure} |
||
| 104 | </code></pre> |