手动乳胶部分 IEEE 标准
Manual latex section IEEE standard
我在 /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}
- 当我添加它们时,段落数停止增加。怎么办?
- 计数器不会为新定义的部分重置。当我在另一个部分下使用它们时,它会比以前继续增加。怎么办?
使用您的代码,您将 paragraph
计数器重置为 my(z)section
,但您需要反过来(并且您也不能在段落中包含 my(z)section
计数器数):
\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 }
\counterwithin{mysection}{paragraph}
%
\newcounter{myzsection}
\setcounter{secnumdepth}{6}
\titleclass{\myzsection}{straight}[\part]
\titleformat{\myzsection}[hang]
{\itshape \normalsize}{\themyzsection}{1em}{}
\titlespacing{\myzsection}{33pt}{0ex }{0 ex }
\counterwithin{myzsection}{paragraph}
\contentsmargin{1em}
\renewcommand{\themysection}{\roman{mysection}}
\renewcommand{\themyzsection}{\arabic{myzsection}}
\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}
我在 /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}
- 当我添加它们时,段落数停止增加。怎么办?
- 计数器不会为新定义的部分重置。当我在另一个部分下使用它们时,它会比以前继续增加。怎么办?
使用您的代码,您将 paragraph
计数器重置为 my(z)section
,但您需要反过来(并且您也不能在段落中包含 my(z)section
计数器数):
\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 }
\counterwithin{mysection}{paragraph}
%
\newcounter{myzsection}
\setcounter{secnumdepth}{6}
\titleclass{\myzsection}{straight}[\part]
\titleformat{\myzsection}[hang]
{\itshape \normalsize}{\themyzsection}{1em}{}
\titlespacing{\myzsection}{33pt}{0ex }{0 ex }
\counterwithin{myzsection}{paragraph}
\contentsmargin{1em}
\renewcommand{\themysection}{\roman{mysection}}
\renewcommand{\themyzsection}{\arabic{myzsection}}
\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}