我想像图中一样只在 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}