
図や表のキャプションに完全な引用を表示したいのですが、\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}