Diagramme auf Chartgroesse zuschneiden (mmdc --pdfFit); leeren Anhang A.2 entfernt

This commit is contained in:
2026-09-07 23:49:37 +02:00
parent da3718adae
commit c6a8d3d828
13 changed files with 112 additions and 111 deletions
+6 -2
View File
@@ -29,14 +29,18 @@ and Times Newer Roman (fonts are installed into `~/.local/share/fonts/` by the s
```sh
# render a single diagram
mmdc -i figures/diagrams/system-context.mmd -o figures/diagrams/system-context.pdf
mmdc -f -i figures/diagrams/system-context.mmd -o figures/diagrams/system-context.pdf
# render all diagrams at once
for f in figures/diagrams/*.mmd; do
mmdc -i "$f" -o "${f%.mmd}.pdf"
mmdc -f -i "$f" -o "${f%.mmd}.pdf"
done
```
`-f` (`--pdfFit`) is mandatory: without it `mmdc` writes the chart onto a full US-Letter
page, so `\includegraphics[width=\textwidth]` scales all that surrounding whitespace up
and a small diagram eats a whole A4 page.
Render before calling `latexmk` whenever a `.mmd` file changes. The generated `.pdf`
files are gitignored via `out` (only `out/` is ignored, so diagrams in `figures/` are
**not** ignored — commit them).