bugs fixed
@@ -28,8 +28,8 @@
|
|||||||
\DeclareStringOption[1.0]{bgopacity} % background image opacity (1.0 = 100% visible, 0.0 = invisible), default 1.0
|
\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[1.0]{qrbgopacity} % QR code background opacity (1.0 = white solid, 0.0 = transparent), default 1.0
|
||||||
\DeclareStringOption[de]{lang}
|
\DeclareStringOption[de]{lang}
|
||||||
\DeclareBoolOption[false]{ioscrlf} % use CRLF line endings in vCard (iOS compatibility); default off to avoid pdfTeX issues
|
\DeclareBoolOption[true]{crlf} % use CRLF line endings in vCard (iOS compatibility)
|
||||||
\DeclareBoolOption[true]{address}
|
\DeclareComplementaryOption{nocrlf}{crlf}\DeclareBoolOption[true]{address}
|
||||||
\DeclareComplementaryOption{noaddress}{address}
|
\DeclareComplementaryOption{noaddress}{address}
|
||||||
\DeclareBoolOption[true]{hint}
|
\DeclareBoolOption[true]{hint}
|
||||||
\DeclareComplementaryOption{nohint}{hint}
|
\DeclareComplementaryOption{nohint}{hint}
|
||||||
@@ -268,13 +268,23 @@
|
|||||||
% internal boxes and lengths for measuring
|
% internal boxes and lengths for measuring
|
||||||
\newsavebox{\BCQ@namebox}
|
\newsavebox{\BCQ@namebox}
|
||||||
\newsavebox{\BCQ@logobox}
|
\newsavebox{\BCQ@logobox}
|
||||||
|
\newsavebox{\BCQ@companytitlebox}
|
||||||
|
\newsavebox{\BCQ@companyrightbox}
|
||||||
\newlength{\BCQ@logoheightdimen}
|
\newlength{\BCQ@logoheightdimen}
|
||||||
\setlength{\BCQ@logoheightdimen}{0pt}% initialize to prevent errors
|
\setlength{\BCQ@logoheightdimen}{0pt}% initialize to prevent errors
|
||||||
\newlength{\BCQ@bgimagedimen}
|
\newlength{\BCQ@bgimagedimen}
|
||||||
\setlength{\BCQ@bgimagedimen}{0pt}
|
\setlength{\BCQ@bgimagedimen}{0pt}
|
||||||
|
\newdimen\BCQ@companytitlewidth
|
||||||
|
\newdimen\BCQ@companyrightwidth
|
||||||
|
\newdimen\BCQ@companylineavailable
|
||||||
|
\newdimen\BCQ@companylinesum
|
||||||
|
\newif\ifBCQ@companylineneeded
|
||||||
|
\newif\ifBCQ@companytitleexists
|
||||||
|
\newif\ifBCQ@companyrightexists
|
||||||
\newlength{\BCQ@reservedheight}
|
\newlength{\BCQ@reservedheight}
|
||||||
\newlength{\BCQ@heightscale}
|
\newlength{\BCQ@heightscale}
|
||||||
\newlength{\BCQ@namewidth}
|
\newlength{\BCQ@namewidth}
|
||||||
|
\newlength{\BCQ@namecolumnwidth}
|
||||||
\newlength{\BCQ@logosep}
|
\newlength{\BCQ@logosep}
|
||||||
\newlength{\BCQ@logosepused}
|
\newlength{\BCQ@logosepused}
|
||||||
\setlength{\BCQ@logosep}{1em}
|
\setlength{\BCQ@logosep}{1em}
|
||||||
@@ -347,31 +357,47 @@
|
|||||||
}
|
}
|
||||||
\newcommand\heightscale{\BCQ@heightscale}
|
\newcommand\heightscale{\BCQ@heightscale}
|
||||||
|
|
||||||
\newcommand\companyrolestringdisplay{%
|
\newcommand\companytitleblock{%
|
||||||
\ifvisible{Xtitle}{\Xtitle}{}%
|
\ifvisible{Xtitle}{\Xtitle}{}%
|
||||||
\ifvisible{Xrole}{%
|
\ifvisible{Xrole}{%
|
||||||
\ifvisible{Xtitle}{, }{}%
|
\ifvisible{Xtitle}{,\ }{}%
|
||||||
\Xrole
|
\Xrole
|
||||||
}{}%
|
}{}%
|
||||||
|
}
|
||||||
|
\newcommand\companyrightblock{%
|
||||||
|
\ifcsdef{Xcompanylogo}{\companylogocontent}{}%
|
||||||
\ifvisible{Xcompany}{%
|
\ifvisible{Xcompany}{%
|
||||||
\ifvisible{Xtitle}{\ \Xcompany}{%
|
\Xcompany
|
||||||
\ifvisible{Xrole}{\ \Xcompany}{\Xcompany}%
|
\ifcsdef{Xcompanylogo}{\hspace{0.5em}}{}%
|
||||||
}%
|
|
||||||
}{}%
|
}{}%
|
||||||
}
|
}
|
||||||
\newcommand\companybrandingline{%
|
\newcommand\companybrandingline{%
|
||||||
\ifcsdef{Xcompanylogo}{\companylogocontent}{}%
|
\begingroup
|
||||||
\ifhaspositiontext{%
|
\BCQ@companytitleexistsfalse
|
||||||
\ifcsdef{Xcompanylogo}{\hspace{0.5em}}{}%
|
\ifvisible{Xtitle}{\BCQ@companytitleexiststrue}{}%
|
||||||
\companyrolestringdisplay
|
\ifvisible{Xrole}{\BCQ@companytitleexiststrue}{}%
|
||||||
}{}%
|
\BCQ@companyrightexistsfalse
|
||||||
|
\ifvisible{Xcompany}{\BCQ@companyrightexiststrue}{}%
|
||||||
|
\ifcsdef{Xcompanylogo}{\BCQ@companyrightexiststrue}{}%
|
||||||
|
\ifBCQ@companytitleexists
|
||||||
|
\companytitleblock
|
||||||
|
\fi
|
||||||
|
\ifBCQ@companytitleexists
|
||||||
|
\ifBCQ@companyrightexists
|
||||||
|
\space
|
||||||
|
\fi
|
||||||
|
\fi
|
||||||
|
\ifBCQ@companyrightexists
|
||||||
|
\companyrightblock
|
||||||
|
\fi
|
||||||
|
\endgroup
|
||||||
}
|
}
|
||||||
\newcommand\companyrolestringvcard{%
|
\newcommand\companyrolestringvcard{%
|
||||||
\ifcsname Xtitle\endcsname
|
\ifcsname Xtitle\endcsname
|
||||||
\Xtitle
|
\Xtitle
|
||||||
\fi
|
\fi
|
||||||
\ifcsname Xrole\endcsname
|
\ifcsname Xrole\endcsname
|
||||||
\ifcsname Xtitle\endcsname , \fi
|
\ifcsname Xtitle\endcsname ,\ \fi
|
||||||
\Xrole
|
\Xrole
|
||||||
\fi
|
\fi
|
||||||
\ifcsname Xcompany\endcsname
|
\ifcsname Xcompany\endcsname
|
||||||
@@ -432,11 +458,13 @@
|
|||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
% vcard - the content of the vcard
|
% vcard - the content of the vcard
|
||||||
% newline selection: default LF (robust for qrcode). Optional CRLF if ioscrlf option set.
|
% newline selection: default LF (robust for qrcode). Optional CRLF if crlf option set.
|
||||||
\ifBCQ@ioscrlf
|
{\catcode`\^^M=12\gdef\BCQ@carriagereturn{^^M}}% literal CR (catcode 12)
|
||||||
\def\BCQ@nl{\char13\char10}% CRLF
|
{\catcode`\^^J=12\gdef\BCQ@linefeed{^^J}}% literal LF (catcode 12)
|
||||||
|
\ifBCQ@crlf
|
||||||
|
\def\BCQ@nl{\BCQ@carriagereturn\BCQ@linefeed}% CRLF
|
||||||
\else
|
\else
|
||||||
\def\BCQ@nl{^^J}% LF only
|
\def\BCQ@nl{\BCQ@linefeed}% LF only
|
||||||
\fi
|
\fi
|
||||||
% vcard assembly (version 4.0 retained). CRLF improves iOS import robustness.
|
% vcard assembly (version 4.0 retained). CRLF improves iOS import robustness.
|
||||||
\newcommand\vcard{BEGIN:VCARD\BCQ@nl
|
\newcommand\vcard{BEGIN:VCARD\BCQ@nl
|
||||||
@@ -629,8 +657,10 @@ END:VCARD\BCQ@nl}
|
|||||||
\ifcsdef{Xlogo}{%
|
\ifcsdef{Xlogo}{%
|
||||||
\sbox{\BCQ@logobox}{\includegraphics[height=\BCQ@logoheight@used]{\Xlogo}}%
|
\sbox{\BCQ@logobox}{\includegraphics[height=\BCQ@logoheight@used]{\Xlogo}}%
|
||||||
\setlength{\BCQ@logoheightdimen}{\BCQ@logoheight@used}%
|
\setlength{\BCQ@logoheightdimen}{\BCQ@logoheight@used}%
|
||||||
|
\setlength{\BCQ@namecolumnwidth}{\dimexpr\textwidth-\wd\BCQ@logobox-\BCQ@logosep\relax}%
|
||||||
}{%
|
}{%
|
||||||
\setlength{\BCQ@logoheightdimen}{0pt}%
|
\setlength{\BCQ@logoheightdimen}{0pt}%
|
||||||
|
\setlength{\BCQ@namecolumnwidth}{\textwidth}%
|
||||||
}%
|
}%
|
||||||
% Compute heightscale after logo height is known
|
% Compute heightscale after logo height is known
|
||||||
\computeheightscale
|
\computeheightscale
|
||||||
@@ -643,6 +673,7 @@ END:VCARD\BCQ@nl}
|
|||||||
\setlength{\BCQ@namewidth}{\dimexpr\textwidth-\wd\BCQ@logobox\relax}%
|
\setlength{\BCQ@namewidth}{\dimexpr\textwidth-\wd\BCQ@logobox\relax}%
|
||||||
\ifdim\BCQ@namewidth<0pt\setlength{\BCQ@namewidth}{0pt}\fi
|
\ifdim\BCQ@namewidth<0pt\setlength{\BCQ@namewidth}{0pt}\fi
|
||||||
\fi
|
\fi
|
||||||
|
\setlength{\BCQ@namecolumnwidth}{\BCQ@namewidth}%
|
||||||
\begin{minipage}{\textwidth}
|
\begin{minipage}{\textwidth}
|
||||||
\begin{minipage}[c]{\wd\BCQ@logobox}% logo column
|
\begin{minipage}[c]{\wd\BCQ@logobox}% logo column
|
||||||
\usebox{\BCQ@logobox}%
|
\usebox{\BCQ@logobox}%
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 653 KiB |
@@ -1,2 +0,0 @@
|
|||||||
%PDF-1.7
|
|
||||||
%הנםר
|
|
||||||
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 779 KiB After Width: | Height: | Size: 778 KiB |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |