表格标题不显示

表格标题不显示

我在 overleaf 中遇到以下问题:我正在使用CAIM_sciendo_open_article_BY4类和表格中的标题

\begin{table}[H]
\centering
\caption{Physical parameters of polypropylene}
\label{tab:polipropilene}
\begin{tabular}{llll}
Parameter     & Value & Units \\
\hline
Melting point        & $130$--$171$   & $\unit{\celsius}$        & measured $160$ $\celsius$ \\
Density              & $855$--$946$   & $\unit{Kg}/\unit{m}^3$   & atactic: $866$ \\
%molar Heat Capacity  & $88$--$90$     & $\unit{J}/\unit{mol K}$  & \\
Thermal conductivity & $0.17$--$0.22$  & $\unit{W}/(\unit{m K})$  &  at $23$ $\celsius$ typ $0.17$ \\
Specific heat        & $581.97$--$2884.71$ & $\unit{J}/(\unit{Kg K})$ & temp. in K \\
%Tensile modulus      & $1200$         & $\unit{Mpa}$               & \\
%Flexural modulus     & $1150$         & $\unit{Mpa}$               & \\
Young's module         & $1300$--$1800$ & $\unit{N}/\unit{mm}^2=\unit{MPa}$               & \\
%Elongation           & $450$          & \textrm{\%}                  & \\
%Vicat softening temperature & $90$--$150$    & $\celsius$             & \\
\hline
\end{tabular}
\end{table}

(但在任何其他表中也是如此)没有显示。如果我添加包

\usepackage{subfig}

或者

\usepackage{caption}

标题正在显示但我收到以下错误:

LaTeX Error: Command \captionbox already defined.

Or name \end... illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
..                                              
                                              
l.454 ...ption@withoptargs{\caption@ibox\@gobble}}
                                              
Your command was ignored.
Type  I <command> <return>  to replace it with another command,
or  <return>  to continue without it.

有人可以告诉我我哪里错了吗?

谢谢

答案1

文档CAIM_Sciendo_open_article_BY4类似乎以一种(可以说是)特殊的方式设置了标题的外观。我建议您运行\let\captionbox\relax以有效地禁用文档类的标题相关代码,加载标题包,并使用该包的\DeclareCaptionLabelSeparator\captionsetup命令来复制文档类的首选标题格式。

请努力更好地掌握\unit、和宏\qty\num\numrange希尼奇封装。当然,请仅使用k来表示“千”,请仅使用K来表示“开尔文”。

在此处输入图片描述

\documentclass{CAIM_Sciendo_open_article_BY4}

\usepackage{siunitx}
\sisetup{range-phrase=\textendash, per-mode=symbol}

\usepackage{booktabs} % for well-spaced horizontal rules

\let\captionbox\relax
\usepackage{caption}
\DeclareCaptionLabelSeparator{dotquad}{.\quad} % period and quad
\captionsetup{labelsep=dotquad, skip=0.25\baselineskip}

\begin{document}

\begin{table}[ht]

\centering

\caption{Physical parameters of polypropylene}
\label{tab:polipropilene}

\begin{tabular}{@{} llll @{}}
\toprule
Parameter            & Value range         & Unit & \\
\midrule
Melting point        & \numrange{130}{171} & \unit{\celsius}                  & measured \qty{160}{\celsius} \\
Density              & \numrange{855}{946} & \unit{\kilogram\per\meter\cubed} & atactic: \num{866} \\
Thermal conductivity & \numrange{0.17}{0.22} & \unit{\watt\per(\meter\kelvin)}& at \qty{23}{\celsius} typ \num{0.17} \\
Specific heat        & \numrange{581.97}{2884.71} & \unit{\joule\per(\kilogram\,\kelvin)} & temp.\ in \unit{\kelvin} \\
Young's module       & \numrange{1300}{1800} & \unit{\newton\per\milli\meter\squared}${}={}$\unit{\mega\pascal} & \\
\bottomrule
\end{tabular}

\end{table}

\end{document}

相关内容