first off: I will very much try to do this myself. I'll probably fail epicly but at least I will have tried :)
If you look into my post history, you will notice I am (forced to) create my own APA-style. My university is very strict on this and points will be deducted if you miss against their citation-laws... During a draft-meeting of my current paper, I was pointed to such a failure.
I would like to use this book in my paper. As you can see, the APA-style is mentioned so this should be a breeze...
However, this book was created in 1947, but it is an edition of a text from back in 1626. Therefor, we have to use the special-invented-university-format:
EDITORS (ed.) (YEAR). AUTHOR. TITLE. (EDITION). PLACE: PUBLISHER.
Meertens, P.J.,N.B. Tenhaef & A. Komter-Kuipers (ed.) (1942). Adrianus Valerius. Nederlandtsche gedenck-clanck. Amsterdam: wereldbibliotheek.
It gets even better :( - If you point to a chapter (The life of Adrianus), written by one of the EDITORS (Meertens), that should also become an entry in the bibliography:
AUTHOR_OF_CHAPTER (YEAR). 'TITLE_OF_CHAPTER'. In: WORK_ABOVE
Meertens, P.J. (1942). 'The Life of Adrianus'. In: Meertens, P.J.,N.B. Tenhaef & A. Komter-Kuipers (ed.) (1942). Adrianus Valerius. Nederlandtsche gedenck-clanck. Amsterdam: wereldbibliotheek.
This! however, should not be confused by a book with multiple writers. Notice (the total lack of) difference :/
The correct citation for this book is
AUTHORS (YEAR). TITLE.
(EDITION). PLACE: PUBLISHER.Absillis, K., Jaspers, J., & Van Hoof, S. (2000). De manke usurpator : over verkavelingsvlaams. Gent: Academia press.
Jaspers, J. (2000). 'Some chapter'. In: Absillis, K., Jaspers, J., & Van Hoof, S.
(red.). (2000). De manke usurpator : over verkavelingsvlaams. Gent: Academia press.
first: the simple questions
- 3de ed. should become (3e dr.) << that e is superscript.
'title' should have single quotes, not double ones- found it (not reflected in the screenshot above the MWE)
now: the main question = about the last two entries of the bibliography.
How can I have biblatex differentiate between these two different type of @books? Can I program a macro in such way that it checks for
- This book has an author and a (or multiple) editors => must be type 1, format accordingly
- This book has only authors => must be type 2, format accordingly
- This book has only editoros => zotero turns this into an @collection, so this falls out of the scope of this question because this is about @books.
the working example:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{refs.bib}
@book{ValeriusNederlandtschegedenckclanck1942,
langid = {dutch},
location = {{Amsterdam}},
title = {Nederlandtsche gedenck-clanck},
pagetotal = {287},
publisher = {{Wereldbibliotheek}},
date = {1942},
author = {Valerius, Adrianus},
editor = {Meertens, Pieter Jacobus and Tenhaeff, Nicolaas Bernardus and Komter-Kuipers, Aafke}
}
@incollection{MeertensAdriaenValeriusleven1942,
langid = {dutch},
location = {{Amsterdam}},
title = {Adriaen Valerius' leven en werken},
booktitle = {Nederlandtsche gedenck-clanck},
publisher = {{Wereldbibliotheek}},
date = {1942},
pages = {V-XXII},
author = {Meertens, Pieter Jacobus},
editor = {Meertens, Pieter Jacobus and Tenhaeff, Nicolaas Bernardus and Komter-Kuipers, Aafke}
}
@book{Usurpator-book-1,
location = {{Gent}},
title = {De Manke Usurpator},
isbn = {978-90-382-2005-5},
pagetotal = {1234},
publisher = {{Academia press}},
date = {2012},
author = {Absillis, Kevin},
edition = {1}
}
@book{Usurpator-book-2,
location = {{Gent}},
title = {De Manke Usurpator},
isbn = {978-90-382-2005-5},
pagetotal = {1234},
publisher = {{Academia press}},
date = {2012},
author = {Absillis, Kevin and Jaspers, Jürgen},
edition = {2}
}
@book{Usurpator-book-3,
location = {{Gent}},
title = {De Manke Usurpator},
isbn = {978-90-382-2005-5},
pagetotal = {1234},
publisher = {{Academia press}},
date = {2012},
author = {Absillis, Kevin and Jaspers, Jürgen and Van Hoof, Sarah},
edition = {3}
}
@incollection{Usurpator-book-3-chapter,
langid = {dutch},
location = {{Gent}},
title = {Some Chapter},
booktitle = {De Manke Usurpator},
publisher = {{Academia press}},
date = {2012},
pages = 123-145,
author = {Absillis, Kevin},
bookauthor = {Absillis, Kevin and Jaspers, Jürgen and Van Hoof, Sarah},
edition = {3}
}
\end{filecontents*}
\usepackage[dutch]{babel} % Nederlands
\usepackage[autostyle]{csquotes} % Context sensitive quotation facilities
\usepackage[bibstyle=authoryear,citestyle=authoryear,giveninits=true,maxnames=3,doi=false,isbn=false,dashed=false,backend=biber]{biblatex}
\addbibresource{refs.bib}
\DeclareDelimFormat{finalnamedelim}{\addspace\&\space} % Multiple authors? => &
% Bold Author and Year
\DeclareFieldFormat{bold}{\mkbibbold{#1}}
\renewbibmacro*{author}{%
\printtext[bold]{%
\ifboolexpr{
test \ifuseauthor
and
not test {\ifnameundef{author}}
}
{\usebibmacro{bbx:dashcheck}
{\bibnamedash}
{\usebibmacro{bbx:savehash}%
\printnames{author}%
\iffieldundef{authortype}
{\setunit{\printdelim{nameyeardelim}}}
{\setunit{\printdelim{authortypedelim}}}}%
\iffieldundef{authortype}
{}
{\usebibmacro{authorstrg}%
\setunit{\printdelim{nameyeardelim}}}}%
{\global\undef\bbx@lasthash
\usebibmacro{labeltitle}%
\setunit*{\printdelim{nonameyeardelim}}}%
\usebibmacro{date+extradate}}}
\renewbibmacro{in:}{%
\ifentrytype{article}
{}
{\printtext{\bibstring{in}\intitlepunct}}}
% article number must be between parenthesis
\renewbibmacro*{volume+number+eid}{%
\printfield{volume}%
% \setunit*{\adddot}% DELETED
\setunit*{\addnbspace}% NEW (optional); there's also \addnbthinspace
\printfield{number}%
\setunit{\addcomma\space}%
\printfield{eid}}
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}
% please don't put p. before pagenumbers
\DeclareFieldFormat[incollection]{pages}{#1}
\DeclareFieldFormat[article]{pages}{#1}
\AtEveryBibitem{%
\clearlist{language}%
\clearfield{pagetotal}%
}
\begin{document}
\section{Valerius}
let me quote this old text by \citeauthor{ValeriusNederlandtschegedenckclanck1942} - which was edited by \citename{ValeriusNederlandtschegedenckclanck1942}{editor}
\citeauthor{MeertensAdriaenValeriusleven1942} wrote an introduction for that text, you know!
\section{Usurpator}
\begin{itemize}
\item \cite{Usurpator-book-1}
\item \cite{Usurpator-book-2}
\item \cite{Usurpator-book-3}
\item \cite{Usurpator-book-3-chapter}
\end{itemize}
\setquotestyle{british} % easiest way for single quotes
\printbibliography
\end{document}
Adrianus Valerius
into thetitle
field? That should roughly give the expected output (give or take, as I said above I don't know what your style does at the moment). Together with a customeditortype
value you could probably get "ed." instead of the standard "red.".@inbook
/@incollection
than you want. Is that also part of your question, will that be a future question or do you already have code for that set up? (If you consider it part of this question, please consider asking a separate, new question about it, so that you only ask one question per question. If you already have code for it set up, it might make sense to add it to the MWE.)@book
), but in the second example you use them with "(red.)" meaning they are editors in an@incollection
, hence the work should be a@collection
. Zotero's heuristic to export 'books' with no authors and only editors as@collection
is quite good (as a rule of thumb, of course there might be edge cases).