Skip to content

Commit f2e223e

Browse files
committed
Fix html issue
Makefile: Add lkmpg.tex as the dependancy for html Move HTML-specific files to the next line html.cfg: Wipe out unneeded blank line Reformat the file to improve readibility
1 parent 1536fc3 commit f2e223e

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
all: lkmpg.tex
22
pdflatex -shell-escap lkmpg.tex
33

4-
html:
4+
html: lkmpg.tex
55
make4ht -suf html5 -c html.cfg -d html lkmpg.tex
66

77
clean:
8-
rm -f *.dvi *.aux *.log *.ps *.pdf *.out lkmpg.bbl lkmpg.blg lkmpg.lof lkmpg.toc *.xref *.svg *.tmp *.html *.css *.4ct *.4tc *.dvi *.lg *.idv
8+
rm -f *.dvi *.aux *.log *.ps *.pdf *.out lkmpg.bbl lkmpg.blg lkmpg.lof lkmpg.toc
99
rm -rf _minted-lkmpg html
10+
rm -f *.xref *.svg *.tmp *.html *.css *.4ct *.4tc *.dvi *.lg *.idv
1011

1112
.PHONY: html

html.cfg

+18-15
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,35 @@
11
\Preamble{xhtml}
2+
23
\Css{* :not(img) {
34
max-width: 100\%;
45
width: 50vw;
56
height: auto;
67
margin: 0 auto;
78
}}
8-
\Css{*{
9-
font-size:1vw;
9+
10+
\Css{* {
11+
font-size: 1vw;
1012
}}
11-
\Css{.ecrm-0500{
12-
font-size:70\%;
13+
14+
\Css{.ecrm-0500 {
15+
font-size: 70\%;
1316
font-style: italic;
14-
color:gray;
15-
-webkit-user-select:none;
16-
-moz-user-select:none;
17-
-o-user-select:none;
18-
user-select:none;
17+
color: gray;
18+
-webkit-user-select: none;
19+
-moz-user-select: none;
20+
-o-user-select: none;
21+
user-select: none;
1922
}}
2023

21-
\Css{.ecrm-0500:after{
24+
\Css{.ecrm-0500:after {
2225
content:" ";
2326
white-space: pre;
24-
-webkit-user-select:none;
25-
-moz-user-select:none;
26-
-o-user-select:none;
27-
user-select:none;
27+
-webkit-user-select: none;
28+
-moz-user-select: none;
29+
-o-user-select: none;
30+
user-select: none;
2831
}}
2932

3033
\begin{document}
31-
\EndPreamble
3234

35+
\EndPreamble

0 commit comments

Comments
 (0)