![如何为带文内引用的文本添加下划线并进行换行?](https://linux22.com/image/377813/%E5%A6%82%E4%BD%95%E4%B8%BA%E5%B8%A6%E6%96%87%E5%86%85%E5%BC%95%E7%94%A8%E7%9A%84%E6%96%87%E6%9C%AC%E6%B7%BB%E5%8A%A0%E4%B8%8B%E5%88%92%E7%BA%BF%E5%B9%B6%E8%BF%9B%E8%A1%8C%E6%8D%A2%E8%A1%8C%EF%BC%9F.png)
我想要加下划线的文本行包含文内引用。我的问题是,\uline
只有使用 时, 才能在此行上起作用\mbox
(没有 时会出错\mbox
),这使得无法换行文本。请注意,当我删除命令时\cite
,\uline
可以完美运行。如何为包含引用的文本加下划线并换行?
\documentclass[12pt]{article}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Article{ hermes2008a,
author = {Hermes, Juliet C. and Reason, C. J C},
journal = {Journal of Geophysical Research: Oceans},
number = {4},
pages = {1--10},
title = {{Annual cycle of the South Indian Ocean
(Seychelles-Chagos) thermocline ridge in a regional ocean
model}},
volume = {113},
year = {2008}
}
\end{filecontents*}
\usepackage{geometry}
\geometry{a4paper,total={170mm,257mm},left=18mm,right=18mm,top=27mm,bottom=27mm}
\usepackage[comma,authoryear]{natbib}
\bibliographystyle{agsm}
\usepackage[utf8]{inputenc}
\usepackage[normalem]{ulem}
\usepackage{usebib}
\bibinput{\jobname}
\begin{document}
\subsubsection*{\uline{~\mbox{\cite{hermes2008a}: ~\mbox{\usebibentry{hermes2008a}{title}}}}}
\subsubsection*{\uline{Hermes and Reason (2008): Annual cycle of the South Indian Ocean (Seychelles-Chagos) thermocline ridge in a regional ocean model}}
\subsubsection*{\cite{hermes2008a}: \usebibentry{hermes2008a}{title}}
\bibliography{\jobname}
\end{document}