-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathholtex.sty
49 lines (41 loc) · 1.61 KB
/
holtex.sty
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
% -------------------------------------------------------
% holtex.sty v1.0
%
% For Use with documents generated by EmitTeX.
%
% Users can customize this file -- some packages may
% become surplus to requirements. The packages underscore
% and fancyvrb are always needed.
% -------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
%\usepackage[a4paper, headheight=14pt]{geometry}
\usepackage{fancyhdr} % Used in HOLpagestyle and HOLindex
\usepackage{color} % Used in HOLDfnTag and HOLThmTag
\usepackage{holtexbasic} % Required
% Uncomment for Helvetica font.
% Note that this will affect alignment.
%\fvset{fontfamily=helvetica}
\renewcommand{\HOLpagestyle}{
\pagestyle{fancyplain}\fancyhf{}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0.5pt}
\renewcommand{\sectionmark}[1]{\markboth{\textsl{\uppercase{##1}}}{}}
\if@twoside
\renewcommand{\subsectionmark}[1]{\markright{\textsl{##1}}}
\fancyfoot[RO, LE]{\thepage}
\fancyhead[LE, RO]{\leftmark}
\fancyhead[RE, LO]{\rightmark}
\else
\renewcommand{\subsectionmark}[1]{\markright{ - \textsl{##1}}}
\lfoot{\leftmark\rightmark}
\rfoot{\thepage}
\fi}
\renewcommand{\HOLindex}{\cleardoublepage\pagestyle{plain}\fancyhf{}
\cfoot{\thepage}\printindex}
\definecolor{darkgreen}{rgb}{0,0.4,0}
\renewcommand{\HOLDfnTag}[2]{
\pagebreak[2]\noindent\textcolor{blue}{[\texttt{#2}]}\vspace{-1.2mm}
\index{#1 Theory@\textbf{#1 Theory}!Definitions!#2}}
\renewcommand{\HOLThmTag}[2]{
\pagebreak[2]\noindent\textcolor{darkgreen}{[\texttt{#2}]}\vspace{-1.2mm}
\index{#1 Theory@\textbf{#1 Theory}!Theorems!#2}}