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
|
\begin{minipage}[c]{\BCQ@namewidth}% name column
|
||||||
\ifBCQ@rightalign\raggedleft\fi% apply alignment
|
\ifBCQ@rightalign\raggedleft\fi% apply alignment
|
||||||
{\bfseries\cond{name}}%
|
{\bfseries\cond{name}}%
|
||||||
% Optional company logo below name
|
% Optional company logo below name
|
||||||
\ifcsdef{Xcompanylogo}{\\\Xcompanylogo}{}%
|
\ifcsdef{Xcompanylogo}{\\\companylogocontent}{}%
|
||||||
\end{minipage}
|
\end{minipage}
|
||||||
\end{minipage}
|
\end{minipage}
|
||||||
}{% no logo: just name
|
}{% no logo: just name
|
||||||
{\bfseries\cond{name}}%
|
{\bfseries\cond{name}}%
|
||||||
% Optional company logo below 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}
|
\cropdef[]\tl\tr\bl\br{cut}
|
||||||
\crop[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}
|
\documentclass[qrbgopacity=0.5]{businesscard-qrcode}
|
||||||
|
|
||||||
\type{home}
|
\type{home}
|
||||||
\givennames{Lisa\ Linda}
|
%\givennames{Lisa\ Linda}
|
||||||
\familynames{Döë}
|
%\familynames{Döë}
|
||||||
\company{Example\ Company}
|
\company{Example\ Company}
|
||||||
|
\companylogo{company-logo.png}
|
||||||
\street{Main\ Street\ 123}
|
\street{Main\ Street\ 123}
|
||||||
\city{New\ York}
|
\city{New\ York}
|
||||||
\zip{10001}
|
\zip{10001}
|
||||||
\country{USA}
|
\country{USA}
|
||||||
\phone{+1 234 567 8900}
|
\phone{+1\ 234\ 567\ 8900}
|
||||||
\email{ldoe@example.com}
|
\email{ldoe@example.com}
|
||||||
\homepage{example.com}
|
\homepage{example.com}
|
||||||
\logo{photo.png}
|
\logo{photo.png}
|
||||||
|
|||||||
Reference in New Issue
Block a user