我能有......吗
Para numbers as 1.
sub para as (a)
sub sub para as (i)
sub sub sub para as (aa)
答案1
这是一个方法,如果para
意味着\section
等。(在这种情况下,\thesection
不需要更改)。
(aa)
可以通过并仅通过虚拟地\alphalph
增加数字来获得编号。subparagraph
26
我已经提供了一种enumitem
方法,以防实际需要列表。
对于\section
- 版本 - 我完全不推荐这种编号/标签样式!
问题还是:标签a
的第一个是否(aa)
来自paragraph
(a) ? Or is it always
(aa)`,而不管较高级别的编号是多少?
\documentclass{article}
\usepackage{enumitem}
\usepackage{alphalph}
\renewcommand{\thesubsection}{(\alph{section})}
\renewcommand{\thesubsubsection}{(\roman{subsubsection})}
\renewcommand{\theparagraph}{(\alphalph{\numexpr\value{paragraph}+26})}
\renewcommand{\thesubparagraph}{(\alphalph{\numexpr\value{paragraph}}\alphalph{\numexpr\value{subparagraph}+26})}
\setcounter{secnumdepth}{5}
\makeatletter
\def\aaitem#1{\expandafter\@aaitem\csname c@#1\endcsname}
\def\@aaitem#1{%
\alphalph{\the\numexpr#1+26}%
}
\AddEnumerateCounter*{\aaitem}{\@aaitem}{100}
\makeatother
\newlist{paralist}{enumerate}{4}
\setlist[paralist]{font={\bfseries}}
\setlist[paralist,1]{label={\arabic*}}
\setlist[paralist,2]{label={(\roman*)}}
\setlist[paralist,3]{label={(\alph*)}}
\setlist[paralist,4]{label={(\aaitem*)}}
\begin{document}
\begin{paralist}
\item Foo
\begin{paralist}
\item Foo Bar
\begin{paralist}
\item Foo Bar Foo
\begin{paralist}
\item Foo Bar Foo Bar
\item Foo Bar Foo Bar Foo
\end{paralist}
\item Foo Bar Foo
\end{paralist}
\item Foo Bar
\end{paralist}
\item Foo
\end{paralist}
\section{Foo}
\subsection{Foobar}
\subsubsection{FooBarFoo}
\paragraph{FooBarFooBar}
\paragraph{More FooBarFooBar}
\subsubsection{Other FooBarFoo}
\paragraph{FooBarFooBarFoo}
\paragraph{Even More FooBarFooBarFoo}
\subparagraph{FooBarFooBarFoo}
\end{document}