我想对我的围兜外观做一些修改。其中之一是改变文章风格。现在的样子是这样的:
围兜条目如下所示:`
@article{McMaster.1963,
author = {McMaster, John},
year = {1963},
title = {The Takashima Mine},
pages = {215--239},
pagination = {page},
volume = {38},
subtitle = {British Capital and Japanese Industrialization},
journaltitle = {Business History Review},
number = {3},
abstract = {}
}
参考书目如下:
%----------------------------------------------------------------------------
% BIB
%----------------------------------------------------------------------------
\usepackage[
backend=biber,
style=authoryear,
sorting=nyvt
]{biblatex}
\addbibresource{backmatter/sample.bib}
\renewcommand{\mkbibnamefamily}[1]{\textsc{#1}}
\renewcommand{\labelnamepunct}{\addcolon\space}
\DeclareFieldFormat{postnote}{#1}
\DeclareFieldFormat{multipostnote}{#1}
\renewcommand\postnotedelim{\addcolon\addspace}
\usepackage{url}
\urlstyle{same}
抱歉,我问了这些问题,因为我对 LaTeX 还不太熟悉,还在尝试弄清楚
答案1
ext-authoryear
如果您使用biblatex-ext
,您只需要再写几行。
volume
和之间的标点符号number
由 控制。的\volnumdelim
字段格式为title
\DeclareFieldFormat
\documentclass[ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[
backend=biber,
style=ext-authoryear,
sorting=nyvt
]{biblatex}
\renewcommand{\mkbibnamefamily}[1]{\textsc{#1}}
\DeclareDelimFormat{nametitledelim}{\addcolon\space}
\DeclareFieldFormat
[article,inbook,incollection,inproceedings,patent,thesis,unpublished]
{title}{#1\isdot}
\renewcommand*{\volnumdelim}{\addcomma\space}
\renewcommand\postnotedelim{\addcolon\space}
\DeclareFieldFormat{postnote}{#1}
\DeclareFieldFormat{multipostnote}{#1}
\usepackage{url}
\urlstyle{same}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{McMaster.1963,
author = {McMaster, John},
year = {1963},
title = {The Takashima Mine},
pages = {215--239},
pagination = {page},
volume = {38},
subtitle = {British Capital and Japanese Industrialization},
journaltitle = {Business History Review},
number = {3},
abstract = {}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{sigfridsson,McMaster.1963}
\printbibliography
\end{document}
如果你不能(或不想)使用ext-authoryear
,则上面的一行\renewcommand*{\volnumdelim}{\addcomma\space}
需要替换为
\newcommand*{\volnumdelim}{\addcomma\space}
\renewbibmacro*{volume+number+eid}{%
\printfield{volume}%
\setunit*{\volnumdelim}%
\printfield{number}%
\setunit{\addcomma\space}%
\printfield{eid}}
当然,如果您愿意的话,您可以省去这里的中间人\volnumdelim
,直接写信\setunit*{\addcomma\space}%
。