交換文章的捲數和年份並用分號分隔它們

交換文章的捲數和年份並用分號分隔它們

在撰寫論文時,我在使用 biblatex 和 biber 自訂 @article 的參考書目風格時遇到一些問題。圖為運行.tex檔案產生的參考書目樣式。雷夫斯泰爾

但是,我想: 1. 刪除作者姓氏和名字之間的逗號(,)。 2、將卷、號、年份的順序切換為:年份;體積(數量):

例如圖中Reference[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}

阿齊茲,OS,伊薩菲亞德,AJ,弗雷澤,DM。基於供應的熱質交換網路的上層建築綜合。計算機與化學工程2013; 56(7):184-201。

相關內容