-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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".
- Loading branch information
Showing
4 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,15 @@ _minted-lkmpg | |
*.out | ||
lkmpg.pdf | ||
*.toc | ||
|
||
# make4ht | ||
*.html | ||
*.svg | ||
*.tmp | ||
*.css | ||
*.4ct | ||
*.4tc | ||
*.dvi | ||
*.lg | ||
*.idv | ||
*.xref |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
\Preamble{xhtml} | ||
|
||
\Configure{tableofcontents*}{chapter,section,subsection} | ||
|
||
\Css{* :not(img) { | ||
max-width: 100\%; | ||
width: 50vw; | ||
height: auto; | ||
margin: 0 auto; | ||
}} | ||
|
||
\Css{* { | ||
font-size: 1vw; | ||
}} | ||
|
||
\Css{.ecrm-0500 { | ||
font-size: 70\%; | ||
font-style: italic; | ||
color: gray; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-o-user-select: none; | ||
user-select: none; | ||
}} | ||
|
||
\Css{.ecrm-0500:after { | ||
content:" "; | ||
white-space: pre; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-o-user-select: none; | ||
user-select: none; | ||
}} | ||
|
||
\begin{document} | ||
\EndPreamble |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters