
我想要圖表或表格標題中顯示的完整引文。我正在嘗試使用\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}