我想要另一层级的子部分(即 subsubsubsections)。为此,我使用;
\setcounter{secnumdepth}{5}
\paragraph{This is my subsubsubsection}
但是,这给了我一个错误,说Missing number, treated as zero.
。有什么办法可以解决这个问题吗?
我的MWE如下:
\documentclass[acmsmall]{acmart}
\copyrightyear{2018}
\acmYear{2018}
\setcopyright{acmlicensed}
\acmConference[Woodstock '18]{Woodstock '18: ACM Symposium on Neural Gaze Detection}{June 03--05, 2018}{Woodstock, NY}
\acmBooktitle{Woodstock '18: ACM Symposium on Neural Gaze Detection, June 03--05, 2018, Woodstock, NY}
\acmPrice{15.00}
\acmDOI{10.1145/1122445.1122456}
\acmISBN{978-1-4503-9999-9/18/06}
\setcounter{secnumdepth}{5}
\begin{document}
\title{The Name of the Title is Hope}
\author{Ben Trovato}
\authornote{Both authors contributed equally to this research.}
\email{[email protected]}
\orcid{1234-5678-9012}
\author{G.K.M. Tobin}
\authornotemark[1]
\email{[email protected]}
\affiliation{%
\institution{Institute for Clarity in Documentation}
\streetaddress{P.O. Box 1212}
\city{Dublin}
\state{Ohio}
\postcode{43017-6221}
}
\renewcommand{\shortauthors}{Trovato and Tobin, et al.}
\begin{CCSXML}
<ccs2012>
<concept>
<concept_id>10010520.10010553.10010562</concept_id>
<concept_desc>Computer systems organization~Embedded systems</concept_desc>
<concept_significance>500</concept_significance>
</concept>
<concept>
<concept_id>10010520.10010575.10010755</concept_id>
<concept_desc>Computer systems organization~Redundancy</concept_desc>
<concept_significance>300</concept_significance>
</concept>
<concept>
<concept_id>10010520.10010553.10010554</concept_id>
<concept_desc>Computer systems organization~Robotics</concept_desc>
<concept_significance>100</concept_significance>
</concept>
<concept>
<concept_id>10003033.10003083.10003095</concept_id>
<concept_desc>Networks~Network reliability</concept_desc>
<concept_significance>100</concept_significance>
</concept>
</ccs2012>
\end{CCSXML}
\ccsdesc[500]{Computer systems organization~Embedded systems}
\ccsdesc[300]{Computer systems organization~Redundancy}
\ccsdesc{Computer systems organization~Robotics}
\ccsdesc[100]{Networks~Network reliability}
\keywords{datasets, neural networks, gaze detection, text tagging}
\maketitle
\section{Introduction}
Some Text here
\subsection{mmm}
Some Text here
\subsubsection{mmm}
Some Text here
\paragraph{nnn}
Some Text here
\end{document}
我从以下网址获取了此模板:https://www.acm.org/publications/authors/submissions
答案1
该acmart
类别不支持\subsubsection
级别以下的编号。
你可以通过提供以下代码来“修复”当前错误
\makeatletter
\@namedef{r@tocindent4}{0pt}
\@namedef{r@tocindent5}{0pt}
\makeatother
在序言中。长度设置为零,因为我认为无论如何您都不需要达到该级别的目录。
完整代码。
\documentclass[acmsmall]{acmart}
\copyrightyear{2018}
\acmYear{2018}
\setcopyright{acmlicensed}
\acmConference[Woodstock '18]{Woodstock '18: ACM Symposium on Neural Gaze Detection}{June 03--05, 2018}{Woodstock, NY}
\acmBooktitle{Woodstock '18: ACM Symposium on Neural Gaze Detection, June 03--05, 2018, Woodstock, NY}
\acmPrice{15.00}
\acmDOI{10.1145/1122445.1122456}
\acmISBN{978-1-4503-9999-9/18/06}
\setcounter{secnumdepth}{5}
\makeatletter
\@namedef{r@tocindent4}{30pt}
\@namedef{r@tocindent5}{30pt}
\makeatother
\begin{document}
\title{The Name of the Title is Hope}
\author{Ben Trovato}
\authornote{Both authors contributed equally to this research.}
\email{[email protected]}
\orcid{1234-5678-9012}
\author{G.K.M. Tobin}
\authornotemark[1]
\email{[email protected]}
\affiliation{%
\institution{Institute for Clarity in Documentation}
\streetaddress{P.O. Box 1212}
\city{Dublin}
\state{Ohio}
\postcode{43017-6221}
}
\renewcommand{\shortauthors}{Trovato and Tobin, et al.}
\begin{CCSXML}
<ccs2012>
<concept>
<concept_id>10010520.10010553.10010562</concept_id>
<concept_desc>Computer systems organization~Embedded systems</concept_desc>
<concept_significance>500</concept_significance>
</concept>
<concept>
<concept_id>10010520.10010575.10010755</concept_id>
<concept_desc>Computer systems organization~Redundancy</concept_desc>
<concept_significance>300</concept_significance>
</concept>
<concept>
<concept_id>10010520.10010553.10010554</concept_id>
<concept_desc>Computer systems organization~Robotics</concept_desc>
<concept_significance>100</concept_significance>
</concept>
<concept>
<concept_id>10003033.10003083.10003095</concept_id>
<concept_desc>Networks~Network reliability</concept_desc>
<concept_significance>100</concept_significance>
</concept>
</ccs2012>
\end{CCSXML}
\ccsdesc[500]{Computer systems organization~Embedded systems}
\ccsdesc[300]{Computer systems organization~Redundancy}
\ccsdesc{Computer systems organization~Robotics}
\ccsdesc[100]{Networks~Network reliability}
\keywords{datasets, neural networks, gaze detection, text tagging}
\maketitle
\section{Introduction}
Some Text here
\subsection{mmm}
Some Text here
\subsubsection{mmm}
Some Text here
\paragraph{nnn}
Some Text here
\end{document}