Skip to content

Commit

Permalink
Bugfix: Changed \ifempty to \ifdefvoid
Browse files Browse the repository at this point in the history
  • Loading branch information
sieversMartin committed Jul 18, 2016
1 parent eb8d1cd commit beafe73
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
8 changes: 4 additions & 4 deletions emisa.bbx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
%% See there for more information.
%% ------------------------------------------------------------------------
%%
\ProvidesFile{emisa.bbx}[2016/03/31 2.1 EMISA bibliography style]
\ProvidesFile{emisa.bbx}[2016/07/18 2.1.1 EMISA bibliography style]
\RequireBibliographyStyle{authoryear}
\newcommand*{\bibitemlabel}[1]{%
\normalfont #1}
Expand Down Expand Up @@ -127,14 +127,14 @@
\newbibmacro*{name:family-giveninit}[4]{%
\usebibmacro{name:delim}{#2#3#1}%
\usebibmacro{name:hook}{#2#3#1}%
\ifempty{#3}{}{%
\ifdefvoid{#3}{}{%
\mkbibnameprefix{#3}%\isdot
\ifprefchar% replaces \ifpunctmark{'}%
{}%
{\ifuseprefix{\addhighpenspace}{\addlowpenspace}}}%
\mkbibnamefamily{#1}\addhighpenspace%
\ifempty{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\addlowpenspace}%
\ifempty{#2}{}{\mkbibnamegiven{#2}\isdot}%
\ifdefvoid{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\addlowpenspace}%
\ifdefvoid{#2}{}{\mkbibnamegiven{#2}\isdot}%
}%
}%
{%
Expand Down
2 changes: 1 addition & 1 deletion emisa.cbx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
%% See there for more information.
%% ------------------------------------------------------------------------
%%
\ProvidesFile{emisa.cbx}[2016/03/31 2.1 EMISA citation style]
\ProvidesFile{emisa.cbx}[2016/07/18 2.1.1 EMISA citation style]
\RequireCitationStyle{authoryear-comp}
\renewcommand*{\nameyeardelim}{\addspace}
\DeclareRangeChars*{f}
Expand Down
2 changes: 1 addition & 1 deletion emisa.cls
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{emisa}%
[2016/03/31 2.1 LaTeX class EMISA]
[2016/07/18 2.1.1 LaTeX class EMISA]
\def\@clearglobaloption#1{%
\def\@tempa{#1}%
\def\@tempb{\@gobble}%
Expand Down
13 changes: 7 additions & 6 deletions emisa.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<class>\ProvidesClass{emisa}%
%<*class>
[2016/03/31 2.1 LaTeX class EMISA]
[2016/07/18 2.1.1 LaTeX class EMISA]
%</class>
%
%<*driver>
Expand Down Expand Up @@ -966,6 +966,7 @@ This work consists of all files listed in manifest.txt.
%\changes{v2.1}{2016/03/31}{Fix incompatible changes introduced by biblatex >3.3}
%\changes{v2.1}{2016/03/31}{Changed \string\ifblank to \string\ifempty because of wrong interpretations. Not sure, whether this is needed of older versions}
%\changes{v2.1}{2016/04/01}{Returned to \string\ifblank for the old versions}
%\changes{v2.1.1}{2016/07/18}{Bugfix: Change \string\ifempty\space to \string\ifdefvoid}
%
%
%
Expand Down Expand Up @@ -4309,7 +4310,7 @@ This work consists of all files listed in manifest.txt.
% \end{macrocode}
% We start by declaring the file name and date.
% \begin{macrocode}
\ProvidesFile{emisa.bbx}[2016/03/31 2.1 EMISA bibliography style]
\ProvidesFile{emisa.bbx}[2016/07/18 2.1.1 EMISA bibliography style]
% \end{macrocode}
% The \DTXclassname bibliography style is built on top of the standard style \file{authoryear.bbx}
% being loaded here \ldots
Expand Down Expand Up @@ -4738,7 +4739,7 @@ This work consists of all files listed in manifest.txt.
% \end{macrocode}
% Formatting: name prefix (`von part'), \ldots
% \begin{macrocode}
\ifempty{#3}{}{%
\ifdefvoid{#3}{}{%
\mkbibnameprefix{#3}%\isdot
\ifprefchar% replaces \ifpunctmark{'}%
{}%
Expand All @@ -4750,11 +4751,11 @@ This work consists of all files listed in manifest.txt.
% \end{macrocode}
% \ldots\ name affix (`junior part'), \ldots
% \begin{macrocode}
\ifempty{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\addlowpenspace}%
\ifdefvoid{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\addlowpenspace}%
% \end{macrocode}
% \ldots\ and first name (initials).
% \begin{macrocode}
\ifempty{#2}{}{\mkbibnamegiven{#2}\isdot}%
\ifdefvoid{#2}{}{\mkbibnamegiven{#2}\isdot}%
}%
}%
% \end{macrocode}
Expand Down Expand Up @@ -5984,7 +5985,7 @@ techreport = {},%
% \end{macrocode}
%
% \begin{macrocode}
\ProvidesFile{emisa.cbx}[2016/03/31 2.1 EMISA citation style]
\ProvidesFile{emisa.cbx}[2016/07/18 2.1.1 EMISA citation style]
\RequireCitationStyle{authoryear-comp}
\renewcommand*{\nameyeardelim}{\addspace}
% \end{macrocode}
Expand Down
Binary file modified emisa.pdf
Binary file not shown.

0 comments on commit beafe73

Please sign in to comment.