feat(tikz): default math preamble, embedded-font SVG output - #42
Merged
Conversation
Bare diagram sources (no \documentclass) are now auto-wrapped in a standalone document with amsmath, amssymb, tikz, pgfplots, tikz-cd and tkz-euclide preloaded, so a diagram is just the tikzpicture body. New tikz_preamble config option injects extra preamble lines. dvisvgm no longer runs with --no-fonts: diagram text stays selectable and searchable in the SVG, falling back to outlined paths only when the TeX fonts are unavailable. texlive-fonts-recommended (amssymb/amsfonts) added to the Docker image and demo CI - pgfplots, tikz-cd and tkz-euclide already ship in texlive-pictures. Demo gains math-kit.tex exercising all three plugin families in one minimal source. Docs (en+zh) and changelog (en+zh) updated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
\documentclass) are auto-wrapped in a standalone document withamsmath,amssymb,tikz,pgfplots,tikz-cd,tkz-euclidepreloaded — a diagram is just thetikzpicturebody (maths-encyclopedia-friendly).dvisvgmno longer runs with--no-fonts; diagram text stays selectable/searchable, with automatic fallback to outlined paths when TeX fonts are missing.tikz_preambleconfig option for extra preamble lines.texlive-fonts-recommended(amssymb/amsfonts); pgfplots/tikz-cd/tkz-euclide already ship in texlive-pictures.math-kit.tex(commutative diagram + function plot + Euclidean construction, no \documentclass) exercises the default preamble; docs/changelog en+zh updated.Verified
<text>elements in SVG).\documentclasswould disable auto-wrapping.CI