这个问题其实是因为\CJKunderline
实际上模仿的是ulem
的方法,因此该问题实际上可以进一步简化为ulem
与footnote
的冲突。
下面是一个不优雅的workaround:
\documentclass[b5paper,twoside,openany,UTF8,no-math]{ctexbook}
\usepackage{color}
\usepackage{xeCJKfntef}
\xeCJKsetup{underline={%
format = \color{yellow},
thickness = 1.25\ccwd,
depth = -1.0\ccwd,
}
}
\usepackage{soul}
\usepackage{ulem}
\begin{document}
这是一段测试文字,\CJKunderline*{其中这些文字用xeCJKfntef宏包高亮,但是这些文字\mbox{\footnotemark} 的注释显示异常。}\footnotetext{显示异常的注释。}
I can eat the glass and it doesn't hurt me.I can \uline{eat the glass and it doesn't hurt\mbox{\footnotemark} me}.I can eat the glass and it doesn't hurt me.\footnotetext{note with ulem}
I can eat the glass and it doesn't hurt me.I can \hl{eat the glass and it doesn't hurt\footnote{the footnote in hl} me}.I can eat the glass and it doesn't hurt me.
I can eat the glass and it doesn't hurt me.I can \ul{eat the glass and it doesn't hurt\footnote{the footnote in hl} me}.I can eat the glass and it doesn't hurt me.
\end{document}
同时还发现基于soul
宏包实现的高亮不会影响footnote
.
问 在使用xeCJKfntef包排版高亮文字时,footnote无法正常显示,如何解决?