Diagramme auf Chartgroesse zuschneiden (mmdc --pdfFit); leeren Anhang A.2 entfernt
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user