참고문헌 항목이 표시되는 형식을 변경하고 싶습니다. 매크로를 재정의하려고 시도했지만 패키지에 에스토니아어도 사용하고 있기 때문에 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},
}
로 나타납니다
이안 굿펠로우, 장 푸제-아바디, 메디 미르자, 빙 슈, 데이비드 워드-팔리, 셰르질 오자르, 아론 쿠르빌 요슈아 벤지오. 생성적 적대 네트워크. 테오스:닙스. 토임. 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. Ghahramani, M. Welling, C. Cortes, ND Lawrence 및 KQ Weinberger. 뉴욕: Curran Associates, Inc., 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
스타일과 지역화를 분리한다는 개념에 어긋나는 방식으로 bibmacro를 재정의 in:
하지만 때로는 이것이 필요한 것으로 간주되었습니다. 유사한 효과는 영어에서도 볼 수 있습니다.\DeclareBibliographyExtras
3명 이상의 저자 목록에서 "Oxford comma"를 제거하는 방법은 무엇입니까?, 프랑스어:Biblatex에서는 소문자를 유지하세요., 이탈리아어:Biblatex의 맞춤 대시, 훨씬 더 극단적인 예는 magyar.lbx
)입니다. 해당 정의를 덮어쓰려면 \DefineBibliographyExtras{estonian}
.
또한 귀하의 예시 항목에 따라 일부 턱받이 스트링도 변경했습니다(저는 에스토니아어를 전혀 모르고 영어 스트링만 사용했습니다).
숫자 레이블을 사용하여 위조하고 억제하는 대신 전체 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}