diff --git a/README.md b/README.md index 24212ca..d12c926 100644 --- a/README.md +++ b/README.md @@ -115,6 +115,7 @@ Layout options are set as options to the `\documentclass`, e.g.: - `bgscale=`: background image scale factor (1.0 = 100% of card height), default: `1.0`. Use values like `1.5` or `2.0` for zoomed/cropped backgrounds. Only affects images, not colors. Can be overridden locally with `\background[scale=...]{file}`. - `bgopacity=`: background image opacity/transparency (1.0 = 100% visible, 0.0 = invisible), default: `1.0`. Use lower values like `0.2` or `0.3` to fade the background so text remains readable. Only affects images, not colors. Can be overridden locally with `\background[opacity=...]{file}`. - `qrbgopacity=`: QR code background opacity (1.0 = solid white, 0.0 = transparent), default: `1.0`. White background behind QR code ensures scannability over background images. Use `0.0` for no background or lower values like `0.8` for semi-transparent. Can be overridden locally with `\qrlogo[opacity=...]{file}`. +- `color=`: global text color for the entire document, default: `black`. Accepts any color name understood by `xcolor` (including mixes such as `blue!60!black`). Useful when printing on darker backgrounds to ensure legibility without redefining every style manually. Data Definitions diff --git a/businesscard-qrcode.cls b/businesscard-qrcode.cls index 43a0e07..52c55f1 100644 --- a/businesscard-qrcode.cls +++ b/businesscard-qrcode.cls @@ -28,6 +28,7 @@ \DeclareStringOption[1.0]{bgopacity} % background image opacity (1.0 = 100% visible, 0.0 = invisible), default 1.0 \DeclareStringOption[1.0]{qrbgopacity} % QR code background opacity (1.0 = white solid, 0.0 = transparent), default 1.0 \DeclareStringOption[de]{lang} +\DeclareStringOption[black]{color} \DeclareBoolOption[true]{crlf} % use CRLF line endings in vCard (iOS compatibility) \DeclareComplementaryOption{nocrlf}{crlf}\DeclareBoolOption[true]{address} \DeclareComplementaryOption{noaddress}{address} @@ -71,6 +72,7 @@ \RequirePackage{marvosym} \RequirePackage{fontawesome} \RequirePackage[final]{qrcode} +\RequirePackage{xcolor} \RequirePackage{etoolbox} \RequirePackage{xstring} % for string length checking \RequirePackage{DejaVuSans} @@ -89,6 +91,7 @@ \setlength{\parindent}{0pt} \renewcommand*\familydefault{\sfdefault} \setlength{\fboxsep}{0pt} +\color{\BCQ@color} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/examples/background-color-example.pdf b/examples/background-color-example.pdf index a79846e..bcf2b81 100644 Binary files a/examples/background-color-example.pdf and b/examples/background-color-example.pdf differ diff --git a/examples/background-image-example.pdf b/examples/background-image-example.pdf index d971161..613701a 100644 Binary files a/examples/background-image-example.pdf and b/examples/background-image-example.pdf differ diff --git a/examples/example.pdf b/examples/example.pdf index efe6a11..1aa1e7f 100644 Binary files a/examples/example.pdf and b/examples/example.pdf differ diff --git a/examples/john-doe-hongkong.pdf b/examples/john-doe-hongkong.pdf index 3478de0..3c5a2bd 100644 Binary files a/examples/john-doe-hongkong.pdf and b/examples/john-doe-hongkong.pdf differ diff --git a/examples/peter-muster-example-company-zuerich.pdf b/examples/peter-muster-example-company-zuerich.pdf index 11c72c8..e6b4dbc 100644 Binary files a/examples/peter-muster-example-company-zuerich.pdf and b/examples/peter-muster-example-company-zuerich.pdf differ diff --git a/examples/photo-example.pdf b/examples/photo-example.pdf index bae5df9..d7278ac 100644 Binary files a/examples/photo-example.pdf and b/examples/photo-example.pdf differ diff --git a/examples/photo-in-qr-example.pdf b/examples/photo-in-qr-example.pdf index ea5b088..3022d10 100644 Binary files a/examples/photo-in-qr-example.pdf and b/examples/photo-in-qr-example.pdf differ diff --git a/examples/photo-large-example.pdf b/examples/photo-large-example.pdf index cd7a092..b8051ba 100644 Binary files a/examples/photo-large-example.pdf and b/examples/photo-large-example.pdf differ diff --git a/examples/special-papersize.pdf b/examples/special-papersize.pdf index 272af91..e2fd68a 100644 Binary files a/examples/special-papersize.pdf and b/examples/special-papersize.pdf differ diff --git a/examples/test-country-short.pdf b/examples/test-country-short.pdf index f58d178..e76866e 100644 Binary files a/examples/test-country-short.pdf and b/examples/test-country-short.pdf differ diff --git a/examples/texstudio_d30266.pdf b/examples/texstudio_d30266.pdf index 2e81dc5..6f0739a 100644 Binary files a/examples/texstudio_d30266.pdf and b/examples/texstudio_d30266.pdf differ diff --git a/photo-in-qr-example.pdf b/photo-in-qr-example.pdf index 12582e4..70952df 100644 Binary files a/photo-in-qr-example.pdf and b/photo-in-qr-example.pdf differ diff --git a/screenshots/example.png b/screenshots/example.png index 2f217f2..89c29bb 100644 Binary files a/screenshots/example.png and b/screenshots/example.png differ diff --git a/screenshots/john-doe-hongkong.png b/screenshots/john-doe-hongkong.png index b4215a1..1aa8184 100644 Binary files a/screenshots/john-doe-hongkong.png and b/screenshots/john-doe-hongkong.png differ diff --git a/screenshots/peter-muster-example-company-zuerich.png b/screenshots/peter-muster-example-company-zuerich.png index 65792fd..3a0038a 100644 Binary files a/screenshots/peter-muster-example-company-zuerich.png and b/screenshots/peter-muster-example-company-zuerich.png differ diff --git a/screenshots/photo-example.png b/screenshots/photo-example.png index 696048f..a76bf8e 100644 Binary files a/screenshots/photo-example.png and b/screenshots/photo-example.png differ diff --git a/screenshots/photo-in-qr-example.png b/screenshots/photo-in-qr-example.png index f27a673..62d5906 100644 Binary files a/screenshots/photo-in-qr-example.png and b/screenshots/photo-in-qr-example.png differ diff --git a/screenshots/special-papersize.png b/screenshots/special-papersize.png index 594e288..c0efc29 100644 Binary files a/screenshots/special-papersize.png and b/screenshots/special-papersize.png differ diff --git a/screenshots/texstudio_d30266.png b/screenshots/texstudio_d30266.png index e3ddc08..b767bf5 100644 Binary files a/screenshots/texstudio_d30266.png and b/screenshots/texstudio_d30266.png differ