-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmain.tex
47 lines (32 loc) · 1.14 KB
/
main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
% We use part-chapter-section structure.
\documentclass{myclass}
% We load customized commands.
\usepackage{mypackage}
%==============================================================================
% Document.
%==============================================================================
\begin{document}
%------------------------------------------------------------------------------
% Front matters.
%------------------------------------------------------------------------------
\frontmatter
\maketitle
% Table of contents.
\tableofcontents
% Preface.
\subimport*{./}{preface.tex}
\addcontentsline{toc}{chapter}{Preface}
%------------------------------------------------------------------------------
% Main matters.
%------------------------------------------------------------------------------
\mainmatter
% All parts are in separated folders.
% We include them here.
\subimport{part1/}{main.tex}
\subimport{part2/}{main.tex}
%------------------------------------------------------------------------------
% Back matters.
%------------------------------------------------------------------------------
\backmatter
\printindex
\end{document}