From f8ab70fc90fe834ca1c3ff2ae978bb43aeb0229e Mon Sep 17 00:00:00 2001 From: Ced Date: Mon, 3 Mar 2025 11:55:27 +0000 Subject: [PATCH] Also enable (correct) epub MWE --- book/tex4ebook.cfg | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/book/tex4ebook.cfg b/book/tex4ebook.cfg index 2a43f4d..633848d 100644 --- a/book/tex4ebook.cfg +++ b/book/tex4ebook.cfg @@ -1,45 +1,4 @@ \Preamble{xhtml} -\renewcommand\listofflowcharts{% -\chapter*{\listoflocname}% -\TableOfContents[loc]% -} -\ConfigureToc{loc}{\HCode{}}{\ }{}{\HCode{
}} \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{ -}} - -% 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