texlive[43200] Master/texmf-dist: biblatex-publist (12feb17)

commits+karl at tug.org commits+karl at tug.org
Mon Feb 13 00:31:56 CET 2017


Revision: 43200
          http://tug.org/svn/texlive?view=revision&revision=43200
Author:   karl
Date:     2017-02-13 00:31:56 +0100 (Mon, 13 Feb 2017)
Log Message:
-----------
biblatex-publist (12feb17)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/biblatex-publist/README
    trunk/Master/texmf-dist/doc/latex/biblatex-publist/biblatex-publist.pdf
    trunk/Master/texmf-dist/doc/latex/biblatex-publist/biblatex-publist.tex
    trunk/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx
    trunk/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-publist/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-publist/README	2017-02-12 22:24:45 UTC (rev 43199)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-publist/README	2017-02-12 23:31:56 UTC (rev 43200)
@@ -45,6 +45,18 @@
 
 == CHANGES ==
 
+* V. 1.4 (2017-02-12):
+	- New option 'plauthorhandling' that defines how the publist author is
+	  handled in the publication list (possible values: "omit" [= default],
+	  "highlight").
+	- New command \plauthorhl that determines the aforementioned highlighting.
+	- Rename \omitname to \plauthorname (the old macro is still functional,
+	  but marked as deprecated).
+	- Rename omit* options to plauthor* (the old options are still functional,
+	  but marked as deprecated).
+	- Assure the margin text always starts uppercased (relevant for pubstates).
+	- Minor corrections to the manual.
+
 * V. 1.3 (2016-08-06):
 	- It is now possible to change the base style that is used.
 	- Proper sorting of pubstates.

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-publist/biblatex-publist.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-publist/biblatex-publist.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-publist/biblatex-publist.tex	2017-02-12 22:24:45 UTC (rev 43199)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-publist/biblatex-publist.tex	2017-02-12 23:31:56 UTC (rev 43200)
@@ -79,7 +79,7 @@
 \thanks{Please report issues via \protect\url{https://github.com/jspitz/biblatex-publist}.}%
 }
 
-\date{Version 1.3, 2016/08/06}
+\date{Version 1.4, 2017/02/12}
 \maketitle
 
 \begin{abstract}
@@ -87,7 +87,8 @@
 ({*}.bbx) for publication lists, i.\,e.\ a bibliography containing one's own
 publications. The style file draws on \bibltx's \emph{authoryear} style per default
 (which can be changed), but provides some extra features needed for publication lists,
-such as the omission of the own name from author or editor data. The package requires at least version 3.4 of the \bibltx\ package\footnote{For \bibltx, see
+such as the omission or highlighting of the own name from\slash in author or editor data.
+The package requires at least version 3.4 of the \bibltx\ package\footnote{For \bibltx, see
 \url{http://www.ctan.org/pkg/biblatex}.} and \texttt{biber} (the respective version as required by \bibltx).
 \end{abstract}
 
@@ -99,7 +100,8 @@
 author, usually sorted by genre and year. Even though publication lists are actually
 nothing else than (specific) bibliographies, they diverge from those in some
 respects. Most notably, it is widespread practice to omit your own name in
-your publication list and only list your co-authors, if there are any.
+your publication list and only list your co-authors, if there are any, or to
+highlight your own name (e.\,g., with bold face letters).
 If you want to follow this practice, a normal bibliography style does not
 produce the desired result.
 
@@ -121,17 +123,19 @@
 
 The standard way of using the package is to load the style file via
 \begin{quote}
-\begin{lstlisting}[language={[LaTeX]TeX},moretexcs={[1]{omitname}}]
+\begin{lstlisting}[language={[LaTeX]TeX},moretexcs={[1]{plauthorname}}]
 \usepackage[bibstyle=publist]{biblatex}
-\omitname[first name][von-part]{surname}
+\plauthorname[first name][von-part]{surname}
 \end{lstlisting}
 \end{quote}
-The \jcsmacro*{omitname} macro (at least with the mandatory
-\emph{surname} argument) needs to be given once. It informs the style
-file which name it should suppress in the author\slash editor list
-(usually yours). That is to say: For all of your publications where
-you are the sole author or editor, the author\slash editor name
-will be omitted completely, as in:
+The \jcsmacro*{plauthorname} macro\footnote{The macro was named \jfcsmacro{omitname} until v.\,1.4
+of the \bpl\ package. The old macro still works, but is marked as deprecated.}
+(at least with the mandatory \emph{surname} argument) needs to be given once. 
+It informs the style file which name it should suppress or highlight in the
+author\slash editor list (usually yours). 
+
+With the default settings, the author\slash editor name will be omitted completely
+for all of your publications where you are the sole author or editor, as in:
 \begin{quote}
 \textbf{2012.} Some recent trends in gardening. In: \emph{Gardening
 Practice} 56, pp.~34--86.
@@ -142,6 +146,12 @@
 \textbf{1987} (with John Doe and Mary Hall). Are there new trends
 in gardening? In: \emph{Gardening Practice} 24, pp.~10--15.
 \end{quote}
+If \joption{plauthorhandling=highlight} is used (see next section), the plauthor
+will be printed in bold face instead, as in:
+\begin{quote}
+	John Doe, \textbf{Me Myself} and Mary Hall \textbf{1987}. Are there new trends
+	in gardening? In: \emph{Gardening Practice} 24, pp.~10--15.
+\end{quote}
 
 
 \subsection{Additional options}
@@ -150,16 +160,23 @@
 options provided by the \bibltx\ package itself%
 \footnote{Please refer to the \bibltx\ manual \cite{bibltx} for those.}):
 \begin{description}
-\item [{\joption{omitname}=<surname>}]
-\item [{\joption{omitfirstname=<first name>}}]
-\item [{\joption{omitnameprefix=<von-part>}}] ~
+\item [{\joption{plauthorname=<surname>}}]
+\item [{\joption{plauthorfirstname=<first name>}}]
+\item [{\joption{plauthornameprefix=<von-part>}}] ~
 
-This is an alternative to the \jcsmacro{omitname} macro
-described in sec.~\ref{sec:standard-usage}. However, due to the
+This is an alternative to the \jcsmacro{plauthorname} macro
+described in sec.~\ref{sec:standard-usage}.\footnote{The options were called \jfoption{omitname}, \jfoption{omitfirstname} and \jfoption{omitnameprefix} until v.\,1.4
+of \bpl. The old options still work, but are marked as deprecated.} However, due to the
 way bibliography options are implemented in \bibltx, this only works
 if your name does not consist of non-ASCII characters. Hence, the
-\jcsmacro{omitname} macro is the recommended way.
+\jcsmacro{plauthorname} macro is the recommended way.
 
+\item [{\joption{plauthorhandling{[}=omit|highlight{]}}}] default: \emph{omit}.
+
+By default, the publist author (as defined with \jmacro{plauthor}) is omitted from
+the author or editor list. If you use the option \joption{plauthorhandling=highlight},
+it is highlighted instead (i.\,e., set in bold face by default; see sec.~\ref{sec:auxmacros} how to change that).
+
 \item [{\joption{boldyear{[}=true|false{]}}}] default: \emph{true}.
 
 By default, the year (or pubstate, if no year is given) is printed in bold face.
@@ -189,6 +206,17 @@
 If you want to change the appearance, just redefine this macro via
 \jfcsmacro{renewcommand{*}}.
 
+The highlighting of the publication list author, if \joption{plauthorhandling=highlight} has been set,
+is controlled by the \jcsmacro*{plauthorhl} macro, which has the following default definition:
+\begin{quote}
+	\begin{lstlisting}[language={[LaTeX]TeX},
+	moretexcs={[2]{providecommand,plauthorhl,mkbibbold}}]
+\providecommand*\plauthorhl[1]{%
+	\mkbibbold{#1}%
+}
+\end{lstlisting}\end{quote}
+If you need another form of highlighting, redefine this macro via \jfcsmacro{renewcommand{*}}.
+
 The indendation of the bibliographic entries (lines > 1) can be adjusted by setting the length
 \jmacro*{extralabel\-numberwidth} via \jfcsmacro{setlength} (default is \texttt{0pt}).
 This might be needed for long bibliographies (> 99 entries) in order to adjust to the extra
@@ -199,7 +227,7 @@
 
 By default, \bpl\ loads \bibltx's \emph{authoryear} style, and it has been written
 to work with that style. However, it is possible to try a diffent base style, if
-\emph{author\-year} does not fit your needs.
+\emph{author\-year} does not fit your needs.\condbreak{2\baselineskip}
 
 In order to do so, enter the following \emph{before} loading \bibltx:
 \begin{quote}
@@ -211,6 +239,7 @@
 
 Note, though, that there is (and can be) no guarantee that \bpl\ will work with all styles, although it has been successfully tested with several. Be prepared to bump into \LaTeX\ errors and carefully check the output for correctness if you try a different base style.
 
+
 \section{Localization}
 
 Since the package draws on \bibltx, it supports localization. 
@@ -218,7 +247,7 @@
 are added by the package:
 \begin{itemize}
 \item \emph{with}: the preposition ``with'' that precedes the list of
-co-authors.
+co-authors by default (i.\,e., with \joption{plauthorhandling=omit}).
 \item \emph{parttranslationof}: the expression ``partial translation of''
 for entries referring to partially translated work via \bibltx's
 ``related entries'' feature (see sec.~\ref{sec:partial-translations}).
@@ -270,7 +299,7 @@
 		   frame=single,
 		   label={example},
 		   language={[LaTeX]TeX},
-		   moretexcs={[4]{omitname,addbibresource,printbibliography,maketitle}}]
+		   moretexcs={[4]{plauthorname,addbibresource,printbibliography,maketitle}}]
 \documentclass{article}
 \usepackage[T1]{fontenc}
 \usepackage[latin9]{inputenc}
@@ -277,7 +306,7 @@
 
 \usepackage{csquotes}% not required, but recommended
 \usepackage[bibstyle=publist]{biblatex}
-\omitname[John]{Doe}
+\plauthorname[John]{Doe}
 
 \addbibresource{%
     mymonographs.bib,
@@ -392,13 +421,23 @@
 \end{lstlisting}
 \end{quote}
 
-\clearpage
-
 \section{Revision Log}
 
 \begin{description}
-\item [{V.~1.3 (2016-08-05):}]~
+\item [{V.~1.4 (2017-02-12):}]~
+	\begin{itemize}
+		\item New option \joption{plauthorhandling} that defines how the publist author is
+		handled in the publication list (possible values: \joption{omit} [=~default],
+		\joption{highlight}).
+		\item New command \jcsmacro{plauthorhl} that determines the aforementioned highlighting.
+		\item  Rename \jcsmacro{omitname} to \jcsmacro{plauthorname} (the old macro is still functional, but marked as deprecated).
+		\item Rename \joption{omit*} options to \joption{plauthor*} (the old options are still functional, but marked as deprecated).
+		\item Assure the margin text always starts uppercased (relevant for pubstates).
+		\item Minor corrections to the manual.
+	\end{itemize}
 
+\item [{V.~1.3 (2016-08-06):}]~
+
 \begin{itemize}
 	\item It is now possible to change the base style that is used by \bpl. See sec.~\ref{sec:basestyle}.
 	\item Proper sorting of pubstates.
@@ -408,7 +447,6 @@
 \end{itemize}
 
 \item [{V.~1.2 (2016-05-12):}]~
-
 	\begin{itemize}
 		\item Accomodate to the backwards-incompatible changes of \bibltx~3.4\\
 		(\jfoption{prefixnumber} $\Rightarrow$ \jfoption{labelprefix},
@@ -417,7 +455,6 @@
 	\end{itemize}
 
 \item [{V.~1.1 (2016-03-09):}]~
-
 \begin{itemize}
 \item Adapt to the \jfcsmacro{Declare*Name} changes of \bibltx~3.3.
       Since \bibltx~3.3 introduced backwards-incompatible changes that
@@ -425,7 +462,6 @@
 \end{itemize}
 
 \item [{V.~1.0~(2015-01-04):}]~
-
 \begin{itemize}
 \item Add portmanteau *.cbx file to allow loading \bpl\ also via 
       the \jfoption{style} option (next to \jfoption{bibstyle}).
@@ -432,7 +468,6 @@
 \end{itemize}
 
 \item [{V.~0.9~(2014-03-13):}]~
-
 \begin{itemize}
 \item Fix problem with multi-token names.
 \item Support name prefix in \jcsmacro{omitname}.
@@ -440,7 +475,6 @@
 \end{itemize}
 
 \item [{V.~0.8~(2013-08-16):}]~
-
 \begin{itemize}
 \item Add custom sorting schemes \jmacro{ddnt}, \jmacro{ydmdnt} and \jmacro{dnt}
       (see sec.~\ref{sec:sorting}).
@@ -448,23 +482,22 @@
 \end{itemize}\condbreak{2\baselineskip}
 
 \item [{V.~0.7~(2013-07-25):}]~
-
 \begin{itemize}
 \item Support full dates.
 \end{itemize}
+
 \item [{V.~0.6~(2013-07-21):}]~
-
 \begin{itemize}
 \item Fix numbering with recent \bibltx\ versions.
 \end{itemize}
+
 \item [{V.~0.5~(2013-05-03):}]~
-
 \begin{itemize}
 \item Fix numbering if \jfcsmacro{printbibliography} is used
 multiple times within the same or without any \jfmacro{refsection}.
 \end{itemize}
+
 \item [{V.~0.4~(2012-10-30):}]~
-
 \begin{itemize}
 \item More robust name parsing (especially for names with non-ASCII characters
 encoded with \LaTeX{} macros). The code was kindly suggested by Enrico
@@ -474,8 +507,8 @@
 \item Add \jcsmacro{omitname} command (see sec.~\ref{sec:standard-usage}).
 \item Support \joption{firstinits} option.
 \end{itemize}
+
 \item [{V.~0.3~(2012-10-23):}]~
-
 \begin{itemize}
 \item Bug fix: Add missing ``and'' if omitted name was last minus one.
 \item Bug fix: Fix output with ``et al.'' if omitted name is first and
@@ -485,6 +518,7 @@
 \item Add French localization.
 \item Some corrections to the manual.
 \end{itemize}
+
 \item [{V.~0.2~(2012-10-21):}] Initial release to CTAN.
 \end{description}
 
@@ -500,11 +534,11 @@
 \bibitem{bibltx}Lehman, Philipp (with Audrey Boruvka, Philip Kime
 and Joseph Wright): \emph{The biblatex Package. Programmable Bibliographies
 and Citations}. March 3, 2016.
-\url{http://mirror.ctan.org/macros/latex/contrib/biblatex}.
+\url{http://www.ctan.org/pkg/biblatex}.
 
 \bibitem{ttb}Markey, Nicolas: \emph{Tame the BeaST. The B to X of
 BibTEX}. October 11, 2009.
-\url{http://mirror.ctan.org/info/bibtex/tamethebeast}.
+\url{http://www.ctan.org/pkg/tamethebeast}.
 \end{thebibliography}
 
 \end{document}

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx	2017-02-12 22:24:45 UTC (rev 43199)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx	2017-02-12 23:31:56 UTC (rev 43200)
@@ -25,8 +25,8 @@
 %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
-\def\bpl at version{1.3}
-\def\bpl at rdate{2016/08/06}
+\def\bpl at version{1.4}
+\def\bpl at rdate{2017/02/12}
 
 \ProvidesFile{publist.bbx}[\bpl at rdate\space v.\bpl at version\space
                            biblatex bibliography style (JSP)]
@@ -45,12 +45,25 @@
 % Bibliography Options and Base Style
 %
 
-\DeclareBibliographyOption{omitname}{\def\bpl at osurname{#1}}
+% Deprecated Options (as of v. 1.4)
+\DeclareBibliographyOption{omitname}{%
+  \PackageWarning{biblatex-publist}{The omitname option is deprecated!\MessageBreak
+                                  Please use plauthorname instead.}{}%
+  \def\bpl at osurname{#1}}
+\DeclareBibliographyOption{omitfirstname}{%
+  \PackageWarning{biblatex-publist}{The omitfirstname option is deprecated!\MessageBreak
+                                  Please use plauthorfirstname instead.}{}%
+  \def\bpl at ofirstname{#1}}
+\DeclareBibliographyOption{omitnameprefix}{%
+  \PackageWarning{biblatex-publist}{The omitnameprefix option is deprecated!\MessageBreak
+                                  Please use plauthornameprefix instead.}{}%
+  \def\bpl at ovonpart{#1}}
 
-\DeclareBibliographyOption{omitfirstname}{\def\bpl at ofirstname{#1}}
+% Valid options
+\DeclareBibliographyOption{plauthorname}{\def\bpl at osurname{#1}}
+\DeclareBibliographyOption{plauthorfirstname}{\def\bpl at ofirstname{#1}}
+\DeclareBibliographyOption{plauthornameprefix}{\def\bpl at ovonpart{#1}}
 
-\DeclareBibliographyOption{omitnameprefix}{\def\bpl at ovonpart{#1}}
-
 \newif\if at marginyear\@marginyearfalse
 \DeclareBibliographyOption{marginyear}[true]{%
     \ifstrequal{#1}{true}{\@marginyeartrue\reversemarginpar}{\@marginyearfalse}
@@ -61,6 +74,11 @@
     \ifstrequal{#1}{false}{\@unboldyeartrue}{\@unboldyearfalse}
 }
 
+\newif\if at hlauthor\@hlauthorfalse
+\DeclareBibliographyOption{plauthorhandling}[omit]{%
+    \ifstrequal{#1}{highlight}{\@hlauthortrue}{\@hlauthorfalse}
+}
+
 % Check if users have defined different base styles
 % If not, use authoryear.
 \newif\ifbpl at standardbasestyle\bpl at standardbasestylefalse
@@ -95,23 +113,23 @@
 %
 
 %
-% The omitted name of the publication list author
+% The name of the publication list author
 \def\bpl at osurname{}
 \def\bpl at ofirstname{}
 \def\bpl at ovonpart{}
 %
-% Manual way to specify omitted name
-\def\omitname{%
+% Manual way to specify publication list author name
+\def\plauthorname{%
    \@ifnextchar[%
-     {\omitname at i}
-     {\omitname at i[]}%
+     {\plauthorname at i}
+     {\plauthorname at i[]}%
 }
-\def\omitname at i[#1]{%
+\def\plauthorname at i[#1]{%
    \@ifnextchar[%
-     {\omitname at ii{#1}}
-     {\omitname at ii{#1}[]}%
+     {\plauthorname at ii{#1}}
+     {\plauthorname at ii{#1}[]}%
 }
-\def\omitname at ii#1[#2]#3{%
+\def\plauthorname at ii#1[#2]#3{%
   % Do stuff
   \def\bpl at osurname{#3}
   \ifx\@empty#1\else\def\bpl at ofirstname{#1}\fi
@@ -124,7 +142,13 @@
   \raggedleft\small\textbf{#1}%
 }
 
+%
+% Highlighting auf publist author with plauthorhandling=highlight
+\providecommand*\plauthorhl[1]{%
+  \mkbibbold{#1}%
+}
 
+
 %
 % Field format definitions
 %
@@ -267,14 +291,48 @@
 
 \defbibfilter{mine}{category=filtered}
 
-
 %
-% Remove omitted name from author and editor lists
+% Remove or embolden omitted name in author and editor lists
 %
 \newtoggle{myselfprec}
 \newtoggle{hadmyself}
-
+\newtoggle{ismyself}
 \DeclareNameFormat{author}{%
+ \if at hlauthor
+   % Embolden omitted author
+   \bpl at normalize{\namepartfamily}{\bpl at tsurname}%
+   \bpl at normalize{\namepartgiven}{\bpl at tfirstname}%
+   \bpl at normalize{\namepartprefix}{\bpl at tvonpart}%
+   \bpl at normalize{\bpl at osurname}{\bpl at esurname}%
+   \bpl at normalize{\bpl at ofirstname}{\bpl at efirstname}%
+   \bpl at normalize{\bpl at ovonpart}{\bpl at evonpart}%
+   \ifboolexpr{
+      test { \ifdefstrequal{\bpl at esurname}{\bpl at tsurname} }
+      and
+      ( test { \ifdefstrequal{\bpl at efirstname}{\bpl at tfirstname} } or test { \ifdefstring{\bpl at ofirstname}{} }) 
+      and
+      ( test { \ifdefstrequal{\bpl at evonpart}{\bpl at tvonpart} } or test { \ifdefstring{\bpl at ovonpart}{} }) }
+          {\toggletrue{ismyself}}{\togglefalse{ismyself}}
+      \ifthenelse{\value{listcount}=1}{}{%
+         \ifnumless{\value{listcount}}{\value{liststop}-1}%
+            {\addcomma\addspace}%
+            {\addspace\bibstring{and}\addspace}%
+      }%
+      \iftoggle{ismyself}{\plauthorhl{%
+         \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
+         \namepartfamily%
+         \ifgiveninits
+            {\ifdefvoid{\namepartgiveni}{}{\addcomma\addspace\namepartgiveni\addspace}}%
+            {\ifdefvoid{\namepartgiven}{}{\addcomma\addspace\namepartgiven\addspace}}%
+      }}{%
+         \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
+         \namepartfamily%
+         \ifgiveninits
+            {\ifdefvoid{\namepartgiveni}{}{\addcomma\addspace\namepartgiveni\addspace}}%
+            {\ifdefvoid{\namepartgiven}{}{\addcomma\addspace\namepartgiven\addspace}}%
+      }%
+      \usebibmacro{name:andothers}%
+ \else% \if at hlauthor false
    \ifthenelse{\value{listcount}=1}{\ifthenelse{\value{author}>1}{\bibopenparen\bibstring{with}\addspace}{}}{}%
    % Exclude omitted author
    \bpl at normalize{\namepartfamily}{\bpl at tsurname}%
@@ -315,9 +373,43 @@
           \namepartfamily}%
           \usebibmacro{name:andothers}%
    \ifthenelse{\value{listcount}=\value{liststop}\AND\value{author}>1}{\unspace\bibcloseparen}{}%
+ \fi% end of \if at hlauthor else condition
 }
 
 \DeclareNameFormat{editor}{%
+ \if at hlauthor
+   % Embolden omitted editor
+   \bpl at normalize{\namepartfamily}{\bpl at tsurname}%
+   \bpl at normalize{\namepartgiven}{\bpl at tfirstname}%
+   \bpl at normalize{\bpl at osurname}{\bpl at esurname}%
+   \bpl at normalize{\bpl at ofirstname}{\bpl at efirstname}%
+   \ifboolexpr{
+      test { \ifdefstrequal{\bpl at esurname}{\bpl at tsurname} }
+      and
+      ( test { \ifdefstrequal{\bpl at efirstname}{\bpl at tfirstname} } or test { \ifdefstring{\bpl at ofirstname}{} }) 
+      and
+      ( test { \ifdefstrequal{\bpl at evonpart}{\bpl at tvonpart} } or test { \ifdefstring{\bpl at ovonpart}{} }) }
+          {\toggletrue{ismyself}}{\togglefalse{ismyself}}
+      \ifthenelse{\value{listcount}=1}{}{%
+         \ifnumless{\value{listcount}}{\value{liststop}-1}%
+            {\addcomma\addspace}%
+            {\addspace\bibstring{and}\addspace}%
+      }%
+      \iftoggle{ismyself}{\plauthorhl{%
+         \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
+         \namepartfamily%
+         \ifgiveninits
+            {\ifdefvoid{\namepartgiveni}{}{\addcomma\addspace\namepartgiveni\addspace}}%
+            {\ifdefvoid{\namepartgiven}{}{\addcomma\addspace\namepartgiven\addspace}}%
+      }}{%
+         \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
+         \namepartfamily%
+         \ifgiveninits
+            {\ifdefvoid{\namepartgiveni}{}{\addcomma\addspace\namepartgiveni\addspace}}%
+            {\ifdefvoid{\namepartgiven}{}{\addcomma\addspace\namepartgiven\addspace}}%
+      }%
+      \usebibmacro{name:andothers}%
+ \else% \if at hlauthor false
    \ifthenelse{\value{listcount}=1}{\ifthenelse{\value{editor}>1}{\bibopenparen\bibstring{with}\addspace}{}}{}%
    % Exclude omitted author
    \bpl at normalize{\namepartfamily}{\bpl at tsurname}%
@@ -356,6 +448,7 @@
           \namepartfamily}%
           \usebibmacro{name:andothers}%
    \ifthenelse{\value{listcount}=\value{liststop}\AND\value{editor}>1}{\unspace\bibcloseparen}{}%
+ \fi% end of \if at hlauthor else condition
 }
 
 \DeclareNameFormat{bookauthor}{%
@@ -369,21 +462,25 @@
     {}%
   \usebibmacro{name:andothers}}
 
-\renewbibmacro*{name:andothers}{%
-  \ifthenelse{\value{listcount}=\value{liststop}\AND
-              \ifmorenames}
-    {\ifnum\value{liststop}>1 \finalandcomma\fi
-     \andothersdelim\biblcstring{andothers}}
-    {}}
 
-
 %
 % Macros
 %
 
 \renewbibmacro*{author}{%
+ \if at hlauthor
   \ifnameundef{author}
     {}
+    {\printnames{author}%
+     \setunit{\addspace}%
+      \iffieldundef{nameaddon}
+      {}
+      {\mkbibbrackets{\bibstring{alias}%
+       \addspace\printfield{nameaddon}}}}
+       \addspace\usebibmacro{year+labelyear}%
+ \else% \if at hlauthor false
+  \ifnameundef{author}
+    {}
     {\usebibmacro{year+labelyear}\addspace%
      \printnames{author}%
      \setunit{\addspace}%
@@ -390,23 +487,50 @@
       \iffieldundef{nameaddon}
       {}
       {\mkbibbrackets{\bibstring{alias}%
-       \addspace\printfield{nameaddon}}}}}
+       \addspace\printfield{nameaddon}}}}
+ \fi% end of \if at hlauthor else condition
+}
 
 \renewbibmacro*{editor}{%
+ \if at hlauthor
   \ifnameundef{editor}
     {}
+    {\printnames{editor}%
+     \setunit{\addspace}%
+     \usebibmacro{editorstrg}}
+     \addspace%
+     \usebibmacro{year+labelyear}%
+ \else% \if at hlauthor false
+  \ifnameundef{editor}
+    {}
     {\usebibmacro{year+labelyear}%
       \addspace%
       \printnames{editor}%
      \setunit{\addspace}%
-     \usebibmacro{editorstrg}}}
+     \usebibmacro{editorstrg}}
+ \fi% end of \if at hlauthor else condition
+}
 
 \renewbibmacro*{editor+others}{%
+\if at hlauthor
   \ifboolexpr{
     test \ifuseeditor
     and
     not test {\ifnameundef{editor}}
   }
+    {\printnames{editor}%
+     \setunit{\addcomma\space}%
+     \usebibmacro{editor+othersstrg}%
+     \addspace%
+     \usebibmacro{year+labelyear}%
+     \clearname{editor}}
+    {}%
+\else% \if at hlauthor false
+  \ifboolexpr{
+    test \ifuseeditor
+    and
+    not test {\ifnameundef{editor}}
+  }
     {\usebibmacro{year+labelyear}%
      \addspace%
      \printnames{editor}%
@@ -413,6 +537,15 @@
      \setunit{\addcomma\space}%
      \usebibmacro{editor+othersstrg}%
      \clearname{editor}}
+    {}%
+\fi% end of \if at hlauthor else condition
+}
+
+\renewbibmacro*{name:andothers}{%
+  \ifthenelse{\value{listcount}=\value{liststop}\AND
+              \ifmorenames}
+    {\ifnum\value{liststop}>1 \finalandcomma\fi
+     \andothersdelim\biblcstring{andothers}}
     {}}
 
 \newbibmacro*{date:makedate}{%
@@ -457,7 +590,7 @@
      \usebibmacro{date:labelyear+extrayear}%
      \if at marginyear%
      \iffieldequals{labelyear}{\bbx at lasthash}{}{%
-      \printtext{\marginpar{\small\plmarginyear{\printfield{labelyear}}}}%
+      \printtext{\marginpar{\small\plmarginyear{\bibsentence\printfield{labelyear}}}}%
      }%
      \fi
      \savefield{labelyear}{\bbx at lasthash}%
@@ -682,4 +815,26 @@
 }
 
 
+%
+% Deprecated stuff
+%
+
+% DEPRECATED as of v.1.4
+% Issue a warning if used.
+\newtoggle{bpl:omitname}
+\def\omitname{%
+   \toggletrue{bpl:omitname}%
+   \@ifnextchar[%
+     {\plauthorname at i}
+     {\plauthorname at i[]}%
+}
+
+\AtEndPreamble{%
+  \iftoggle{bpl:omitname}{
+    \PackageWarning{biblatex-publist}{The \protect\omitname\space macro is deprecated!\MessageBreak
+                                  Please use \protect\plauthorname\space instead.}{}%
+  }
+}
+
+
 \endinput

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx	2017-02-12 22:24:45 UTC (rev 43199)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx	2017-02-12 23:31:56 UTC (rev 43200)
@@ -26,8 +26,8 @@
 %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
-\def\bpl at version{1.3}
-\def\bpl at rdate{2016/08/06}
+\def\bpl at version{1.4}
+\def\bpl at rdate{2017/02/12}
 
 \ProvidesFile{publist.cbx}[\bpl at rdate\space v.\bpl at version\space
                            biblatex citation style (JSP)]



More information about the tex-live-commits mailing list