custom citation format based on custom tag in .bib-file











up vote
1
down vote

favorite












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...



RIS



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 :/



De manke usurpator



The correct citation for this book is




AUTHORS (red.) (YEAR). TITLE. (EDITION). PLACE: PUBLISHER.



Absillis, K., Jaspers, J., & Van Hoof, S. (red.). (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.




now: the question



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 editors => must be type 2, format accordingly


OR! Can I have Biblatex checks for a custom tag "type = {TextEdition}" I can add to the type-1 books?



And YES: we make the distinction between a book with multiple authors and a book with multiple editors :/ And my second example (the usurpator) is an example of a book with multiple editors, according to our holy formatting bible...



EDIT: a book with only editors is a collection, according to zotero. So I need to differentiate between a




  • This book has an author and a (or multiple) editors => must be type 1, format accordingly

  • This book has only authors => must be type 3


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,
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}
}

@collection{Usurpator-collection,
location = {{Gent}},
title = {De Manke Usurpator},
isbn = {978-90-382-2005-5},
pagetotal = {1234},
publisher = {{Academia press}},
date = {2012},
editor = {Absillis, Kevin and Jaspers, Jürgen and Van Hoof, Sarah}
}

end{filecontents*}
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}}}}%
{globalundefbbx@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{addcommaspace}%
printfield{eid}}
DeclareFieldFormat[article]{number}{mkbibparens{#1}}

% please don't put p. before pagenumbers

DeclareFieldFormat[incollection]{pages}{#1}
DeclareFieldFormat[article]{pages}{#1}


begin{document}

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!

and let's look at the difference between the book citetitle{Usurpator-book} and the collection citetitle{Usurpator-collection}


printbibliography
end{document}









share|improve this question




















  • 3




    Any chance you can share with us what you have so far and a few example .bib entries (or at least an attempt at turning the entries shown into .bib format - the exact format may of course vary by implementation) in an MWE? It is so much easier to get started answering questions like these if one does not only see lots of requirements, but also some code to start from.
    – moewe
    2 hours ago








  • 2




    Anyway, FWIW I have never seen such a style and I find it extremely illogical. For the Valerius can't you just put Adrianus Valerius into the title 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 custom editortype value you could probably get "ed." instead of the standard "red.".
    – moewe
    2 hours ago










  • MWE added, as per requested. - I had to leave work before I could provide it in the Original Post, you beat me to it :)
    – LooselySubtle
    1 hour ago








  • 1




    Thanks. The MWE in its current form will give a wildly different output for @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.)
    – moewe
    1 hour ago

















up vote
1
down vote

favorite












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...



RIS



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 :/



De manke usurpator



The correct citation for this book is




AUTHORS (red.) (YEAR). TITLE. (EDITION). PLACE: PUBLISHER.



Absillis, K., Jaspers, J., & Van Hoof, S. (red.). (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.




now: the question



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 editors => must be type 2, format accordingly


OR! Can I have Biblatex checks for a custom tag "type = {TextEdition}" I can add to the type-1 books?



And YES: we make the distinction between a book with multiple authors and a book with multiple editors :/ And my second example (the usurpator) is an example of a book with multiple editors, according to our holy formatting bible...



EDIT: a book with only editors is a collection, according to zotero. So I need to differentiate between a




  • This book has an author and a (or multiple) editors => must be type 1, format accordingly

  • This book has only authors => must be type 3


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,
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}
}

@collection{Usurpator-collection,
location = {{Gent}},
title = {De Manke Usurpator},
isbn = {978-90-382-2005-5},
pagetotal = {1234},
publisher = {{Academia press}},
date = {2012},
editor = {Absillis, Kevin and Jaspers, Jürgen and Van Hoof, Sarah}
}

end{filecontents*}
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}}}}%
{globalundefbbx@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{addcommaspace}%
printfield{eid}}
DeclareFieldFormat[article]{number}{mkbibparens{#1}}

% please don't put p. before pagenumbers

DeclareFieldFormat[incollection]{pages}{#1}
DeclareFieldFormat[article]{pages}{#1}


begin{document}

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!

and let's look at the difference between the book citetitle{Usurpator-book} and the collection citetitle{Usurpator-collection}


printbibliography
end{document}









share|improve this question




















  • 3




    Any chance you can share with us what you have so far and a few example .bib entries (or at least an attempt at turning the entries shown into .bib format - the exact format may of course vary by implementation) in an MWE? It is so much easier to get started answering questions like these if one does not only see lots of requirements, but also some code to start from.
    – moewe
    2 hours ago








  • 2




    Anyway, FWIW I have never seen such a style and I find it extremely illogical. For the Valerius can't you just put Adrianus Valerius into the title 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 custom editortype value you could probably get "ed." instead of the standard "red.".
    – moewe
    2 hours ago










  • MWE added, as per requested. - I had to leave work before I could provide it in the Original Post, you beat me to it :)
    – LooselySubtle
    1 hour ago








  • 1




    Thanks. The MWE in its current form will give a wildly different output for @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.)
    – moewe
    1 hour ago















up vote
1
down vote

favorite









up vote
1
down vote

favorite











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...



RIS



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 :/



De manke usurpator



The correct citation for this book is




AUTHORS (red.) (YEAR). TITLE. (EDITION). PLACE: PUBLISHER.



Absillis, K., Jaspers, J., & Van Hoof, S. (red.). (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.




now: the question



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 editors => must be type 2, format accordingly


OR! Can I have Biblatex checks for a custom tag "type = {TextEdition}" I can add to the type-1 books?



And YES: we make the distinction between a book with multiple authors and a book with multiple editors :/ And my second example (the usurpator) is an example of a book with multiple editors, according to our holy formatting bible...



EDIT: a book with only editors is a collection, according to zotero. So I need to differentiate between a




  • This book has an author and a (or multiple) editors => must be type 1, format accordingly

  • This book has only authors => must be type 3


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,
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}
}

@collection{Usurpator-collection,
location = {{Gent}},
title = {De Manke Usurpator},
isbn = {978-90-382-2005-5},
pagetotal = {1234},
publisher = {{Academia press}},
date = {2012},
editor = {Absillis, Kevin and Jaspers, Jürgen and Van Hoof, Sarah}
}

end{filecontents*}
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}}}}%
{globalundefbbx@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{addcommaspace}%
printfield{eid}}
DeclareFieldFormat[article]{number}{mkbibparens{#1}}

% please don't put p. before pagenumbers

DeclareFieldFormat[incollection]{pages}{#1}
DeclareFieldFormat[article]{pages}{#1}


begin{document}

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!

and let's look at the difference between the book citetitle{Usurpator-book} and the collection citetitle{Usurpator-collection}


printbibliography
end{document}









share|improve this question















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...



RIS



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 :/



De manke usurpator



The correct citation for this book is




AUTHORS (red.) (YEAR). TITLE. (EDITION). PLACE: PUBLISHER.



Absillis, K., Jaspers, J., & Van Hoof, S. (red.). (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.




now: the question



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 editors => must be type 2, format accordingly


OR! Can I have Biblatex checks for a custom tag "type = {TextEdition}" I can add to the type-1 books?



And YES: we make the distinction between a book with multiple authors and a book with multiple editors :/ And my second example (the usurpator) is an example of a book with multiple editors, according to our holy formatting bible...



EDIT: a book with only editors is a collection, according to zotero. So I need to differentiate between a




  • This book has an author and a (or multiple) editors => must be type 1, format accordingly

  • This book has only authors => must be type 3


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,
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}
}

@collection{Usurpator-collection,
location = {{Gent}},
title = {De Manke Usurpator},
isbn = {978-90-382-2005-5},
pagetotal = {1234},
publisher = {{Academia press}},
date = {2012},
editor = {Absillis, Kevin and Jaspers, Jürgen and Van Hoof, Sarah}
}

end{filecontents*}
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}}}}%
{globalundefbbx@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{addcommaspace}%
printfield{eid}}
DeclareFieldFormat[article]{number}{mkbibparens{#1}}

% please don't put p. before pagenumbers

DeclareFieldFormat[incollection]{pages}{#1}
DeclareFieldFormat[article]{pages}{#1}


begin{document}

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!

and let's look at the difference between the book citetitle{Usurpator-book} and the collection citetitle{Usurpator-collection}


printbibliography
end{document}






biblatex zotero






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago

























asked 2 hours ago









LooselySubtle

735




735








  • 3




    Any chance you can share with us what you have so far and a few example .bib entries (or at least an attempt at turning the entries shown into .bib format - the exact format may of course vary by implementation) in an MWE? It is so much easier to get started answering questions like these if one does not only see lots of requirements, but also some code to start from.
    – moewe
    2 hours ago








  • 2




    Anyway, FWIW I have never seen such a style and I find it extremely illogical. For the Valerius can't you just put Adrianus Valerius into the title 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 custom editortype value you could probably get "ed." instead of the standard "red.".
    – moewe
    2 hours ago










  • MWE added, as per requested. - I had to leave work before I could provide it in the Original Post, you beat me to it :)
    – LooselySubtle
    1 hour ago








  • 1




    Thanks. The MWE in its current form will give a wildly different output for @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.)
    – moewe
    1 hour ago
















  • 3




    Any chance you can share with us what you have so far and a few example .bib entries (or at least an attempt at turning the entries shown into .bib format - the exact format may of course vary by implementation) in an MWE? It is so much easier to get started answering questions like these if one does not only see lots of requirements, but also some code to start from.
    – moewe
    2 hours ago








  • 2




    Anyway, FWIW I have never seen such a style and I find it extremely illogical. For the Valerius can't you just put Adrianus Valerius into the title 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 custom editortype value you could probably get "ed." instead of the standard "red.".
    – moewe
    2 hours ago










  • MWE added, as per requested. - I had to leave work before I could provide it in the Original Post, you beat me to it :)
    – LooselySubtle
    1 hour ago








  • 1




    Thanks. The MWE in its current form will give a wildly different output for @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.)
    – moewe
    1 hour ago










