![参考文献のエントリとBabelの問題のフォーマットを変更する](https://rvso.com/image/405366/%E5%8F%82%E8%80%83%E6%96%87%E7%8C%AE%E3%81%AE%E3%82%A8%E3%83%B3%E3%83%88%E3%83%AA%E3%81%A8Babel%E3%81%AE%E5%95%8F%E9%A1%8C%E3%81%AE%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%83%E3%83%88%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B.png)
参考文献のエントリの表示形式を変更したいと思います。マクロを再定義しようとしましたが、パッケージでエストニア語も使用しているためbabel
、定義が上書きされてしまいます。現在、このエントリは
@inproceedings{gan,
author = {Ian Goodfellow and Jean Pouget-Abadie and Mehdi Mirza and Bing Xu and David Warde-Farley and Sherjil Ozair and Aaron Courville Yoshua Bengio},
title = {Generative adversarial networks},
booktitle = {{NIPS}},
editor = {Z. Ghahramani and M. Welling and C. Cortes and N. D. Lawrence and K. Q. Weinberger},
pages = {2672--2680},
year = {2014},
publisher = {Curran Associates, Inc.},
location = {New York},
}
として表示される
Ian Goodfellow、Jean Pouget-Abadie、Mehdi Mirza、Bing Xu、David Warde-Farley、Sherjil Ozair、Aaron Courville、Yoshua Bengio。生成的敵対ネットワーク。テーマ:生理学研究所. Toim. Z. Ghahramani、M. Welling、C. Cortes、ND Lawrence、KQ Weinberger。ニューヨーク:Curran Associates、Inc.、2014年、lk. 2672–2680。
しかし、次のように表示したい
Ian Goodfellow、Jean Pouget-Abadie、Mehdi Mirza、Bing Xu、David Warde-Farley、Sherjil Ozair、Aaron Courville、Yoshua Bengio 2014。生成的敵対ネットワーク。 -生理学研究所. 編者:Z. ガフラマニ、M. ウェリング、C. コルテス、ND ローレンス、KQ ワインバーガー。ニューヨーク:カラン アソシエイツ社、pp. 2672–2680
はbooktitle
斜体にする必要があります。
例えば、in:
bibmacroを再定義してみました
\renewbibmacro*{in:}{%
\setunit{\addperiod\space\textendash\space}}
ただし、babel
出力は変化しません。
編集、MWEBを追加しました
\documentclass{article}
\usepackage[estonian .notilde]{babel}
\usepackage[backend=biber, citestyle=authoryear, maxbibnames=99]{biblatex}
\DeclareFieldFormat{labelnumberwidth}{} % Doesn't print anything in the label
\setlength{\biblabelsep}{0pt} % Eliminates the spacing before the entries
\DeclareFieldFormat*{title}{#1} % No quotation marks
% This redefinition doesn't change anything due to babel
\renewbibmacro*{in:}{%
\setunit{\addperiod\space\textendash\space}}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@inproceedings{gan,
author = {Ian Goodfellow and Jean Pouget-Abadie and Mehdi Mirza and Bing Xu and David Warde-Farley and Sherjil Ozair and Aaron Courville Yoshua Bengio},
title = {Generative adversarial networks},
booktitle = {{NIPS}},
editor = {Z. Ghahramani and M. Welling and C. Cortes and N. D. Lawrence and K. Q. Weinberger},
pages = {2672--2680},
year = {2014},
publisher = {Curran Associates, Inc.},
location = {New York},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\parencite{gan}
\printbibliography
\end{document}
答え1
estonain.lbx
bibmacroin:
を再定義します\DeclareBibliographyExtras
(スタイルとローカリゼーションを分離するという考え方に反する方法ですが、これは必要なことと見なされることもあります。同様の効果は英語でも見られます。3 人以上の著者のリストで「オックスフォードコンマ」を削除するにはどうすればよいですか?、 フランス語:Biblatex では小文字のままにする、 イタリアの:Biblatex のカスタム ダッシュ、もっと極端な例は ですmagyar.lbx
。その定義を上書きしたい場合は、 内で作成する必要があります\DefineBibliographyExtras{estonian}
。
また、あなたの例のエントリに従って、いくつかの bibstrings を変更しました (エストニア語はわかりませんが、英語の文字列のみを採用しました)。
で偽装して数値ラベルを抑制するのではなく、authoryear
で完全なスタイルに切り替えたことに注意してください。style=authoryear,
citestyle=authoryear,
\documentclass{article}
\usepackage[estonian.notilde]{babel}
\usepackage{csquotes}
\usepackage[backend=biber, style=authoryear, maxbibnames=99]{biblatex}
\DeclareFieldFormat*{title}{#1}
\DefineBibliographyExtras{estonian}{%
\renewbibmacro*{in:}{%
\setunit{\addperiod\space\textendash\space}}}
\DefineBibliographyStrings{estonian}{
editor = {ed\adddot},
editors = {ed\adddot},
byeditor = {ed\adddot},
page = {p\adddot},
pages = {pp\adddot},
}
\begin{filecontents}{\jobname.bib}
@inproceedings{gan,
author = {Ian Goodfellow and Jean Pouget-Abadie and Mehdi Mirza
and Bing Xu and David Warde-Farley and Sherjil Ozair
and Aaron Courville Yoshua Bengio},
title = {Generative adversarial networks},
booktitle = {{NIPS}},
editor = {Z. Ghahramani and M. Welling and C. Cortes
and N. D. Lawrence and K. Q. Weinberger},
pages = {2672--2680},
year = {2014},
publisher = {Curran Associates, Inc.},
location = {New York},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\parencite{gan}
\printbibliography
\end{document}