fix build

This commit is contained in:
Marc Wäckerlin
2025-11-09 11:03:42 +01:00
parent af2a53a9d9
commit 07898c33a1
31 changed files with 35 additions and 22 deletions
+10 -10
View File
@@ -5,9 +5,9 @@ What happens, if you give your visiting card to someone? Either he manually type
Other available visitingcard templates, such as [mschlenker] distribute the cards on an A4 paper. But if you want a professional printer, such as [onlineprinters], then you need to be able to generate a PDF with exactly one card, an exactly defined border and crop marks.
[![Example: John Doe from Hongkong](screenshots/john-doe-hongkong.jpg)](examples/john-doe-hongkong.tex)
[![Example: Businesscard of Peter Muster from Zürich](screenshots/peter-muster-example-company-zuerich.jpg)](examples/peter-muster-example-company-zuerich.tex)
[![Example: Nearly Real Examle Of My Card](screenshots/example.jpg)](examples/example.tex)
[![Example: John Doe from Hongkong](screenshots/john-doe-hongkong.png)](examples/john-doe-hongkong.tex)
[![Example: Businesscard of Peter Muster from Zürich](screenshots/peter-muster-example-company-zuerich.png)](examples/peter-muster-example-company-zuerich.tex)
[![Example: Nearly Real Examle Of My Card](screenshots/example.png)](examples/example.tex)
Features
@@ -174,7 +174,7 @@ The card is designed for professional printing service, such as [onlineprinters]
cutdist=2]
{businesscard-qrcode}
![example with special paper size](screenshots/special-papersize.jpg)
![example with special paper size](screenshots/special-papersize.png)
Usage Example
@@ -204,7 +204,7 @@ Save it as file [texstudio_d30266.tex] and compile it to get [texstudio_d30266.p
xelatex -synctex=1 -interaction=nonstopmode texstudio_d30266.tex
![the visiting card resulting from the usage example](screenshots/texstudio_d30266.jpg)
![the visiting card resulting from the usage example](screenshots/texstudio_d30266.png)
See [examples] for more examples.
@@ -214,7 +214,7 @@ Photo (optional)
You can add an optional photo that appears next to the name or in the center of the QR code. The photo is dynamically scaled to match the name line height (when next to name) or to 25% of the QR code width (when in QR).
```latex
\photo{path/to/photo.jpg}
\photo{path/to/photo.png}
```
### Photo Placement Options:
@@ -222,13 +222,13 @@ You can add an optional photo that appears next to the name or in the center of
**Default (photo next to name):**
```latex
\documentclass{businesscard-qrcode}
\photo{photo.jpg}
\photo{photo.png}
```
**Photo in QR code center:**
```latex
\documentclass[photoinqr,qreclevel=H,qrlogoscale=0.25]{businesscard-qrcode}
\photo{photo.jpg}
\photo{photo.png}
```
**Important:** When using `photoinqr=true`:
@@ -241,7 +241,7 @@ You can add an optional photo that appears next to the name or in the center of
**Large photo next to name:**
```latex
\documentclass[photoscale=2.5]{businesscard-qrcode}
\photo{photo.jpg}
\photo{photo.png}
```
**Background color:**
@@ -253,7 +253,7 @@ You can add an optional photo that appears next to the name or in the center of
**Background image:**
```latex
\documentclass[bgscale=1.5,bgopacity=0.3,qrbgopacity=1.0]{businesscard-qrcode}
\background{photo.jpg}
\background{photo.png}
```
Note: Use `bgopacity` to fade the background (e.g., `0.2` or `0.3`) so text remains readable. The QR code has a white background by default (`qrbgopacity=1.0`) to ensure scannability.