独自の章とセクション

独自の章とセクション

おそらくたくさんの疑問があると思いますのようにしかし、私自身では全体を理解することはできません。

次のように、少しだけ大きいフォントで独自の章やセクションを定義する方法を探しています。

1.最初の練習

1a.練習の前半


  • 見出し(章など)で使用できる

  • 自動番号付け(1a、1b、…とも)

答え1

以下の方法で、問題はほぼ解決します。

使用すれば物事は非常に簡単ですタイトルパッケージ。

関連するコードは次のとおりです。章、節、サブセクションの番号を制御します (私は勝手に追加しました)。次に、これらの表示方法を制御します。おそらく、間隔も制御する必要があるでしょう。

あなたの好みに合わせて必要な調整を行うことができます。

コマンドの詳細については、セクション3.1と3.2を参照してください。パッケージドキュメント


\documentclass{book}

\usepackage{times}

\usepackage{titlesec}

% Control number formats
\def\thesection{\arabic{chapter}\alph{section}}
\def\thesubsection{\arabic{chapter}\alph{section}(\roman{subsection})}

% Control display formats
\titleformat{\chapter}[block]{}{\large\thechapter.\ }{0.0mm}{\large}
\titleformat{\section}[block]{}{\large\thesection.\ }{0.0mm}{\large}
\titleformat{\subsection}[block]{}{\thesubsection.\ }{0.0mm}{}

% Control spacing
\titlespacing{\chapter}{0.0mm}{\bigskipamount}{\medskipamount}
\titlespacing{\section}{0.0mm}{\medskipamount}{\smallskipamount}
\titlespacing{\subsection}{0.0mm}{\smallskipamount}{\smallskipamount}

\parindent 0.0mm

\begin{document}

\chapter{First exercise}
This exercise in on\dots

\section{First part of exersice}
In the first part you need to answer\dots

\section{Second part of exersice}
The second part has a number of subparts\dots

\subsection{Second One}

Please tell us\dots

\subsection{Second Two}

And tell us\dots

\end{document}

ここに画像の説明を入力してください

関連情報