texlive[43740] Master/texmf-dist: biblatex-publist

commits+karl at tug.org commits+karl at tug.org
Tue Apr 11 00:02:23 CEST 2017


Revision: 43740
          http://tug.org/svn/texlive?view=revision&revision=43740
Author:   karl
Date:     2017-04-11 00:02:23 +0200 (Tue, 11 Apr 2017)
Log Message:
-----------
biblatex-publist

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-04-10 22:02:09 UTC (rev 43739)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-publist/README	2017-04-10 22:02:23 UTC (rev 43740)
@@ -45,6 +45,11 @@
 
 == CHANGES ==
 
+* V. 1.6 (2017-04-02):
+	- New option 'nameorder' that allows to change the ordering of author and editor
+	  name ("given-family" vs. "family-given" [= default]).
+	- Use proper name delimiters also for bookauthor.
+
 * V. 1.5 (2017-02-28):
 	- Fix extra "and" in name list with plauthorhandling=highlight.
 	- Whitespace fix with plauthorhandling=highlight.

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-04-10 22:02:09 UTC (rev 43739)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-publist/biblatex-publist.tex	2017-04-10 22:02:23 UTC (rev 43740)
@@ -79,7 +79,7 @@
 \thanks{Please report issues via \protect\url{https://github.com/jspitz/biblatex-publist}.}%
 }
 
-\date{Version 1.5, 2017/02/28}
+\date{Version 1.6, 2017/04/02}
 \maketitle
 
 \begin{abstract}
@@ -149,12 +149,12 @@
 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
+	Doe, John, \textbf{Myself, Me} and Hall, Mary, \textbf{1987}. Are there new trends
 	in gardening? In: \emph{Gardening Practice} 24, pp.~10--15.
 \end{quote}
 
 
-\subsection{Additional options}
+\subsection{Additional options}\label{sec:addopts}
 
 Currently, the following additional options are provided (next to the
 options provided by the \bibltx\ package itself%
@@ -177,6 +177,11 @@
 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{nameorder{[}=family-given|given-family{]}}}] default: \emph{family-given}.
+
+By default, the author and editor names with \joption{plauthorhandling=highlight} are output in the order ``Lastname, Given Names''.
+To change the order to ``Given Names Lastname'', pass the option \joption{nameorder=given-family} to \bibltx.
+
 \item [{\joption{boldyear{[}=true|false{]}}}] default: \emph{true}.
 
 By default, the year (or pubstate, if no year is given) is printed in bold face.
@@ -239,7 +244,12 @@
 
 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.
 
+Note, further, that the order of author's and editor's given and family names is hardcoded in
+\bpl\ due to the complex omission\slash highlighting mechanism. This might
+differ from what you expect with specific base styles. To change the order,
+use the package option \joption{nameorder} (see sec.~\ref{sec:addopts}).
 
+
 \section{Localization}
 
 Since the package draws on \bibltx, it supports localization. 
@@ -299,7 +309,7 @@
 		   frame=single,
 		   label={example},
 		   language={[LaTeX]TeX},
-		   moretexcs={[4]{plauthorname,addbibresource,printbibliography,maketitle}}]
+		   moretexcs={[5]{plauthorname,addbibresource,printbibliography,maketitle,newrefsection}}]
 \documentclass{article}
 \usepackage[T1]{fontenc}
 \usepackage[latin9]{inputenc}
@@ -321,22 +331,19 @@
 \maketitle
 
 \section{Monographs}
-\begin{refsection}[mymonographs]
+\newrefsection[mymonographs]
 \nocite{*}
 \printbibliography[heading=none]
-\end{refsection}
 
 \section{Proceedings}
-\begin{refsection}[myproceedings]
+\newrefsection[myproceedings]
 \nocite{*}
 \printbibliography[heading=none]
-\end{refsection}
 
 \section{Articles}
-\begin{refsection}[myarticles]
+\newrefsection[myarticles]
 \nocite{*}
 \printbibliography[heading=none]
-\end{refsection}
 
 \end{document}
 \end{lstlisting}
@@ -348,13 +355,12 @@
 \begin{lstlisting}[caption={Adding foreign reviews},
 		  frame=single,
 		  language={[LaTeX]TeX},
-		  moretexcs={[3]{bibfont,subsubsection,printbibliography}}]
+		  moretexcs={[4]{bibfont,subsubsection,printbibliography,newrefsection}}]
 \subsubsection*{Reviews of my thesis}
-\begin{refsection}[mythesis-reviews]
+\newrefsection[mythesis-reviews]
 \renewcommand\bibfont{\small}
 \nocite{*}
 \printbibliography[heading=none,env=reviews]
