mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-09 12:41:12 -06:00
Also enable (correct) epub MWE
Some checks failed
Test book and website for given image / test-book-website (push) Has been cancelled
Some checks failed
Test book and website for given image / test-book-website (push) Has been cancelled
This commit is contained in:
@@ -1,45 +1,4 @@
|
|||||||
\Preamble{xhtml}
|
\Preamble{xhtml}
|
||||||
\renewcommand\listofflowcharts{%
|
|
||||||
\chapter*{\listoflocname}%
|
|
||||||
\TableOfContents[loc]%
|
|
||||||
}
|
|
||||||
\ConfigureToc{loc}{\HCode{<span class="lofToc">}}{\ }{}{\HCode{</span><br />}}
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\Configure{DocumentLanguage}{en}
|
|
||||||
\Configure{OpfScheme}{URI}
|
|
||||||
\Configure{UniqueIdentifier}{https://the-bread-code.io}
|
|
||||||
\Configure{AddCss}{book-ebook.css}
|
|
||||||
\Configure{CoverMimeType}{image/jpeg}
|
|
||||||
\CoverMetadata{cover/cover-page.jpg}
|
|
||||||
\AddToHook{env/tikzpicture/begin}{\fontfamily{opensans-TLF}\selectfont}
|
|
||||||
\Configure{@HEAD}{\HCode{
|
|
||||||
<style type="text/css">
|
|
||||||
@import url('https://fonts.cdnfonts.com/css/open-sans');
|
|
||||||
body{
|
|
||||||
font-family: 'Open Sans';
|
|
||||||
}
|
|
||||||
</style>}}
|
|
||||||
|
|
||||||
% Deal with chemical equations in a single svg
|
|
||||||
\ExplSyntaxOn
|
|
||||||
\def\standaloneenv#1{}
|
|
||||||
\pend:def\schemestart{\Picture+{}}
|
|
||||||
\append:def\CF_schemestop{\EndPicture}
|
|
||||||
\ExplSyntaxOff
|
|
||||||
\makeatletter
|
|
||||||
\def\texfourht@tikz@begin{
|
|
||||||
\protect\csname nested:math\endcsname% support display math
|
|
||||||
\Picture+[\csname a:Picture-alt\endcsname]{}%
|
|
||||||
}
|
|
||||||
\makeatother
|
|
||||||
|
|
||||||
% Warnig from Michal: Note that once you get the updated TeX Live with a new
|
|
||||||
% `chemfig.4ht` file, you can remove this from the config file:
|
|
||||||
%
|
|
||||||
%```latex \pend:def\schemestart{\Picture+{}}
|
|
||||||
%\append:def\CF_schemestop{\EndPicture} ```
|
|
||||||
%
|
|
||||||
%You could get an error otherwise, as there would be nested `\Picture+{}` and
|
|
||||||
%`\EndPicture` commands.
|
|
||||||
|
|
||||||
\EndPreamble
|
\EndPreamble
|
||||||
|
|||||||
Reference in New Issue
Block a user