![我怎样才能仅列举某些小节?](https://linux22.com/image/321689/%E6%88%91%E6%80%8E%E6%A0%B7%E6%89%8D%E8%83%BD%E4%BB%85%E5%88%97%E4%B8%BE%E6%9F%90%E4%BA%9B%E5%B0%8F%E8%8A%82%EF%BC%9F.png)
我想像图中一样只在 BB 前显示序列号 1. 2. 或 1) 2)。我不想使用这样的方法\subsection{1.BB}
。 \subsection{2.BB}
有没有更聪明的方法?
\documentclass[a4paper,man,natbib]{apa6}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{multirow}
\title{AAA}
\shorttitle{AAA}
\begin{document}
\section{A}
\subsection{AA}
AAA
\subsection{AA}
AAA
\section{B}
\subsection{BB}
BBB
\subsection{BB}
BBB
\section{C}
\subsection{CC}
CCC
\subsection{CC}
CCC
\end{document}
答案1
调整并在适当的位置secnumdepth
显示子部分计数器:\thesubsection
\documentclass[man]{apa6}
\title{AAA}
\shorttitle{AAA}
% Remove \thesection from \thesubsection
\renewcommand{\thesubsection}{\arabic{subsection}}% Default \thesection.\arabic{subsection}
\begin{document}
\section{A}
\subsection{AA}
AAA
\subsection{AA}
AAA
\section{B}
% Display subsection counters and above
\setcounter{secnumdepth}{2}
\subsection{BB}
BBB
\subsection{BB}
BBB
% Display only chapter counters and above
\setcounter{secnumdepth}{0}
\section{C}
\subsection{CC}
CCC
\subsection{CC}
CCC
\end{document}