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
|
||||
}%
|
||||
}%
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user