Como adicionar um novo capítulo a um projeto existente?

Como adicionar um novo capítulo a um projeto existente?

Sou novo no LaTeX. Estou trabalhando com o projeto existente, mas agora quero adicionar um novo capítulo a ele. A classe de documento que estou usando é book. Por favor me ajude.

Responder1

Aqui está meu quadro de livro 'mínimo' padrão para respostas rápidas ao TeX.SX! Ele pode ser usado como MWE para adição rápida de conteúdo.

\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}

Responder2

Eu uso LaTeX para escrever romances, livros históricos (factuais) e roteiros (drama de rádio). Aqui está um exemplo de documento principal para um romance de trabalho. Eu ficaria feliz em compartilhar com vocês arquivos de estilo, etc., se isso for útil. Devo salientar que uso LaTeX há vários anos especificamente para publicar livros e scripts.

 \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}

Isso deve lhe dar uma boa ideia de como configurar o livro. Se precisar de mais ajuda, envie-me uma mensagem privada se precisar dos arquivos.

informação relacionada