-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbookcommon.hva
53 lines (53 loc) · 1.98 KB
/
bookcommon.hva
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
48
49
50
51
52
53
\setcounter {secnumdepth}{2}
\newcounter {part}
\newcounter {chapter}
\newcounter {section}[chapter]
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {paragraph}[subsubsection]
\newcounter {subparagraph}[paragraph]
\newcounter {footnote}[chapter]
\newcounter {titlenote}
\setenvclass{part}{part}
\setenvclass{chapter}{chapter}
\setenvclass{section}{section}
\setenvclass{subsection}{subsection}
\setenvclass{subsubsection}{subsubsection}
\setenvclass{paragraph}{paragraph}
\setenvclass{subparagraph}{subparagraph}
\newcounter {anchornote}
\renewcommand \theanchornote{{\@nostyle\arabic{chapter}.\arabic{anchornote}}}
\renewcommand \thepart {\Roman{part}}
\renewcommand \thesection {\thechapter.\arabic{section}}
\renewcommand\thesubsection {\thesection.\arabic{subsection}}
\renewcommand\thesubsubsection{\thesubsection.\arabic{subsubsection}}
\renewcommand\theparagraph {\thesubsubsection.\arabic{paragraph}}
\renewcommand\thesubparagraph {\theparagraph.\arabic{subparagraph}}
\flushdef{chapter}
\newcommand{\partname}{Part}
\renewcommand{\chaptername}{Chapter}
\newcommand{\appendixname}{Appendix}
%%%%%%%%%%% Initial cutting
\newcommand{\cuttingunit}{chapter}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\appendix}{%
\renewcommand{\chaptername}{\appendixname}%
\setcounter{chapter}{0}%
\renewcommand{\thechapter}{\Alph{chapter}}}
\newcounter{equation}[chapter]
\renewcommand{\theequation}{\thechapter.\arabic{equation}}
\newcounter{figure}[chapter]
\renewcommand{\thefigure}{\thechapter.\arabic{figure}}
\newcounter{table}[chapter]
\renewcommand{\thetable}{\thechapter.\arabic{table}}
\newcommand\abstractname{Abstract}
\setenvclass{abstract}{abstract}
\newenvironment{abstract}
{\setenvclass{quote}{abstract}
\begin{quote}\ifthenelse{\equal{\abstractname}{}}{}{{\bf \abstractname:} }}
{\end{quote}}
\newcommand{\@indexsection}[1]{\chapter*{#1}}
\newcommand{\@bibliosection}[1]{\chapter*{#1}}
\newcommand{\@tocsection}[1]{\chapter*{#1}}
\newcommand{\@base}{book}
\setcounter{tocdepth}{2}