-
Notifications
You must be signed in to change notification settings - Fork 0
/
html_template1.html
106 lines (86 loc) · 3.06 KB
/
html_template1.html
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<! -- test template -->
<?xml version="1.0" encoding="utf-8" ?>
<html>
<head>
<style type="text/css">
body {
margin-top: 1.0em;
<!-- background-color: #e1c931; -->
background-color: #000000;
font-family: Helvetica, Arial, FreeSans, san-serif;
color: #000000;
}
#container {
margin: 0 auto;
width: 700px;
}
h1 { font-size: 1.8em; color: #1e36ce; margin-bottom: 3px; }
h1 .small { font-size: 0.4em; }
h1 a { text-decoration: none }
h2 { font-size: 1.5em; color: #1e36ce; }
h3 { text-align: left; color: #1e36ce; }
h4 { text-align: left; color: #1e36ce; }
a { color: #1e36ce; }
.description { font-size: 1.2em; margin-bottom: 30px; margin-top: 30px; font-style: italic;}
.download { float: right; }
<!-- white on black: pre { background: #000; color: #fff; padding: 15px;} -->
<!-- black on white: pre { background: #fff; color: #000; padding: 15px;} -->
pre { background: #EDEDED; color: #000; padding: 15px;}
<!-- https://www.december.com/html/spec/color0.html -->
hr { border: 0; width: 80%; border-bottom: 1px solid #aaa}
.footer { text-align:center; padding-top:30px; font-style: italic; }
</style>
<!-- Use MathJax to render mathematics -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {
equationNumbers: { autoNumber: "AMS" },
extensions: ["AMSmath.js"]
}
});
</script>
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
</head>
<body bgcolor="white">
<title>This is a test of HTML templates</title>
<h4>Date: Dec 9, 2021</h4>
<!-- main body -->
<!-- tocinfo
{'highest level': 1,
'sections': [('This is a test of HTML templates',
2,
None,
'this-is-a-test-of-html-templates'),
('This is a 7 heading', 1, None, 'this-is-a-7-heading'),
('This is a 5 heading', 2, None, 'this-is-a-5-heading')]}
end of tocinfo -->
<!-- ------------------- main content ---------------------- -->
<br>
<h2 id="this-is-a-test-of-html-templates">This is a test of HTML templates </h2>
<p>Note: When using HTML templates, the DocOnce file cannot have a title
(to avoid generating a header). It should neither have an author.
</p>
<h1 id="this-is-a-7-heading">This is a 7 heading </h1>
<p>Here is some code:</p>
<pre>class Diff:
def __init__(self, f, h=1E-5):
self.f = f
self.h = float(h)
class Forward1(Diff):
def __call__(self, x):
f, h = self.f, self.h
return (f(x+h) - f(x))/h
</pre>
<h2 id="this-is-a-5-heading">This is a 5 heading </h2>
<p>The template can be any HTML file with header and footer and
three possible slots: <em>title</em>, <em>date</em> and <em>main</em>,
where <em>main</em> will become the DocOnce file (the main body of text),
<em>title</em> is the first heading in the DocOnce file, and
<em>date</em> is extracted from the DocOnce file (if present).
</p>
<!-- ------------------- end of main content --------------- -->
<!-- end of main body -->
</body>
</html>