Я создал следующую конструкцию и теперь обновил ее :
Описание
Новый счетчик для секций, который будет использоваться только в блоке \begin{alphasection}
... \end{alphasection}
. Не вкладывайте блок, иначе оригинальный номер раздела будет утерян; в этом случае выдается сообщение об ошибке . Каждый блок начнет пересчет с «А». Исходный подсчет разделов продолжается, поскольку это требуется для HyperRef.
Введите следующий код в Преамбулу :
\newcounter{alphasect}
\def\alphainsection{0}
\let\oldsection=\section
\def\section{%
\ifnum\alphainsection=1%
\addtocounter{alphasect}{1}
\fi%
\oldsection}%
\renewcommand\thesection{%
\ifnum\alphainsection=1%
\Alph{alphasect}
\else%
\arabic{section}
\fi%
}%
\newenvironment{alphasection}{%
\ifnum\alphainsection=1%
\errhelp={Let other blocks end at the beginning of the next block.}
\errmessage{Nested Alpha section not allowed}
\fi%
\setcounter{alphasect}{0}
\def\alphainsection{1}
}{%
\setcounter{alphasect}{0}
\def\alphainsection{0}
}%
В документе :
\section{First test}
First content
\section{Second test}
Second content
\begin{alphasection}
\section{Third test}
\subsection{Subsection test}
Content test
\section{Test Other section}
\end{alphasection}
\section{Fourth test}
Last content
Производит
1 First test
First content
2 Second test
Second content
A Third test
A.1 Subsection test
Content test
B Test Other section
5 Fourth test
Last content
Протестировано, работает с HyperRef.