如何在图表或表格标题中完整引用 bibentry 而不使用脚注?

如何在图表或表格标题中完整引用 bibentry 而不使用脚注?

我想要在图片或表格标题中显示完整的引文。我正在尝试使用\bibentry但有一些错误。请帮忙。这是 MWE。

更新:我也尝试过使用\脚注标记随着\脚注文本但这也给我带来了错误。

\begin{filecontents}{mytestbib.bib}
@book{goossens93,
author = "Frank Mittelbach and Michel Goossens  and Johannes Braams and David Carlisle  and Chris Rowley",
title = "The {LaTeX} Companion",
year = "1993",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
\end{filecontents}
\documentclass{article}
\usepackage{graphicx,xcolor}
\usepackage{footnote}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{array}
\usepackage{filecontents}
\usepackage{natbib}
\usepackage{bibentry}
\nobibliography*

\begin{document}

A full in-text cite of \bibentry{goossens93}.

A regular citation of \cite{goossens93}.

Let's check if it works in a table caption.

\begin{table}[!htbp]
\centering 
\caption{Liquid-solid mass transfer.  Figures redrawn based on the reference~\bibentry{goossens93} used under fair  use, 2014.}
\resizebox{\textwidth}{!}{%
\begin{tabular}{llllll}
\toprule
 Parameter & Symbol & Units & Value & Source & Remarks \tabularnewline  
\hline
Kinematic Viscosity & - & - & - & Melt &\tabularnewline
\hline
Superficial Liquid Velocity & - & - & 0.4-0.5 & - & \tabularnewline
  \hline
  Bed Void Fraction &  & fraction & - & - & \tabularnewline
  \hline
  \end{tabular}}
  \end{table}

\bibliographystyle{plainnat}
\bibliography{mytestbib}

\end{document} 

答案1

该命令\bibentry很脆弱,因此不能按原样用于移动参数(标题和章节标题)。

你可以\protect\bibentry在标题中偶尔使用它;如果它出现在其中几个标题中,你可以这样做

\usepackage{etoolbox}

进而

\robustify{\bibentry}

\usepackage{bibentry}

\documentclass{article}
\usepackage{graphicx,xcolor}
\usepackage{footnote}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{array}
\usepackage{etoolbox}
\usepackage{natbib}
\usepackage{bibentry}

\robustify{\bibentry}

\nobibliography*

\begin{document}

不过,我建议采用另一种方法。书目条目似乎只是对来源的确认,因此您可以考虑

\begin{table}[!htbp]
\centering
\caption{Liquid-solid mass transfer}

\resizebox{\textwidth}{!}{%
\begin{tabular}{llllll}
\toprule
 Parameter & Symbol & Units & Value & Source & Remarks \tabularnewline
\hline
Kinematic Viscosity & - & - & - & Melt &\tabularnewline
\hline
Superficial Liquid Velocity & - & - & 0.4-0.5 & - & \tabularnewline
  \hline
  Bed Void Fraction &  & fraction & - & - & \tabularnewline
  \hline
  \end{tabular}}

\begin{quote}\footnotesize
Figures redrawn based on the
reference \bibentry{goossens93} used under fair use, 2014.
\end{quote}
\end{table}

在此处输入图片描述

相关内容