Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portable HTML: svg embedding #2430

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

oscarlevin
Copy link
Member

Adds a template for embedding a latex-image- or prefigure-generated svg directly in the html. The template is called based on the $b-portable-html variable (note, since #2429 is not yet merged, a commented line at 5911 of pretext-html.xsl allows for testing; this and the previous line should be removed prior to merging).

I am not sure if I have the namespace stuff right. I was able to copy the xmlns:... "attributes" of the original svg, but had to hard code in the xmlns="..../svg" directly (which might be bad, I have no idea). See lines 6158-6159.

Finally, a small tweak to the css to put a white background behind svg's like images get, needed for dark mode.

I have NOT refrained from copying the generated latex-image folder to output; that would require testing on a pubvar, and I need to think about the right way to do this with the very recent pub-var-report that got moved in. So it's on my radar.

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