3




3




Any chance you can share with us what you have so far and a few example .bib entries (or at least an attempt at turning the entries shown into .bib format - the exact format may of course vary by implementation) in an MWE? It is so much easier to get started answering questions like these if one does not only see lots of requirements, but also some code to start from.
– moewe
2 hours ago






Any chance you can share with us what you have so far and a few example .bib entries (or at least an attempt at turning the entries shown into .bib format - the exact format may of course vary by implementation) in an MWE? It is so much easier to get started answering questions like these if one does not only see lots of requirements, but also some code to start from.
– moewe
2 hours ago






2




2




Anyway, FWIW I have never seen such a style and I find it extremely illogical. For the Valerius can't you just put Adrianus Valerius into the title 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 custom editortype value you could probably get "ed." instead of the standard "red.".
– moewe
2 hours ago




Anyway, FWIW I have never seen such a style and I find it extremely illogical. For the Valerius can't you just put Adrianus Valerius into the title 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 custom editortype value you could probably get "ed." instead of the standard "red.".
– moewe
2 hours ago












MWE added, as per requested. - I had to leave work before I could provide it in the Original Post, you beat me to it :)
– LooselySubtle
1 hour ago






MWE added, as per requested. - I had to leave work before I could provide it in the Original Post, you beat me to it :)
– LooselySubtle
1 hour ago






1




1




Thanks. The MWE in its current form will give a wildly different output for @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.)
– moewe
1 hour ago






Thanks. The MWE in its current form will give a wildly different output for @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.)
– moewe
1 hour ago

















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459633%2fcustom-citation-format-based-on-custom-tag-in-bib-file%23new-answer', 'question_page');
}
);

Post as a guest





































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f459633%2fcustom-citation-format-based-on-custom-tag-in-bib-file%23new-answer', 'question_page');
}
);

Post as a guest




















































































Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?