子段落编号问题:段落和子段落的编号相同

子段落编号问题:段落和子段落的编号相同

有什么方法可以解决子段落的编号问题

\documentclass[a4paper]{jpconf}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{adjustbox}
\usepackage{multirow,tabularx}
\renewcommand\tabularxcolumn[1]{m{#1}}
\usepackage{amsmath}
\usepackage{amssymb}

\usepackage{titlesec}
\setcounter{secnumdepth}{6}

% Format section, subsection, and subsubsection titles
\titleformat{\section}
{\normalfont\Large\bfseries}{\thesection}{1em}{}
\titlespacing*{\section}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

\titleformat{\subsection}
{\normalfont\large\bfseries}{\thesubsection}{1em}{}
\titlespacing*{\subsection}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

\titleformat{\subsubsection}
{\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{}
\titlespacing*{\subsubsection}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

\titleformat{\paragraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

\titleformat{\subparagraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\subparagraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

\begin{document}
    
    \section{Test Section}
    test
    \subsection{Test Subsection}
    test
    \subsubsection{Test Subsubsection}
    test
    \paragraph{Test Modified Paragraph}
    test
    \subparagraph{Test Modified Sub-Paragraph}
    test
    
    

\end{document}

代码的输出:

引用

款号和小段号相同

答案1

段落和小段的编号相同。

在代码块中

\titleformat{\subparagraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\subparagraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

我建议你换个方式

{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}

{\normalfont\normalsize\bfseries}{\thesubparagraph}{1em}{}

相关内容