| 1 |
\documentclass{ltxdockit}[2011/03/25] |
| 2 |
\usepackage{btxdockit} |
| 3 |
\usepackage[main=english,french,latin]{babel} |
| 4 |
\usepackage[bibstyle=verbose,citestyle=verbose,citepages=omit]{biblatex} |
| 5 |
\addbibresource{biblatex-true-citepages-omit.bib} |
| 6 |
\usepackage{biblatex-true-citepages-omit} |
| 7 |
\savebibmacro{real-citepages-omit} |
| 8 |
\renewbibmacro{real-citepages-omit}{} |
| 9 |
\usepackage{fontspec} |
| 10 |
\usepackage[mono=false]{libertine} |
| 11 |
\usepackage{microtype} |
| 12 |
\usepackage[strict]{csquotes} |
| 13 |
\setmonofont[Scale=MatchLowercase]{DejaVu Sans Mono} |
| 14 |
\usepackage{shortvrb} |
| 15 |
\usepackage{minted} |
| 16 |
\usepackage{pifont} |
| 17 |
|
| 18 |
% Usefull commands |
| 19 |
\newcommand{\biblatex}{biblatex\xspace} |
| 20 |
\pretocmd{\bibfield}{\sloppy}{}{} |
| 21 |
\pretocmd{\bibtype}{\sloppy}{}{} |
| 22 |
\newcommand{\bibkey}[1]{\texttt #1} |
| 23 |
% Meta-datas |
| 24 |
\titlepage{% |
| 25 |
subtitle={Correcting a limitation of citepages=omit option of \biblatex styles}, |
| 26 |
email={maieul <at> maieul <dot> net}, |
| 27 |
author={Maïeul Rouquette}, |
| 28 |
title={The biblatex-true-citepages-omit package}, |
| 29 |
revision={2.0.0}, |
| 30 |
date={20/06/20167}, |
| 31 |
url={https://github.com/maieul/biblatex-true-citepages-omit}} |
| 32 |
% Hyphen |
| 33 |
\hyphenation{Ma-de-lei-ne} |
| 34 |
|
| 35 |
\begin{document} |
| 36 |
|
| 37 |
\printtitlepage |
| 38 |
\tableofcontents |
| 39 |
|
| 40 |
\section{Documentation} |
| 41 |
|
| 42 |
\subsection{Goal} |
| 43 |
The citation styles of the family \emph{verbose} of the \biblatex package offer an \emph{citepages=omit} option. |
| 44 |
\begin{minted}{tex} |
| 45 |
\usepackage[bibstyle=verbose,citestyle=verbose,citepages=omit]{biblatex} |
| 46 |
\end{minted} |
| 47 |
|
| 48 |
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 |
| 49 |
|
| 50 |
\inputminted{tex}{biblatex-true-citepages-omit.bib} |
| 51 |
|
| 52 |
called with: |
| 53 |
|
| 54 |
\begin{minted}{tex} |
| 55 |
\cite[112]{Kaestli1993} |
| 56 |
\end{minted} |
| 57 |
|
| 58 |
will be printed as: |
| 59 |
|
| 60 |
\begin{quotation} |
| 61 |
\cite[112]{Kaestli1993} |
| 62 |
\end{quotation} |
| 63 |
|
| 64 |
and not as: |
| 65 |
\citereset |
| 66 |
|
| 67 |
\begin{quotation} |
| 68 |
\cite{Kaestli1993}, p.~112 |
| 69 |
\end{quotation} |
| 70 |
|
| 71 |
This option works perfectly, except if you add a text after page's number, as you can see in the following example. |
| 72 |
|
| 73 |
\begin{minted}{tex} |
| 74 |
\cite[\pno~112, on this point etc.]{Kaestli1993} |
| 75 |
\end{minted} |
| 76 |
|
| 77 |
\citereset |
| 78 |
\begin{quotation} |
| 79 |
\cite[\pno~112, on this point etc.]{Kaestli1993} |
| 80 |
\end{quotation} |
| 81 |
|
| 82 |
It seems this problem won't be solved in the \biblatex core\footnote{See: \url{https://github.com/plk/biblatex/issues/151\#issuecomment-22879677}.}. |
| 83 |
|
| 84 |
So, if you simply load the \emph{biblatex-true-citepages-omit} package the problem will be solved. |
| 85 |
|
| 86 |
\begin{minted}{tex} |
| 87 |
\usepackage[bibstyle=verbose,citestyle=verbose]{biblatex} |
| 88 |
\usepackage{biblatex-true-citepages-omit} |
| 89 |
... |
| 90 |
\cite[\pno~112, on this point etc.]{Kaestli1993} |
| 91 |
\end{minted} |
| 92 |
|
| 93 |
Notes that the \emph{citepages=omit} option is automatically loaded. |
| 94 |
|
| 95 |
\citereset |
| 96 |
\restorebibmacro{real-citepages-omit}{} |
| 97 |
\begin{quotation} |
| 98 |
\cite[\pno~112, on this point etc.]{Kaestli1993} |
| 99 |
\end{quotation} |
| 100 |
\subsection{Limitations} |
| 101 |
|
| 102 |
\begin{itemize} |
| 103 |
\item This package works only if you start the \prm{postnote} argument by the \cmd{pno} or \cmd{ppno} commands. |
| 104 |
\item This package must be loaded after the \emph{biblatex-source-division} package. |
| 105 |
\end{itemize} |
| 106 |
\section{Credits} |
| 107 |
|
| 108 |
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}.}. |
| 109 |
|
| 110 |
|
| 111 |
All issues can be submitted, in French or English, in the GitHub issues page\footnote{\url{https://github.com/maieul/biblatex-source-division/issues}.}. |
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
\section{Revision History} |
| 116 |
\begin{changelog} |
| 117 |
|
| 118 |
\begin{release}{2.0.0}{2017-06-20} |
| 119 |
\item The \emph{citepages=omit} option is automatically loaded |
| 120 |
\end{release} |
| 121 |
|
| 122 |
\begin{release}{1.3.0}{2015-09-21} |
| 123 |
\item As in the standard citepages=omit, also clear the \bibfield{pagetotal} field. |
| 124 |
\end{release} |
| 125 |
|
| 126 |
\begin{release}{1.2.0}{2014-08-16} |
| 127 |
\item No more \cs{realcitepagesomitcmd} command. |
| 128 |
\item Internal macros with more consistent name. |
| 129 |
\end{release} |
| 130 |
|
| 131 |
\begin{release}{1.1.1}{2014-06-17} |
| 132 |
\item Compatibility with the \cs{xspace} of xspace package. |
| 133 |
\end{release} |
| 134 |
|
| 135 |
|
| 136 |
\begin{release}{1.1.0}{2014-06-16} |
| 137 |
\item Better implementation of \cs{realcitepagesomitcmd}. |
| 138 |
\end{release} |
| 139 |
|
| 140 |
\begin{release}{1.0.1}{2014-06-16} |
| 141 |
\item Compatibility with the \cs{bibleverse} of bibleref package. |
| 142 |
\end{release} |
| 143 |
|
| 144 |
\begin{release}{1.0.0}{2014-03-25} |
| 145 |
\item First public release. |
| 146 |
\end{release} |
| 147 |
|
| 148 |
\end{changelog} |
| 149 |
\end{document} |