豪华版* 字幕未显示

豪华版* 字幕未显示

我正在尝试使用两列格式的 ApJ 文章样式创建页面范围的豪华版。创建单列豪华版时会显示标题,但使用豪华版* 时不会显示。我收到以下错误:

“包 ltcaption 错误:在 longtable* 环境中不允许”

这是我的序言和最小可编译代码:

\documentclass[apj]{emulateapj}
\usepackage{subcaption}
\usepackage{tablefootnote}
\begin{document}

%Table 1: Non-working example
\begin{deluxetable*}{cc}
\tabletypesize{\footnotesize}
\tablewidth{0.99\textwidth}
\tablecaption{This caption does not display}
\tablehead{
\colhead{col 1$^{1}$} & 
\colhead{col 2} 
} 
\startdata
1 & 1 \\
1 & 1
\enddata
\tablenotetext{1}{Footnote}
\end{deluxetable*}

%Table 2: Working example
\begin{deluxetable}{cc}
\tabletypesize{\footnotesize}
\tablewidth{0.99\textwidth}
\tablecaption{This caption does display}
\tablehead{
\colhead{col 1$^{1}$} & 
\colhead{col 2} 
} 
\startdata
1 & 1 \\
1 & 1
\enddata
\tablenotetext{1}{Footnote}
\end{deluxetable}

\end{document}

答案1

当你编译代码时,你会收到来自caption包的此警告

Package caption Warning: Unsupported document class (or package) detected,
(caption)                usage of the caption package is not recommended.
See the caption package documentation for explanation.

因此您不能使用subcaption负责加载caption包的包。事实上,随后加载的ltcaption包(由caption)定义了lontable*显然由定义的命令emulateapj

因此,删除后\usepackage{subcaption}你的代码就可以编译了。但是,软件包tablefootnote开始发出警告:

Package etoolbox Warning: Patching '\begin' failed!
(etoolbox)                '\AtBeginEnvironment' will not work.


Package etoolbox Warning: Patching '\end' failed!
(etoolbox)                '\AtEndEnvironment' will not work.


Package etoolbox Warning: Patching '\end' failed!
(etoolbox)                '\AfterEndEnvironment' will not work.

etoolbox被 BTW 使用tablefootnote。为了安全起见,tablefootnote也不要使用。

\documentclass[apj]{emulateapj}
%\usepackage{subcaption}
%\usepackage{tablefootnote}
\begin{document}

%Table 1: Non-working example
\begin{deluxetable*}{cc}
\tabletypesize{\footnotesize}
\tablewidth{0.99\textwidth}
\tablecaption{This caption does not display}
\tablehead{
\colhead{col 1$^{1}$} &
\colhead{col 2}
}
\startdata
1 & 1 \\
1 & 1
\enddata
\tablenotetext{1}{Footnote}
\end{deluxetable*}

%Table 2: Working example
\begin{deluxetable}{cc}
\tabletypesize{\footnotesize}
\tablewidth{0.99\textwidth}
\tablecaption{This caption does display}
\tablehead{
\colhead{col 1$^{1}$} &
\colhead{col 2}
}
\startdata
1 & 1 \\
1 & 1
\enddata
\tablenotetext{1}{Footnote}
\end{deluxetable}

\end{document}

在此处输入图片描述

相关内容