我正在使用单列格式的 Elsevier 模板,我面临 subsections 命令无法正常工作的问题,因为它们显示为带有错误编号的普通部分,例如
\documentclass[a4paper,fleqn]{cas-sc}
\begin{document}
\section{A}
\subsection{AA}
\subsubsection{BB}
\end{document}
谁能帮我解决这个问题?
我正在使用单列格式的 Elsevier 模板,我面临 subsections 命令无法正常工作的问题,因为它们显示为带有错误编号的普通部分,例如
\documentclass[a4paper,fleqn]{cas-sc}
\begin{document}
\section{A}
\subsection{AA}
\subsubsection{BB}
\end{document}
谁能帮我解决这个问题?
你使用得当。这一定是cas-sc
您正在使用的类文件 ( ) 的问题。
我不确定这是否是设计使然(这将是一种非常奇怪的行为),但这种行为是由类文件中的一些重新定义引起的。要解决此问题,可以修复这些重新定义并使用
\documentclass[a4paper,fleqn]{cas-sc}
\makeatletter
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
{10pt \@plus 3\p@ \@minus 2\p@}%
{.1\p@}%
{%\let\@hangfrom\relax
\ssectionfont\raggedright }}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
{10pt \@plus 1\p@ \@minus .3\p@}%
{.1\p@}%
{%\let\@hangfrom\relax
\sssectionfont\raggedright}}
\makeatother
\begin{document}
\section{A}
\subsection{AA}
\subsubsection{BB}
\end{document}
(如果您打算将文件提交给期刊,请不要这样做)