![Biblatex를 특정 스타일로 편집](https://rvso.com/image/461884/Biblatex%EB%A5%BC%20%ED%8A%B9%EC%A0%95%20%EC%8A%A4%ED%83%80%EC%9D%BC%EB%A1%9C%20%ED%8E%B8%EC%A7%91.png)
이것이 내가 달성하려는 스타일입니다.
Smith J, Jones M Jr, Houghton L 외(1999) 건강 보험의 미래. N 영어 J Med 965:325–329
알아낼 수 없는 두 가지 변경 사항이 더 필요합니다.
- 저널 이름 뒤의 쉼표 제거
- 저자를 제거하고 모든 저자의 성 이니셜 순서를 강제합니다.
내 코드를 제공합니다.
\documentclass[12pt]{article}
\usepackage[dashed=false,style=authoryear,backend=biber,giveninits=true]{biblatex}
\DeclareNameAlias{default}{last-first}
\renewcommand*{\revsdnamepunct}{}
\renewbibmacro{in:}{%
\ifboolexpr{%
test {\ifentrytype{article}}%
or
test {\ifentrytype{inproceedings}}%
}{}{\printtext{\bibstring{in}\intitlepunct}}%
}
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,thesis,unpublished]
{title}{#1\isdot}
\DeclareFieldFormat{title}{#1}
\DeclareFieldFormat{pages}{:#1}
\DeclareFieldFormat{journaltitle}{#1\isdot}
\renewcommand{\labelnamepunct}{\addspace}
\addbibresource{\jobname.bib}
\begin{filecontents}{\jobname.bib}
@book{Andeweg2011,
title={Puzzles of Government Formation: Coalition Theory and Deviant Cases},
author={Andeweg, Rudy W. and De Winter, Lieven and Dumont, Patrick},
year={2011},
publisher={Taylor \& Francis}
}
@article{ansolabehere2005voting,
title={Voting weights and formateur advantages in the formation of coalition governments},
author={Ansolabehere, Stephen and Snyder Jr., James M. and Strauss, Aaron B. and Ting, Michael M.},
journal={American Journal of Political Science},
volume={49},
number={3},
pages={550--563},
year={2005},
publisher={Wiley Online Library}
}
\end{filecontents}
\begin{document}
\section{Section}
text
\textcite{Andeweg2011, ansolabehere2005voting}
\printbibliography
\end{document}
답변1
솔루션을 게시합니다. 모두에게 많은 감사를 드립니다
\documentclass[12pt]{article}
\usepackage[dashed=false,style=authoryear,backend=biber,giveninits=true]{biblatex}
\DeclareNameAlias{sortname}{family-given}
\renewcommand*{\revsdnamepunct}{}
\renewbibmacro{in:}{%
\ifboolexpr{%
test {\ifentrytype{article}}%
or
test {\ifentrytype{inproceedings}}%
}{}{\printtext{\bibstring{in}\intitlepunct}}%
}
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,thesis,unpublished]
{title}{#1\isdot}
\DeclareFieldFormat{title}{#1}
\DeclareFieldFormat{pages}{#1}
\renewcommand*{\bibpagespunct}{\addcolon}
\DeclareFieldFormat{journaltitle}{#1\isdot}
\renewcommand{\labelnamepunct}{\addspace}
\renewrobustcmd*{\bibinitperiod}{}
\renewrobustcmd*{\bibinitdelim}{}
\renewrobustcmd*{\bibinithyphendelim}{}
\addbibresource{\jobname.bib}
\DefineBibliographyExtras{english}{%
\renewcommand*{\finalnamedelim}{\addcomma\addspace}%
}
\begin{filecontents}{\jobname.bib}
@book{Andeweg2011,
title={Puzzles of Government Formation: Coalition Theory and Deviant Cases},
author={Andeweg, Rudy W. and De Winter, Lieven and Dumont, Patrick},
year={2011},
publisher={Taylor \& Francis}
}
@article{ansolabehere2005voting,
title={Voting weights and formateur advantages in the formation of coalition governments},
author={Ansolabehere, Stephen and Snyder Jr., James M. and Strauss, Aaron B. and Ting, Michael M.},
journal={American Journal of Political Science},
volume={49},
number={3},
pages={550--563},
year={2005},
publisher={Wiley Online Library}
}
\end{filecontents}
\begin{document}
\section{Section}
text
\textcite{Andeweg2011, ansolabehere2005voting}
\printbibliography
\end{document}