我仔细阅读了不同的论坛,并找到了对“https://tex.stackexchange.com/questions/60209/how-to-add-an-extra-level-of-sections-with-headings-below-subsubsection/60212#60212?newreg=f4c391bc5752415792d4b68692c06e35”这个问题的很好的回答。然而,我没有找到任何允许我使用@Gonzalo Medina的方法的答案(https://tex.stackexchange.com/a/60212/268708),同时设法将新的“段落”部分的数字更改为“a”之类的字母。
在示例中,我希望“段落”\paragraph{Very very very funny part}
部分提供“1.1.1.a 非常非常有趣的部分
例子:
\documentclass[11pt, A4paper]{article}
%Begin[section parameters]
\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{-2.5ex\@plus -1ex \@minus -.25ex}%
{1.25ex \@plus .25ex}%
{\normalfont\normalsize\bfseries}}
\makeatother
\setcounter{secnumdepth}{4} % how many sectioning levels to assign numbers to
\setcounter{tocdepth}{4} % how many sectioning levels to show in ToC
%End[section parameter]
\begin{document}
\maketitle
\tableofcontents
\section{Introduction}
\subsection{Very funny part}
\subsubsection{Very Very funny part}
\paragraph{Very very very funny part}
\end{document}
谢谢您的回答
答案1
您只需通过重新定义来更改计数器的格式\theparagraph
。顺便说一下,DIN A4 纸张的选项是a4paper
(全部小写)。
\documentclass[11pt, a4paper]{article}
%Begin[section parameters]
\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{-2.5ex\@plus -1ex \@minus -.25ex}%
{1.25ex \@plus .25ex}%
{\normalfont\normalsize\bfseries}}
\makeatother
\setcounter{secnumdepth}{4} % how many sectioning levels to assign numbers to
\setcounter{tocdepth}{4} % how many sectioning levels to show in ToC
\renewcommand\theparagraph{\thesubsubsection.\alph{paragraph}}
%End[section parameter]
\begin{document}
%\maketitle
\tableofcontents
\section{Introduction}
\subsection{Very funny part}
\subsubsection{Very Very funny part}
\paragraph{Very very very funny part}
\end{document}