
重複の可能性あり:
\maketitle を使用して article クラスで別のタイトル ページを作成するにはどうすればよいですか?
私は LaTeX ドキュメントのタイトル ページと概要を垂直に中央揃えにしようとしています (report
クラスと同じように)。現在、クラスを使用しています。基本的に、私が欲しいのは、章がなく、セクションやサブセクションなどだけがあるクラスarticle
です。report
答え1
クラスオプションを使用しますtitlepage
。
\documentclass[titlepage]{article}
\usepackage{lipsum}
\begin{document}
\title{(title)}
\author{(author)}
\maketitle
\begin{abstract}
\lipsum[1]
\end{abstract}
\lipsum[1]
\end{document}
答え2
デフォルトでは、セクションレベルの番号付けは次のように定義されます。report.cls
として
\renewcommand \thesection {\thechapter.\@arabic\c@section}
は、セクション番号の先頭に を付加します\thechapter.
。他の下位レベルのセクションコマンドも同様の階層構造に従います。したがって、ドキュメントクラスを使用して、 (すべての)下位レベルのセクションコマンド( やなど)から番号report
を削除するだけで済みます。\chapter
\section
\subsection
\renewcommand{\thesection}{\arabic{section}}
技術的には必要ありませんが、他の章に関連するものも再定義が必要になる場合があります。たとえば、、\theequation
および\thefigure
すべてはカウンタ\thetable
の値に基づいて条件付けされchapter
、その前に\thechapter.
(\c@chapter>\z@
カウンタchapter
が 0 より大きい場合のみ、カウンタは0
の最初の符号でのみ増加します\chapter
) が付加されます。完全性を保つために、に関係なく、および:
\renewcommand{\theequation}{\arabic{equation}}
\renewcommand{\thefigure}{\arabic{figure}}
\renewcommand{\thetable}{\arabic{table}}
以下は、セクション構造のみを示す最小限の例 (特別なものはありません) です。
\documentclass{report}
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\author{A.\ Nonymous} \title{My title} \date{\today}
\renewcommand{\thesection}{\arabic{section}}%
\begin{document}
\maketitle
\tableofcontents
\section{First section} \lipsum[1]
\subsection{First subection} \lipsum[2]
\subsection{Second subsection} \lipsum[3]
\subsubsection{First subsubsection} \lipsum[4]
\section{Second section} \lipsum[5]
\end{document}