layout fix

This commit is contained in:
Marc Wäckerlin
2026-04-30 18:46:28 +02:00
parent 1bfdbafc27
commit 4c8a24fcf4
20 changed files with 37 additions and 5 deletions
+26
View File
@@ -186,6 +186,30 @@ Note: direct commands like `\paperwidth{...}` or `\color{...}` would clash with
- `bgscale=`: background image scale, default `1.0`
- `bgopacity=`: background image opacity, default `1.0`
Standard Layout Blueprint (Normalfall)
======================================
The diagram below shows the default `layout=standard` with `header=true` and `qr=true`
(`qrfirst` variant: QR on the left, text on the right):
![Standard layout blueprint](screenshots/layout-standard.svg)
What Influences What (Standard Layout)
--------------------------------------
- `paperwidth/paperheight/contentwidth/contentheight/padding`: define the outer geometry of the whole card.
- `header/noheader`: enables/disables the complete top block (name/logo/company line + separator line).
- `logo` + `logoheight`: affects header composition and reserved vertical space.
- `company[height=...]` / `companylogo[height=...]`: affects second header line and reserved space.
- `textwidth` and `qrwidth`: define horizontal split of body columns.
- `qr/noqr`: removes the QR column; text then uses full body width.
- `qrfirst/textfirst`: swaps left/right order of QR and text columns.
- `icon/noicon`, `hint/nohint`, `iconleft/iconright`, `fill/nofill`: only affect formatting inside text lines.
- address field presence/visibility: controls whether address block (and map-pin icon) is rendered.
- `pgpfingerprint`: adds an extra footer line and reserves additional vertical space.
- `background`/`bgscale`/`bgopacity`: visual background only, no content reflow.
- `qrlogo`/`qreclevel`/`qrlogoscale`/`qrlogoborder`: QR internals only, no column reflow.
Data Definitions
================
@@ -323,6 +347,8 @@ Alternative: centered back side without QR and without header:
\drawcard[layout=centered,noqr,noheader]
```
Complete working example: [centered-backside-example.tex](examples/centered-backside-example.tex)
Equivalent using setter commands:
```latex