Debian Codegraph @

texmf-dist/doc/latex/biblatex-manuscripts-philology/documentation/biblatex-manuscripts-philology.tex

raw
1 \documentclass{ltxdockit}[2011/03/25]
2 \usepackage{btxdockit}
3 \usepackage{metalogo}
4 \usepackage{fontspec}
5 \usepackage[mono=false]{libertine}
6 \usepackage{microtype}
7 \usepackage[american]{babel}
8 \usepackage[strict]{csquotes}
9 \setmonofont[Scale=MatchLowercase]{DejaVu Sans Mono}
10 \usepackage{shortvrb}
11 \usepackage{pifont}
12 \usepackage{minted}
13 % Useful commands
14 \newcommand{\biblatex}{biblatex\xspace}
15 \pretocmd{\bibfield}{\sloppy}{}{}
16 \pretocmd{\bibtype}{\sloppy}{}{}
17 \newcommand{\meta}[1]{\texttt{<#1>}}
18 % Meta-datas
19 \titlepage{%
20 title={Manuscripts description for philology with biblatex},
21 subtitle={New data types},
22 email={maieul <at> maieul <dot> net},
23 author={Maïeul Rouquette},
24 revision={2.1.4},
25 date={01/05/2023},
26 url={https://github.com/maieul/biblatex-manuscripts-philology}}
27
28
29 \begin{document}
30
31 \printtitlepage
32 \tableofcontents
33 \section{Introduction}
34 \subsection{Goals}
35 The \biblatex package defines some standard fields for entry, and allows the use
36 of extra fields, like \bibfield{usera}, \bibfield{userb}. However, the number of
37 extra fields needed to describe manuscripts in an introduction of a critical edition
38 of classical texts is too great to use these fields' names without mistake.
39
40 The aim of this package is twofold:
41
42 \begin{itemize}
43 \item Provides new datatype: \bibtype{manuscripts} with appropriate fields.
44 \item Provides new bibliography styles to print the list of manuscripts:
45 \begin{itemize}
46 \item As a detailed list of witnesses of a text.
47 \item As a \emph{conspectus siglorum}.
48 \end{itemize}
49 \end{itemize}
50
51 You can see minimal example in the file \href{file:example.pdf}{example.pdf}.
52 \subsection{Credits}
53
54 This package was created for Maïeul Rouquette's
55 PhD\footnote{\url{http://apocryphes.hypothese.org}.} in 2014. It is licenced on
56 the \emph{\LaTeX\ Project Public
57 Licence}\footnote{\url{http://latex-project.org/lppl/lppl-1-3c.html}.}.
58
59 All issues can be submitted, in French or English, in the GitHub issues page\footnote{\url{https://github.com/maieul/biblatex-manuscripts-philology/issues}.}.
60
61 \section{Requirement}
62
63 This package needs \biblatex~3.3 or later.
64
65 \section{New type and fields}
66
67 This package defines one new bibtype \bibtype{manuscript}, which is to be used to define a manuscript.
68
69 \subsection{Mandatory}
70 This bibtype has these mandatory fields:
71
72 \begin{fieldlist}
73
74 \fielditem{collection}{literal} the collection in the library. For example:
75 \verb+Supplément grec+ or \verb+Vaidyaka+.
76
77 \fielditem{location}{literal} the city or place where the manuscript is kept. For
78 example: \verb+Paris+ or \verb+Oxford+ or \verb+Varanasi+.
79
80 \fielditem{library}{literal} the library where the manuscript is kept. For example:
81 \verb+Bibliothèque nationale de France+ or \verb+Sarasvatī Bhavan Library+.
82
83
84 \fielditem{shelfmark}{literal} the shelfmark in the collection. For example:
85 \verb+241+. Do not prefix with \enquote{MS}.
86 \end{fieldlist}
87
88 \subsection{Optional}
89 This bibtype can use the optional fields:
90
91 \begin{fieldlist}
92
93 \fielditem{bookpagination}{key} the pagination or foliation of the manuscript
94 which is studied. The standard \biblatex pagination keys are allowed, but the
95 package adds a new key: \texttt{folio}.
96
97 The value of this field will be used
98 when printing the \bibfield{pages} and \bibfield{pagetotal}.
99 E.g., ``ff.~3--5'' (when \bibfield{bookpagination} =
100 \enquote{folio}) or ``pp.~88--99'' (\enquote{page}). See the \biblatex manual for details.
101
102 \fielditem{columns}{integer} the number of column by pages. Basically, only two numbers are allowed: \verb+1+ or \verb+2+.
103
104 \fielditem{dating}{literal} the dating of the manuscript. It can be for example a
105 century.
106
107
108 \label{field:layer}\fielditem{layer}{key} for palimpsests, the layer which is studied. There is two possibility:
109 \begin{description}
110 \item[inf] for the inferior layer.
111 \item[sup] for the superior layer
112 \end{description}
113
114 \fielditem{shortcollection}{literal} the abreviated form of the collection. Not used by the default style.\label{field:shortcollection}
115
116
117 \fielditem{shortlibrary}{literal} the abreviated form of the library. Not used by the default style.
118
119
120 \fielditem{pages}{range} the pages which are studied in the manuscript. In this
121 field, you can use the macros \cs{recto} and \cs{verso}. This value will be used
122 when formatting citations.
123
124 Use this field also for manuscript folio numbers. E.g., \enquote{3\cs{verso}--5\cs{recto}}.
125
126 \fielditem{pagetotal}{integer} the number of pages or folios in the manuscript.
127
128
129 \fielditem{pagination}{key} the pagination of part of manuscript which is studied.
130 The standard pagination keys are allowed, but the package adds a new key:
131 \verb+folio+. This value will control the formatting the
132 $\langle$\emph{postnote}$rangle$ argument of a citation command (see the
133 \biblatex manual for details).
134
135
136 \fielditem{shorthand}{literal} the shorthand of the manuscript. If this field is empty, the entry key will be used as shorthand, except if the version \opt{manuscript-noautoshorthand} is loaded. See \secref{noautoshorthand}.
137
138 \listitem{script}{key or literal} the script, i.e. the \emph{writing system} of the
139 manuscript (for example Devanāgarī, Śāradā, Cyrillic).
140 You can use or a key-value system, or just use literal value. No default keys are defined.
141 To define your own key, see \secref{key-definition}.
142
143
144 \fielditem{support}{key or literal} the support of the manuscript, which will be translated into your work language. These keys are defined: \begin{itemize}
145 \item \texttt{birch-bark};
146 \item \texttt{palm-leaf};
147 \item \texttt{papyrus};
148 \item \texttt{paper};
149 \item \texttt{parchment}.\footnote{Historically,
150 the keyword was \texttt{pergament}, which is kept only for ascendant compatibility.}
151 \end{itemize}
152 To define your own key, see \secref{key-definition}.
153 \end{fieldlist}
154
155 \subsection{Special}\label{fields:special}
156 There are also many special fields, which are printed only if we ask for them explicitly:
157
158 \begin{fieldlist}
159 \fielditem{annotation}{literal} some annotation about the manuscript and its contents. If you want to add paragraphs inside it, you must use the \cs{par} command between each paragraph.
160
161
162 \fielditem{catalog}{special} a list of catalogues which describe the manuscript. You must fill this field with arguments of a \cs{cites} command. For example:
163
164 \begin{minted}{tex}
165 @manuscript{key,
166 field1 = {value1},
167 field2 = {value2},
168 catalog = {[prenote1][postnote1]{key1}[prenote2][postnote2]{key2}}
169 \end{minted}
170
171 \fielditem{contents}{literal} description of the manuscript's contents, can be used
172 with or instead of \bibfield{annotation}. It starts a new block into the description
173 output. If you want to add paragraphs inside it, you must use the \cs{par}
174 command between each paragraph. E.g., ``Covers chapters 1--3 only.''
175
176
177 \fielditem{origin}{list} the places where the manuscript was written.
178
179 \fielditem{owner}{name} the name(s) of the owner(s) of the manuscript in the past.
180
181 \fielditem{scribe}{list} the name(s) of the scribe(s).
182
183 \end{fieldlist}
184
185 \section{Use}
186 \subsection{Loading}
187
188 When loading the \biblatex package, use the option \opt{bibstyle} with value equal to \opt{manuscripts}.
189
190 \begin{minted}{latex}
191 \usepackage[bibstyle=manuscripts,otheroption…]{biblatex}
192 \end{minted}
193
194 \label{noautoshorthand}If you don't want the \bibfield{shorthand} of the manuscript be auto-defined from the entry key, use \opt{manuscripts-noautoshorthand instead}.
195
196 \begin{minted}{latex}
197 \usepackage[bibstyle=manuscripts-noautoshorthand,otheroption…]{biblatex}
198 \end{minted}
199
200 The bibliographic style for other type entries is \enquote{verbose}, which call \enquote{authortitle} . However, if you need other bibliographic style, use the \verb+biblatex-multiple-dm+ package.
201
202 \subsection{Citation of one manuscript}
203
204 The manuscript description is supposed to be used with a \opt{citestyle} of the \emph{verbose} family (see the \biblatex handbook), but you can use any other \opt{citestyle}. The only problematic point is that the manuscript citation will be verbose.
205
206 So, if you use:
207 \begin{minted}{latex}
208 \cite{manuscriptkey}
209 \end{minted}
210
211 the full reference of the manuscript will be printed (see the example file). However, you can use \cs{shcite} to print directly the shorthand of the manuscript:
212
213 \begin{minted}{latex}
214 \shcite{manuscriptkey}
215 \end{minted}
216
217 You can also use \cs{detailscite} to print the description of the manuscript including the \enquote{special} fields (\ref{fields:special}), like \bibfield{owner} and \bibfield{annotation}.
218
219 \begin{minted}{latex}
220 \detailscite{manuscriptkey}
221 \end{minted}
222
223
224 A \cs{detailscites} version of the commands does the same thing, but for multiple manuscripts.
225
226 \begin{minted}{latex}
227 \detailscites{manuscriptkey1}{manuscriptkey2}{…}{manuscriptkeyn}
228 \end{minted}
229
230 \subsection{List of manuscripts: \emph{conspectus siglorum}}
231
232 You can use the standard command \cs{printshorthands} with appropriate options:
233
234 \begin{minted}{latex}
235 \printshorthands[type=manuscript,title=Conspectus siglorum]
236 \end{minted}
237
238 In the previous example, with use one option to print shorthands only for manuscripts entries, and we set the title to the classical one \enquote{Conspectus siglorum}.
239
240 \subsection{List of manuscripts with detailed fields}
241
242 If you want to print a list of manuscripts with detailed fields listed in \secref{fields:special}, just use the \opt{env} option, with value equals to
243 \cnt{details}.
244
245 \begin{minted}{latex}
246 \printshorthands[type=manuscript,env=details,title=Description of manuscripts]
247 \end{minted}
248
249 In this case, you must run two times biber: one after the first run of \LaTeX\ and one after the second run, to add in the \file{.bbl} the catalogues. After that, run a third time \LaTeX.
250
251 If you use \opt{manuscripts-noautoshorthand} bibstyle, this list could contain manuscripts without shorthand. By default, the descriptions of such manuscripts will be aligned on the left of the shorthands column.
252
253 \label{bibcheck}Another solution is to make two lists: one containing the manuscripts which have shorthand and one containing the manuscripts which have not shorthand. You can add to your \cmd{printbiblography} or \cmd{printshorthands} commands a \opt{bibcheck} option, equal to \opt{withshorthand} or \opt{withoutshorthand}. As you:
254 \begin{minted}{latex}
255 \printshorthands[
256 type=manuscript,
257 env=details,
258 title=Description of used manuscripts,
259 check=withshorthand
260 ]
261 \printbibliography[
262 type=manuscript,
263 env=details,
264 title=Description of other manuscripts,
265 check=withoutshorthand
266 ]
267 \end{minted}
268
269 Maybe, you want to print the details but not the shorthand, even if the manuscripts have shorthands.
270 In this case, use \cs{printbibliography} with the \opt{env} option equals to
271 \cnt{details-noshorthand}.
272 \begin{minted}{latex}
273 \printbibliography[
274 type=manuscript,
275 env=details-noshorthand,
276 title=Description of manuscripts,
277 ]
278 \end{minted}
279 \subsection{Sorting list of manuscripts without shorthand}
280
281 \label{sorting} If you doesn't use the shorthands' feature, you can want to print a list of manuscripts, sorted by Town, Library, Collection, Shelfmark.
282
283 For this purpose, you can use, the option \opt{sorting=manuscripts} of a \env{refcontext} environment.
284
285 \begin{minted}{latex}
286 \begin{refcontext}[sorting=manuscripts]{}
287 \printbibliography[
288 type=manuscript,
289 title=Description of other manuscripts,
290 ]
291 \end{refcontext}
292 \end{minted}
293
294 You can use the special field \bibfield{sortshelfmark} if the way you shelf marks are sorted is not the way they are printed (like in normal entry type, you can use \bibfield{sorttitle}.
295
296 However, using different sorting scheme for different bibliography in the same document implies that biber will insert many time the bibliographic entries in the \verb+.bbl+ file, once by sorting scheme.
297 If you have a bib bibliography, that could make \LaTeX\ finishing the next run by a\\ \verb`TeX capacity exceeded, sorry [main memory size=<something>]`
298 \\
299 because this will full the memory\footnote{The problem should not happen if you use \LuaLaTeX, because, contrary to \XeLaTeX\ and \LaTeX, \LuaLaTeX\ has no limit in memory, except the limit of the computer\ldots\ which should be enough with recent computer.}.
300
301 In order to prevent this, the package also provides sorting schemes to get the same sorting scheme for manuscripts and other entries, even if separated in the final bibliography.
302 The following sorting schemes are adapted for the standard \biblatex\ sorting schemes:
303 \begin{itemize}
304 \item \verb`nty+manuscripts`, adapted from \verb+nty+;
305 \item \verb-nyt+manuscripts-, adapted from \verb-nyt-;
306 \item \verb-nyvt+manuscripts-, adapted from \verb-nyvt-.
307 \end{itemize}
308
309 To use these scheme, don't use \env{recontext} environment, but simply the global option when loading \biblatex:
310 \begin{minted}{tex}
311 \usepackage[sorting=nty+manuscripts,…]{biblatex}
312 \end{minted}
313
314 If you need more sorting scheme, please contact us, we could integrate them easily.
315
316 \section{Customization}
317
318 \subsection{Create your own keys}\label{key-definition}
319
320 The \bibfield{support} and \bibfield{script} fields can contains either literal string, either key that \biblatex will transform to a value.
321
322 That use only standard \biblatex localization string.
323
324 To define your owns key, add into your preamble:
325 \begin{minted}{tex}
326 \NewBibliographyString{<key1>}
327 \NewBibliographyString{<key2>}
328 …
329 \NewBibliographyString{<keyn>}
330 \DefineBibliographyStrings{%
331 <key1> = {<value1},
332 <key2> = {<value2>},
333 …,
334 <keyn> = {<valuen>}
335 }
336
337 \end{minted}
338
339 Where \meta{key1}, \meta{key2} \ldots\ \meta{keyn} must be replaced by the keys, and \meta{value1}, \meta{value2} \ldots\ \meta{valuen} by the value.
340
341
342 \subsection{Commands}
343
344 You can redefine, with \cs{renewcommand} some commands defined in \file{manuscripts.bbx}. The commands starting with \cs{mk...} take one argument, the other take no argument. In these command, use the punctuation commands of \biblatex.
345
346 \begin{ltxsyntax}
347 \csitem{collectionshelfmarkpunct} the punctuation between \bibfield{collection} and \bibfield{shelfmark}. By default \cs{addspace}.
348
349 \csitem{columnslayerpunct} the punctuation between \bibfield{columns} and \bibfield{layer}. By default \cs{addsemicolon}\cs{addspace}.
350
351 \csitem{datingpagespunct} the punctuation between \bibfield{dating} and \bibfield{pages}. By default \cs{addcomma}\cs{addspace}. The \cs{isdot} is automatically called when printing \bibfield{dating} field.
352
353 \csitem{librarycollectionpunct} the punctuation between \bibfield{library} and \bibfield{collection}. By default \cs{addcomma}\cs{addspace}.
354
355 \csitem{mkcolumns} the way the \bibfield{columns} are printed. By default, in parens.
356
357 \csitem{mkcolumnslayer} the way the \bibfield{columns} and \bibfield{layer} fields are printed together. By default, in parens.
358
359 \csitem{mklocation} the way the \bibfield{location} is printed. By default, with the command \cs{mkbibnamefamily}.
360
361 \csitem{mkmanuscriptdescriptionlabel} the way the label are printed before the special fields. By default, in bold, followed with \cs{manuscriptdescriptionlabelpunct}.
362
363 \csitem{mkmanuscriptdescriptionlabelparagraphed} the way the label are printed before the special fields which can contains paragraph (e.g. \bibfield{content}.
364 B default, in bold, followed with \cs{par}.
365
366 \csitem{mkshcite} the way the shorthand is printed when using \cs{shcite}. By default, no special formatting.
367
368 \csitem{locationlibrarypunct} the punctuation between \bibfield{location} and \bibfield{library}. By default \cs{addcolon}\cs{addspace}.
369
370 \csitem{manuscriptdescriptionlabelpunct} the punctuation between label and text, for the special fields. By default \cs{addcolon}\cs{addspace}.
371
372 \csitem{moreinterpunct} the punctuation between each special fields when printing in the same paragraph. By default \cs{addcolon}\cs{addspace}.
373
374 \csitem{pagetotalpagespunct} the punctuation between \bibfield{pagetotal} and \bibfield{pages}. By default \cs{addcolon}\cs{addspace}.
375 \end{ltxsyntax}
376
377 \subsection{Commands to use in the \bibfield{pages} field}
378
379 In the pages field, you can use \cs{recto} and \cs{verso} command when you speak of folios. Default value are \cnt{r} and \cnt{v} but you can change them.
380
381 \subsection{Localization strings}
382
383 Some specific localization strings are defined in the \file{manucripts-xxx.lbx} files. Read the \biblatex handbook to know how to customize it.
384
385 \subsection{Macros and field formats}
386
387 The \file{manuscripts-shared.bbx} file defines bibmacros and field formats (read the \biblatex handbook to know more about bibmacro and field format). We can't list all of them, but you can look on them to know how to customize more finely the manuscripts description.
388
389 \section{Use with biblatex-realauthor}\label{biblatex-multiple-dm}
390
391 To use this package with the features of \verb+biblatex-realauthor+, you must use the package \verb+biblatex-multiple-dm+.
392
393 \section{Migration to v.2.0.0}
394
395 The version 2.0.0 adds some modification which could require modifications in your own customization.
396
397 \begin{enumerate}
398 \item We have decided to prefix all bibmacros concerning manuscript with \verb+manuscript:+.
399 If you have redefined one of the following macros, or if you have created your own macros which call them, you should adapt your code:
400 \begin{itemize}
401 \item \verb+annotation+;
402 \item \verb+catalog+;
403 \item \verb|collection+shelfmark|;
404 \item \verb+date/dating+;
405 \item \verb|more+annotation+catalog|;
406 \end{itemize}
407 \item The \verb|support+dating| does not exist anymore.
408 \item Now, the annotation field is introduced with a label.
409 If you don't want this label, add into your preamble/custom style:
410 \begin{minted}{tex}
411 \DeclareFieldFormat{annotation}{#1}
412 \end{minted}
413 \end{enumerate}
414 \section{Change history}
415
416 \begin{changelog}
417
418 \begin{release}{2.1.4}{2023-05-01}
419 \item Add latin translation (Domenico Cufalo)
420 \end{release}
421 \begin{release}{2.1.2}{2020-01-07}
422 \item Fix bug when changing language in the middle of an handbook.
423 \end{release}
424
425 \begin{release}{2.1.1}{2019-10-02}
426 \item Fix warning with sorting schemes.
427 \end{release}
428
429 \begin{release}{2.1.0}{2018-09-30}
430 \item Add \cs{detailcite} and \cs{detailscites} commands.
431 \item Add \opt{env}=\cnt{details-noshorthand} option to \cs{printbibliography}.
432 \end{release}
433
434 \begin{release}{2.0.0}{2018-09-19}
435 \item Add \bibfield{contents} and \bibfield{script} fields.
436 \item Add new support types.
437 \item Improve handbook (thanks to Dominik Wujastyk).
438 \item Really add italian translation.
439 \end{release}
440
441 \begin{release}{1.12.3}{2017-11-26}
442 \item Add compatibility with biblatex 3.8.
443 \end{release}
444 \begin{release}{1.12.2}{2017-01-31}
445 \item Fix spurious space after citation of a manuscript.
446 \end{release}
447
448 \begin{release}{1.12.1}{2016-10-28}
449 \item Move url after folio and columns data.
450 \end{release}
451
452 \begin{release}{1.12.0}{2016-10-23}
453 \item New sorting schemes.
454 \end{release}
455
456 \begin{release}{1.11.0}{2016-09-21}
457 \item Fix typographical bug when using both \bibfield{layer} and \bibfield{columns} fields without \bibfield{pages} field.
458 \end{release}
459
460 \begin{release}{1.10.1}{2016-09-07}
461 \item Use \cs{mkbibnamefamily} instead of \cs{mkbibnamelast} (biblatex 3.3 and later).
462 \end{release}
463
464 \begin{release}{1.10.0}{2016-06-07}
465 \item Add error message to know more quickly break compatibility with new releases of biblatex.
466 \end{release}
467 \begin{release}{1.8.0}{2016-03-11}
468 \item Fix compatibility with \biblatex~3.3.
469 \end{release}
470
471 \begin{release}{1.7.0}{2016-02-10}
472 \item Add italian translation.
473 \end{release}
474
475 \begin{release}{1.6.2}{2015-11-01}
476 \item Fix missing line break before \bibfield{scribe} or \bibfield{owner} fields when \bibfield{origin} field is empty.
477 \end{release}
478
479 \begin{release}{1.6.1a}{2015-05-06}
480 \item Fix typo in handbook
481 \item Insert good version number in the \cmd{ProvidesFile} commands.
482 \end{release}
483
484 \begin{release}{1.6.1}{2014-10-21}
485 \item Add \cs{isdot} after each printing of the \bibfield{dating} field, to allow to use abbreviations with a dot (like \enquote{c.}) without adding a uppercase after. Consequently, \cs{isdot} is deleted from \cs{datingpagespunct}.
486 \end{release}
487
488 \begin{release}{1.6.0}{2014-10-16}
489 \item Patching some bibmacros to prevent lost of manuscript descriptions when using op. cit abreviation.
490 \end{release}
491
492 \begin{release}{1.5.0}{2014-10-08}
493 \item Formating of collection+shelfmark defined in a FielFormat.
494 \item Compatibility with \verb+chicago-notes+ styles.
495 \end{release}
496
497 \begin{release}{1.4.0}{2014-06-23}
498 \item Compatibility with \verb+biblatex-multiple-dm+.\see{biblatex-multiple-dm}
499 \end{release}
500
501
502 \begin{release}{1.3.0}{2014-06-16}
503 \item Add sorting description.\see{sorting}
504 \end{release}
505
506 \begin{release}{1.2.0}{2014-04-07}
507 \item Add \bibfield{layer}.\see{field:layer}
508 \end{release}
509
510 \begin{release}{1.1.1}{2014-03-20}
511 \item Delete \opt{msnoautoshorthand} option and replace it by the \opt{manuscripts-noautoshorthand} style. \see{noautoshorthand}
512 \end{release}
513
514 \begin{release}{1.1.0}{2014-03-15}
515 \item Add \opt{msnoautoshorthand} option.
516 \item Add \bibfield{shortcollection} field.\see{field:shortcollection}
517 \item Add \opt{withshorthand} and \opt{withoutshorthand} bibcheck. \see{bibcheck}
518 \end{release}
519
520 \begin{release}{1.0.0}{2014-01-20}
521 \item First public release.
522 \end{release}
523 \end{changelog}
524 \end{document}