diff --git a/businesscard-qrcode.cls b/businesscard-qrcode.cls index 21a1205..a0f7c36 100644 --- a/businesscard-qrcode.cls +++ b/businesscard-qrcode.cls @@ -520,6 +520,11 @@ \ifexists{Xfamilynames}{\Xfamilynames}% \ifexists{Xhonoricsuffix}{\ \Xhonoricsuffix}% } +\newcommand\personalnamefn{% + \ifexists{Xgivennames}{\Xgivennames\ }% + \ifexists{Xadditionalnames}{\Xadditionalnames\ }% + \ifexists{Xfamilynames}{\Xfamilynames}% +} \newcommand\personalname{% \ifvisible{Xhonoricprefix}{\Xhonoricprefix\ }{}% \ifvisible{Xgivennames}{\Xgivennames\ }{}% @@ -751,15 +756,13 @@ \newcommand\BCQ@vcardtel{% TEL;VALUE=uri;TYPE=\BCQ@vcardteltype,text:tel:\Xphone\BCQ@nl } -\newcommand\BCQ@vcardaddressfull{% - \ifcsdef{Xpobox}{\Xpobox\ }{}% - \ifcsdef{Xextaddr}{\Xextaddr\ }{}% - \ifcsdef{Xstreet}{\Xstreet\ }{}% - \ifcsdef{Xzip}{\Xzip\ }{}% - \ifcsdef{Xcity}{\Xcity\ }{}% - \ifcsdef{Xregion}{\Xregion\ }{}% - \ifcsdef{Xcountry}{\Xcountry}{}% -} +\newcommand\BCQ@vcardpobox{\ifcsdef{Xpobox}{\Xpobox}{}} +\newcommand\BCQ@vcardextaddr{\ifcsdef{Xextaddr}{\Xextaddr}{}} +\newcommand\BCQ@vcardstreet{\ifcsdef{Xstreet}{\Xstreet}{}} +\newcommand\BCQ@vcardcity{\ifcsdef{Xcity}{\Xcity}{}} +\newcommand\BCQ@vcardregion{\ifcsdef{Xregion}{\Xregion}{}} +\newcommand\BCQ@vcardzip{\ifcsdef{Xzip}{\Xzip}{}} +\newcommand\BCQ@vcardcountry{\ifcsdef{Xcountry}{\Xcountry}{}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % vcard - the content of the vcard % newline selection: default LF (robust for qrcode). Optional CRLF if crlf option set. @@ -774,11 +777,11 @@ \newcommand\vcard{BEGIN:VCARD\BCQ@nl VERSION:\BCQ@vcardversionline\BCQ@nl \ifhaspersonalnamevcard{N:\cond{Xfamilynames};\cond{Xgivennames};\cond{Xadditionalnames};\cond{Xhonoricprefix};\cond{Xhonoricsuffix}\BCQ@nl}{} -\ifhasfullnamevcard{FN:\name\BCQ@nl}{} +\ifhaspersonalnamevcard{FN:\personalnamefn\BCQ@nl}{\ifexists{Xcompany}{FN:\Xcompany\BCQ@nl}} \ifexists{Xcompany}{ORG:\Xcompany\BCQ@nl} \ifexists{Xtitle}{TITLE:\Xtitle\BCQ@nl} \ifexists{Xrole}{ROLE:\Xrole\BCQ@nl} -\ifexists{printaddress}{\ifhasaddressvcard{ADR:;;\BCQ@vcardaddressfull;;;;\BCQ@nl}{}} +\ifexists{printaddress}{\ifhasaddressvcard{ADR:\BCQ@vcardpobox;\BCQ@vcardextaddr;\BCQ@vcardstreet;\BCQ@vcardcity;\BCQ@vcardregion;\BCQ@vcardzip;\BCQ@vcardcountry\BCQ@nl}{}} \ifexists{Xphone}{\BCQ@vcardtel} \ifexists{Xemail}{EMAIL\BCQ@vcardtypeparam:\Xemail\BCQ@nl} \ifexists{Xjabber}{IMPP;TYPE=XMPP:\Xjabber\BCQ@nl} diff --git a/examples/layout.html b/examples/layout.html new file mode 100644 index 0000000..6b9e981 --- /dev/null +++ b/examples/layout.html @@ -0,0 +1,146 @@ +
+ +
+
+
+ +
Name
+
Company
+
+
+
QR
+
+
📍
+
address line 1
address line 2
+
🖁 tel:
✉ mailto:
⌂ https://
+
+41 76 123 45 67
email@example.com
website.com
+
+
pgp
+
+
+
+
\ No newline at end of file diff --git a/screenshots/photo-example.png b/screenshots/photo-example.png new file mode 100644 index 0000000..7c1d506 Binary files /dev/null and b/screenshots/photo-example.png differ diff --git a/screenshots/photo-in-qr-example.png b/screenshots/photo-in-qr-example.png new file mode 100644 index 0000000..52e8660 Binary files /dev/null and b/screenshots/photo-in-qr-example.png differ diff --git a/screenshots/special-papersize.png b/screenshots/special-papersize.png new file mode 100644 index 0000000..d90183a Binary files /dev/null and b/screenshots/special-papersize.png differ diff --git a/screenshots/texstudio_d30266.png b/screenshots/texstudio_d30266.png new file mode 100644 index 0000000..4a63f27 Binary files /dev/null and b/screenshots/texstudio_d30266.png differ