diff options
13 files changed, 254 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/README b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/README new file mode 100644 index 00000000000..5cb13aa4ec6 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/README @@ -0,0 +1,7 @@ +biblatex-true-citepages-omit +============================ + +Correct some limits of the option citepages=omit of biblatex + +Copyright 2014 Maïeul Rouquette +LLPL 1.3 http://www.latex-project.org/lppl.txt
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.bib b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.bib new file mode 100644 index 00000000000..2568622262b --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.bib @@ -0,0 +1,8 @@ +@article{Kaestli1993, + Author = {Jean-Daniel Kaestli}, + Journal = {Apocrypha}, + Number = {3}, + Pages = {111-123}, + Subtitle = {à propos d'un récent article de K. Schäferdiek}, + Title = {Le rapport entre les deux vies latines de l'apôtre Jean}, + Year = {1993}} diff --git a/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.pdf b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.pdf Binary files differnew file mode 100644 index 00000000000..b3b1caa5bfc --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.pdf diff --git a/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.tex b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.tex new file mode 100644 index 00000000000..febd230623d --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.tex @@ -0,0 +1,132 @@ +\documentclass{ltxdockit}[2011/03/25] +\usepackage{btxdockit} +\usepackage[main=english,french,latin]{babel} +\usepackage[bibstyle=verbose,citestyle=verbose,citepages=omit]{biblatex} +\addbibresource{biblatex-true-citepages-omit.bib} +\usepackage{biblatex-true-citepages-omit} +\savebibmacro{real-citepages-omit} +\renewbibmacro{real-citepages-omit}{} +\usepackage{fontspec} +\usepackage[mono=false]{libertine} +\usepackage{microtype} +\usepackage[strict]{csquotes} +\setmonofont[Scale=MatchLowercase]{DejaVu Sans Mono} +\usepackage{shortvrb} +\usepackage{minted} +\usepackage{pifont} + +% Usefull commands +\newcommand{\biblatex}{biblatex\xspace} +\pretocmd{\bibfield}{\sloppy}{}{} +\pretocmd{\bibtype}{\sloppy}{}{} +\newcommand{\bibkey}[1]{\texttt #1} +% Meta-datas +\titlepage{% + title={Correcting a limitation of citepages=omit option of \biblatex styles}, + email={maieul <at> maieul <dot> net}, + author={Maïeul Rouquette}, + subtitle={}, + revision={1.0.0}, + date={25/03/2014}, + url={https://github.com/maieul/biblatex-true-citepages-omit}} +% Hyphen +\hyphenation{Ma-de-lei-ne} + +\begin{document} + +\printtitlepage +\tableofcontents + +\section{Documentation} + +\subsection{Goal} +The citation styles of the family \emph{verbose} of the \biblatex package offer an \emph{citepages=omit} option. +\begin{minted}{tex} +\usepackage[bibstyle=verbose,citestyle=verbose,citepages=omit]{biblatex} +\end{minted} + +This option is very useful: it omits the \bibfield{pages} field when a citation is made with a pages' number. For example, the following entry + +\inputminted{tex}{biblatex-true-citepages-omit.bib} + +called with: + +\begin{minted}{tex} +\cite[112]{Kaestli1993} +\end{minted} + +will be printed as: + +\begin{quotation} +\cite[112]{Kaestli1993} +\end{quotation} + +and not as: +\citereset + +\begin{quotation} +\cite{Kaestli1993}, p.~112 +\end{quotation} + +This option works perfectly, except if you add a text after page's number, as you can see in the following example. + +\begin{minted}{tex} +\cite[\pno~112, on this point etc.]{Kaestli1993} +\end{minted} + +\citereset +\begin{quotation} +\cite[\pno~112, on this point etc.]{Kaestli1993} +\end{quotation} + +It seems this problem won't be solved in the \biblatex core\footnote{See: \url{https://github.com/plk/biblatex/issues/151\#issuecomment-22879677}.}. + +So, if you simply load the \emph{biblatex-true-citepages-omit} footcite package the problem will be solved. + +\begin{minted}{tex} +\usepackage[bibstyle=verbose,citestyle=verbose,citepages=omit]{biblatex} +\usepackage{biblatex-true-citepages-omit} +... +\cite[\pno~112, on this point etc.]{Kaestli1993} +\end{minted} + + +\citereset +\restorebibmacro{real-citepages-omit}{} +\begin{quotation} +\cite[\pno~112, on this point etc.]{Kaestli1993} +\end{quotation} +\subsection{Declare commands to be used in \prm{postnote} argument} + +If you use some commands in the \prm{postnote} arguments, it could kill \LaTeX. To prevent that, use the \cmd{realcitepagesomit}, which the name of the command as argument. For example, the \emph{polyglossia} switching commands are problematic. So you can do: +\begin{minted}{tex} +\realcitepagesomitcmd{textlatin} +\realcitepagesomitcmd{textgreek} +\end{minted} +\subsection{Limitations} + +\begin{itemize} + \item This package works only if you start the \prm{postnote} argument by the \cmd{pno} or \cmd{ppno} commands. + \item This package must be loaded after the \emph{biblatex-source-division} package. +\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}.}. + + +All issues can be submitted, in French or English, in the GitHub issues page\footnote{\url{https://github.com/maieul/biblatex-source-division/issues}.}. + + + +\section{Revision History} +\begin{changelog} + + + + +\begin{release}{1.0.0}{2014-13-25} +\item First public release. +\end{release} + +\end{changelog} +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/exemple.bib b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/exemple.bib new file mode 100644 index 00000000000..8e0db00395d --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/exemple.bib @@ -0,0 +1,23 @@ +@book{Pleiade2, + Address = {Paris}, + Publisher = {Gallimard}, + Series = {Bibliothèque de la Pléiade}, + Title = {Écrits apocryphes chrétiens}, + Volume = {2}, + Year = {2005}} + +@bookinbook{Pleiade_Bar, + Annotator = {Dominique Alibert and Gisèle Besson and Michèle Brossard-Dandré and Simon Mimouni}, + Crossref = {Pleiade2}, + Pages = {795-808}, + Title = {Passion de Barthélémy}, + Translator = {Dominique Alibert and Gisèle Besson and Michèle Brossard-Dandré and Simon Mimouni}} + +@article{Kaestli1993, + Author = {Jean-Daniel Kaestli}, + Journal = {Apocrypha}, + Number = {3}, + Pages = {111-123}, + Subtitle = {à propos d'un récent article de K. Schäferdiek}, + Title = {Le rapport entre les deux vies latines de l'apôtre Jean}, + Year = {1993}} diff --git a/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/exemple.pdf b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/exemple.pdf Binary files differnew file mode 100644 index 00000000000..d524807ac39 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/exemple.pdf diff --git a/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/exemple.tex b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/exemple.tex new file mode 100644 index 00000000000..ecf6ca4421c --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/exemple.tex @@ -0,0 +1,18 @@ +\documentclass{article} +\usepackage[utf8]{inputenc} +\usepackage[citestyle=verbose-trad2,citepages=omit]{biblatex} +\usepackage{biblatex-source-division} +\usepackage{biblatex-true-citepages-omit} +\bibliography{exemple.bib} +\begin{document} + + + +\cite[\pno~25, sur ce point\emph{lcr}...]{Kaestli1993} + + +\cite[\pno~25, sur ce point\emph{lcr}...]{Kaestli1993} + +\cite[(1)\pno~795, sur ce point...]{Pleiade_Bar} + +\end{document} diff --git a/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/latexmkrc b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/latexmkrc new file mode 100644 index 00000000000..d6cfc714fa5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/latexmkrc @@ -0,0 +1,2 @@ +$pdflatex = "xelatex --shell-escape %S"; +$pdf_mode = "1"; diff --git a/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/makefile b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/makefile new file mode 100644 index 00000000000..4f30cded300 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-true-citepages-omit/makefile @@ -0,0 +1,12 @@ +FILES = *sty *tex *pdf README *.bib makefile latexmkrc +%.pdf: %.tex latexmkrc %.bib + latexmk *tex +dist: biblatex-true-citepages-omit.pdf + @$(RM) ../biblatex-true-citepages-omit.zip + rm -rf biblatex-true-citepages-omit + mkdir biblatex-true-citepages-omit + cp $(FILES) biblatex-true-citepages-omit + zip -r ../biblatex-true-citepages-omit.zip biblatex-true-citepages-omit + +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-true-citepages-omit/biblatex-true-citepages-omit.sty b/Master/texmf-dist/tex/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.sty new file mode 100644 index 00000000000..37d4760544d --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-true-citepages-omit/biblatex-true-citepages-omit.sty @@ -0,0 +1,50 @@ +%% Copyright 2013 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 +% +% This work consists of the file biblatex-real-citepages-omit.sty + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{biblatex-true-citepages-omit}[2014/03/25 v1.0.0 real run of citepages=omit for biblatex] +\RequirePackage{xstring} + +\AtEveryCitekey{% + \usebibmacro{real-citepages-omit}% +}{}{} + +\newbibmacro{real-citepages-omit}{% + \iffieldundef{postnote}{}{% + \renewcommand{\do}[1]{% + \global\csletcs{old##1}{##1}% + \global\csletcs{##1}{relax}% + }% + \dolistloop{\realcitepagesomit@cmd}% + \IfBeginWith{\csfield{postnote}}{\pno}{\clearfield{pages}}{% + \IfBeginWith{\csfield{postnote}}{\ppno}{\clearfield{pages}}{}}% + % + \renewcommand{\do}[1]{% + \global\csletcs{##1}{old##1}% + }% + \dolistloop{\realcitepagesomit@cmd}% + }% +}% + +\def\realcitepagesomit@cmd{} + +\newcommand{\realcitepagesomitcmd}[1]{\listadd{\realcitepagesomit@cmd}{#1}} +\realcitepagesomitcmd{emph} +\realcitepagesomitcmd{textbf} + + + +\endinput
\ No newline at end of file diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index ac4844a5ac0..b5f7b6ac6a6 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -82,7 +82,7 @@ my @TLP_working = qw( biblatex-mla biblatex-musuos biblatex-nature biblatex-nejm biblatex-philosophy biblatex-phys biblatex-publist biblatex-science biblatex-source-division biblatex-swiss-legal - biblatex-trad + biblatex-trad biblatex-true-citepages-omit bibleref bibleref-french bibleref-german bibleref-lds bibleref-mouth bibleref-parse biblist bibtex bibtopic diff --git a/Master/tlpkg/tlpsrc/biblatex-true-citepages-omit.tlpsrc b/Master/tlpkg/tlpsrc/biblatex-true-citepages-omit.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/biblatex-true-citepages-omit.tlpsrc diff --git a/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc index be103d1b9cb..45d98e1696a 100644 --- a/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-bibtexextra.tlpsrc @@ -40,6 +40,7 @@ depend biblatex-science depend biblatex-source-division depend biblatex-swiss-legal depend biblatex-trad +depend biblatex-true-citepages-omit depend biblist depend bibtopic depend bibtopicprefix |