如何从数字格式的文章年份中删除括号(biblatex)

如何从数字格式的文章年份中删除括号(biblatex)

我使用的是numeric-comp 样式。但是文章的年份有括号,而“incollection”和“inproceedings”的年份没有。

我是 LaTeX 初学者,想删除文章年份中的括号。

这是我现在的代码,

\usepackage[backend=bibtex,
natbib=true,
%dashed=false,
sorting=none,
maxcitenames=3,
maxbibnames=10,
firstinits=true,
isbn=false,
doi=false,
url=false,
eprint=false,
defernumbers=true,
abbreviate=false,
style=numeric-comp]{biblatex} 

%-- formatting hell for biblatex
%-- remove "In:"
\renewbibmacro{in:}{}
% Add spaces
\setlength\bibitemsep{3.5\itemsep}
%-- no "quotes" around titles of chapters/article titles
\DeclareFieldFormat[article, inbook, incollection, inproceedings, misc, thesis, unpublished]
{title}{#1}
%-- no punctuation after volume
\DeclareFieldFormat[article]
{volume}{ {#1} } 
%-- puts number/issue between brackets
\DeclareFieldFormat[article, inbook, incollection, inproceedings, misc, thesis, unpublished]
{number}{\mkbibparens{#1}} 
%-- and then for articles directly the pages w/o any "pages" or "pp." 
\DeclareFieldFormat[article]
{pages}{#1}
%-- for some types replace "pages" by "p."
\DeclareFieldFormat[inproceedings, incollection, inbook]
{pages}{p. #1}
%-- format 16(4):224--225 for articles
\renewbibmacro*{volume+number+eid}{
    \printfield{volume}
    \printfield{number}
    \printunit{\addcolon}
}
%-- citations with square brackets (== \usepackage[square]{natbib})
\makeatletter
\newrobustcmd*{\parentexttrack}[1]{
    \begingroup
    \blx@blxinit%
    \blx@setsfcodes%
    \blx@bibopenparen#1\blx@bibcloseparen%
    \endgroup}
\AtEveryCite{
    \let\parentext=\parentexttrack%
    \let\bibopenparen=\bibopenbracket%
    \let\bibcloseparen=\bibclosebracket}
\makeatother
\addbibresource{references.bib}

下面是输出参考类型的示例

  • [8] H. Han、C. Park、J. Heo 和 SK Kang。通过分析发动机排气系统声源开发消声器声音。SAE 2014 世界大会暨展览会。SAE International,2014 年。

  • [9] M. Harrison。《车内噪音:评估与控制》。《车辆改进》。M. Harrison 编辑。牛津:Butterworth-Heinemann,2004 年,第 145-233 页。

  • [10] A. Singh, S. Bharadwaj 和 S. Narayan。内燃机各种 NVH 源分析。技术进展 10 (1-2):(2016),29–37。

  • [11] G. Kwon、H. Jo 和 YJ Kang。车内声音的心理声学运动模型:不包括响度。应用声学 136:(2018),16-25。

答案1

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

@article删除和的日期(和发行)周围的括号@periodical

相关内容