
XeLaTeX でthen[backend=biber, style=authoryear-icomp, dashed=false]{biblatex}
を一緒に使用すると、引用と参照が小文字の大文字で書かれます。編集者は、本文と脚注の小文字の大文字を削除し、参考文献の小文字の大文字を残すように要求しています。\usepackage{polyglossia}
\setmainlanguage{french}
私が見つけた答え他の場所です\DefineBibliographyExtras{french}{\restorecommand\mkbibnamefamily}
が、これにより、本文と参考文献の両方で小文字の大文字が削除されます。
MWEは以下の通りです:
\documentclass{article}
\usepackage[normalem]{ulem}
\usepackage[no-math]{fontspec}
\usepackage{polyglossia}
\usepackage[backend=biber, style=authoryear-icomp, dashed=false]{biblatex}
\usepackage{csquotes}
\setmainlanguage{french}
\setotherlanguage{english}
\setotherlanguage{latin}
\setotherlanguage[variant=ancient]{greek}
\newfontfamily\arabicfont[Script=Arabic,Scale=1.5]{Scheherazade}
\newfontfamily\greekfont[Script=Greek]{Linux Libertine O}
\usepackage{filecontents}
\begin{filecontents}{biblio.bib}
@article{abel2018,
title = {Estimates of {{Global Bilateral Migration Flows}} by {{Gender}} between 1960 and 2015},
author = {Abel, Guy J.},
date = {2018},
journaltitle = {International Migration Review},
shortjournal = {International Migration Review},
volume = {52},
pages = {809--852},
doi = {10.1111/imre.12327},
url = {http://journals.sagepub.com/doi/10.1111/imre.12327},
urldate = {2019-12-14},
langid = {english},
number = {3}
}
\end{filecontents}
\addbibresource{biblio.bib}
\begin{document}
I want to remove the small capitals here : \cite{abel2018}
\printbibliography[title={I want to keep the small capitals here}]
\end{document}
私が持っているもの:
もちろん、ショートハンド = {Abel 2018} を追加すれば問題は解決しますが、エントリ数は多かれ少なかれ 1,000 個あり、人生は短いです。
答え1
\mkbibnamefamily
参考文献を印刷する直前に再定義できます。
{
\protected\def\mkbibnamefamily#1{\textsc{#1}}
\printbibliography[title={I want to keep the small capitals here}]
}
あなたのMWE:
\documentclass{article}
\usepackage[normalem]{ulem}
\usepackage[no-math]{fontspec}
\usepackage{polyglossia}
\usepackage[backend=biber, style=authoryear-icomp, dashed=false]{biblatex}
\usepackage{csquotes}
\setmainlanguage{french}
\setotherlanguage{english}
%\setotherlanguage{latin}
%\setotherlanguage[variant=ancient]{greek}
%\newfontfamily\arabicfont[Script=Arabic,Scale=1.5]{Scheherazade}
%\newfontfamily\greekfont[Script=Greek]{Linux Libertine O}
\DefineBibliographyExtras{french}{\restorecommand\mkbibnamefamily}
\usepackage{filecontents}
\begin{filecontents}{biblio.bib}
@article{abel2018,
title = {Estimates of {{Global Bilateral Migration Flows}} by {{Gender}} between 1960 and 2015},
author = {Abel, Guy J.},
date = {2018},
journaltitle = {International Migration Review},
shortjournal = {International Migration Review},
volume = {52},
pages = {809--852},
doi = {10.1111/imre.12327},
url = {http://journals.sagepub.com/doi/10.1111/imre.12327},
urldate = {2019-12-14},
langid = {english},
number = {3}
}
\end{filecontents}
\addbibresource{biblio.bib}
\begin{document}
I want to remove the small capitals here : \cite{abel2018}
{
\protected\def\mkbibnamefamily#1{\textsc{#1}}
\printbibliography[title={I want to keep the small capitals here}]
}
\end{document}
答え2
プリアンブル内にのみ存在するソリューションが必要な場合は、チェック\mkbibnamefamily
を使用して再定義できます\ifbibliography
。
\documentclass{article}
\usepackage[normalem]{ulem}
\usepackage[no-math]{fontspec}
\usepackage{polyglossia}
\usepackage[backend=biber, style=authoryear-icomp, dashed=false]{biblatex}
\usepackage{csquotes}
\setmainlanguage{french}
\setotherlanguage{english}
\setotherlanguage{latin}
\setotherlanguage[variant=ancient]{greek}
%\newfontfamily\arabicfont[Script=Arabic,Scale=1.5]{Scheherazade}
\newfontfamily\greekfont[Script=Greek]{Linux Libertine O}
\DefineBibliographyExtras{french}{%
\renewcommand*\mkbibnamefamily[1]{%
\ifbibliography
{\textsc{#1}}
{#1}}}
\begin{filecontents}{\jobname.bib}
@article{abel2018,
title = {Estimates of Global Bilateral Migration Flows by Gender between 1960 and 2015},
author = {Abel, Guy J.},
date = {2018},
journaltitle = {International Migration Review},
shortjournal = {International Migration Review},
volume = {52},
pages = {809--852},
doi = {10.1111/imre.12327},
url = {http://journals.sagepub.com/doi/10.1111/imre.12327},
urldate = {2019-12-14},
langid = {english},
number = {3},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
I want to remove the small capitals here : \cite{abel2018}
\printbibliography[title={I want to keep the small capitals here}]
\end{document}