論文を書くときに、biblatex と biber を使用して @article の参考文献スタイルをカスタマイズする際に問題が発生します。図は、.tex ファイルを実行して生成された参考文献スタイルを示しています。
ただし、次の操作を実行したい: 1. 著者の姓と名の間のカンマ (,) を削除します。 2. 巻、号、年の順序を次のように切り替えます: year; volume(number):
例えば、図の参考文献[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}