问题描述
我在/ paragraph节下定义了两个新的节。一个是“ \ mysection”,另一个是“ \ myszsection”。 \ mysection未重置,并且在使用mysection之后,段落编号没有增加。
\documentclass[conference]{IEEEtran}
\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{chngcntr}
\newcounter{mysection}
\setcounter{secnumdepth}{5}
\titleclass{\mysection}{straight}[\part]
\titleformat{\mysection}[hang]
{\itshape \normalsize}{\themysection}{0em}{.}
\titlespacing{\mysection}{25pt}{0ex }{0 ex }
\renewcommand{\themysection}{\roman{mysection}}
\renewcommand{\theparagraph}{\themysection.\arabic{paragraph}}
\counterwithin{paragraph}{mysection}
\newcounter{myzsection}
\setcounter{secnumdepth}{6}
\titleclass{\myzsection}{straight}[\part]
\titleformat{\myzsection}[hang]
{\itshape \normalsize}{\themyzsection}{1em}{}
\titlespacing{\myzsection}{33pt}{0ex }{0 ex }
\renewcommand{\themyzsection}{\arabic{myzsection}}
\renewcommand{\theparagraph}{\themyzsection.\arabic{paragraph}}
\counterwithin{paragraph}{myzsection}
\contentsmargin{1em}
\begin{document}
\section{Introduction}
gg
\subsection{deatails}\label{AA}
gg
\subsubsection{gg again}
gg
\paragraph{gg this too}
gg
\mysection{problem}
gg
\myzsection{problem}
gg
\paragraph{problem1}
When i added them,paragraph number stopped increasing. What to do?
\mysection{problem2}
The counter is not resetting for the new defined sections. When i use them under another section it continues increasing from before. What to do?
\end{document}
- 当我添加它们时,段落号停止增加。该怎么办?
- 未为新定义的部分重置计数器。当我在另一部分下使用它们时,它会比以前持续增加。该怎么办?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)