1

Is there any way to fix the numbering issue for subparagraph

\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}

The output for the code:

Blockquote

The numbering of paragraph and subparagraph are the same

2
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Sep 16, 2023 at 6:32
  • Welcome to TeX.SE.
    – Mico
    Sep 16, 2023 at 6:44

1 Answer 1

1

The numbering of paragraphs and subparagraphs is the same.

In the code block

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

I suggest you change the line

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

to

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .