So I'm using the french language with a style derived from authortitle-terse. I've tried to ask an ambitious (too ambitious?) question here, and I'm trying to break down this question in sub-piece.
Now, I'd like to customize the style of the author family name, depending on the type of the entry. From my previous experience and question here, I cannot find how to do it.
In the french.lbx, I read that the \mkbibnamefamily is defined as:
\protected\def\mkbibnamefamily#1{%
\textsc{\textnohyphenation{#1}}}%
So as far as I know, and based on my first tries here, I could not do something like:
\DeclareFieldFormat[article,book]{\mkbibnamefamily}{#1}
Or even:
\UndefineBibliographyExtras{french}{\restorecommand\mkbibnamefamily}
\renewcommand*{\mkbibnamefamily}{\textsc}
\renewcommand[article, book]{\mkbibnamefamily}{\textsc}
Because the last line on article/book breaks the code.
Questions
- How can I change the formatting of family names by type of entry?
- What is the formatting of names so different than the
\DeclareFieldFormatfor title? - What would be the command to format the family name of an editor?
MWE Code
main.tex
\documentclass{article}
% Needed by Biblatex
\usepackage{polyglossia}
\setmainlanguage{french}
\usepackage{csquotes}
\usepackage[style=authortitle-terse, language=french, bibencoding=UTF8, backend=biber]{biblatex}
\addbibresource{main.bib}
\DeclareFieldFormat{author}{#1}% no postnote prefix in "multicite" commands
\UndefineBibliographyExtras{french}{\restorecommand\mkbibnamefamily}
\renewcommand*{\mkbibnamefamily}{\textsc}
% \renewcommand[article, book]{\mkbibnamefamily}{\textsc}
\begin{document}
\section{Test de la bibliographie}
\printbibliography
\section{Tests de citation}
book : \cite{book} \\
thesis : \cite{thesis} \\
Article : \cite{article} \\
\end{document}
main.bib
@book{book,
author = {Other, Nicolas},
title = {A title for a thesis},
date = {2017},
location = {Berne and Bâle and Lugano},
origlocation = {Lausanne}
}
@thesis{thesis,
author = {Gut, Nicolas},
title = {Die unbezifferte Forderungsklage nach der Schweizerischen Zivilprozessordnung},
location = {Bâle},
date = {2014},
}
@article{article,
author = {Affolter, Markus},
title = {Die Durchsetzunh von Informationspflichten im Zivilprozess},
origLocation = {St. Gall},
date = {1994},
location = {Berne and Stuttgart and Vienne},
}
\DeclareNameFormat– PLK Apr 28 '18 at 20:52Affoltercitation in your real.bibfile you may want to make sure it readsDurchsetzung(withginstead ofDurchsetzunh). – moewe Apr 29 '18 at 05:23