\(\newcommand{\footnotename}{footnote}\)
\(\def \LWRfootnote {1}\)
\(\newcommand {\footnote }[2][\LWRfootnote ]{{}^{\mathrm {#1}}}\)
\(\newcommand {\footnotemark }[1][\LWRfootnote ]{{}^{\mathrm {#1}}}\)
\(\let \LWRorighspace \hspace \)
\(\renewcommand {\hspace }{\ifstar \LWRorighspace \LWRorighspace }\)
\(\newcommand {\mathnormal }[1]{{#1}}\)
\(\newcommand \ensuremath [1]{#1}\)
\(\newcommand {\LWRframebox }[2][]{\fbox {#2}} \newcommand {\framebox }[1][]{\LWRframebox } \)
\(\newcommand {\setlength }[2]{}\)
\(\newcommand {\addtolength }[2]{}\)
\(\newcommand {\setcounter }[2]{}\)
\(\newcommand {\addtocounter }[2]{}\)
\(\newcommand {\arabic }[1]{}\)
\(\newcommand {\number }[1]{}\)
\(\newcommand {\noalign }[1]{\text {#1}\notag \\}\)
\(\newcommand {\cline }[1]{}\)
\(\newcommand {\directlua }[1]{\text {(directlua)}}\)
\(\newcommand {\luatexdirectlua }[1]{\text {(directlua)}}\)
\(\newcommand {\protect }{}\)
\(\def \LWRabsorbnumber #1 {}\)
\(\def \LWRabsorbquotenumber "#1 {}\)
\(\newcommand {\LWRabsorboption }[1][]{}\)
\(\newcommand {\LWRabsorbtwooptions }[1][]{\LWRabsorboption }\)
\(\def \mathchar {\ifnextchar "\LWRabsorbquotenumber \LWRabsorbnumber }\)
\(\def \mathcode #1={\mathchar }\)
\(\let \delcode \mathcode \)
\(\let \delimiter \mathchar \)
\(\def \oe {\unicode {x0153}}\)
\(\def \OE {\unicode {x0152}}\)
\(\def \ae {\unicode {x00E6}}\)
\(\def \AE {\unicode {x00C6}}\)
\(\def \aa {\unicode {x00E5}}\)
\(\def \AA {\unicode {x00C5}}\)
\(\def \o {\unicode {x00F8}}\)
\(\def \O {\unicode {x00D8}}\)
\(\def \l {\unicode {x0142}}\)
\(\def \L {\unicode {x0141}}\)
\(\def \ss {\unicode {x00DF}}\)
\(\def \SS {\unicode {x1E9E}}\)
\(\def \dag {\unicode {x2020}}\)
\(\def \ddag {\unicode {x2021}}\)
\(\def \P {\unicode {x00B6}}\)
\(\def \copyright {\unicode {x00A9}}\)
\(\def \pounds {\unicode {x00A3}}\)
\(\let \LWRref \ref \)
\(\renewcommand {\ref }{\ifstar \LWRref \LWRref }\)
\( \newcommand {\multicolumn }[3]{#3}\)
\(\require {textcomp}\)
\(\newcommand {\intertext }[1]{\text {#1}\notag \\}\)
\(\let \Hat \hat \)
\(\let \Check \check \)
\(\let \Tilde \tilde \)
\(\let \Acute \acute \)
\(\let \Grave \grave \)
\(\let \Dot \dot \)
\(\let \Ddot \ddot \)
\(\let \Breve \breve \)
\(\let \Bar \bar \)
\(\let \Vec \vec \)
\(\newcommand {\C }{ \mathbb {C} }\)
\(\newcommand {\Cc }{ \mathcal {C} }\)
\(\newcommand {\Dc }{ \mathcal {D} }\)
\( \newcommand {\Grp }{ \mathrm {Grp} } \)
\(\newcommand {\Z }{ \mathbb {Z} }\)
\(\newcommand {\ra }[1]{\xrightarrow {#1}}\)
\(\DeclareMathOperator {\Sym }{Sym}\)
\(\def \id {\mathrm {id}}\)
\(\newcommand {\Q }{\mathbb {Q}}\)
\(\renewcommand {\a }{{\alpha }}\)
\(\renewcommand {\b }{{\beta }}\)
\(\def \g {\gamma }\)
\(\def \w {\omega }\)
\(\def \e {\epsilon }\)
\(\def \z {\zeta }\)
\(\def \d {\partial }\)
\(\newcommand {\tHpb }[3]{{\mathbf {\overline {2H}}^{#1}_{(#2,#3)}}}\)
\(\newcommand {\Hpb }{\mathbf {\overline {H}}}\)
\(\def \red {\textcolor {red}}\)
\(\def \green {\textcolor {green}}\)
\(\def \blue {\textcolor {blue}}\)
Sample HTML file: produced with lwarp, with mathematical formulae displayed with MathJax, and xymatrix commutative diagrams displayed with XyJax-v3
Last modified: April 15, 2024
Contents
1 Context and instructions: using Lwarp to compile latex to HTML, so that xymatrix diagrams are displayed with Xy-Jax
2 Examples: xymatrix diagrams displayed with Xy-Jaxv3 using Lwarp
3 Issues when using XyJax-v3 and Lwarp for typesetting xymatrix diagrams
4 More general notes
5 Some examples of tikz and xymatrix diagrams compiled as svg images, with alternative text
5.1 An xymatrix diagram compiled as an image with alt text
5.2 A tikz image compiled as an image with alt text:
5.3 A tikz image compiled to an image with alt text, outside a float environment
5.4 A tikz image compiled to an image with alt text, outside a float environment, and with a caption
5.5 A tikz-cd diagram compiled into a figure with alt text:
6 Sample mathematics
6.1 Adjoint functors and coadjoint functors via universal arrows
6.2 The Galois correspondence for \(f(t)=t^3-2\), over the rational field
\[\xymatrix @R=30pt@C=60pt {&A\ar [d]_{\iota _0^A} \ar [r]^f & X\ar [d]_{\iota _0^X} \ar [r]^g & B.\\ & A \times I \ar
@/_4pc/[rru]_<<<<<<<<<<<{H} \ar [r]^{f \times \id _I} & X\times I \ar @{-->}[ur]^{H'} } \]
\[\hskip -0.5cm\xymatrix @C=25pt@R=30pt{& T\times T\ar [drr]_{\sqcup } \ar [rr]^{ \tau } &\drtwocell \omit {\,\,\, \mathbf {R}}& T \times T \ar [d]^{\sqcup } \\ &&& T.}
\]
The responsibility for this HTML file is João Faria Martins ’ only.
Corrections, suggestions, etc. are very welcome, and can be sent to: j.fariamartins@leeds.ac.uk .
This is strictly a non-specialist experimental file.
See the links below for:
• “stand-alone” version of this webpage ,
• “split” version of this webpage (with sans serif fonts),
• pdf version of this page ,
• Latex source for the stand alone version of this page Sample_Lwarp_Xy-jax.tex ,
• Latex source for the split version of this page, with sans serif fonts: Sample_Lwarp_Xy-jax-split.tex ,
• CSS files for the stand-alone version of this page: lwarp.css (automatically provided by lwarpmk ) and my_file_stand-alone.css (minor tweak to adjust margins),
• CSS files for the split version of this page: lwarp_formal.css (automatically provided by lwarpmk ) and my_file_split.css (minor tweak enforcing sans serif fonts).
• Configuration file required for browsers to find Xy-Jaxv3, lwarp-with-Xy-jax_v3.txt . This script is essentially the original Lwarp MathJax emulation code, lwarp_mathjax.txt (automatically created by lwarp v0.902), with two minimal additions, as shown.