Debian Codegraph @

texmf-dist/doc/latex/unifront/unifront-example.tex

raw
1 %% Preset
2 \documentclass[a4paper, twoside]{report}
3
4 \usepackage[blue]{unifront}
5 \usepackage{hyperref}
6
7 %% Document information
8 \author{Weifan W.}
9 \date{04/05/2023}
10
11 %% Document start from here
12 \begin{document}
13
14 \newtitle{This is a title name}{5}{\currentchapter{chapter1name}{chapter2name}}
15
16 %% Chapter1 start from here
17 \newchapter{chapter1name}{12}{\currentsections{section1name}{section2name}{section3name}{section4name}}
18
19 %% section1 start from here
20 \newsection{section1name}{5}{\currentsubsections{subsection1name}{subsection2name}}
21 This is a sentence.\\
22 This is a sentence.\\
23 This is a sentence.
24
25 \newsubsection{subsection1name}
26 This is a sentence.\\
27 This is a sentence.\\
28 This is a sentence.\\
29 This is a sentence.
30
31 \newsubsection{subsection2name}
32 This is a sentence.\\
33 This is a sentence.\\
34 This is a sentence.
35
36 %% section2 start from here
37 \newsection{section2name}{5}{\currentsubsections{subsection3name}}
38
39 \newsubsection{subsection3name}
40 This is a sentence.\\
41 This is a sentence.
42
43 %% section3 start from here
44 \newsection{section3name}{4}{\currentsubsections{subsection4name}{subsection5name}{subsection6name}{subsection7name}}
45 This is a sentence.\\
46 This is a sentence.
47
48 \newsubsection{subsection4name}
49 This is a sentence.\\
50 This is a sentence.
51
52 \newsubsection{subsection5name}
53 This is a sentence.\\
54 This is a sentence.\\
55 This is a sentence.\\
56 This is a sentence.
57
58 \newsubsection{subsection6name}
59 This is a sentence.\\
60 This is a sentence.\\
61 This is a sentence.
62
63 %% section4 start from here
64 \newsection{section4name}{5}{\currentsubsections{subsection7name}}
65 This is a sentence.\\
66 This is a sentence.
67
68 \newsubsection{subsection7name}
69 This is a sentence.\\
70 This is a sentence.
71
72 %% Chapter2 start from here
73 \newchapter{chapter2name}{9}{\currentsections{section5name}{section6name}}
74
75 %% section5 start from here
76 \newsection{section5name}{5}{\currentsubsections{subsection8name}{subsection9name}}
77
78 \newsubsection{subsection8name}
79 This is a sentence.\\
80 This is a sentence.
81
82 \newsubsection{subsection9name}
83 This is a sentence.\\
84 This is a sentence.
85
86 %% section6 start from here
87 \newsection{section6name}{5}{\currentsubsections{subsection10name}{subsection11name}}
88
89 \newsubsection{subsection10name}
90 This is a sentence.\\
91 This is a sentence.
92
93 \newsubsection{subsection11name}
94 This is a sentence.\\
95 This is a sentence.\\
96 This is a sentence.
97
98 \end{document}