将卷数和年份换成文章并用分号分隔

将卷数和年份换成文章并用分号分隔

我在写论文时使用 biblatex 和 biber 自定义 @article 的参考书目样式时遇到了一些问题。图片显示了运行 .tex 文件生成的参考书目样式。参考风格

但是,我想要:1. 删除作者姓氏和名字之间的逗号 (,)。2. 将卷、编号和年份的顺序切换为:年份;卷(编号):

例如图中参考文献[3]:56.7 (2013)应为2013;56(7):

非常感谢。

以下是我的.tex.bib文件:

.tex文件

\documentclass[a4paper, 10pt]{article}

\usepackage[top=2cm, bottom=2cm, left=3cm, right=3cm]{geometry}
\usepackage[backend=biber,style=numeric-comp,sortcites=true,maxbibnames=100,firstinits=true,terseinits=true,sorting=none]{biblatex}
\usepackage{hyperref}  
\addbibresource{mybib.bib}

\renewcommand*{\finalnamedelim}{\multinamedelim} 

\renewcommand*{\bibpagespunct}{\intitlepunct}

\DeclareFieldFormat[book, article, thesis, inproceedings]{title}{#1}
\DeclareFieldFormat{journaltitle}{#1}
\DeclareFieldFormat{booktitle}{#1}
\DeclareFieldFormat{pages}{#1}

\DeclareNameAlias{default}{last-first}

\renewbibmacro{in:}{\ifentrytype{article} {} {\printtext{\bibstring{in} \intitlepunct}}}


\begin{document}

This is an example for illustration of customizing bibliography style.~\cite{gams,AIChE,Azeez2013}

\printbibliography

\end{document}

.bib文件

@article{Azeez2013,
    author = {Azeez, O. S. and Isafiade, A. J. and Fraser, D. M.},
    title = {Supply-based superstructure synthesis of heat and mass exchange networks},
    journal = {Computers \& Chemical Engineering},
    volume = {56},
    number = {7},
    pages = {184--201},
    year = {2013}
}

@book{gams,
    author = {Rosenthal, Racd Ejijig},
    title = {GAMS---A User's Guide},
    year = {2010},
    publisher = {GAMS Development Corporation}
}

@inproceedings{AIChE,
    author = {Savelski, Minor J and Bagajewicz, Michel J},
    title = {Design and retrofit of water utilization systems in refineries and process plants},
    booktitle = {Annual National AIChE Meeting},
    year = {1997},
    location = {Los Angeles, USA}
}

答案1

@article为了达到你想要的效果,需要进行以下修改

\renewbibmacro*{journal+issuetitle}{%
  \usebibmacro{journal}%
  \setunit*{\addspace}%
  \iffieldundef{series}
    {}
    {\newunit
     \printfield{series}%
     \setunit{\addspace}}%
  \setunit{\addspace}%
  \usebibmacro{issue+date}%
  \setunit{\addcolon\space}%
  \usebibmacro{issue}%
  \setunit{\addsemicolon\space}%
  \usebibmacro{volume+number+eid}%
  \newunit}

更改字段的顺序:第一年,然后是卷和数。

然后

\DeclareFieldFormat[article,periodical]{number}{\mkbibparens{#1}}
\renewbibmacro*{volume+number+eid}{%
  \printfield{volume}%
  \printfield{number}%
  \setunit{\addcomma\space}%
  \printfield{eid}}

将卷和期排版为“56(3)”。

最后

\renewbibmacro*{issue+date}{%
  \iffieldundef{issue}
    {\usebibmacro{date}}
    {\printfield{issue}%
     \setunit*{\addspace}%
     \usebibmacro{date}}%
  \newunit}

确保日期没有被括号括起来。

平均能量损失

\documentclass[a4paper, 10pt]{article}
\usepackage{geometry}
\usepackage[backend=biber,style=numeric-comp,sortcites=true,maxbibnames=100,firstinits=true,terseinits=true,sorting=none]{biblatex}
\usepackage{filecontents}
\usepackage{hyperref}  

\begin{filecontents*}{\jobname.bib}
@article{Azeez2013,
    author = {Azeez, O. S. and Isafiade, A. J. and Fraser, D. M.},
    title = {Supply-based superstructure synthesis of heat and mass exchange networks},
    journal = {Computers \& Chemical Engineering},
    volume = {56},
    number = {7},
    pages = {184--201},
    year = {2013}
}

@book{gams,
    author = {Rosenthal, Racd Ejijig},
    title = {GAMS---A User's Guide},
    year = {2010},
    publisher = {GAMS Development Corporation}
}

@inproceedings{AIChE,
    author = {Savelski, Minor J and Bagajewicz, Michel J},
    title = {Design and retrofit of water utilization systems in refineries and process plants},
    booktitle = {Annual National AIChE Meeting},
    year = {1997},
    location = {Los Angeles, USA}
}
\end{filecontents*}

\addbibresource{\jobname.bib}

\renewcommand*{\finalnamedelim}{\multinamedelim} 

\renewcommand*{\bibpagespunct}{\intitlepunct}

\DeclareFieldFormat[book, article, thesis, inproceedings]{title}{#1}
\DeclareFieldFormat{journaltitle}{#1}
\DeclareFieldFormat{booktitle}{#1}
\DeclareFieldFormat{pages}{#1}

\DeclareNameAlias{default}{last-first}

\renewbibmacro{in:}{\ifentrytype{article} {} {\printtext{\bibstring{in} \intitlepunct}}}


\renewbibmacro*{journal+issuetitle}{%
  \usebibmacro{journal}%
  \setunit*{\addspace}%
  \iffieldundef{series}
    {}
    {\newunit
     \printfield{series}%
     \setunit{\addspace}}%
  \setunit{\addspace}%
  \usebibmacro{issue+date}%
  \setunit{\addcolon\space}%
  \usebibmacro{issue}%
  \setunit{\addsemicolon\space}%
  \usebibmacro{volume+number+eid}%
  \newunit}

\DeclareFieldFormat[article,periodical]{number}{\mkbibparens{#1}}
\renewbibmacro*{volume+number+eid}{%
  \printfield{volume}%
  \printfield{number}%
  \setunit{\addcomma\space}%
  \printfield{eid}}

\renewbibmacro*{issue+date}{%
  \iffieldundef{issue}
    {\usebibmacro{date}}
    {\printfield{issue}%
     \setunit*{\addspace}%
     \usebibmacro{date}}%
  \newunit}

\begin{document}

This is an example for illustration of customizing bibliography style.~\cite{gams,AIChE,Azeez2013}

\printbibliography

\end{document}

Azeez, OS, Isafiade, AJ, Fraser, DM。基于供给的热质交换网络上层结构合成。计算机与化学工程 2013;56(7): 184–201。

相关内容