-\end{refsection}
 \end{lstlisting}
 
 \end{quote}
@@ -373,10 +379,8 @@
 		  frame=single,
 		  language={[LaTeX]TeX},
 		  moretexcs={[1]{printbibliography}}]
-\begin{refsection}[mybibliography]
 \nocite{*}
 \printbibliography[heading=none,filter=mine]
-\end{refsection}
 \end{lstlisting}
 
 \end{quote}
@@ -424,12 +428,19 @@
 \section{Revision Log}
 
 \begin{description}
-\item [{V.~1.5 (2017-02-28):}]~
-	\begin{itemize}
-	\item Fix extra \emph{and} in name list with \joption{plauthorhandling=highlight}.
-	\item Whitespace fix with \joption{plauthorhandling=highlight}.
-	\item Use proper name delimiters.
-\end{itemize}
+	\item [{V.~1.6 (2017-04-02):}]~
+	    \begin{itemize}
+		    \item New option \joption{nameorder} that allows to change the ordering of author and editor
+		          name (\joption{given-family} vs. \joption{family-given} [=~default]).
+		    \item Use proper name delimiters also for bookauthor.
+        \end{itemize}
+
+   \item [{V.~1.5 (2017-02-28):}]~
+	    \begin{itemize}
+	        \item Fix extra \emph{and} in name list with \joption{plauthorhandling=highlight}.
+	        \item Whitespace fix with \joption{plauthorhandling=highlight}.
+	        \item Use proper name delimiters.
+        \end{itemize}
 	
 \item [{V.~1.4 (2017-02-12):}]~
 	\begin{itemize}

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx	2017-04-10 22:02:09 UTC (rev 43739)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx	2017-04-10 22:02:23 UTC (rev 43740)
@@ -25,8 +25,8 @@
 %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
-\def\bpl at version{1.5}
-\def\bpl at rdate{2017/02/28}
+\def\bpl at version{1.6}
+\def\bpl at rdate{2017/04/02}
 
 \ProvidesFile{publist.bbx}[\bpl at rdate\space v.\bpl at version\space
                            biblatex bibliography style (JSP)]
@@ -79,6 +79,11 @@
     \ifstrequal{#1}{highlight}{\@hlauthortrue}{\@hlauthorfalse}
 }
 
+\newif\if at givenfirst\@givenfirstfalse
+\DeclareBibliographyOption{nameorder}[family-given]{%
+    \ifstrequal{#1}{given-family}{\@givenfirsttrue}{\@givenfirstfalse}
+}
+
 % Check if users have defined different base styles
 % If not, use authoryear.
 \newif\ifbpl at standardbasestyle\bpl at standardbasestylefalse
@@ -319,17 +324,33 @@
             {\finalnamedelim}%
       }%
       \iftoggle{ismyself}{\plauthorhl{%
-         \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
-         \namepartfamily%
-         \ifgiveninits
-            {\ifdefvoid{\namepartgiveni}{}{\addcomma\addspace\namepartgiveni\addspace}}%
-            {\ifdefvoid{\namepartgiven}{}{\addcomma\addspace\namepartgiven\addspace}}%
+         \if at givenfirst% given name first
+            \ifgiveninits
+                {\ifdefvoid{\namepartgiveni}{}{\namepartgiveni\addspace}}%
+                {\ifdefvoid{\namepartgiven}{}{\namepartgiven\addspace}}%
+             \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
+             \namepartfamily%
+          \else% family name first
+             \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
+             \namepartfamily%
+             \ifgiveninits
+                {\ifdefvoid{\namepartgiveni}{}{\addcomma\addspace\namepartgiveni\addspace}}%
+                {\ifdefvoid{\namepartgiven}{}{\addcomma\addspace\namepartgiven\addspace}}%
+         \fi
       }}{%
-         \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
-         \namepartfamily%
-         \ifgiveninits
-            {\ifdefvoid{\namepartgiveni}{}{\addcomma\addspace\namepartgiveni\addspace}}%
-            {\ifdefvoid{\namepartgiven}{}{\addcomma\addspace\namepartgiven\addspace}}%
+        \if at givenfirst% given name first
+            \ifgiveninits
+                {\ifdefvoid{\namepartgiveni}{}{\namepartgiveni\addspace}}%
+                {\ifdefvoid{\namepartgiven}{}{\namepartgiven\addspace}}%
+             \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
+             \namepartfamily%
+          \else% family name first
+             \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
+             \namepartfamily%
+             \ifgiveninits
+                {\ifdefvoid{\namepartgiveni}{}{\addcomma\addspace\namepartgiveni\addspace}}%
+                {\ifdefvoid{\namepartgiven}{}{\addcomma\addspace\namepartgiven\addspace}}%
+         \fi
       }%
       \usebibmacro{name:andothers}%
  \else% \if at hlauthor false
