加粗数字引用

加粗数字引用

大家好,我使用 cite 命令在我的报告中引用来源:

\cite{test}

我正在数字模式下使用 biblatex:

\usepackage[backend=bibtex, style=numeric]{biblatex}

然而,我希望让所有的引用都以粗体显示,并希望有人能给我指明正确的方向。

编辑* 类似于以下内容

\begin{filecontents*}{\jobname.bib}
@report{RFC3550,
    author = {H. Schulzrinne and S. Casgner and R. Frederick and V. Jacobson},
    title = {RFC 3550, RTP: A Transport Protocol for Real-Time Applications},
    url = {https://tools.ietf.org/html/rfc3550},
    year = {2003},
}

@report{RFC2326,
    author = {H. Schulzrinne and A. Rao and R. Lanphier},
    title = {RFC 2326, Real Time Streaming Protocol},
    url = {https://rools.ietf.org/html/rfc2326},
    year = {1998},
}
\end{filecontents*}

\documentclass[12pt]{report}
\usepackage[a4paper, width=150mm, top=25mm, bottom=25mm ,bindingoffset=6mm]{geometry}
\usepackage[backend=bibtex, style=numeric]{biblatex}
\addbibresource{\jobname.bib}

\begin{document}

\cite{RFC3550} and \cite{RFC2326}

\printbibliography

\end{document}

答案1

我将按照我的回答使引用加粗 latex,我们在这里看到了如何对alphabetic样式进行此操作。numeric唯一改变的是相关字段名称,它们在这里prefixnumberlabelnumber通常,尤其是后者很重要)。

要加粗标签,请使用

\DeclareFieldFormat{prefixnumber}{\mkbibbold{#1}}
\DeclareFieldFormat{labelnumber}{\mkbibbold{#1}}

取消粗体参考书目可以通过以下方式实现

\AtBeginBibliography{%
  \DeclareFieldFormat{prefixnumber}{#1}%
  \DeclareFieldFormat{labelnumber}{#1}}

平均能量损失

\documentclass[12pt]{article}
\usepackage[backend=bibtex, style=numeric]{biblatex}
\addbibresource{biblatex-examples.bib}

\DeclareFieldFormat{prefixnumber}{\mkbibbold{#1}}
\DeclareFieldFormat{labelnumber}{\mkbibbold{#1}}


\AtBeginBibliography{%
  \DeclareFieldFormat{prefixnumber}{#1}%
  \DeclareFieldFormat{labelnumber}{#1}}

\begin{document}
\cite{sigfridsson} and \cite{geer} 

\printbibliography
\end{document}

在此处输入图片描述

如果你喜欢所有东西都加粗,你可能会喜欢

\newrobustcmd{\mkbibboldbrackets}[1]{\mkbibbold{\mkbibbrackets{#1}}}

\DeclareCiteCommand{\cite}[\mkbibboldbrackets]
  {\usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \usebibmacro{cite}}
  {\multicitedelim}
  {\usebibmacro{postnote}}

相关内容