-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathhtmlonly
78 lines (61 loc) · 1.76 KB
/
htmlonly
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
\newcommand{\adjustpage}[1]{}
\newcommand{\clearemptydoublepage}{}
\newcommand{\blankpage}{}
\newcommand{\spacing}{}
\newcommand{\endspacing}{}
\newcommand{\frontmatter}{}
\newcommand{\mainmatter}{}
\newcommand{\backmatter}{}
\newcommand{\theoremstyle}[1]{}
\newcommand{\newtheoremstyle}[1]{}
\newcommand{\vfill}{}
\newcommand{\href}{\ahref}
\htmlhead{\rawhtmlinput{header.html}}
\htmlfoot{\rawhtmlinput{footer.html}}
% these styles get translated into CSS
\newstyle{p+p}{margin-top:1em; margin-bottom:1em;}
\newstyle{img}{border: 0px;}
\newstyle{.theorem em}{font-style: normal;}
% change the arrows
\setlinkstext
{\imgsrc[ALT="Previous"]{back.png}}
{\imgsrc[ALT="Up"]{up.png}}
{\imgsrc[ALT="Next"]{next.png}}
% colors for code listings and output
\usepackage{color}
\definecolor{bgcolor}{rgb}{0.982, 0.982, 0.982}
\definecolor{comment}{rgb}{0.000, 0.488, 0.000}
\definecolor{keyword}{rgb}{0.000, 0.000, 1.000}
\definecolor{strings}{rgb}{0.700, 0.000, 0.000}
% syntax highlighting in code listings
\usepackage{listings}
\lstset{
language=java,
basicstyle=\ttfamily,
backgroundcolor=\color{bgcolor},
commentstyle=\color{comment},
keywordstyle=\color{keyword},
stringstyle=\color{strings},
columns=fullflexible,
emph={label}, % keyword?
keepspaces=true,
showstringspaces=false
}
% code listing environments
\lstnewenvironment{code}
{}
{}
\lstnewenvironment{stdout}
{\lstset{commentstyle=\relax,keywordstyle=\relax,stringstyle=\relax}}
{}
% interactive code listing
\lstnewenvironment{trinket}[2][400]
{}
{}
% inline syntax formatting
\newcommand{\java}{\lstinline}%}
% CSS for code listings
\newstyle{.lstframe}{margin: 1em; width: calc(100\% - 1em);}
\newstyle{.lstlisting}{padding: 3pt;}
% make urls hyperlinks in html
\input{urlhref.hva}