TikZJax local configuration tests
This page tests the merge between the global configuration and local per-diagram options.
It does not modify window.TikzJaxOptions inside the page.
Expected priority:
global configuration
< local diagram configuration
Test 1 — Global TeX packages only
This diagram uses only the global configuration.
It does not use tkz-tab.
It checks that global TeX packages such as amsmath and amsfonts are available.
Expected result if it works: a formula with \mathbb{R} and an aligned equation is rendered.
If it fails: the global texPackages configuration is probably not loaded correctly.
Test 2 — Local texPackages must not erase global texPackages
This diagram adds one local TeX package with data-tex-packages.
It still uses global TeX packages such as amsmath and amsfonts.
Expected result if it works: the formula is rendered, \mathbb{R} appears, and the aligned equation appears.
If it fails: the local data-tex-packages value probably erased the global texPackages.
Test 3 — Local tikzLibraries must not erase global tikzLibraries
This diagram uses:
arrows.metafrom the global configuration;decorations.pathreplacingfrom the local configuration.
Expected result if it works: both the Stealth arrow and the decorative brace are rendered.
If it fails: the local data-tikz-libraries value probably erased the global tikzLibraries.
Test 4 — Local fallback image overrides global fallback image
This diagram is intentionally broken.
It defines a local fallback image with data-broken-image-src.
Expected result if it works: an orange image with the text LOCAL ERROR is displayed.
If it fails: if the global fallback image is displayed instead, the local data-broken-image-src option was ignored.
Test 5 — Global configuration still works after a local fallback
This diagram is rendered after the previous broken diagram.
It does not define any local fallback image.
Expected result if it works: the formula is rendered normally.
If it fails: the local fallback configuration probably polluted or damaged the global configuration.