editor
roles can be defined by defining three bibstrings for standard biblatex
(see Create new editorial role "organizer" in biblatex, biblatex: Adding an editor as a series editor, not general editor) and an additional fourth string for biblatex-chicago
(see biblatex-chicago: Change translator and editor description in the bibliography, Expand new editor type in biblatex-chicago bibliography).
<role>
- role in singular
<role>s
- role in plural
by<role>
- role expressed for "<role>
'd by"
cby<role>
(biblatex-chicago
only) shortened role for citations
These strings must be made known to biblatex
with \NewBibliographyString
if they don't exist already. Then their values must be defined. In the preamble of a document this is done with \DefineBibliographyStrings{<language>}
, if you are writing an .lbx
file you use \DeclareBibliographyStrings
. As always \DefineBibliographyStrings{<language>}
only accepts one form for the strings whereas \DeclareBibliographyStrings
lets you define a short and a long form.
For an illustrator you thus need
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[notes, backend=biber]{biblatex-chicago}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Book{thompson1972fearandloathing,
author = {Hunter S. Thompson},
title = {Fear and Loathing in {Las} {Vegas}},
year = {1972},
editor = {Ralph Steadman},
subtitle = {A Savage Journey to the Heart of the {American} {Dream}},
publisher = {Random House},
isbn = {0-679-78589-2},
pubstate = {reprint},
editortype = {illustrator},
origdate = {1971-11-11},
origpublisher = {Rolling Stone},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\NewBibliographyString{illustrator}
\NewBibliographyString{illustrators}
\NewBibliographyString{byillustrator}
\NewBibliographyString{cbyillustrator}
\DefineBibliographyStrings{english}{%
illustrator = {illustrator},
illustrators = {illustrators},
byillustrator = {illustrated by},
cbyillustrator = {illustr\adddot},
}
\begin{document}
\cite{thompson1972fearandloathing}
\printbibliography
\end{document}
Note the difference between citation and bibliography. That behaviour is consistent with other roles.
I am also happy to report that egreg and I came to almost the same result when removing unnecessary braces from your .bib
file (I trusted Wikipedia and also protected the "Dream" in "American Dream", but see https://www.merriam-webster.com/dictionary/American%20dream). Braces can destroy the kerning between letter, that means that they should always enclose entire words. Additionally, braces should only be used when necessary, only words that need case protection should be protected (proper names and proper nouns, ...). Finally, you should only use case-protecting braces in title
-like fields, all other fields are normally not touched anyway: There is no point in protecting words in the publisher
field, the same goes for name fields like author
and editor
. Unnecessary braces can actually cause harm, especially in name fields (cf. ! Paragraph ended before \name was complete, Italic text in corporate author).
.bib
entry into a full MWE/MWEB. A full example helps us to get started more quickly (we don't have to mock up a document you already have) and makes sure that we are all talking about the same things. Often details matter and an MWE makes sure we agree about the details.