Skip to content

Script: all non-kindle epubs get epub.css#2841

Open
ascholerChemeketa wants to merge 1 commit intoPreTeXtBook:masterfrom
ascholerChemeketa:non-kindle-epub-css
Open

Script: all non-kindle epubs get epub.css#2841
ascholerChemeketa wants to merge 1 commit intoPreTeXtBook:masterfrom
ascholerChemeketa:non-kindle-epub-css

Conversation

@ascholerChemeketa
Copy link
Copy Markdown
Contributor

Fix for bug found while looking at #2836

epub-mml or epub-speech don't currently get CSS


This pull request updates the logic for selecting the CSS file used during EPUB generation in the pretext/lib/pretext.py script. The main change ensures that the epub.css stylesheet is used as the default for all math formats except "kindle", which continues to use kindle.css.

EPUB CSS selection logic:

  • Updated the conditional so that epub.css is used for all math formats except "kindle", instead of only for "svg". This makes the EPUB styling more consistent across different math formats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant