diff --git a/CSS/style.gitbook.scss b/CSS/style.gitbook.scss index 00d24eb..c133fc1 100644 --- a/CSS/style.gitbook.scss +++ b/CSS/style.gitbook.scss @@ -397,7 +397,8 @@ mjx-container[jax="SVG"][display="true"] { /* unset bookdown font size, restore spaces */ &>pre>code { font-size: inherit; - white-space: pre; + white-space: normal; + display: block; } /* adjust position of download button */ @@ -406,6 +407,14 @@ mjx-container[jax="SVG"][display="true"] { } } +/* typeset line numbers within container */ +.ltx_lst_numbers_left .ltx_listingline .ltx_tag { + position: initial; + display: inline-block; + margin-left: 0; + width: 1.7em; +} + .book .book-body .page-wrapper .page-inner section.normal { & code.ltx_lstlisting { font-size: inherit; diff --git a/Dockerfile b/Dockerfile index 302704e..8cdf926 100644 --- a/Dockerfile +++ b/Dockerfile @@ -146,4 +146,3 @@ EOF WORKDIR /source ENTRYPOINT ["/run-bookml"] -USER ubuntu diff --git a/XSLT/bookml-html5.xsl b/XSLT/bookml-html5.xsl index 541f40e..9e16992 100644 --- a/XSLT/bookml-html5.xsl +++ b/XSLT/bookml-html5.xsl @@ -90,12 +90,6 @@