![子段落编号问题:段落和子段落的编号相同](https://linux22.com/image/469009/%E5%AD%90%E6%AE%B5%E8%90%BD%E7%BC%96%E5%8F%B7%E9%97%AE%E9%A2%98%EF%BC%9A%E6%AE%B5%E8%90%BD%E5%92%8C%E5%AD%90%E6%AE%B5%E8%90%BD%E7%9A%84%E7%BC%96%E5%8F%B7%E7%9B%B8%E5%90%8C.png)
有什么方法可以解决子段落的编号问题
\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}{}