mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-22 04:54:20 +08:00
044cfefe65
This patch generates HTML files with "make4ht" in the "html" directory. Known issues with "make4ht": Running "make4ht -suf html5 -d html lkmpg.tex" will cause the following flaws: 1. The layout was unsatisfying. 2. After parsing TeX, it stoped at "\tableofcontents" with errors. 3. Several unneeded files were generated. 4. No way to specify the destination filename for HTML generation. Solutions/workaround: 1. Use customized configuration file "html.cfg" to specify the layout style. 2. Turn off the \tableofcontents section when using make4ht. However, this results in the lack of table of contents in HTML. It can be fixed by appending "\Configure{tableofcontents*}{chapter,section,subsection}" to configuration file. 3. The build system removes the temporary files. 4. Use a symbolic link "index.html" to "lkmpg.html".
18 lines
574 B
Makefile
18 lines
574 B
Makefile
all: lkmpg.tex
|
|
rm -rf _minted-main
|
|
pdflatex -shell-escap lkmpg.tex
|
|
bibtex main >/dev/null || echo
|
|
pdflatex -shell-escape $< 2>/dev/null >/dev/null
|
|
|
|
html: lkmpg.tex html.cfg
|
|
make4ht --shell-escape --utf8 --format html5 --config html.cfg --output-dir html lkmpg.tex
|
|
ln -sf lkmpg.html html/index.html
|
|
rm -f lkmpg.xref lkmpg.tmp lkmpg.html lkmpg.css lkmpg.4ct lkmpg.4tc lkmpg.dvi lkmpg.lg lkmpg.idv lkmpg*.svg lkmpg.log lkmpg.aux
|
|
|
|
clean:
|
|
rm -f *.dvi *.aux *.log *.ps *.pdf *.out lkmpg.bbl lkmpg.blg lkmpg.lof lkmpg.toc
|
|
rm -rf _minted-lkmpg
|
|
rm -rf html
|
|
|
|
.PHONY: html
|