LaTeX排版Book模板

LaTeX排版book的通用模板

%%%LaTeX文档的基本结构,编译和调试,命令符合的输入(如:%,$,{ ... },\)

\documentclass{book} %book,article,report,letter
\usepackage{amsmath} %宏包

%导言区
\begin{document}

\title{This is my book}  %%书名

\author{Thistle Zhang} %%作者

\date{} %%如果没有这句,会生成时间

\maketitle  %%生成书名

\tableofcontents  %%生成目录

\mainmatter %%表示文章的正文部分,在生成目录后将从第一页开始

\part{elementary}

\chapter{introduction1}

\section{first section}

\subsection{I like LaTeX}


\chapter{summary}

\chapter{introduction3}

\part{advanced}

\chapter{introduction}

\chapter{conclusion}

\end{document}

对应的在WinEdt中的树结构如下图:



猜你喜欢

转载自blog.csdn.net/u013232740/article/details/51334599