@@ -396,17 +417,33 @@
             {\finalnamedelim}%
       }%
       \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}}%
+          \if at givenfirst% given name first
+            \ifgiveninits
+                {\ifdefvoid{\namepartgiveni}{}{\namepartgiveni\addspace}}%
+                {\ifdefvoid{\namepartgiven}{}{\namepartgiven\addspace}}%
+             \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
+             \namepartfamily%
+          \else% family name first
+             \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
+             \namepartfamily%
+             \ifgiveninits
+                {\ifdefvoid{\namepartgiveni}{}{\addcomma\addspace\namepartgiveni\addspace}}%
+                {\ifdefvoid{\namepartgiven}{}{\addcomma\addspace\namepartgiven\addspace}}%
+         \fi
+       }}{%
+         \if at givenfirst% given name first
+            \ifgiveninits
+                {\ifdefvoid{\namepartgiveni}{}{\namepartgiveni\addspace}}%
+                {\ifdefvoid{\namepartgiven}{}{\namepartgiven\addspace}}%
+             \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
+             \namepartfamily%
+          \else% family name first
+             \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
+             \namepartfamily%
+             \ifgiveninits
+                {\ifdefvoid{\namepartgiveni}{}{\addcomma\addspace\namepartgiveni\addspace}}%
+                {\ifdefvoid{\namepartgiven}{}{\addcomma\addspace\namepartgiven\addspace}}%
+         \fi
       }%
       \usebibmacro{name:andothers}%
  \else% \if at hlauthor false
@@ -452,13 +489,23 @@
 }
 
 \DeclareNameFormat{bookauthor}{%
-  \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
-  \namepartfamily%
-  \ifgiveninits
-      {\ifdefvoid{\namepartgiveni}{}{\addcomma\space\namepartgiveni}}%
-      {\ifdefvoid{\namepartgiven}{}{\addcomma\space\namepartgiven}}%
+  \if at givenfirst% given name first
+      \ifgiveninits
+          {\ifdefvoid{\namepartgiveni}{}{\namepartgiveni\addspace}}%
+          {\ifdefvoid{\namepartgiven}{}{\namepartgiven\addspace}}%
+       \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
+       \namepartfamily%
+  \else% family name first
+       \ifdefvoid{\namepartprefix}{}{\namepartprefix\addspace}%
+       \namepartfamily%
+       \ifgiveninits
+          {\ifdefvoid{\namepartgiveni}{}{\addcomma\addspace\namepartgiveni\addspace}}%
+          {\ifdefvoid{\namepartgiven}{}{\addcomma\addspace\namepartgiven\addspace}}%
+  \fi
   \ifthenelse{\value{listcount}<\value{liststop}}
-    {\addslash}
+    {\ifnumless{\value{listcount}}{\value{liststop}-1}%
+         {\multinamedelim}%
+         {\finalnamedelim}}%
     {}%
   \usebibmacro{name:andothers}}
 
@@ -477,7 +524,7 @@
       {}
       {\mkbibbrackets{\bibstring{alias}%
        \addspace\printfield{nameaddon}}}}
-       \addspace\usebibmacro{year+labelyear}%
+       \adddot\addspace\usebibmacro{year+labelyear}%
  \else% \if at hlauthor false
   \ifnameundef{author}
     {}
@@ -498,7 +545,7 @@
     {\printnames{editor}%
      \setunit{\addspace}%
      \usebibmacro{editorstrg}}
-     \addspace%
+     \adddot\addspace%
      \usebibmacro{year+labelyear}%
  \else% \if at hlauthor false
   \ifnameundef{editor}
@@ -521,7 +568,7 @@
     {\printnames{editor}%
      \setunit{\addcomma\space}%
      \usebibmacro{editor+othersstrg}%
-     \addspace%
+     \adddot\addspace%
      \usebibmacro{year+labelyear}%
      \clearname{editor}}
     {}%

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx	2017-04-10 22:02:09 UTC (rev 43739)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx	2017-04-10 22:02:23 UTC (rev 43740)
@@ -26,8 +26,8 @@
 %
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
-\def\bpl at version{1.5}
-\def\bpl at rdate{2017/02/28}
+\def\bpl at version{1.6}
+\def\bpl at rdate{2017/04/02}
 
 \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