forked from philer/HTMLpaper
-
Notifications
You must be signed in to change notification settings - Fork 9
/
latex.css
67 lines (60 loc) · 981 Bytes
/
latex.css
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
@charset "UTF-8";
/**
* Provids a basic LaTeX style for HTML text.
* @see README.md
*
* @author Philipp Miller
* @url https://github.com/philer/HTMLpaper
*
*/
@import "font/cmun-serif.css";
@import "font/cmun-typewriter.css";
.latex {
font-family: "Computer Modern Serif";
font-size: 11pt;
line-height: 1.3em;
}
.latex * {
text-overflow: ellipsis;
}
/* LaTeX indents all paragraphs except the first one */
.latex p {
margin: 1em 0;
text-indent: 1.5em;
}
.latex p.no-indent,
.latex p:first-child,
.latex p:first-of-type,
.latex h1 + p,
.latex h2 + p,
.latex h3 + p,
.latex h4 + p,
.latex h5 + p,
.latex h6 + p {
text-indent: 0;
}
.latex h1,
.latex h2,
.latex h3,
.latex h4,
.latex h5,
.latex h5 {
margin: 1em 0;
}
.latex h1 {
font-size: 2em;
}
.latex h2 {
font-size: 1.5em;
}
.latex h3 {
font-size: 1.2em;
}
.latex section :first-child {
margin-top: 0;
}
.latex code,
.latex pre,
.latex .code {
font-family: "Computer Modern Typewriter";
}