book与...类\maketitle

book与...类\maketitle

我记得以前我使用 LaTex 打字时,它会给我一个文档首页,上面写着标题和日期。现在它直接从文档正文开始。没有作者,没有日期,没有首页,没有标题。

\documentclass{book}
\title{The Triangulation of Titling Data in
   Non-Linear Gaussian Fashion via $\rho$ Series}
\date{October 31, 475}
\author{John Doe\\ Magic Department, Richard Miles University
    \and Richard Row, \LaTeX\ Academy}
\date{April 4,2013}
\begin{document}
\begin{titlepage}
 Hello
\end{titlepage}
\end{document}

答案1

通过演示,\maketitle根据文档使用的类,行为会有所不同。所以...

book与...类\maketitle

\documentclass{book}
\title{The Triangulation of Titling Data in
   Non-Linear Gaussian Fashion via $\rho$ Series}
\date{October 31, 475}
\author{John Doe\\ Magic Department, Richard Miles University
    \and Richard Row, \LaTeX\ Academy}
\date{April 4,2013}
\usepackage{kantlipsum}
\begin{document}
\maketitle
\kant[1]
\end{document}

封面

report产生\maketitle类似的结果。

article与...类\maketitle

\documentclass{article}
\title{The Triangulation of Titling Data in
   Non-Linear Gaussian Fashion via $\rho$ Series}
\date{October 31, 475}
\author{John Doe\\ Magic Department, Richard Miles University
    \and Richard Row, \LaTeX\ Academy}
\date{April 4,2013}
\usepackage{kantlipsum}
\begin{document}
\maketitle
\kant[1]
\end{document}

标题挤进第一页

article与...类titlepage

\documentclass{report}
\title{The Triangulation of Titling Data in
   Non-Linear Gaussian Fashion via $\rho$ Series}
\date{October 31, 475}
\author{John Doe\\ Magic Department, Richard Miles University
    \and Richard Row, \LaTeX\ Academy}
\date{April 4,2013}
\usepackage{kantlipsum}
\begin{document}
\begin{titlepage}
 \maketitle
\end{titlepage}
\kant[1]
\end{document}

\maketitle注意环境中的用法titlepage。这是因为titlepage只为您提供了一个空白页面,您可以随意设计。如果您不在其中放置任何内容,它只是一个空白页面。

再次翻頁首頁

booktitlepage产生类似的输出。

鉴于您并不真正想自定义标题的布局,实现相同结果的更简单的方法是仅使用\maketitlebook(如上所述)或在中article使用titlepage类的选项:

\documentclass[titlepage]{article}
\title{The Triangulation of Titling Data in
   Non-Linear Gaussian Fashion via $\rho$ Series}
\date{October 31, 475}
\author{John Doe\\ Magic Department, Richard Miles University
    \and Richard Row, \LaTeX\ Academy}
\date{April 4,2013}
\usepackage{kantlipsum}
\begin{document}
\maketitle
\kant[1]
\end{document}

相关内容