編號問題幫幫我!

編號問題幫幫我!

我不知道我的解釋是否正確,但我想製作以下文件

這是關於編號的。我正在嘗試自己,但是...我認為這對我來說太難了。你能告訴我如何製作這樣的文檔嗎?

在此輸入影像描述

謝謝你!

答案1

只要章節標題的縮排不是問題,以下內容就可以作為起點:

\documentclass[a4paper]{article}
\usepackage{hyperref}

\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}

\renewcommand\thesection{\Roman{section}.}
\renewcommand\thesubsection{\arabic{subsection}.}
\renewcommand\thesubsubsection{(\arabic{subsubsection})}
\renewcommand\theparagraph{\arabic{paragraph})}
\renewcommand\thesubparagraph{\arabic{subparagraph})}

\AtBeginDocument{%
  \csname @ifpackageloaded\endcsname{hyperref}{%
    % \theH... -macros are used ny hyperref's automatic creating of
    % anchor-names/destination-names for hyperlinking. Anchor-names/
    % destination-names must be unique within the document.
    \renewcommand\theHsection{\thesection}%
    \renewcommand\theHsubsection{\theHsection\thesubsection}%
    \renewcommand\theHsubsubsection{\theHsubsection\thesubsubsection}%
    \renewcommand\theHparagraph{\theHsubsubsection\theparagraph}%
    \renewcommand\theHsubparagraph{\theHparagraph\thesubparagraph}%
  }{}%
}%

\begin{document}

\tableofcontents

\section{First Section}
\subsection{First Subsection}
\subsubsection{First Subsubsection}
\paragraph{Paragraph (maybe?)}
\paragraph{Paragraph}
\paragraph{paragraph}
\subsection{Second Subsection}
\section{Second Section}

\end{document}

在此輸入影像描述

答案2

當然,你可以使用段落做一個子子子節,程式碼如下:

\usepackage{titlesec}
\setcounter{secnumdepth}{4} % how many sectioning levels to assign numbers to
\setcounter{tocdepth}{4}    % how many sectioning levels to show in ToC
\titleformat{\paragraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
\newcommand{\subsubsubsection}{\paragraph}  %define newcommand \subsubsubsection

結果

在此輸入影像描述

上述實現的結果可以在:https://github.com/wanzhenchn/Programming_Assignments_of_Deep_Learning

相關內容