| 1 |
\documentclass{ltxdockit}[2011/03/25] |
| 2 |
\usepackage{btxdockit} |
| 3 |
\usepackage{fontspec} |
| 4 |
\usepackage[mono=false]{libertine} |
| 5 |
\usepackage{microtype} |
| 6 |
\usepackage[american]{babel} |
| 7 |
\usepackage[strict]{csquotes} |
| 8 |
\setmonofont[Scale=MatchLowercase]{DejaVu Sans Mono} |
| 9 |
\usepackage{shortvrb} |
| 10 |
\usepackage{pifont} |
| 11 |
\usepackage{minted} |
| 12 |
\usepackage{graphicx} |
| 13 |
% Usefull commands |
| 14 |
\newcommand{\reff}[1]{\ref{#1} p.~\pageref{#1}} |
| 15 |
\newcommand{\pkg}[1]{\emph{#1}} |
| 16 |
\newcommand{\biblatex}{\emph{biblatex}\xspace} |
| 17 |
\newcommand{\meta}[1]{\texttt{<#1>}} |
| 18 |
\pretocmd{\bibfield}{\sloppy}{}{} |
| 19 |
\pretocmd{\bibtype}{\sloppy}{}{} |
| 20 |
\newcommand{\namebibstyle}[1]{\texttt{#1}} |
| 21 |
% Meta-datas |
| 22 |
\titlepage{% |
| 23 |
title={Book edited in other other type with biblatex}, |
| 24 |
subtitle={New data types}, |
| 25 |
email={maieul <at> maieul <dot> net}, |
| 26 |
author={Maïeul Rouquette}, |
| 27 |
revision={2.3.3}, |
| 28 |
date={02/03/2020}, |
| 29 |
url={https://github.com/maieul/biblatex-bookinarticle}} |
| 30 |
|
| 31 |
% biblatex |
| 32 |
\usepackage[tools={bookinother,morenames},bibstyle=verbose]{biblatex-multiple-dm} |
| 33 |
\usepackage[citestyle=verbose,bibstyle=multiple-dm]{biblatex} |
| 34 |
\addbibresource{example-bookinarticle.bib} |
| 35 |
\addbibresource{example-bookincollection.bib} |
| 36 |
\addbibresource{example-bookinincollection.bib} |
| 37 |
\addbibresource{example-bookininproceedings.bib} |
| 38 |
\addbibresource{example-bookinjournal.bib} |
| 39 |
\addbibresource{example-bookinproceedings.bib} |
| 40 |
\addbibresource{example-bookinthesis.bib} |
| 41 |
\addbibresource{example-bookininbook.bib} |
| 42 |
\addbibresource{example-bookininarticle.bib} |
| 43 |
\begin{document} |
| 44 |
|
| 45 |
\printtitlepage |
| 46 |
\tableofcontents |
| 47 |
|
| 48 |
\section{Introduction} |
| 49 |
|
| 50 |
\subsection{Aim} |
| 51 |
The default \biblatex's styles provide an entry type called \bibtype{bookinbook}. |
| 52 |
However, it can happen, especially in classical philology, that a book is edited in other entry type. |
| 53 |
For example a book can be edited in article, in proceedings, in a thesis etc. |
| 54 |
This package provides new bibliographic entry types. |
| 55 |
|
| 56 |
\subsection{History} |
| 57 |
|
| 58 |
Originally, the package was called \pkg{biblatex-bookinarticle}, because it provided only a new \bibtype{bookinarticle} entry type. |
| 59 |
However, many new types were added. |
| 60 |
Changing the name was required, and when the loading's way has changed, a good occasion happened. |
| 61 |
\subsection{Credits} |
| 62 |
|
| 63 |
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}.}. |
| 64 |
|
| 65 |
|
| 66 |
All issues can be submitted, in French or English, in the GitHub issues page\footnote{\url{https://github.com/maieul/biblatex-bookinarticle/issues}.}. |
| 67 |
|
| 68 |
|
| 69 |
\section{What does the package provide?} |
| 70 |
|
| 71 |
The package provides: |
| 72 |
\begin{itemize} |
| 73 |
\item New entry types. |
| 74 |
\item Inheritance's mechanism for these entry types. |
| 75 |
\item Integration of the entry types following the standard bibliography's styles of biblatex. |
| 76 |
\item Integration of the new fields of the \pkg{biblatex-morenames} package. |
| 77 |
\item New fields when required and not defined in \pkg{biblatex-morenames} package. |
| 78 |
\end{itemize} |
| 79 |
|
| 80 |
|
| 81 |
\section{Loading package} |
| 82 |
|
| 83 |
The package requires \emph{biblatex} 3.4 or later. |
| 84 |
|
| 85 |
|
| 86 |
As the package defines new fields, you must load it as a \verb+bibstyle+ option of \biblatex package. |
| 87 |
|
| 88 |
\begin{minted}{latex} |
| 89 |
\usepackage[citestyle=yourcitationstyle,bibstyle=bookinother]{biblatex} |
| 90 |
\end{minted} |
| 91 |
|
| 92 |
Notes that the \namebibstyle{bookinother} bibliography's style automatically loads \namebibstyle{verbose} bibliography's style, which means it is compatible with all the \emph{verbose-xxx} and \namebibstyle{authortitle-xxx} bibliography's styles of \biblatex, because all of them are identical to the \namebibstyle{verbose} \textbf{bibliography style}. |
| 93 |
|
| 94 |
Hoewever, if you want to use an other bibliography's style, you can use the \pkg{biblatex-multiple-dm} package, but the uniformity can't be assured. |
| 95 |
|
| 96 |
In any case, you can choose your own \textbf{citation style}. |
| 97 |
|
| 98 |
\label{morenames}If you need to use this package with package which also requires loading \emph{via} the \verb+bibstyle+ option, as for example \pkg{biblatex-morenames}, just use the \pkg{biblatex-multiple-dm} package, in the following way: |
| 99 |
|
| 100 |
\begin{minted}{latex} |
| 101 |
\usepackage[tools={bookinother,morenames},bibstyle=verbose]{biblatex-multiple-dm} |
| 102 |
\usepackage[citestyle=verbose,bibstyle=multiple-dm]{biblatex} |
| 103 |
\end{minted} |
| 104 |
|
| 105 |
If you want to use this package with \namebibstyle{alphabetic-xxx} or \namebibstyle{numeric-xx} bibliography style, also use the \pkg{biblatex-multiple-dm} package, changing the \verb+bibstyle+ option. |
| 106 |
|
| 107 |
\begin{minted}{latex} |
| 108 |
\usepackage[tools={bookinother},bibstyle=numeric]{biblatex-multiple-dm} |
| 109 |
\usepackage[citestyle=numeric,bibstyle=multiple-dm]{biblatex} |
| 110 |
\end{minted} |
| 111 |
|
| 112 |
\section{The new entry types} |
| 113 |
|
| 114 |
\subsection{Using crossref mechanisme} |
| 115 |
|
| 116 |
|
| 117 |
The package provides new entry types in the form of \bibtype{bookin\meta{othertype}}. |
| 118 |
The best way to manage these entry types is to use the crossref mechanism of biber. |
| 119 |
So the \bibfield{crossref} field of a \bibtype{bookin\meta{othertype}} entry should refers to the main \bibtype{\meta{othertype}} entry. |
| 120 |
|
| 121 |
The package also provides new \bibtype{in\meta{othertype}} entry types. |
| 122 |
The only differences with the \bibtype{bookin\meta{othertype}} entry types is that the \bibfield{title} is, with standard styles, printed in roman font and wrapped in quotation marks. |
| 123 |
|
| 124 |
\subsection{Fields} |
| 125 |
|
| 126 |
In the following parts of this handbook, we will describe, for each entry type, the fields inheritance mechanism. |
| 127 |
|
| 128 |
Here is a list of fields which are NOT inherited : |
| 129 |
\begin{itemize} |
| 130 |
\item \bibfield{author} means the author of the edited (ancient) book. |
| 131 |
\item \bibfield{bookineditor} means the editor of the edited (ancient) book. If this field is equal to the \bibfield{editor} field, the last one is not printed. |
| 132 |
\item \bibfield{title} means the title of the edited (ancient) book. |
| 133 |
\item \bibfield{subtitle} means the subtitle of the edited (ancient) book. |
| 134 |
|
| 135 |
\end{itemize} |
| 136 |
|
| 137 |
If you use the \bibfield{ineditor} field of the \pkg{biblatex-morenames} package, it will be inherited as \bibfield{bookeditor} field. |
| 138 |
|
| 139 |
Note that the package takes account of the \bibfield{maineditor} field of the \pkg{biblatex-morenames} package, if loaded. |
| 140 |
|
| 141 |
Also note that the \bibfield{bookineditor} field is not added in the style of the \bibtype{bookinbook} entry type, because that is a standard \biblatex\ entry type. |
| 142 |
Use the \pkg{biblatex-morenames} package to add this field to the style of \bibtype{bookinbook}. |
| 143 |
|
| 144 |
|
| 145 |
% Here, a loop on the entry type, to automatically generate the handbook |
| 146 |
|
| 147 |
\def\firstofthree#1#2#3{#1} |
| 148 |
\def\secondofthree#1#2#3{#2} |
| 149 |
\def\thirdofthree#1#2#3{#3} |
| 150 |
\renewcommand{\do}[1]{% |
| 151 |
\edef\entrytype{\firstofthree#1}% |
| 152 |
\edef\entrykey{\secondofthree#1}% |
| 153 |
\edef\entrymore{\thirdofthree#1}% |
| 154 |
\newpage\subsection{\bibtype{bookin\entrytype}} |
| 155 |
\subsubsection{Meaning} |
| 156 |
For book edited in a \bibtype{\entrytype} entry. |
| 157 |
\subsubsection{.bib example} |
| 158 |
|
| 159 |
\inputminted[breaklines]{latex}{example-bookin\entrytype.bib} |
| 160 |
|
| 161 |
\subsubsection{Fields inheritance} |
| 162 |
The graph~\ref{example-bookin\entrytype} shows the fields inheritance. |
| 163 |
\begin{figure} |
| 164 |
\centering |
| 165 |
\includegraphics[height=0.9\textheight]{example-bookin\entrytype.pdf} |
| 166 |
\label{example-bookin\entrytype} |
| 167 |
\caption{Inheritance related to the \bibtype{bookin\entrytype} entry type} |
| 168 |
\end{figure} |
| 169 |
\subsubsection{Output example} |
| 170 |
\begin{quotation} |
| 171 |
\cite{\entrykey} |
| 172 |
\end{quotation} |
| 173 |
\entrymore |
| 174 |
} |
| 175 |
|
| 176 |
% For each entry of the csvlist: |
| 177 |
% 1) The main type |
| 178 |
% 2) The name of the entry for demonstration |
| 179 |
% 3) More texts to add… |
| 180 |
\docsvlist{% |
| 181 |
{{article}{BHG226e}{}},% |
| 182 |
{{collection}{Aristotle2016}{% |
| 183 |
\unexpanded{\subsubsection{About \bibtype{bookinreference}} |
| 184 |
The package also provides a \bibtype{bookinreference} entry type for book edited in a \bibtype{reference}. |
| 185 |
This is a more specific variant of \bibtype{bookincollection}. |
| 186 |
The standard styles will treat this entry type as an alias for \bibtype{bookincollection}. |
| 187 |
}}},% |
| 188 |
{{inarticle}{Cohn1891_txt}{}},% |
| 189 |
{{inbook}{Laudo}{\unexpanded{We use the \emph{biblatex-anonymous} package to manage the anonymous entry here.}}}, |
| 190 |
{{incollection}{AcTiteLatin}{% |
| 191 |
\unexpanded{\subsubsection{About \bibtype{bookininreference}} |
| 192 |
The package also provides a \bibtype{bookininreference} entry type for book edited in a \bibtype{inreference}. |
| 193 |
This is a more specific variant of \bibtype{bookinincollection}. |
| 194 |
The standard styles will treat this entry type as an alias for \bibtype{bookinincollection}. |
| 195 |
}}},% |
| 196 |
{{inproceedings}{Aristotle2012}{}},% |
| 197 |
{{journal}{Alexander_Aphrodisias}{}},% |
| 198 |
{{proceedings}{Aristotle2015}{}},% |
| 199 |
{{thesis}{GuilielmusdeBoldensele}{% |
| 200 |
\unexpanded{\subsubsection{About the type of thesis} |
| 201 |
As for the standard \bibtype{thesis} entry type, a \bibtype{bookinthesis} can contain a \bibfield{type} field containing one the following key: |
| 202 |
\begin{description} |
| 203 |
\item[mathesis] For a master's thesis. |
| 204 |
\item[phdthesis] For a phd's thesis. |
| 205 |
\item[candthesis] For a candidate's thesis. |
| 206 |
\end{description} |
| 207 |
The value of this field is automatically inherited from the main entry. |
| 208 |
The package also provides two entry types: |
| 209 |
\begin{itemize} |
| 210 |
\item \bibtype{bookinmathesis} for book edited in a \bibtype{mathesis}; |
| 211 |
\item \bibtype{bookinphdthesis} for book edited in a \bibtype{phdthesis}. |
| 212 |
\end{itemize} |
| 213 |
}}},% |
| 214 |
} |
| 215 |
\section{Customization} |
| 216 |
|
| 217 |
The ways new entry types are printed are derived from the \verb+standard.bbx+ bibliography's style. You can customize it by overriding bibliographic macros or bibliographic drivers. Look at the \verb+bookinother.bbx+file. |
| 218 |
|
| 219 |
\section{Change history} |
| 220 |
|
| 221 |
|
| 222 |
\begin{changelog} |
| 223 |
|
| 224 |
\begin{release}{2.3.3}{2020-03-02} |
| 225 |
\item Fix spurious spaces. |
| 226 |
\end{release} |
| 227 |
\begin{release}{2.3.2}{2020-01-20} |
| 228 |
\item Declare correctly the new entrytypes to Biber. |
| 229 |
\end{release} |
| 230 |
\begin{release}{2.3.1}{2017-11-19} |
| 231 |
\item Fix volume format for \bibtype{bookinjournal} type. |
| 232 |
\end{release} |
| 233 |
\begin{release}{2.3.0}{2017-03-27} |
| 234 |
\item Improve compatibility with \emph{biblatex-opcit-booktitle} package for \bibtype{inarticle} and related entrytypes. |
| 235 |
\end{release} |
| 236 |
|
| 237 |
\begin{release}{2.2.1}{2016-02-08} |
| 238 |
\item Use `title' bibmacro and not directly the field in \bibtype{ininbook} driver. |
| 239 |
\end{release} |
| 240 |
|
| 241 |
\begin{release}{2.2.0}{2016-09-08} |
| 242 |
\item Add compatibility with \emph{biblatex-opcit-booktitle} package's mechanism. |
| 243 |
\item Add \bibtype{bookininarticle} and \bibtype{ininarticle} entrytypes. |
| 244 |
\item Add \bibtype{bookininbook} and \bibtype{ininbook} entrytypes. |
| 245 |
\item Use \cs{printdelim}\verb+{nametitledelim}+ instead of directly calling \cs{labelnamepunct}. |
| 246 |
\item Don't define again \verb+bybookineditor+ macro if already defined by \emph{biblatex-morenames}. |
| 247 |
\item Fix bug with inheritance of \bibfield{titleaddon} and related field. |
| 248 |
\item If the \bibfield{bookineditor} or \bibfield{ineditor} field is equal to the\bibfield{editor} field, the last one is not printed. |
| 249 |
\end{release} |
| 250 |
|
| 251 |
\begin{release}{2.1.1}{2016-06-16} |
| 252 |
\item Use \cs{DeclareStyleSourceMap} instead of \cs{DeclareSourceMap}. |
| 253 |
\end{release} |
| 254 |
|
| 255 |
\begin{release}{2.1.0}{2016-06-06} |
| 256 |
\item Add message to make more detectable breaking compatibility with new release of biblatex. |
| 257 |
\end{release} |
| 258 |
|
| 259 |
\begin{release}{2.0.0a}{2016-04-16} |
| 260 |
\item Fix typo. |
| 261 |
\end{release} |
| 262 |
|
| 263 |
\begin{release}{2.0.0}{2016-04-06} |
| 264 |
\item Change name to \pkg{biblatex-bookinother}. |
| 265 |
\item Loading as a \biblatex bibliographic style and not more as a \LaTeX\ package. |
| 266 |
\item Add \bibtype{bookincollection}, \bibtype{bookininproceedings}, \bibtype{bookininreference}, \bibtype{bookinproceedings}, \bibtype{bookinreference} and related. |
| 267 |
\item Prevent inheritance of \bibfield{shorttitle}, \bibfield{sorttitle}, \bibfield{indextitle}, \bibfield{indexsorttitle} fields. |
| 268 |
\item Add field \bibfield{bookeditor} and \bibfield{bookineditor}. |
| 269 |
\item Compatibility with the \pkg{biblatex-morenames} package. |
| 270 |
\end{release} |
| 271 |
|
| 272 |
\begin{release}{1.3.1}{2016-02-24} |
| 273 |
\item Fix bug added in v.1.3.0 which made some fields disappeared, even in for standard types. |
| 274 |
\end{release} |
| 275 |
|
| 276 |
\begin{release}{1.3.0}{2016-02-11} |
| 277 |
\item Add \bibtype{bookinthesis} and \bibtype{inthesis} and related. |
| 278 |
\end{release} |
| 279 |
|
| 280 |
\begin{release}{1.2.0a}{2016-02-07} |
| 281 |
\item Fix handbook. |
| 282 |
\end{release} |
| 283 |
|
| 284 |
\begin{release}{1.2.0}{2016-02-05} |
| 285 |
\item Formate \bibfield{series}, \bibfield{volume} and \bibfield{number} fields of \bibtype{inarticle} and \bibtype{bookinarticle} entries as \bibfield{series}, \bibfield{volume} and \bibfield{number} fields of \bibtype{article} entries. |
| 286 |
\end{release} |
| 287 |
|
| 288 |
\begin{release}{1.1.2}{2015-02-05} |
| 289 |
\item Use the \bibfield{shortauthor} field to define the \bibfield{labelname} field (useful for some citation style, like authortitle). |
| 290 |
\end{release} |
| 291 |
|
| 292 |
\begin{release}{1.1.1}{2014-11-03} |
| 293 |
\item Delete a false and not need test in the driver. |
| 294 |
\item Compatibility with biblatex-dw family's styles. |
| 295 |
\end{release} |
| 296 |
\begin{release}{1.1.0}{2014-10-09} |
| 297 |
\item Add \bibtype{bookinincollection} and \bibtype{inincollection}. |
| 298 |
\end{release} |
| 299 |
|
| 300 |
\begin{release}{1.0.0}{2014-07-02} |
| 301 |
\item First public release. |
| 302 |
\end{release} |
| 303 |
\end{changelog} |
| 304 |
\end{document} |