diff options
author | Karl Berry <karl@freefriends.org> | 2014-07-02 21:37:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-07-02 21:37:46 +0000 |
commit | fd5f1279a4d184834f9d07fc5d35c892fc3c2f33 (patch) | |
tree | 4b3b9b1b67d35929a5f6ecd7bec584a4e4117401 /Master/texmf-dist | |
parent | b005d64cd2ffbdca7a184952e7a496f16eb06a7c (diff) |
biblatex-anonymous (2jul14)
git-svn-id: svn://tug.org/texlive/trunk@34501 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
6 files changed, 173 insertions, 0 deletions
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 Binary files differnew file mode 100644 index 00000000000..950d136a466 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-anonymous/biblatex-anonymous.pdf 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 <at> maieul <dot> 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 |