
저자에게 성이 없고 이름(가명)만 있는 항목을 인용해야 합니다. 시스템이 이를 주어진 이름으로 인식하도록 하고 싶습니다(폴리글로시아 및 프랑스어 옵션을 사용하면 성이 작은 대문자로 표시되기 때문입니다). 내 목표는 작은 대문자가 아닌 일반 문자로 라벨이나 항목에 이름을 쓰는 것입니다.
나는 biblatex를 사용하고 있지만 일반적인 biblio 사용에 대한 솔루션이 존재할 수 있다고 생각합니까?
나는 이미 다음 두 가지를 시도했습니다.
@book{one,
author={{}, William}, % Results in [ , William]
author={William}, % Results in [WILLIAM]
...
}
그러나 첫 번째 경우에는 레이블이 비어 있고 목록에 쉼표가 표시되며, 두 번째 경우에는 이름이 성으로 간주됩니다.
어떻게 진행해야 할지 아시나요?
\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}