カスタムセクション番号(文字と数字)

カスタムセクション番号(文字と数字)

そういうものをもらえますか?

1. section one
  1.1 subsection one
  1.2 subsction two

2. section two
  2.1 subsection two

    A. title
       1) subtitle A.1
       2) subtitle A.2

    B. title
       1) subtitle B.1
           a) subsubtitle B.1.a
           b) subsubtitle B.1.b
       2) subtitle B.2

    C. title
    .
    .
    .
    .
    etc

          2.1.1 subsubsection two one
          2.1.2 subsubsection two two
          2.1.3 subsubsection two three
          2.1.4 subsubsection two four

アイデアは、タイトル/セクションを導入し、手紙あるいは最終的にはセクション構造を変えずに他の何かになります。したがって、この列挙は目次

答え1

新しいセクションレベルを追加するにはtitlesec次の例では、の下と の上にある 2 つの新しいセクション レベル\Title\subtitle(大文字の T は コマンドとの混同を避けるために使用されています\title)が導入されています。\subsection\subsubsection

\documentclass{article}
\usepackage{titlesec}
\titleclass{\Title}{straight}[\subsection]
\titleclass{\subtitle}{straight}[\Title]
\newcounter{Title}
\newcounter{subtitle}
\renewcommand*{\theTitle}{\Alph{Title}}
\renewcommand*{\thesubtitle}{\arabic{subtitle})}
\titleformat{\Title}{\bfseries\large}{\theTitle}{1em}{}
\titleformat{\subtitle}{\bfseries}{\thesubtitle}{1em}{}
\titlespacing*{\Title}{1.5em}{6pt}{6pt}
\titlespacing*{\subtitle}{3em}{6pt}{6pt}
\setcounter{secnumdepth}{5}

\begin{document}

\section{Section one}
\subsection{Subsection one}
\subsection{Subsection two}

\section{Section two}
\subsection{Subsection one}
\Title{Title}
\subtitle{Subtitle A.1}
\subtitle{Subtitle A.2}

\subsubsection{Subsubsection one}
\subsubsection{Subsubsection two}
\end{document}

出力は次のようになります。

\titleformat新しいセクション レベルの一般的な書式設定はとで変更でき、番号付けはとコマンド\titlespacingで変更できます。この例では、新しいセクション レベルが ToC に表示されますが、書式設定は などを使用して手動で処理する必要があります。\theTitle\thesubtitletitletoc

関連情報