From c8269d3ac75f65acc9541fa375e372a96d56b0e5 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 2 Nov 2014 21:54:49 +0000 Subject: biblatex-realauthor (30oct14) git-svn-id: svn://tug.org/texlive/trunk@35492 c570f23f-e606-0410-a88d-b1316a301751 --- .../documentation/biblatex-realauthor.pdf | Bin 60985 -> 64397 bytes .../documentation/biblatex-realauthor.tex | 23 ++++++-- .../biblatex-realauthor/documentation/example.bib | 19 +++++++ .../biblatex-realauthor/documentation/example.pdf | Bin 13261 -> 8818 bytes .../biblatex-realauthor/documentation/example.tex | 27 ++++++--- .../tex/latex/biblatex-realauthor/realauthor.bbx | 61 ++++++++++++++++----- 6 files changed, 103 insertions(+), 27 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/biblatex-realauthor.pdf b/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/biblatex-realauthor.pdf index cc5dcea8544..276145a8743 100644 Binary files a/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/biblatex-realauthor.pdf and b/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/biblatex-realauthor.pdf differ diff --git a/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/biblatex-realauthor.tex b/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/biblatex-realauthor.tex index 3bd6730cf7c..589c8fae42f 100644 --- a/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/biblatex-realauthor.tex +++ b/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/biblatex-realauthor.tex @@ -20,8 +20,8 @@ subtitle={New data field}, email={maieul maieul net}, author={Maïeul Rouquette}, - revision={2.0.0}, - date={27/10/2014}, + revision={2.1.0}, + date={30/10/2014}, url={https://github.com/maieul/biblatex-realauthor}} % biblatex @@ -62,7 +62,7 @@ By default, the real author name is printed in brackets, with an equal, between \cite{Simon1686} \end{quotation} -\subsection{Label field}\label{field:label} + This package, since version 2.0.0, declares the \bibfield{realauthor} name as the \bibfield{labelname}, if a \bibfield{author} name is not defined. @@ -73,6 +73,16 @@ That implies this field is use for: \end{itemize} Note that this field is not affected by \verb+useauthor+ option. + +\subsection{Sorting}\label{sorting} + +The default sorting schemes \verb+nty+ is problematic, because it doesn't consider the \bibfield{realauthor} field as a name. That is why the package provides two sorting scheme: + +\begin{itemize} + \item \verb|anonymous|, which but considers the \bibfield{realauthor} field to sort list by authors' name. If an entry has both \bibfield{realauthor} and \bibfield{author}, only the \bibfield{author} field we be used. + \item \verb|anonymous+realauthor|, which push the anonymous texts at the begininng of the list (as the \verb+anonymous+ sorting of the \emph{biblatex-anonymous+} package), but considers the \bibfield{realauthor} field to sort list by authors' name (as the \verb+realauthor+ sorting). +\end{itemize} + See the example file to have an illustration. \section{Customization} You can redefine the \cmd{mkrealauthor} command to change the way the real author name is printed. Default value is: @@ -106,6 +116,11 @@ All issues can be submitted, in French or English, in the GitHub issues page\foo \begin{changelog} + \begin{release}{2.1.0}{2014-10-30} + \item Add new \verb|realauthor| scheme. \see{sorting} + \end{release} + + \begin{release}{2.0.0}{2014-10-27} \item Print the realauthor name in bracket when cited in a abreviated form. \item Define \bibtype{realauthor} as \bibtype{labelname}. \see{field:label} @@ -113,7 +128,7 @@ All issues can be submitted, in French or English, in the GitHub issues page\foo \begin{release}{1.1.0}{2014-10-09} \item In a bibliographical list, print the last name before the first name of a real author, except if a \bibfield{author} is defined. -\item Add \verb+anonymous+realauthor+ sorting scheme. +\item Add \verb|anonymous+realauthor| sorting scheme. \see{sorting} \item Compatibility with \bibtype{article} entry. \end{release} diff --git a/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/example.bib b/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/example.bib index 656db6137ed..9ffb7f95ab3 100644 --- a/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/example.bib +++ b/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/example.bib @@ -16,3 +16,22 @@ sentimens de quelques Theologiens de Hollande sur l'Histoire Critique du Vieux Testament}, Year = {1686}} + +@book{noauthor-norealauthor, + Title = {Here an anonymous work}, + } + +@book{noauthor-norealauthor2, + Title = {Why not an other anonymous work?}, + } + +@book{Author+realauthor, + Author = {Theauthor, Name}, + Realauthor= {Therealauthor, Name}, + Title = {That is a work with an author plus a real author}, + } + +@book{Only-realauthor, + Realauthor= {Therealauthor, Name}, + Title = {Here a work with only a real author}, + } diff --git a/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/example.pdf b/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/example.pdf index 03a2e21c1a6..39ba6da84d0 100644 Binary files a/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/example.pdf and b/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/example.pdf differ diff --git a/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/example.tex b/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/example.tex index 7d6c0902b43..c3a68ba5ec7 100644 --- a/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/example.tex +++ b/Master/texmf-dist/doc/latex/biblatex-realauthor/documentation/example.tex @@ -1,19 +1,30 @@ \documentclass{article} -\usepackage{polyglossia} -\setmainlanguage{french} -\usepackage{fontspec,xpatch} -\usepackage[citestyle=verbose-trad2,bibstyle=realauthor]{biblatex} + +\usepackage[bibstyle=verbose, citestyle=verbose-trad2,bibstyle=realauthor]{biblatex} + \bibliography{example.bib} \begin{document} -\cite{LeClerc1686} +\cite{Author+realauthor} + +\cite{Only-realauthor} + +\cite{noauthor-norealauthor} + +\cite{Author+realauthor} + +\cite{Only-realauthor} + +\cite{noauthor-norealauthor} + +\cite{noauthor-norealauthor2} -\cite{Simon1686} +\printbibliography[sorting=nty,title={Default sorting (nty)}] -\cite{LeClerc1686} +\printbibliography[sorting=realauthor,title={realauthor sorting}] -\cite{Simon1686} +\printbibliography[sorting=anonymous+realauthor,title={anonymous+realauthor sorting}] \end{document} diff --git a/Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx b/Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx index 884e1a81063..24f7c33eb3a 100644 --- a/Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-realauthor/realauthor.bbx @@ -100,34 +100,65 @@ -% Sorting (obsolete) +% Sorting -\DeclareSortingScheme{anonymous+realauthor}{ +\DeclareSortingScheme{realauthor}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sortname} + \field{author} + \field{realauthor} + \field{editor} + \field{translator} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } \sort{ - \field{presort} + \field[padside=left,padwidth=4,padchar=0]{volume} + \literal{0000} + } +} + +\DeclareSortingScheme{anonymous+realauthor}{ + \sort{ + \field{presort} } \sort[final]{ - \field{sortkey} + \field{sortkey} } \sort{ - \field{sortname} - \field{labelname} - \field{realauthor} - \literal{0000} + \field{sortname} + \field{author} + \field{realauthor} + \field{editor} + \field{translator} + \literal{0000} } \sort{ - \field{sorttitle} - \field{title} - \field{maintitle} + \field{sorttitle} + \field{title} } \sort{ - \field{sortyear} - \field{year} + \field{sortyear} + \field{year} } \sort{ - \field[padside=left,padwidth=4,padchar=0]{volume} - \literal{0000} + \field[padside=left,padwidth=4,padchar=0]{volume} + \literal{0000} } } -- cgit v1.2.3