
著者に姓がなく、名 (仮名) のみが記載されている項目を引用する必要があります。システムがそれを名として認識するようにしたいと思います (多言語対応とフランス語オプションでは、姓は小文字で表記されるため)。私の目標は、ラベルやエントリに小文字ではなく通常の文字で名を表記することです。
私は biblatex を使用していますが、通常の biblio の使用には解決策があると思いますか?
私はすでに次の 2 つのことを試しました:
@book{one,
author={{}, William}, % Results in [ , William]
author={William}, % Results in [WILLIAM]
...
}
しかし、最初のケースではラベルは空で、リストにはコンマが表示され、2 番目のケースでは名前が姓であると想定されます。
どのように進めればよいか、何かお考えはありますか?
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{test,
title={Le petit prince},
author={de Saint-Exup{\'e}ry, Antoine},
year={1943},
}
@book{one,
author = {William},
title = {First try},
year = {2001},
}
@book{two,
author = {{}, William},
title = {Second try},
year = {2001},
}
\end{filecontents*}
\usepackage{polyglossia}
\setmainlanguage{french}
\usepackage[
backend=biber,
style=authoryear,
sorting=anyt,
labelalpha,
]{biblatex}
\addbibresource{\jobname.bib}
\DeclareNameAlias{sortname}{family-given}
\begin{document}
Look at book [\cite{one}] ! And book [\cite{two}]!
And look at book [\cite{test}]!
\printbibliography
\end{document}
答え1
出典:https://tex.stackexchange.com/a/429110/263192
\documentclass{article}
\begin{filecontents*}[overwrite]{\jobname.bib}
@book{test,
title={Le petit prince},
author={de Saint-Exup{\'e}ry, Antoine},
year={1943},
}
@book{three,
author = {William},
author+an = {=pseudonym},
title = {Third try},
year = {2022},
}
\end{filecontents*}
\usepackage{polyglossia}
\setmainlanguage{french}
\usepackage[
backend=biber,
style=authoryear,
sorting=anyt,
labelalpha,
]{biblatex}
\addbibresource{\jobname.bib}
\renewcommand*{\mkbibnamefamily}[1]{%
\iffieldannotation{pseudonym}
{#1}
{\textsc{#1}}
}
\DefineBibliographyExtras{french}{\restorecommand\mkbibnamefamily}
\DeclareNameAlias{sortname}{family-given}
\begin{document}
[\cite{test}]
[\cite{three}]
\printbibliography
\end{document}