add feature use image for companylogo
This commit is contained in:
+18
-3
@@ -487,14 +487,14 @@ END:VCARD\BCQ@nl}
|
||||
\begin{minipage}[c]{\BCQ@namewidth}% name column
|
||||
\ifBCQ@rightalign\raggedleft\fi% apply alignment
|
||||
{\bfseries\cond{name}}%
|
||||
% Optional company logo below name
|
||||
\ifcsdef{Xcompanylogo}{\\\Xcompanylogo}{}%
|
||||
% Optional company logo below name
|
||||
\ifcsdef{Xcompanylogo}{\\\companylogocontent}{}%
|
||||
\end{minipage}
|
||||
\end{minipage}
|
||||
}{% no logo: just name
|
||||
{\bfseries\cond{name}}%
|
||||
% Optional company logo below name
|
||||
\ifcsdef{Xcompanylogo}{\\\Xcompanylogo}{}%
|
||||
\ifcsdef{Xcompanylogo}{\\\companylogocontent}{}%
|
||||
}
|
||||
}
|
||||
|
||||
@@ -595,3 +595,18 @@ END:VCARD\BCQ@nl}
|
||||
}
|
||||
\cropdef[]\tl\tr\bl\br{cut}
|
||||
\crop[cut]
|
||||
\newcommand\companylogocontent{%
|
||||
\begingroup
|
||||
\edef\BCQ@companylogomeaning{\meaning\Xcompanylogo}%
|
||||
\IfSubStr{\BCQ@companylogomeaning}{\string\\}{%
|
||||
\endgroup
|
||||
\Xcompanylogo
|
||||
}{%
|
||||
\endgroup
|
||||
\IfFileExists{\Xcompanylogo}{%
|
||||
\includegraphics[width=\linewidth]{\Xcompanylogo}%
|
||||
}{%
|
||||
\Xcompanylogo
|
||||
}%
|
||||
}%
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 891 KiB |
Binary file not shown.
@@ -2,14 +2,15 @@
|
||||
\documentclass[qrbgopacity=0.5]{businesscard-qrcode}
|
||||
|
||||
\type{home}
|
||||
\givennames{Lisa\ Linda}
|
||||
\familynames{Döë}
|
||||
%\givennames{Lisa\ Linda}
|
||||
%\familynames{Döë}
|
||||
\company{Example\ Company}
|
||||
\companylogo{company-logo.png}
|
||||
\street{Main\ Street\ 123}
|
||||
\city{New\ York}
|
||||
\zip{10001}
|
||||
\country{USA}
|
||||
\phone{+1 234 567 8900}
|
||||
\phone{+1\ 234\ 567\ 8900}
|
||||
\email{ldoe@example.com}
|
||||
\homepage{example.com}
|
||||
\logo{photo.png}
|
||||
|
||||
Reference in New Issue
Block a user