ファイルの分割

一つのtexファイルに全て書くと重いし、破損したときに修復がめんどうなので、chapter毎にファイルを分割する。



ex)
root.tex
chapter1.tex
chapter2.tex
chapter3.tex
を作る。



root.texには
\documentstyle{jarticle}
\begin{document}
\input{chapter1.tex}
\input{chapter2.tex}
\input{chapter3.tex}
\end{document}
と書く。



chapter1.texなどにはプリアンブル部を書く必要はない。書いたそのままが挿入される。
\include{ファイル}を使う方法も。inputと違う点があったような・・要確認。