
我是 LaTeX 新手。我正在處理現有項目,但現在我想為其添加新的章節。我正在使用的文檔類是book
.請幫我。
答案1
這是我的標準「最小」書架,用於快速解答 TeX.SX!它可以用作 MWE 來快速添加內容。
\documentclass{book}
%\usepackage[demo]{graphicx}
%\usepackage{imakeidx}
%\usepackage[backend=biber]{biblatex}
%\usepackage{hyperref}
\begin{document}
\tableofcontents
%\listoffigures
%\listoftables
\part{The First Part}
\chapter{First Chapter}
\section{First Section}
\subsection{First Subsection}
\subsubsection{First Subsubsection}
\paragraph{First paragraph}
\subparagraph{First subparagraph}
\chapter{Second Chapter}
\section{First Section}
\subsection{First Subsection}
\subsubsection{First Subsubsection}
\paragraph{First paragraph}
\subparagraph{First subparagraph}
%\printindex
%\printbibliography
\end{document}
答案2
我使用 LaTeX 編寫小說、歷史(紀實)書籍和劇本(廣播劇)。這是工作小說的主文檔範例。如果有用的話,我很樂意與您分享樣式文件等。我應該指出,我已經使用 LaTeX 多年,專門用於出版書籍和腳本。
\documentclass[11pt,english,british,twoside,openany]{scrbook}
\usepackage{mystyle}
\begin{document}
\title{\mytitle}
\author{}
\date{}
\frontmatter
\maketitle
\begin{titlepage}
\begin{flushright}
{\huge \mytitle}
\par\end{flushright}{\huge \par}
\end{titlepage}
\begin{titlepage}
\noindent\includegraphics[width=4in,height=2in]{../img/titr_ben_sig}
\vspace*{0.5in}
\begin{flushright}
\Huge{Tears in the Rain}
\par\end{flushright}{\Huge \par}
\clearpage
\thispagestyle{empty}
\begin{center}
\emph{Copyright}
\end{center}
\begin{center}
\textcopyright{ 2014 Ben Francis All rights reserved.}
\end{center}
\vspace*{0.5in}
\begin{center}
\begin{minipage}[t]{0.5\paperwidth}
No part of this publication may be reproduced ...
\end{minipage}
\end{center}
\vspace*{0.5in}
\begin{center}
ISBN:
\end{center}
\vspace*{0.2in}
\begin{center}
A CIP Record for this book is available from the British
Library.
\end{center}
\vspace*{0.1in}
\begin{center}
Typeset in \LaTeXe
\end{center}
\end{titlepage}
\tableofcontents
\addchap{Preface}
\input{./titr_ccc_preface.tex}
\mainmatter
\input{matter.tex}
\end{document}
這應該能讓您對如何設定這本書有一個大致的了解。如果您需要更多協助,如果您需要文件,請PM我。