笔记: 我之前问过类似的问题:子图包中图形内的子图数量是否有限制?说实话,情况几乎一样,但是解决方案不能像以前那样应用。
平均能量损失
\documentclass{IEEEtran}
\begin{document}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\end{document}
解释与疑问
当。。。的时候平均能量损失我创建的文档在编译时会返回错误 LaTeX
Error: Counter too large
,但如果删除其中一行\subsection{}
,文档将毫无问题地创建。问题是,当在子节计数器中到达字母“Z”时,它无法继续。
- 怎么才能解决这个问题(想法是针对计数器的
A, B, C, ..., AA, AB, AC, ..., BA, BB, BC, ..., AAA, AAB, AAC, ..., ABA, ABB, ABC, ...
)?
答案1
由于subsection
计数器按字母顺序排列,超过 26 个子部分将触发上述错误。您可以使用alphalph
包裹:
\documentclass{IEEEtran}
\usepackage{alphalph}
\renewcommand\thesubsectiondis{\AlphAlph{\value{subsection}}.}% for the headings in the text
\renewcommand\thesubsection{\mbox{\thesection-\AlphAlph{\value{subsection}}}}% for the ToC, for example
\begin{document}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\subsection{}
\end{document}