From fd5f1279a4d184834f9d07fc5d35c892fc3c2f33 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 2 Jul 2014 21:37:46 +0000 Subject: biblatex-anonymous (2jul14) git-svn-id: svn://tug.org/texlive/trunk@34501 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/doc/latex/biblatex-anonymous/README | 4 + .../biblatex-anonymous/biblatex-anonymous.pdf | Bin 0 -> 49906 bytes .../biblatex-anonymous/biblatex-anonymous.tex | 89 +++++++++++++++++++++ .../doc/latex/biblatex-anonymous/latexmkrc | 2 + .../doc/latex/biblatex-anonymous/makefile | 12 +++ .../biblatex-anonymous/biblatex-anonymous.sty | 66 +++++++++++++++ Master/tlpkg/bin/tlpkg-ctan-check | 2 +- Master/tlpkg/tlpsrc/biblatex-anonymous.tlpsrc | 0 Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc | 1 + 9 files changed, 175 insertions(+), 1 deletion(-) create mode 100644 Master/texmf-dist/doc/latex/biblatex-anonymous/README create mode 100644 Master/texmf-dist/doc/latex/biblatex-anonymous/biblatex-anonymous.pdf create mode 100644 Master/texmf-dist/doc/latex/biblatex-anonymous/biblatex-anonymous.tex create mode 100644 Master/texmf-dist/doc/latex/biblatex-anonymous/latexmkrc create mode 100644 Master/texmf-dist/doc/latex/biblatex-anonymous/makefile create mode 100644 Master/texmf-dist/tex/latex/biblatex-anonymous/biblatex-anonymous.sty create mode 100644 Master/tlpkg/tlpsrc/biblatex-anonymous.tlpsrc (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/biblatex-anonymous/README b/Master/texmf-dist/doc/latex/biblatex-anonymous/README new file mode 100644 index 00000000000..9b603fd8b52 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-anonymous/README @@ -0,0 +1,4 @@ +biblatex-anonymous +================== + +Manage anonymous works with biblatex diff --git a/Master/texmf-dist/doc/latex/biblatex-anonymous/biblatex-anonymous.pdf b/Master/texmf-dist/doc/latex/biblatex-anonymous/biblatex-anonymous.pdf new file mode 100644 index 00000000000..950d136a466 Binary files /dev/null and b/Master/texmf-dist/doc/latex/biblatex-anonymous/biblatex-anonymous.pdf differ diff --git a/Master/texmf-dist/doc/latex/biblatex-anonymous/biblatex-anonymous.tex b/Master/texmf-dist/doc/latex/biblatex-anonymous/biblatex-anonymous.tex new file mode 100644 index 00000000000..a0ca493c669 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-anonymous/biblatex-anonymous.tex @@ -0,0 +1,89 @@ +\documentclass{ltxdockit}[2011/03/25] +\usepackage{btxdockit} +\usepackage{fontspec} +\usepackage[mono=false]{libertine} +\usepackage{microtype} +\usepackage[main=english,french,latin]{babel} +\usepackage[strict]{csquotes} +\setmonofont[Scale=MatchLowercase]{DejaVu Sans Mono} +\usepackage{shortvrb} +\usepackage{pifont} +\usepackage{minted} +% Usefull commands +\newcommand{\biblatex}{biblatex\xspace} +\pretocmd{\bibfield}{\sloppy}{}{} +\pretocmd{\bibtype}{\sloppy}{}{} +\newcommand{\namebibstyle}[1]{\texttt{#1}} +% Meta-datas +\titlepage{% + title={Managing anonymous work with biblatex}, + subtitle={}, + email={maieul maieul net}, + author={Maïeul Rouquette}, + revision={1.0.0}, + date={02/07/2014}, + url={https://github.com/maieul/biblatex-anonymous}} + +\begin{document} + + +\printtitlepage +\tableofcontents + +\section{Introduction} + +In some scholar fields, like history or philology, we have to work with anonymous work. + +This package provides facility to manage them with \biblatex, with citation and bibliography style of the \namebibstyle{verbose} family. + +\section{What does the package do?} + +This package does those things: + +\begin{enumerate} + \item Providing a sorting scheme to put all anonymous work at the begining of a bibliography. This sorting scheme is derivated from \verb+nyt+ scheme. + \item For \bibtype{book}, \bibtype{bookinbook}, \bibtype{bookinarticle}, \bibtype{mvbook}, \bibtype{inbook}: + \begin{itemize} + \item Changing label name to author only, never editor. + \item For French, changing \enquote{\selectlanguage{french}dir.} by \enquote{\selectlanguage{french}éd.} + \end{itemize} + \item For \bibtype{book}, printing only the author name before the title, and never the editor, even if the book is anonymous. If you need to print an editor name when a book has no author, you should use \bibtype{collection} or \bibtype{proceedings} Entry Type. + +\end{enumerate} + +\section{Using the package} + +\subsection{Loading} +You must load the package after \biblatex package: +\begin{minted}{latex} +\usepackage[…]{biblatex} +\usepackage{biblatex-anonymous} +\end{minted} + +\subsection{Sorting with anonymous scheme} + +If you want your bibliographies to have all anonymous works at the begining, you can pass option \verb+sorting=anonymous+: + +\begin{itemize} + \item To \biblatex package, to apply it to all bibliographies. + \item To \cs{printbibliography} command, to apply it to a single bibliography. +\end{itemize} +\section{Credits} + +This package was created for Maïeul Rouquette's phd dissertation\footnote{\url{http://apocryphes.hypothese.org}.} in 2014. It is licensed on the \emph{\LaTeX\ Project Public License}\footnote{\url{http://latex-project.org/lppl/lppl-1-3c.html}.}. + +Its code was explained before (in French) on Maïeul Rouquette website\footnote{\url{http://geekographie.maieul.net/Gestion-des-sources-anonymes-avec};\url{http://geekographie.maieul.net/Tri-des-oeuvres-anonymes}.}. + +All issues can be submitted, in French or English, in the GitHub issues page\footnote{\url{https://github.com/maieul/biblatex-multiple-anonymous/issues}.}. + +\section{Change history} + +\begin{changelog} + + + +\begin{release}{1.0.0}{2014-07-023} +\item First public release. +\end{release} +\end{changelog} +\end{document} diff --git a/Master/texmf-dist/doc/latex/biblatex-anonymous/latexmkrc b/Master/texmf-dist/doc/latex/biblatex-anonymous/latexmkrc new file mode 100644 index 00000000000..d6cfc714fa5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-anonymous/latexmkrc @@ -0,0 +1,2 @@ +$pdflatex = "xelatex --shell-escape %S"; +$pdf_mode = "1"; diff --git a/Master/texmf-dist/doc/latex/biblatex-anonymous/makefile b/Master/texmf-dist/doc/latex/biblatex-anonymous/makefile new file mode 100644 index 00000000000..248cf92bc13 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-anonymous/makefile @@ -0,0 +1,12 @@ +FILES = *sty *tex *pdf README makefile latexmkrc +%.pdf: %.tex latexmkrc + latexmk *tex +dist: biblatex-anonymous.pdf + @$(RM) ../biblatex-anonymous.zip + rm -rf biblatex-anonymous + mkdir biblatex-anonymous + cp $(FILES) biblatex-anonymous + zip -r ../biblatex-anonymous.zip biblatex-anonymous + +clean: + @$(RM) *.pdf *.toc *.aux *.out *.fdb_latexmk *.log *.bbl *.bcf *.blg *run.xml *.synctex.gz* \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/biblatex-anonymous/biblatex-anonymous.sty b/Master/texmf-dist/tex/latex/biblatex-anonymous/biblatex-anonymous.sty new file mode 100644 index 00000000000..9719da65668 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-anonymous/biblatex-anonymous.sty @@ -0,0 +1,66 @@ +%% Copyright 2014 Maïeul Rouquette +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3 +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3 or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is Maïeul Rouquette +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{biblatex-anonymous}[2014/06/17 v1.0.0 Manage anonymous works with biblatex] +\RequirePackage{xpatch} +% 1. Sorting + +\DeclareSortingScheme{anonymous}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sortname} + \field{labelname} + \literal{0000} + } + \sort{ + \field{sorttitle} + \field{title} + \field{maintitle} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \field[padside=left,padwidth=4,padchar=0]{volume} + \literal{0000} + } +} + +%2. Labelname + +\DeclareLabelname[book, bookinbook, bookinarticle,mvbook,inbook]{\field{author}} + +%3. Book : print only the author name + +\xpatchbibdriver{book}{\usebibmacro{author/editor+others/translator+others}}{\usebibmacro{author}}{}{} + +% 4. French: directeur devient éditeur + +\DefineBibliographyStrings{french}{% + byeditor = \ifboolexpr{(% + test {\iffieldequalstr{entrytype}{bookinbook}}% + or test {\iffieldequalstr{entrytype}{inbook}}% + or test {\iffieldequalstr{entrytype}{book}}% + or test {\iffieldequalstr{entrytype}{mvbook}}% + or test {\iffieldequalstr{entrytype}{bookinarticle}}% + )}% + {{éd\adddot}}{{dir\adddotspace}}, +} +\endinput \ No newline at end of file diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index bc69fe5aee7..bed693a7078 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -74,7 +74,7 @@ my @TLP_working = qw( beebe begriff belleek bengali bera berenisadf besjournals betababel beton bez123 bezos bgreek bgteubner bguq bhcexam bib-fr bibarts biber bibhtml - biblatex biblatex-apa biblatex-bwl + biblatex biblatex-anonymous biblatex-apa biblatex-bwl biblatex-caspervector biblatex-chem biblatex-chicago biblatex-dw biblatex-fiwi biblatex-gost biblatex-historian biblatex-ieee biblatex-juradiss diff --git a/Master/tlpkg/tlpsrc/biblatex-anonymous.tlpsrc b/Master/tlpkg/tlpsrc/biblatex-anonymous.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d diff --git a/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc index 85a8d60780a..42242409f4c 100644 --- a/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc @@ -17,6 +17,7 @@ depend biber depend bibexport depend bibhtml depend biblatex +depend biblatex-anonymous depend biblatex-apa depend biblatex-bwl depend biblatex-caspervector -- cgit v1.2.3