1
0

html.cfg 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. \Preamble{xhtml}
  2. \Configure{tableofcontents*}{chapter,section,subsection}
  3. \Css{html {
  4. width: 100vw;
  5. overflow-x: hidden;
  6. }}
  7. \Css{body {
  8. max-width: 50rem;
  9. box-sizing: border-box;
  10. padding: 1rem;
  11. margin: 0 auto;
  12. overflow-x: hidden;
  13. }}
  14. \Css{div.author {
  15. white-space: normal;
  16. }}
  17. \Css{img.math {
  18. height: 1rem;
  19. vertical-align: top;
  20. }}
  21. \Css{pre.fancyvrb, {
  22. white-space: pre;
  23. }}
  24. \Css{figure, .fancyvrb, .verbatim {
  25. margin-inline: 0;
  26. overflow-x: auto;
  27. }}
  28. \Css{.ecrm-0500 {
  29. font-size: 70\%;
  30. font-style: italic;
  31. color: gray;
  32. width: 1.5rem;
  33. display: inline-block;
  34. -webkit-user-select: none;
  35. -moz-user-select: none;
  36. -o-user-select: none;
  37. user-select: none;
  38. }}
  39. \Css{.flushright:first-child {
  40. position:absolute;
  41. top: 10px;
  42. right: 50px;
  43. }}
  44. \Css{.right {
  45. text-align: right;
  46. }}
  47. \AtBeginDocument{%
  48. \Configure{@HEAD}{\HCode{
  49. <script async defer src="https://buttons.github.io/buttons.js"></script>
  50. <div class="right">
  51. <a class="github-button" href="https://github.com/sysprog21/lkmpg" data-size="large" aria-label="View on GitHub">View on GitHub</a>
  52. <a class="github-button" href="https://github.com/sysprog21/lkmpg/releases/download/latest/lkmpg.pdf" data-icon="octicon-download" data-size="large" aria-label="Download PDF document">Download PDF document</a>
  53. <br><br>
  54. </div>
  55. \Hnewline}}
  56. }
  57. \begin{document}
  58. \EndPreamble