如何在书目中的期号前添加“.-N.”?

如何在书目中的期号前添加“.-N.”?

我想要的是:

S. Advani、J. Torok 和 J. Lee // 多孔介质中可压缩流体活塞式位移的一般解。能源资源技术杂志。– 1985.– 卷 107。-N.4.–第523-526页。

我拥有的:

S. Advani、J. Torok 和 J. Lee // 多孔介质中可压缩流体活塞式位移的一般解。能源资源技术杂志。- 1985.- 卷 107. 4. - P. 523-526。

如何在问题编号前添加点、破折号和 N(“.-N.”)?

\documentclass{scrartcl} 
\usepackage[ 
    backend=biber, 
    style=numeric
]{biblatex} 
\usepackage[ngerman]{babel} 
\usepackage[babel, german=quotes]{csquotes} 
\renewbibmacro{in:}{} 
\ExecuteBibliographyOptions{% 
bibencoding=utf8, 
bibwarn=true, 
sortlocale=de_DE, 
isbn=false, 
url=false, 
doi=false, 
eprint=false, 
clearlang=true, 
maxbibnames=99, 
firstinits=true, 
sorting=none, 
} 
%\DeclareFieldFormat[article]{title}{} 
\DeclareFieldFormat*{title}{#1}
\DeclareDelimFormat[bib]{nametitledelim}{\space //\space}
\DeclareFieldFormat{date}{{#1}} 
%\DeclareFieldFormat[article]{number}{} 
\DeclareFieldFormat[article,periodical]{number}{{#1}}% number of a journal
%\DeclareFieldFormat{pages}{\mkfirstpage[{\mkpageprefix[bookpagination]}]{#1}} 
\DefineBibliographyStrings{german}{% 
   page = {{}{}}, 
   pages = {{}{}}, 
} 
\renewbibmacro*{journal+issuetitle}{%
  \usebibmacro{journal}%
  \setunit*{\adddot \addspace \text{--} \addspace}%точка-тире после издателя
  \iffieldundef{series}
    {}
    {\newunit
     \printfield{series}%
     \setunit{\addspace}}%
  \usebibmacro{issue+date}%
  \setunit{\adddot\space \text{--}\space \text{V.} }% точка-тире после года
  \usebibmacro{volume+number+eid}% 
 \setunit{\addcolon\space }%
  \usebibmacro{issue}%
  \newunit}
\renewbibmacro*{volume+number+eid}{%
  \printfield{volume}%
  \newunit
  \printfield{number}%
  \newunit
  \printfield{eid}%
}
\newbibmacro*{issue+date}{% убираем скобочки вокруг года
    \iffieldundef{issue}
      {\usebibmacro{date}}
      {\printfield{issue}%
       \setunit*{\addspace}%
       \usebibmacro{date}}%
  \newunit}
\renewcommand*{\bibpagespunct}{\adddot \space \addperiod \space \text{--}\space  \text{P.}}% точка тире перед номером страницы



 
\addbibresource{mybib.bib} 
\begin{document} 

Text~

\cite{advani1985general}

\begingroup
\let\itshape\upshape
\printbibliography 
\end{document}

@article{advani1985general,
  title={General solutions for pistonlike displacement of compressible fluids in porous media},
  author={Advani, SH and Torok, JS and Lee, JK},
  journal={Journal of energy resources technology},
  volume={107},
  number={4},
  pages={523--526},
  year={1985},
  publisher={American Society of Mechanical Engineers}
}

答案1

您已经声明了字段格式,只需进行相应的修改即可:

\DeclareFieldFormat[article,periodical]{number}{{--\addnbspace N.\addnbspace #1}}

相关内容