GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
1
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
XML
Browse code
- Added xsl:text to all LaTeX templates.
master
1 parent
f76d5a5
commit
6015fe708afa7b0cb8f2876f3b26b497a44e6275
nstanger
authored
on 7 Oct 2011
Patch
Showing
3 changed files
modules/generate-greek.php
modules/greek-characters.xml
modules/mathematical-symbols.xml
Ignore Space
Show notes
View
modules/generate-greek.php
<?php // Quick and dirty, but it does the job! $char_data = array( // Unicode name (lower case), char, U+xxxx, LaTeX, XSLT template match, Unicode name (upper case), char, U+xxxx, LaTeX, XSLT template match, "alpha" => array( "GREEK SMALL LETTER ALPHA", "α", "03B1", "\\alpha", "greek-small-letter-alpha", "GREEK CAPITAL LETTER ALPHA", "Α", "0391", "A", "greek-capital-letter-alpha" ), "beta" => array( "GREEK SMALL LETTER BETA", "β", "03B2", "\\beta", "greek-small-letter-beta", "GREEK CAPITAL LETTER BETA", "Β", "0392", "B", "greek-capital-letter-beta" ), "gamma" => array( "GREEK SMALL LETTER GAMMA", "γ", "03B3", "\\gamma", "greek-small-letter-gamma", "GREEK CAPITAL LETTER GAMMA", "Γ", "0393", "\\Gamma", "greek-capital-letter-gamma" ), "delta" => array( "GREEK SMALL LETTER DELTA", "δ", "03B4", "\\delta", "greek-small-letter-delta", "GREEK CAPITAL LETTER DELTA", "Δ", "0394", "\\Delta", "greek-capital-letter-delta" ), "epsilon" => array( "GREEK SMALL LETTER EPSILON", "ε", "03B5", "\\varepsilon", "greek-small-letter-epsilon", "GREEK CAPITAL LETTER EPSILON", "Ε", "0395", "E", "greek-capital-letter-epsilon" ), "zeta" => array( "GREEK SMALL LETTER ZETA", "ζ", "03B6", "\\zeta", "greek-small-letter-zeta", "GREEK CAPITAL LETTER ZETA", "Ζ", "0396", "Z", "greek-capital-letter-zeta" ), "eta" => array( "GREEK SMALL LETTER ETA", "η", "03B7", "\\eta", "greek-small-letter-eta", "GREEK CAPITAL LETTER ETA", "Η", "0397", "H", "greek-capital-letter-eta" ), "theta" => array( "GREEK SMALL LETTER THETA", "θ", "03B8", "\\theta", "greek-small-letter-theta", "GREEK CAPITAL LETTER THETA", "Θ", "0398", "\\Theta", "greek-capital-letter-theta" ), "iota" => array( "GREEK SMALL LETTER IOTA", "ι", "03B9", "\\iota", "greek-small-letter-iota", "GREEK CAPITAL LETTER IOTA", "Ι", "0399", "I", "greek-capital-letter-iota" ), "kappa" => array( "GREEK SMALL LETTER KAPPA", "κ", "03BA", "\\kappa", "greek-small-letter-kappa", "GREEK CAPITAL LETTER KAPPA", "Κ", "039A", "K", "greek-capital-letter-kappa" ), "lambda" => array( "GREEK SMALL LETTER LAMBDA", "λ", "03BB", "\\lambda", "greek-small-letter-lambda", "GREEK CAPITAL LETTER LAMBDA", "Λ", "039B", "\\Lambda", "greek-capital-letter-lambda" ), "mu" => array( "GREEK SMALL LETTER MU", "μ", "03BC", "\\mu", "greek-small-letter-mu", "GREEK CAPITAL LETTER MU", "Μ", "039C", "M", "greek-capital-letter-mu" ), "nu" => array( "GREEK SMALL LETTER NU", "ν", "03BD", "\\nu", "greek-small-letter-nu", "GREEK CAPITAL LETTER NU", "Ν", "039D", "N", "greek-capital-letter-nu" ), "xi" => array( "GREEK SMALL LETTER XI", "ξ", "03BE", "\\xi", "greek-small-letter-xi", "GREEK CAPITAL LETTER XI", "Ξ", "039E", "\\Xi", "greek-capital-letter-xi" ), "omicron" => array( "GREEK SMALL LETTER OMICRON", "ο", "03BF", "o", "greek-small-letter-omicron", "GREEK CAPITAL LETTER OMICRON", "Ο", "039F", "O", "greek-capital-letter-omicron" ), "pi" => array( "GREEK SMALL LETTER PI", "π", "03C0", "\\pi", "greek-small-letter-pi", "GREEK CAPITAL LETTER PI", "Π", "03A0", "\\Pi", "greek-capital-letter-pi" ), "rho" => array( "GREEK SMALL LETTER RHO", "ρ", "03C1", "\\rho", "greek-small-letter-rho", "GREEK CAPITAL LETTER RHO", "Ρ", "03A1", "P", "greek-capital-letter-rho" ), "sigma" => array( "GREEK SMALL LETTER SIGMA", "σ", "03C2", "\\sigma", "greek-small-letter-sigma", "GREEK CAPITAL LETTER SIGMA", "Σ", "03A3", "\\Sigma", "greek-capital-letter-sigma" ), "tau" => array( "GREEK SMALL LETTER TAU", "τ", "03C4", "\\tau", "greek-small-letter-tau", "GREEK CAPITAL LETTER TAU", "Τ", "03A4", "T", "greek-capital-letter-tau" ), "upsilon" => array( "GREEK SMALL LETTER UPSILON", "υ", "03C5", "\\upsilon", "greek-small-letter-upsilon", "GREEK CAPITAL LETTER UPSILON", "Υ", "03A5", "\\Upsilon", "greek-capital-letter-upsilon" ), "phi" => array( "GREEK PHI SYMBOL", "ϕ", "03C6", "\\phi", "greek-phi-symbol", "GREEK CAPITAL LETTER PHI", "Φ", "03A6", "\\Phi", "greek-capital-letter-phi" ), "chi" => array( "GREEK SMALL LETTER CHI", "χ", "03C7", "\\chi", "greek-small-letter-chi", "GREEK CAPITAL LETTER CHI", "Χ", "03A7", "X", "greek-capital-letter-chi" ), "psi" => array( "GREEK SMALL LETTER PSI", "ψ", "03C8", "\\psi", "greek-small-letter-psi", "GREEK CAPITAL LETTER PSI", "Ψ", "03A8", "\\Psi", "greek-capital-letter-psi" ), "omega" => array( "GREEK SMALL LETTER OMEGA", "ω", "03C9", "\\omega", "greek-small-letter-omega", "GREEK CAPITAL LETTER OMEGA", "Ω", "03A9", "\\Omega", "greek-capital-letter-omega" ), ); foreach ( $char_data as $name => $data ) { // The upper case HTML entity names have the first character capitalised. $upper_name = ucfirst( $name ); print <<<EOT <!-- Lower case {$name}. --> <template name="{$name}" match="{$name}|{$data[4]}"> <common formats="/latex/xelatex/"><xsl:text>\\ensuremath{{$data[3]}}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&{$name};</xsl:text></html> <!-- U+{$data[2]} {$data[0]} --> <xhtml><span class="unicode"><xsl:text>{$data[1]}</xsl:text></span></xhtml> </template> <template name="{$name}-strip" match="{$name}|{$data[4]}" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="{$name}" /> </common> </template> <!-- Upper case {$name}. --> <template name="capital-{$name}" match="{$name}|{$data[9]}"> <common formats="/latex/xelatex/"><xsl:text>\\ensuremath{{$data[8]}}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&{$upper_name};</xsl:text></html> <!-- U+{$data[7]} {$data[5]} --> <xhtml><span class="unicode"><xsl:text>{$data[6]}</xsl:text></span></xhtml> </template> <template name="capital-{$name}-strip" match="{$name}|{$data[9]}" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-{$name}" /> </common> </template> EOT; } ?>
<?php // Quick and dirty, but it does the job! $char_data = array( // Unicode name (lower case), char, U+xxxx, LaTeX, XSLT template match, Unicode name (upper case), char, U+xxxx, LaTeX, XSLT template match, "alpha" => array( "GREEK SMALL LETTER ALPHA", "α", "03B1", "\\alpha", "greek-small-letter-alpha", "GREEK CAPITAL LETTER ALPHA", "Α", "0391", "A", "greek-capital-letter-alpha" ), "beta" => array( "GREEK SMALL LETTER BETA", "β", "03B2", "\\beta", "greek-small-letter-beta", "GREEK CAPITAL LETTER BETA", "Β", "0392", "B", "greek-capital-letter-beta" ), "gamma" => array( "GREEK SMALL LETTER GAMMA", "γ", "03B3", "\\gamma", "greek-small-letter-gamma", "GREEK CAPITAL LETTER GAMMA", "Γ", "0393", "\\Gamma", "greek-capital-letter-gamma" ), "delta" => array( "GREEK SMALL LETTER DELTA", "δ", "03B4", "\\delta", "greek-small-letter-delta", "GREEK CAPITAL LETTER DELTA", "Δ", "0394", "\\Delta", "greek-capital-letter-delta" ), "epsilon" => array( "GREEK SMALL LETTER EPSILON", "ε", "03B5", "\\varepsilon", "greek-small-letter-epsilon", "GREEK CAPITAL LETTER EPSILON", "Ε", "0395", "E", "greek-capital-letter-epsilon" ), "zeta" => array( "GREEK SMALL LETTER ZETA", "ζ", "03B6", "\\zeta", "greek-small-letter-zeta", "GREEK CAPITAL LETTER ZETA", "Ζ", "0396", "Z", "greek-capital-letter-zeta" ), "eta" => array( "GREEK SMALL LETTER ETA", "η", "03B7", "\\eta", "greek-small-letter-eta", "GREEK CAPITAL LETTER ETA", "Η", "0397", "H", "greek-capital-letter-eta" ), "theta" => array( "GREEK SMALL LETTER THETA", "θ", "03B8", "\\theta", "greek-small-letter-theta", "GREEK CAPITAL LETTER THETA", "Θ", "0398", "\\Theta", "greek-capital-letter-theta" ), "iota" => array( "GREEK SMALL LETTER IOTA", "ι", "03B9", "\\iota", "greek-small-letter-iota", "GREEK CAPITAL LETTER IOTA", "Ι", "0399", "I", "greek-capital-letter-iota" ), "kappa" => array( "GREEK SMALL LETTER KAPPA", "κ", "03BA", "\\kappa", "greek-small-letter-kappa", "GREEK CAPITAL LETTER KAPPA", "Κ", "039A", "K", "greek-capital-letter-kappa" ), "lambda" => array( "GREEK SMALL LETTER LAMBDA", "λ", "03BB", "\\lambda", "greek-small-letter-lambda", "GREEK CAPITAL LETTER LAMBDA", "Λ", "039B", "\\Lambda", "greek-capital-letter-lambda" ), "mu" => array( "GREEK SMALL LETTER MU", "μ", "03BC", "\\mu", "greek-small-letter-mu", "GREEK CAPITAL LETTER MU", "Μ", "039C", "M", "greek-capital-letter-mu" ), "nu" => array( "GREEK SMALL LETTER NU", "ν", "03BD", "\\nu", "greek-small-letter-nu", "GREEK CAPITAL LETTER NU", "Ν", "039D", "N", "greek-capital-letter-nu" ), "xi" => array( "GREEK SMALL LETTER XI", "ξ", "03BE", "\\xi", "greek-small-letter-xi", "GREEK CAPITAL LETTER XI", "Ξ", "039E", "\\Xi", "greek-capital-letter-xi" ), "omicron" => array( "GREEK SMALL LETTER OMICRON", "ο", "03BF", "o", "greek-small-letter-omicron", "GREEK CAPITAL LETTER OMICRON", "Ο", "039F", "O", "greek-capital-letter-omicron" ), "pi" => array( "GREEK SMALL LETTER PI", "π", "03C0", "\\pi", "greek-small-letter-pi", "GREEK CAPITAL LETTER PI", "Π", "03A0", "\\Pi", "greek-capital-letter-pi" ), "rho" => array( "GREEK SMALL LETTER RHO", "ρ", "03C1", "\\rho", "greek-small-letter-rho", "GREEK CAPITAL LETTER RHO", "Ρ", "03A1", "P", "greek-capital-letter-rho" ), "sigma" => array( "GREEK SMALL LETTER SIGMA", "σ", "03C2", "\\sigma", "greek-small-letter-sigma", "GREEK CAPITAL LETTER SIGMA", "Σ", "03A3", "\\Sigma", "greek-capital-letter-sigma" ), "tau" => array( "GREEK SMALL LETTER TAU", "τ", "03C4", "\\tau", "greek-small-letter-tau", "GREEK CAPITAL LETTER TAU", "Τ", "03A4", "T", "greek-capital-letter-tau" ), "upsilon" => array( "GREEK SMALL LETTER UPSILON", "υ", "03C5", "\\upsilon", "greek-small-letter-upsilon", "GREEK CAPITAL LETTER UPSILON", "Υ", "03A5", "\\Upsilon", "greek-capital-letter-upsilon" ), "phi" => array( "GREEK PHI SYMBOL", "ϕ", "03C6", "\\phi", "greek-phi-symbol", "GREEK CAPITAL LETTER PHI", "Φ", "03A6", "\\Phi", "greek-capital-letter-phi" ), "chi" => array( "GREEK SMALL LETTER CHI", "χ", "03C7", "\\chi", "greek-small-letter-chi", "GREEK CAPITAL LETTER CHI", "Χ", "03A7", "X", "greek-capital-letter-chi" ), "psi" => array( "GREEK SMALL LETTER PSI", "ψ", "03C8", "\\psi", "greek-small-letter-psi", "GREEK CAPITAL LETTER PSI", "Ψ", "03A8", "\\Psi", "greek-capital-letter-psi" ), "omega" => array( "GREEK SMALL LETTER OMEGA", "ω", "03C9", "\\omega", "greek-small-letter-omega", "GREEK CAPITAL LETTER OMEGA", "Ω", "03A9", "\\Omega", "greek-capital-letter-omega" ), ); foreach ( $char_data as $name => $data ) { // The upper case HTML entity names have the first character capitalised. $upper_name = ucfirst( $name ); print <<<EOT <!-- Lower case {$name}. --> <template name="{$name}" match="{$name}|{$data[4]}"> <common formats="/latex/xelatex/">\\ensuremath{{$data[3]}}</common> <html><xsl:text disable-output-escaping="yes">&{$name};</xsl:text></html> <!-- U+{$data[2]} {$data[0]} --> <xhtml><span class="unicode"><xsl:text>{$data[1]}</xsl:text></span></xhtml> </template> <template name="{$name}-strip" match="{$name}|{$data[4]}" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="{$name}" /> </common> </template> <!-- Upper case {$name}. --> <template name="capital-{$name}" match="{$name}|{$data[9]}"> <common formats="/latex/xelatex/">\\ensuremath{{$data[8]}}</common> <html><xsl:text disable-output-escaping="yes">&{$upper_name};</xsl:text></html> <!-- U+{$data[7]} {$data[5]} --> <xhtml><span class="unicode"><xsl:text>{$data[6]}</xsl:text></span></xhtml> </template> <template name="capital-{$name}-strip" match="{$name}|{$data[9]}" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-{$name}" /> </common> </template> EOT; } ?>
Ignore Space
Show notes
View
modules/greek-characters.xml
<?xml version="1.0" encoding="utf-8"?> <!-- Greek characters. The "strip" mode forms of the templates are for use in the context of an HTML <title> element (so the mode is only relevant to the HTML formats). Embedding HTML markup inside the <title> element causes the markup to appear verbatim in the window title, i.e., <title><em>foo</em> bar</title> will appear in the window title as "<em>foo</em> bar", not "foo bar". Putting the stylesheet into strip mode means that it will only output text nodes unless otherwise specified for a particular element. Generally the "strip" templates will simply call-template to the original, unless the original contains markup that needs to be eliminated (e.g., see space below). The downside of this approach, of course, is that you need "strip" mode templates for quite a lot of things, but that can't really be helped. --> <stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- Lower case alpha (α). --> <template name="alpha" match="alpha|greek-small-letter-alpha"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\alpha}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&alpha;</xsl:text></html> <!-- U+03B1 GREEK SMALL LETTER ALPHA --> <xhtml><span class="unicode"><xsl:text>α</xsl:text></span></xhtml> </template> <template name="alpha-strip" match="alpha|greek-small-letter-alpha" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="alpha" /> </common> </template> <!-- Upper case alpha (Α). --> <template name="capital-alpha" match="capital-alpha|greek-capital-letter-alpha"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{A}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Alpha;</xsl:text></html> <!-- U+0391 GREEK CAPITAL LETTER ALPHA --> <xhtml><span class="unicode"><xsl:text>Α</xsl:text></span></xhtml> </template> <template name="capital-alpha-stip" match="capital-alpha|greek-capital-letter-alpha" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-alpha" /> </common> </template> <!-- Lower case beta (β). --> <template name="beta" match="beta|greek-small-letter-beta"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\beta}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&beta;</xsl:text></html> <!-- U+03B2 GREEK SMALL LETTER BETA --> <xhtml><span class="unicode"><xsl:text>β</xsl:text></span></xhtml> </template> <template name="beta-strip" match="beta|greek-small-letter-beta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="beta" /> </common> </template> <!-- Upper case beta (Β). --> <template name="capital-beta" match="capital-beta|greek-capital-letter-beta"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{B}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Beta;</xsl:text></html> <!-- U+0392 GREEK CAPITAL LETTER BETA --> <xhtml><span class="unicode"><xsl:text>Β</xsl:text></span></xhtml> </template> <template name="capital-beta-stip" match="capital-beta|greek-capital-letter-beta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-beta" /> </common> </template> <!-- Lower case gamma (γ). --> <template name="gamma" match="gamma|greek-small-letter-gamma"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\gamma}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&gamma;</xsl:text></html> <!-- U+03B3 GREEK SMALL LETTER GAMMA --> <xhtml><span class="unicode"><xsl:text>γ</xsl:text></span></xhtml> </template> <template name="gamma-strip" match="gamma|greek-small-letter-gamma" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="gamma" /> </common> </template> <!-- Upper case gamma (Γ). --> <template name="capital-gamma" match="capital-gamma|greek-capital-letter-gamma"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\Gamma}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Gamma;</xsl:text></html> <!-- U+0393 GREEK CAPITAL LETTER GAMMA --> <xhtml><span class="unicode"><xsl:text>Γ</xsl:text></span></xhtml> </template> <template name="capital-gamma-stip" match="capital-gamma|greek-capital-letter-gamma" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-gamma" /> </common> </template> <!-- Lower case delta (δ). --> <template name="delta" match="delta|greek-small-letter-delta"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\delta}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&delta;</xsl:text></html> <!-- U+03B4 GREEK SMALL LETTER DELTA --> <xhtml><span class="unicode"><xsl:text>δ</xsl:text></span></xhtml> </template> <template name="delta-strip" match="delta|greek-small-letter-delta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="delta" /> </common> </template> <!-- Upper case delta (Δ). --> <template name="capital-delta" match="capital-delta|greek-capital-letter-delta"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\Delta}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Delta;</xsl:text></html> <!-- U+0394 GREEK CAPITAL LETTER DELTA --> <xhtml><span class="unicode"><xsl:text>Δ</xsl:text></span></xhtml> </template> <template name="capital-delta-stip" match="capital-delta|greek-capital-letter-delta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-delta" /> </common> </template> <!-- Lower case epsilon (ε). --> <template name="epsilon" match="epsilon|greek-small-letter-epsilon"> <!-- Use \varepsilon for consistency with Unicode. --> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\varepsilon}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&epsilon;</xsl:text></html> <!-- U+03B5 GREEK SMALL LETTER EPSILON --> <xhtml><span class="unicode"><xsl:text>ε</xsl:text></span></xhtml> </template> <template name="epsilon-strip" match="epsilon|greek-small-letter-epsilon" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="epsilon" /> </common> </template> <!-- Upper case epsilon (Ε). --> <template name="capital-epsilon" match="capital-epsilon|greek-capital-letter-epsilon"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{E}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Epsilon;</xsl:text></html> <!-- U+0395 GREEK CAPITAL LETTER EPSILON --> <xhtml><span class="unicode"><xsl:text>Ε</xsl:text></span></xhtml> </template> <template name="capital-epsilon-stip" match="capital-epsilon|greek-capital-letter-epsilon" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-epsilon" /> </common> </template> <!-- Lower case zeta (ζ). --> <template name="zeta" match="zeta|greek-small-letter-zeta"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\zeta}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&zeta;</xsl:text></html> <!-- U+03B6 GREEK SMALL LETTER ZETA --> <xhtml><span class="unicode"><xsl:text>ζ</xsl:text></span></xhtml> </template> <template name="zeta-strip" match="zeta|greek-small-letter-zeta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="zeta" /> </common> </template> <!-- Upper case zeta (Ζ). --> <template name="capital-zeta" match="capital-zeta|greek-capital-letter-zeta"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{Z}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Zeta;</xsl:text></html> <!-- U+0396 GREEK CAPITAL LETTER ZETA --> <xhtml><span class="unicode"><xsl:text>Ζ</xsl:text></span></xhtml> </template> <template name="capital-zeta-stip" match="capital-zeta|greek-capital-letter-zeta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-zeta" /> </common> </template> <!-- Lower case eta (η). --> <template name="eta" match="eta|greek-small-letter-eta"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\eta}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&eta;</xsl:text></html> <!-- U+03B7 GREEK SMALL LETTER ETA --> <xhtml><span class="unicode"><xsl:text>η</xsl:text></span></xhtml> </template> <template name="eta-strip" match="eta|greek-small-letter-eta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="eta" /> </common> </template> <!-- Upper case eta (Η). --> <template name="capital-eta" match="capital-eta|greek-capital-letter-eta"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{H}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Eta;</xsl:text></html> <!-- U+0397 GREEK CAPITAL LETTER ETA --> <xhtml><span class="unicode"><xsl:text>Η</xsl:text></span></xhtml> </template> <template name="capital-eta-stip" match="capital-eta|greek-capital-letter-eta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-eta" /> </common> </template> <!-- Lower case theta (θ). --> <template name="theta" match="theta|greek-small-letter-theta"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\theta}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&theta;</xsl:text></html> <!-- U+03B8 GREEK SMALL LETTER THETA --> <xhtml><span class="unicode"><xsl:text>θ</xsl:text></span></xhtml> </template> <template name="theta-strip" match="theta|greek-small-letter-theta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="theta" /> </common> </template> <!-- Upper case theta (Θ). --> <template name="capital-theta" match="capital-theta|greek-capital-letter-theta"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\Theta}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Theta;</xsl:text></html> <!-- U+0398 GREEK CAPITAL LETTER THETA --> <xhtml><span class="unicode"><xsl:text>Θ</xsl:text></span></xhtml> </template> <template name="capital-theta-stip" match="capital-theta|greek-capital-letter-theta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-theta" /> </common> </template> <!-- Lower case iota (ι). --> <template name="iota" match="iota|greek-small-letter-iota"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\iota}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&iota;</xsl:text></html> <!-- U+03B9 GREEK SMALL LETTER IOTA --> <xhtml><span class="unicode"><xsl:text>ι</xsl:text></span></xhtml> </template> <template name="iota-strip" match="iota|greek-small-letter-iota" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="iota" /> </common> </template> <!-- Upper case iota (Ι). --> <template name="capital-iota" match="capital-iota|greek-capital-letter-iota"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{I}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Iota;</xsl:text></html> <!-- U+0399 GREEK CAPITAL LETTER IOTA --> <xhtml><span class="unicode"><xsl:text>Ι</xsl:text></span></xhtml> </template> <template name="capital-iota-stip" match="capital-iota|greek-capital-letter-iota" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-iota" /> </common> </template> <!-- Lower case kappa (κ). --> <template name="kappa" match="kappa|greek-small-letter-kappa"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\kappa}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&kappa;</xsl:text></html> <!-- U+03BA GREEK SMALL LETTER KAPPA --> <xhtml><span class="unicode"><xsl:text>κ</xsl:text></span></xhtml> </template> <template name="kappa-strip" match="kappa|greek-small-letter-kappa" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="kappa" /> </common> </template> <!-- Upper case kappa (Κ). --> <template name="capital-kappa" match="capital-kappa|greek-capital-letter-kappa"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{K}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Kappa;</xsl:text></html> <!-- U+039A GREEK CAPITAL LETTER KAPPA --> <xhtml><span class="unicode"><xsl:text>Κ</xsl:text></span></xhtml> </template> <template name="capital-kappa-stip" match="capital-kappa|greek-capital-letter-kappa" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-kappa" /> </common> </template> <!-- Lower case lambda (λ). --> <template name="lambda" match="lambda|greek-small-letter-lambda"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\lambda}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&lambda;</xsl:text></html> <!-- U+03BB GREEK SMALL LETTER LAMBDA --> <xhtml><span class="unicode"><xsl:text>λ</xsl:text></span></xhtml> </template> <template name="lambda-strip" match="lambda|greek-small-letter-lambda" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="lambda" /> </common> </template> <!-- Upper case lambda (Λ). --> <template name="capital-lambda" match="capital-lambda|greek-capital-letter-lambda"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\Lambda}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Lambda;</xsl:text></html> <!-- U+039B GREEK CAPITAL LETTER LAMBDA --> <xhtml><span class="unicode"><xsl:text>Λ</xsl:text></span></xhtml> </template> <template name="capital-lambda-stip" match="capital-lambda|greek-capital-letter-lambda" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-lambda" /> </common> </template> <!-- Lower case mu (μ). --> <template name="mu" match="mu|greek-small-letter-mu"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\mu}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&mu;</xsl:text></html> <!-- U+03BC GREEK SMALL LETTER MU --> <xhtml><span class="unicode"><xsl:text>μ</xsl:text></span></xhtml> </template> <template name="mu-strip" match="mu|greek-small-letter-mu" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="mu" /> </common> </template> <!-- Upper case mu (Μ). --> <template name="capital-mu" match="capital-mu|greek-capital-letter-mu"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{M}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Mu;</xsl:text></html> <!-- U+039C GREEK CAPITAL LETTER MU --> <xhtml><span class="unicode"><xsl:text>Μ</xsl:text></span></xhtml> </template> <template name="capital-mu-stip" match="capital-mu|greek-capital-letter-mu" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-mu" /> </common> </template> <!-- Lower case nu (ν). --> <template name="nu" match="nu|greek-small-letter-nu"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\nu}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&nu;</xsl:text></html> <!-- U+03BD GREEK SMALL LETTER NU --> <xhtml><span class="unicode"><xsl:text>ν</xsl:text></span></xhtml> </template> <template name="nu-strip" match="nu|greek-small-letter-nu" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="nu" /> </common> </template> <!-- Upper case nu (Ν). --> <template name="capital-nu" match="capital-nu|greek-capital-letter-nu"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{N}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Nu;</xsl:text></html> <!-- U+039D GREEK CAPITAL LETTER NU --> <xhtml><span class="unicode"><xsl:text>Ν</xsl:text></span></xhtml> </template> <template name="capital-nu-stip" match="capital-nu|greek-capital-letter-nu" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-nu" /> </common> </template> <!-- Lower case xi (ξ). --> <template name="xi" match="xi|greek-small-letter-xi"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\xi}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&xi;</xsl:text></html> <!-- U+03BE GREEK SMALL LETTER XI --> <xhtml><span class="unicode"><xsl:text>ξ</xsl:text></span></xhtml> </template> <template name="xi-strip" match="xi|greek-small-letter-xi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="xi" /> </common> </template> <!-- Upper case xi (Ξ). --> <template name="capital-xi" match="capital-xi|greek-capital-letter-xi"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\Xi}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Xi;</xsl:text></html> <!-- U+039E GREEK CAPITAL LETTER XI --> <xhtml><span class="unicode"><xsl:text>Ξ</xsl:text></span></xhtml> </template> <template name="capital-xi-stip" match="capital-xi|greek-capital-letter-xi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-xi" /> </common> </template> <!-- Lower case omicron (ο). --> <template name="omicron" match="omicron|greek-small-letter-omicron"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{o}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&omicron;</xsl:text></html> <!-- U+03BF GREEK SMALL LETTER OMICRON --> <xhtml><span class="unicode"><xsl:text>ο</xsl:text></span></xhtml> </template> <template name="omicron-strip" match="omicron|greek-small-letter-omicron" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="omicron" /> </common> </template> <!-- Upper case omicron (Ο). --> <template name="capital-omicron" match="capital-omicron|greek-capital-letter-omicron"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{O}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Omicron;</xsl:text></html> <!-- U+039F GREEK CAPITAL LETTER OMICRON --> <xhtml><span class="unicode"><xsl:text>Ο</xsl:text></span></xhtml> </template> <template name="capital-omicron-stip" match="capital-omicron|greek-capital-letter-omicron" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-omicron" /> </common> </template> <!-- Lower case pi (π). --> <template name="pi" match="pi|greek-small-letter-pi"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\pi}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&pi;</xsl:text></html> <!-- U+03C0 GREEK SMALL LETTER PI --> <xhtml><span class="unicode"><xsl:text>π</xsl:text></span></xhtml> </template> <template name="pi-strip" match="pi|greek-small-letter-pi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="pi" /> </common> </template> <!-- Upper case pi (Π). --> <template name="capital-pi" match="capital-pi|greek-capital-letter-pi"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\Pi}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Pi;</xsl:text></html> <!-- U+03A0 GREEK CAPITAL LETTER PI --> <xhtml><span class="unicode"><xsl:text>Π</xsl:text></span></xhtml> </template> <template name="capital-pi-stip" match="capital-pi|greek-capital-letter-pi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-pi" /> </common> </template> <!-- Lower case rho (ρ). --> <template name="rho" match="rho|greek-small-letter-rho"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\rho}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&rho;</xsl:text></html> <!-- U+03C1 GREEK SMALL LETTER RHO --> <xhtml><span class="unicode"><xsl:text>ρ</xsl:text></span></xhtml> </template> <template name="rho-strip" match="rho|greek-small-letter-rho" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="rho" /> </common> </template> <!-- Upper case rho (Ρ). --> <template name="capital-rho" match="capital-rho|greek-capital-letter-rho"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{P}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Rho;</xsl:text></html> <!-- U+03A1 GREEK CAPITAL LETTER RHO --> <xhtml><span class="unicode"><xsl:text>Ρ</xsl:text></span></xhtml> </template> <template name="capital-rho-stip" match="capital-rho|greek-capital-letter-rho" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-rho" /> </common> </template> <!-- Lower case sigma (σ). --> <template name="sigma" match="sigma|greek-small-letter-sigma"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\sigma}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&sigma;</xsl:text></html> <!-- U+03C2 GREEK SMALL LETTER SIGMA --> <xhtml><span class="unicode"><xsl:text>σ</xsl:text></span></xhtml> </template> <template name="sigma-strip" match="sigma|greek-small-letter-sigma" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="sigma" /> </common> </template> <!-- Upper case sigma (Σ). --> <template name="capital-sigma" match="capital-sigma|greek-capital-letter-sigma"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\Sigma}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Sigma;</xsl:text></html> <!-- U+03A3 GREEK CAPITAL LETTER SIGMA --> <xhtml><span class="unicode"><xsl:text>Σ</xsl:text></span></xhtml> </template> <template name="capital-sigma-stip" match="capital-sigma|greek-capital-letter-sigma" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-sigma" /> </common> </template> <!-- Lower case tau (τ). --> <template name="tau" match="tau|greek-small-letter-tau"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\tau}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&tau;</xsl:text></html> <!-- U+03C4 GREEK SMALL LETTER TAU --> <xhtml><span class="unicode"><xsl:text>τ</xsl:text></span></xhtml> </template> <template name="tau-strip" match="tau|greek-small-letter-tau" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="tau" /> </common> </template> <!-- Upper case tau (Τ). --> <template name="capital-tau" match="capital-tau|greek-capital-letter-tau"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{T}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Tau;</xsl:text></html> <!-- U+03A4 GREEK CAPITAL LETTER TAU --> <xhtml><span class="unicode"><xsl:text>Τ</xsl:text></span></xhtml> </template> <template name="capital-tau-stip" match="capital-tau|greek-capital-letter-tau" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-tau" /> </common> </template> <!-- Lower case upsilon (υ). --> <template name="upsilon" match="upsilon|greek-small-letter-upsilon"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\upsilon}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&upsilon;</xsl:text></html> <!-- U+03C5 GREEK SMALL LETTER UPSILON --> <xhtml><span class="unicode"><xsl:text>υ</xsl:text></span></xhtml> </template> <template name="upsilon-strip" match="upsilon|greek-small-letter-upsilon" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="upsilon" /> </common> </template> <!-- Upper case upsilon (Υ). --> <template name="capital-upsilon" match="capital-upsilon|greek-capital-letter-upsilon"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\Upsilon}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Upsilon;</xsl:text></html> <!-- U+03A5 GREEK CAPITAL LETTER UPSILON --> <xhtml><span class="unicode"><xsl:text>Υ</xsl:text></span></xhtml> </template> <template name="capital-upsilon-stip" match="capital-upsilon|greek-capital-letter-upsilon" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-upsilon" /> </common> </template> <!-- Lower case phi (ϕ). --> <template name="phi" match="phi|greek-phi-symbol"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\phi}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&phi;</xsl:text></html> <!-- U+03C6 GREEK PHI SYMBOL (for consistency with LaTeX) --> <xhtml><span class="unicode"><xsl:text>ϕ</xsl:text></span></xhtml> </template> <template name="phi-strip" match="phi|greek-phi-symbol" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="phi" /> </common> </template> <!-- Upper case phi (Φ). --> <template name="capital-phi" match="capital-phi|greek-capital-letter-phi"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\Phi}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Phi;</xsl:text></html> <!-- U+03A6 GREEK CAPITAL LETTER PHI --> <xhtml><span class="unicode"><xsl:text>Φ</xsl:text></span></xhtml> </template> <template name="capital-phi-stip" match="capital-phi|greek-capital-letter-phi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-phi" /> </common> </template> <!-- Lower case chi (χ). --> <template name="chi" match="chi|greek-small-letter-chi"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\chi}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&chi;</xsl:text></html> <!-- U+03C7 GREEK SMALL LETTER CHI --> <xhtml><span class="unicode"><xsl:text>χ</xsl:text></span></xhtml> </template> <template name="chi-strip" match="chi|greek-small-letter-chi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="chi" /> </common> </template> <!-- Upper case chi (Χ). --> <template name="capital-chi" match="capital-chi|greek-capital-letter-chi"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{X}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Chi;</xsl:text></html> <!-- U+03A7 GREEK CAPITAL LETTER CHI --> <xhtml><span class="unicode"><xsl:text>Χ</xsl:text></span></xhtml> </template> <template name="capital-chi-stip" match="capital-chi|greek-capital-letter-chi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-chi" /> </common> </template> <!-- Lower case psi (ψ). --> <template name="psi" match="psi|greek-small-letter-psi"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\psi}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&psi;</xsl:text></html> <!-- U+03C8 GREEK SMALL LETTER PSI --> <xhtml><span class="unicode"><xsl:text>ψ</xsl:text></span></xhtml> </template> <template name="psi-strip" match="psi|greek-small-letter-psi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="psi" /> </common> </template> <!-- Upper case psi (Ψ). --> <template name="capital-psi" match="capital-psi|greek-capital-letter-psi"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\Psi}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Psi;</xsl:text></html> <!-- U+03A8 GREEK CAPITAL LETTER PSI --> <xhtml><span class="unicode"><xsl:text>Ψ</xsl:text></span></xhtml> </template> <template name="capital-psi-stip" match="capital-psi|greek-capital-letter-psi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-psi" /> </common> </template> <!-- Lower case omega (ω). --> <template name="omega" match="omega|greek-small-letter-omega"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\omega}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&omega;</xsl:text></html> <!-- U+03C9 GREEK SMALL LETTER OMEGA --> <xhtml><span class="unicode"><xsl:text>ω</xsl:text></span></xhtml> </template> <template name="omega-strip" match="omega|greek-small-letter-omega" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="omega" /> </common> </template> <!-- Upper case omega (Ω). --> <template name="capital-omega" match="capital-omega|greek-capital-letter-omega"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\Omega}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&Omega;</xsl:text></html> <!-- U+03A9 GREEK CAPITAL LETTER OMEGA --> <xhtml><span class="unicode"><xsl:text>Ω</xsl:text></span></xhtml> </template> <template name="capital-omega-stip" match="capital-omega|greek-capital-letter-omega" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-omega" /> </common> </template> </stylesheet>
<?xml version="1.0" encoding="utf-8"?> <!-- Greek characters. The "strip" mode forms of the templates are for use in the context of an HTML <title> element (so the mode is only relevant to the HTML formats). Embedding HTML markup inside the <title> element causes the markup to appear verbatim in the window title, i.e., <title><em>foo</em> bar</title> will appear in the window title as "<em>foo</em> bar", not "foo bar". Putting the stylesheet into strip mode means that it will only output text nodes unless otherwise specified for a particular element. Generally the "strip" templates will simply call-template to the original, unless the original contains markup that needs to be eliminated (e.g., see space below). The downside of this approach, of course, is that you need "strip" mode templates for quite a lot of things, but that can't really be helped. --> <stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- Lower case alpha (α). --> <template name="alpha" match="alpha|greek-small-letter-alpha"> <common formats="/latex/xelatex/">\ensuremath{\alpha}</common> <html><xsl:text disable-output-escaping="yes">&alpha;</xsl:text></html> <!-- U+03B1 GREEK SMALL LETTER ALPHA --> <xhtml><span class="unicode"><xsl:text>α</xsl:text></span></xhtml> </template> <template name="alpha-strip" match="alpha|greek-small-letter-alpha" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="alpha" /> </common> </template> <!-- Upper case alpha (Α). --> <template name="capital-alpha" match="capital-alpha|greek-capital-letter-alpha"> <common formats="/latex/xelatex/">\ensuremath{A}</common> <html><xsl:text disable-output-escaping="yes">&Alpha;</xsl:text></html> <!-- U+0391 GREEK CAPITAL LETTER ALPHA --> <xhtml><span class="unicode"><xsl:text>Α</xsl:text></span></xhtml> </template> <template name="capital-alpha-stip" match="capital-alpha|greek-capital-letter-alpha" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-alpha" /> </common> </template> <!-- Lower case beta (β). --> <template name="beta" match="beta|greek-small-letter-beta"> <common formats="/latex/xelatex/">\ensuremath{\beta}</common> <html><xsl:text disable-output-escaping="yes">&beta;</xsl:text></html> <!-- U+03B2 GREEK SMALL LETTER BETA --> <xhtml><span class="unicode"><xsl:text>β</xsl:text></span></xhtml> </template> <template name="beta-strip" match="beta|greek-small-letter-beta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="beta" /> </common> </template> <!-- Upper case beta (Β). --> <template name="capital-beta" match="capital-beta|greek-capital-letter-beta"> <common formats="/latex/xelatex/">\ensuremath{B}</common> <html><xsl:text disable-output-escaping="yes">&Beta;</xsl:text></html> <!-- U+0392 GREEK CAPITAL LETTER BETA --> <xhtml><span class="unicode"><xsl:text>Β</xsl:text></span></xhtml> </template> <template name="capital-beta-stip" match="capital-beta|greek-capital-letter-beta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-beta" /> </common> </template> <!-- Lower case gamma (γ). --> <template name="gamma" match="gamma|greek-small-letter-gamma"> <common formats="/latex/xelatex/">\ensuremath{\gamma}</common> <html><xsl:text disable-output-escaping="yes">&gamma;</xsl:text></html> <!-- U+03B3 GREEK SMALL LETTER GAMMA --> <xhtml><span class="unicode"><xsl:text>γ</xsl:text></span></xhtml> </template> <template name="gamma-strip" match="gamma|greek-small-letter-gamma" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="gamma" /> </common> </template> <!-- Upper case gamma (Γ). --> <template name="capital-gamma" match="capital-gamma|greek-capital-letter-gamma"> <common formats="/latex/xelatex/">\ensuremath{\Gamma}</common> <html><xsl:text disable-output-escaping="yes">&Gamma;</xsl:text></html> <!-- U+0393 GREEK CAPITAL LETTER GAMMA --> <xhtml><span class="unicode"><xsl:text>Γ</xsl:text></span></xhtml> </template> <template name="capital-gamma-stip" match="capital-gamma|greek-capital-letter-gamma" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-gamma" /> </common> </template> <!-- Lower case delta (δ). --> <template name="delta" match="delta|greek-small-letter-delta"> <common formats="/latex/xelatex/">\ensuremath{\delta}</common> <html><xsl:text disable-output-escaping="yes">&delta;</xsl:text></html> <!-- U+03B4 GREEK SMALL LETTER DELTA --> <xhtml><span class="unicode"><xsl:text>δ</xsl:text></span></xhtml> </template> <template name="delta-strip" match="delta|greek-small-letter-delta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="delta" /> </common> </template> <!-- Upper case delta (Δ). --> <template name="capital-delta" match="capital-delta|greek-capital-letter-delta"> <common formats="/latex/xelatex/">\ensuremath{\Delta}</common> <html><xsl:text disable-output-escaping="yes">&Delta;</xsl:text></html> <!-- U+0394 GREEK CAPITAL LETTER DELTA --> <xhtml><span class="unicode"><xsl:text>Δ</xsl:text></span></xhtml> </template> <template name="capital-delta-stip" match="capital-delta|greek-capital-letter-delta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-delta" /> </common> </template> <!-- Lower case epsilon (ε). --> <template name="epsilon" match="epsilon|greek-small-letter-epsilon"> <!-- Use \varepsilon for consistency with Unicode. --> <common formats="/latex/xelatex/">\ensuremath{\varepsilon}</common> <html><xsl:text disable-output-escaping="yes">&epsilon;</xsl:text></html> <!-- U+03B5 GREEK SMALL LETTER EPSILON --> <xhtml><span class="unicode"><xsl:text>ε</xsl:text></span></xhtml> </template> <template name="epsilon-strip" match="epsilon|greek-small-letter-epsilon" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="epsilon" /> </common> </template> <!-- Upper case epsilon (Ε). --> <template name="capital-epsilon" match="capital-epsilon|greek-capital-letter-epsilon"> <common formats="/latex/xelatex/">\ensuremath{E}</common> <html><xsl:text disable-output-escaping="yes">&Epsilon;</xsl:text></html> <!-- U+0395 GREEK CAPITAL LETTER EPSILON --> <xhtml><span class="unicode"><xsl:text>Ε</xsl:text></span></xhtml> </template> <template name="capital-epsilon-stip" match="capital-epsilon|greek-capital-letter-epsilon" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-epsilon" /> </common> </template> <!-- Lower case zeta (ζ). --> <template name="zeta" match="zeta|greek-small-letter-zeta"> <common formats="/latex/xelatex/">\ensuremath{\zeta}</common> <html><xsl:text disable-output-escaping="yes">&zeta;</xsl:text></html> <!-- U+03B6 GREEK SMALL LETTER ZETA --> <xhtml><span class="unicode"><xsl:text>ζ</xsl:text></span></xhtml> </template> <template name="zeta-strip" match="zeta|greek-small-letter-zeta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="zeta" /> </common> </template> <!-- Upper case zeta (Ζ). --> <template name="capital-zeta" match="capital-zeta|greek-capital-letter-zeta"> <common formats="/latex/xelatex/">\ensuremath{Z}</common> <html><xsl:text disable-output-escaping="yes">&Zeta;</xsl:text></html> <!-- U+0396 GREEK CAPITAL LETTER ZETA --> <xhtml><span class="unicode"><xsl:text>Ζ</xsl:text></span></xhtml> </template> <template name="capital-zeta-stip" match="capital-zeta|greek-capital-letter-zeta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-zeta" /> </common> </template> <!-- Lower case eta (η). --> <template name="eta" match="eta|greek-small-letter-eta"> <common formats="/latex/xelatex/">\ensuremath{\eta}</common> <html><xsl:text disable-output-escaping="yes">&eta;</xsl:text></html> <!-- U+03B7 GREEK SMALL LETTER ETA --> <xhtml><span class="unicode"><xsl:text>η</xsl:text></span></xhtml> </template> <template name="eta-strip" match="eta|greek-small-letter-eta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="eta" /> </common> </template> <!-- Upper case eta (Η). --> <template name="capital-eta" match="capital-eta|greek-capital-letter-eta"> <common formats="/latex/xelatex/">\ensuremath{H}</common> <html><xsl:text disable-output-escaping="yes">&Eta;</xsl:text></html> <!-- U+0397 GREEK CAPITAL LETTER ETA --> <xhtml><span class="unicode"><xsl:text>Η</xsl:text></span></xhtml> </template> <template name="capital-eta-stip" match="capital-eta|greek-capital-letter-eta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-eta" /> </common> </template> <!-- Lower case theta (θ). --> <template name="theta" match="theta|greek-small-letter-theta"> <common formats="/latex/xelatex/">\ensuremath{\theta}</common> <html><xsl:text disable-output-escaping="yes">&theta;</xsl:text></html> <!-- U+03B8 GREEK SMALL LETTER THETA --> <xhtml><span class="unicode"><xsl:text>θ</xsl:text></span></xhtml> </template> <template name="theta-strip" match="theta|greek-small-letter-theta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="theta" /> </common> </template> <!-- Upper case theta (Θ). --> <template name="capital-theta" match="capital-theta|greek-capital-letter-theta"> <common formats="/latex/xelatex/">\ensuremath{\Theta}</common> <html><xsl:text disable-output-escaping="yes">&Theta;</xsl:text></html> <!-- U+0398 GREEK CAPITAL LETTER THETA --> <xhtml><span class="unicode"><xsl:text>Θ</xsl:text></span></xhtml> </template> <template name="capital-theta-stip" match="capital-theta|greek-capital-letter-theta" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-theta" /> </common> </template> <!-- Lower case iota (ι). --> <template name="iota" match="iota|greek-small-letter-iota"> <common formats="/latex/xelatex/">\ensuremath{\iota}</common> <html><xsl:text disable-output-escaping="yes">&iota;</xsl:text></html> <!-- U+03B9 GREEK SMALL LETTER IOTA --> <xhtml><span class="unicode"><xsl:text>ι</xsl:text></span></xhtml> </template> <template name="iota-strip" match="iota|greek-small-letter-iota" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="iota" /> </common> </template> <!-- Upper case iota (Ι). --> <template name="capital-iota" match="capital-iota|greek-capital-letter-iota"> <common formats="/latex/xelatex/">\ensuremath{I}</common> <html><xsl:text disable-output-escaping="yes">&Iota;</xsl:text></html> <!-- U+0399 GREEK CAPITAL LETTER IOTA --> <xhtml><span class="unicode"><xsl:text>Ι</xsl:text></span></xhtml> </template> <template name="capital-iota-stip" match="capital-iota|greek-capital-letter-iota" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-iota" /> </common> </template> <!-- Lower case kappa (κ). --> <template name="kappa" match="kappa|greek-small-letter-kappa"> <common formats="/latex/xelatex/">\ensuremath{\kappa}</common> <html><xsl:text disable-output-escaping="yes">&kappa;</xsl:text></html> <!-- U+03BA GREEK SMALL LETTER KAPPA --> <xhtml><span class="unicode"><xsl:text>κ</xsl:text></span></xhtml> </template> <template name="kappa-strip" match="kappa|greek-small-letter-kappa" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="kappa" /> </common> </template> <!-- Upper case kappa (Κ). --> <template name="capital-kappa" match="capital-kappa|greek-capital-letter-kappa"> <common formats="/latex/xelatex/">\ensuremath{K}</common> <html><xsl:text disable-output-escaping="yes">&Kappa;</xsl:text></html> <!-- U+039A GREEK CAPITAL LETTER KAPPA --> <xhtml><span class="unicode"><xsl:text>Κ</xsl:text></span></xhtml> </template> <template name="capital-kappa-stip" match="capital-kappa|greek-capital-letter-kappa" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-kappa" /> </common> </template> <!-- Lower case lambda (λ). --> <template name="lambda" match="lambda|greek-small-letter-lambda"> <common formats="/latex/xelatex/">\ensuremath{\lambda}</common> <html><xsl:text disable-output-escaping="yes">&lambda;</xsl:text></html> <!-- U+03BB GREEK SMALL LETTER LAMBDA --> <xhtml><span class="unicode"><xsl:text>λ</xsl:text></span></xhtml> </template> <template name="lambda-strip" match="lambda|greek-small-letter-lambda" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="lambda" /> </common> </template> <!-- Upper case lambda (Λ). --> <template name="capital-lambda" match="capital-lambda|greek-capital-letter-lambda"> <common formats="/latex/xelatex/">\ensuremath{\Lambda}</common> <html><xsl:text disable-output-escaping="yes">&Lambda;</xsl:text></html> <!-- U+039B GREEK CAPITAL LETTER LAMBDA --> <xhtml><span class="unicode"><xsl:text>Λ</xsl:text></span></xhtml> </template> <template name="capital-lambda-stip" match="capital-lambda|greek-capital-letter-lambda" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-lambda" /> </common> </template> <!-- Lower case mu (μ). --> <template name="mu" match="mu|greek-small-letter-mu"> <common formats="/latex/xelatex/">\ensuremath{\mu}</common> <html><xsl:text disable-output-escaping="yes">&mu;</xsl:text></html> <!-- U+03BC GREEK SMALL LETTER MU --> <xhtml><span class="unicode"><xsl:text>μ</xsl:text></span></xhtml> </template> <template name="mu-strip" match="mu|greek-small-letter-mu" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="mu" /> </common> </template> <!-- Upper case mu (Μ). --> <template name="capital-mu" match="capital-mu|greek-capital-letter-mu"> <common formats="/latex/xelatex/">\ensuremath{M}</common> <html><xsl:text disable-output-escaping="yes">&Mu;</xsl:text></html> <!-- U+039C GREEK CAPITAL LETTER MU --> <xhtml><span class="unicode"><xsl:text>Μ</xsl:text></span></xhtml> </template> <template name="capital-mu-stip" match="capital-mu|greek-capital-letter-mu" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-mu" /> </common> </template> <!-- Lower case nu (ν). --> <template name="nu" match="nu|greek-small-letter-nu"> <common formats="/latex/xelatex/">\ensuremath{\nu}</common> <html><xsl:text disable-output-escaping="yes">&nu;</xsl:text></html> <!-- U+03BD GREEK SMALL LETTER NU --> <xhtml><span class="unicode"><xsl:text>ν</xsl:text></span></xhtml> </template> <template name="nu-strip" match="nu|greek-small-letter-nu" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="nu" /> </common> </template> <!-- Upper case nu (Ν). --> <template name="capital-nu" match="capital-nu|greek-capital-letter-nu"> <common formats="/latex/xelatex/">\ensuremath{N}</common> <html><xsl:text disable-output-escaping="yes">&Nu;</xsl:text></html> <!-- U+039D GREEK CAPITAL LETTER NU --> <xhtml><span class="unicode"><xsl:text>Ν</xsl:text></span></xhtml> </template> <template name="capital-nu-stip" match="capital-nu|greek-capital-letter-nu" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-nu" /> </common> </template> <!-- Lower case xi (ξ). --> <template name="xi" match="xi|greek-small-letter-xi"> <common formats="/latex/xelatex/">\ensuremath{\xi}</common> <html><xsl:text disable-output-escaping="yes">&xi;</xsl:text></html> <!-- U+03BE GREEK SMALL LETTER XI --> <xhtml><span class="unicode"><xsl:text>ξ</xsl:text></span></xhtml> </template> <template name="xi-strip" match="xi|greek-small-letter-xi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="xi" /> </common> </template> <!-- Upper case xi (Ξ). --> <template name="capital-xi" match="capital-xi|greek-capital-letter-xi"> <common formats="/latex/xelatex/">\ensuremath{\Xi}</common> <html><xsl:text disable-output-escaping="yes">&Xi;</xsl:text></html> <!-- U+039E GREEK CAPITAL LETTER XI --> <xhtml><span class="unicode"><xsl:text>Ξ</xsl:text></span></xhtml> </template> <template name="capital-xi-stip" match="capital-xi|greek-capital-letter-xi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-xi" /> </common> </template> <!-- Lower case omicron (ο). --> <template name="omicron" match="omicron|greek-small-letter-omicron"> <common formats="/latex/xelatex/">\ensuremath{o}</common> <html><xsl:text disable-output-escaping="yes">&omicron;</xsl:text></html> <!-- U+03BF GREEK SMALL LETTER OMICRON --> <xhtml><span class="unicode"><xsl:text>ο</xsl:text></span></xhtml> </template> <template name="omicron-strip" match="omicron|greek-small-letter-omicron" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="omicron" /> </common> </template> <!-- Upper case omicron (Ο). --> <template name="capital-omicron" match="capital-omicron|greek-capital-letter-omicron"> <common formats="/latex/xelatex/">\ensuremath{O}</common> <html><xsl:text disable-output-escaping="yes">&Omicron;</xsl:text></html> <!-- U+039F GREEK CAPITAL LETTER OMICRON --> <xhtml><span class="unicode"><xsl:text>Ο</xsl:text></span></xhtml> </template> <template name="capital-omicron-stip" match="capital-omicron|greek-capital-letter-omicron" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-omicron" /> </common> </template> <!-- Lower case pi (π). --> <template name="pi" match="pi|greek-small-letter-pi"> <common formats="/latex/xelatex/">\ensuremath{\pi}</common> <html><xsl:text disable-output-escaping="yes">&pi;</xsl:text></html> <!-- U+03C0 GREEK SMALL LETTER PI --> <xhtml><span class="unicode"><xsl:text>π</xsl:text></span></xhtml> </template> <template name="pi-strip" match="pi|greek-small-letter-pi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="pi" /> </common> </template> <!-- Upper case pi (Π). --> <template name="capital-pi" match="capital-pi|greek-capital-letter-pi"> <common formats="/latex/xelatex/">\ensuremath{\Pi}</common> <html><xsl:text disable-output-escaping="yes">&Pi;</xsl:text></html> <!-- U+03A0 GREEK CAPITAL LETTER PI --> <xhtml><span class="unicode"><xsl:text>Π</xsl:text></span></xhtml> </template> <template name="capital-pi-stip" match="capital-pi|greek-capital-letter-pi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-pi" /> </common> </template> <!-- Lower case rho (ρ). --> <template name="rho" match="rho|greek-small-letter-rho"> <common formats="/latex/xelatex/">\ensuremath{\rho}</common> <html><xsl:text disable-output-escaping="yes">&rho;</xsl:text></html> <!-- U+03C1 GREEK SMALL LETTER RHO --> <xhtml><span class="unicode"><xsl:text>ρ</xsl:text></span></xhtml> </template> <template name="rho-strip" match="rho|greek-small-letter-rho" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="rho" /> </common> </template> <!-- Upper case rho (Ρ). --> <template name="capital-rho" match="capital-rho|greek-capital-letter-rho"> <common formats="/latex/xelatex/">\ensuremath{P}</common> <html><xsl:text disable-output-escaping="yes">&Rho;</xsl:text></html> <!-- U+03A1 GREEK CAPITAL LETTER RHO --> <xhtml><span class="unicode"><xsl:text>Ρ</xsl:text></span></xhtml> </template> <template name="capital-rho-stip" match="capital-rho|greek-capital-letter-rho" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-rho" /> </common> </template> <!-- Lower case sigma (σ). --> <template name="sigma" match="sigma|greek-small-letter-sigma"> <common formats="/latex/xelatex/">\ensuremath{\sigma}</common> <html><xsl:text disable-output-escaping="yes">&sigma;</xsl:text></html> <!-- U+03C2 GREEK SMALL LETTER SIGMA --> <xhtml><span class="unicode"><xsl:text>σ</xsl:text></span></xhtml> </template> <template name="sigma-strip" match="sigma|greek-small-letter-sigma" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="sigma" /> </common> </template> <!-- Upper case sigma (Σ). --> <template name="capital-sigma" match="capital-sigma|greek-capital-letter-sigma"> <common formats="/latex/xelatex/">\ensuremath{\Sigma}</common> <html><xsl:text disable-output-escaping="yes">&Sigma;</xsl:text></html> <!-- U+03A3 GREEK CAPITAL LETTER SIGMA --> <xhtml><span class="unicode"><xsl:text>Σ</xsl:text></span></xhtml> </template> <template name="capital-sigma-stip" match="capital-sigma|greek-capital-letter-sigma" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-sigma" /> </common> </template> <!-- Lower case tau (τ). --> <template name="tau" match="tau|greek-small-letter-tau"> <common formats="/latex/xelatex/">\ensuremath{\tau}</common> <html><xsl:text disable-output-escaping="yes">&tau;</xsl:text></html> <!-- U+03C4 GREEK SMALL LETTER TAU --> <xhtml><span class="unicode"><xsl:text>τ</xsl:text></span></xhtml> </template> <template name="tau-strip" match="tau|greek-small-letter-tau" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="tau" /> </common> </template> <!-- Upper case tau (Τ). --> <template name="capital-tau" match="capital-tau|greek-capital-letter-tau"> <common formats="/latex/xelatex/">\ensuremath{T}</common> <html><xsl:text disable-output-escaping="yes">&Tau;</xsl:text></html> <!-- U+03A4 GREEK CAPITAL LETTER TAU --> <xhtml><span class="unicode"><xsl:text>Τ</xsl:text></span></xhtml> </template> <template name="capital-tau-stip" match="capital-tau|greek-capital-letter-tau" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-tau" /> </common> </template> <!-- Lower case upsilon (υ). --> <template name="upsilon" match="upsilon|greek-small-letter-upsilon"> <common formats="/latex/xelatex/">\ensuremath{\upsilon}</common> <html><xsl:text disable-output-escaping="yes">&upsilon;</xsl:text></html> <!-- U+03C5 GREEK SMALL LETTER UPSILON --> <xhtml><span class="unicode"><xsl:text>υ</xsl:text></span></xhtml> </template> <template name="upsilon-strip" match="upsilon|greek-small-letter-upsilon" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="upsilon" /> </common> </template> <!-- Upper case upsilon (Υ). --> <template name="capital-upsilon" match="capital-upsilon|greek-capital-letter-upsilon"> <common formats="/latex/xelatex/">\ensuremath{\Upsilon}</common> <html><xsl:text disable-output-escaping="yes">&Upsilon;</xsl:text></html> <!-- U+03A5 GREEK CAPITAL LETTER UPSILON --> <xhtml><span class="unicode"><xsl:text>Υ</xsl:text></span></xhtml> </template> <template name="capital-upsilon-stip" match="capital-upsilon|greek-capital-letter-upsilon" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-upsilon" /> </common> </template> <!-- Lower case phi (ϕ). --> <template name="phi" match="phi|greek-phi-symbol"> <common formats="/latex/xelatex/">\ensuremath{\phi}</common> <html><xsl:text disable-output-escaping="yes">&phi;</xsl:text></html> <!-- U+03C6 GREEK PHI SYMBOL (for consistency with LaTeX) --> <xhtml><span class="unicode"><xsl:text>ϕ</xsl:text></span></xhtml> </template> <template name="phi-strip" match="phi|greek-phi-symbol" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="phi" /> </common> </template> <!-- Upper case phi (Φ). --> <template name="capital-phi" match="capital-phi|greek-capital-letter-phi"> <common formats="/latex/xelatex/">\ensuremath{\Phi}</common> <html><xsl:text disable-output-escaping="yes">&Phi;</xsl:text></html> <!-- U+03A6 GREEK CAPITAL LETTER PHI --> <xhtml><span class="unicode"><xsl:text>Φ</xsl:text></span></xhtml> </template> <template name="capital-phi-stip" match="capital-phi|greek-capital-letter-phi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-phi" /> </common> </template> <!-- Lower case chi (χ). --> <template name="chi" match="chi|greek-small-letter-chi"> <common formats="/latex/xelatex/">\ensuremath{\chi}</common> <html><xsl:text disable-output-escaping="yes">&chi;</xsl:text></html> <!-- U+03C7 GREEK SMALL LETTER CHI --> <xhtml><span class="unicode"><xsl:text>χ</xsl:text></span></xhtml> </template> <template name="chi-strip" match="chi|greek-small-letter-chi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="chi" /> </common> </template> <!-- Upper case chi (Χ). --> <template name="capital-chi" match="capital-chi|greek-capital-letter-chi"> <common formats="/latex/xelatex/">\ensuremath{X}</common> <html><xsl:text disable-output-escaping="yes">&Chi;</xsl:text></html> <!-- U+03A7 GREEK CAPITAL LETTER CHI --> <xhtml><span class="unicode"><xsl:text>Χ</xsl:text></span></xhtml> </template> <template name="capital-chi-stip" match="capital-chi|greek-capital-letter-chi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-chi" /> </common> </template> <!-- Lower case psi (ψ). --> <template name="psi" match="psi|greek-small-letter-psi"> <common formats="/latex/xelatex/">\ensuremath{\psi}</common> <html><xsl:text disable-output-escaping="yes">&psi;</xsl:text></html> <!-- U+03C8 GREEK SMALL LETTER PSI --> <xhtml><span class="unicode"><xsl:text>ψ</xsl:text></span></xhtml> </template> <template name="psi-strip" match="psi|greek-small-letter-psi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="psi" /> </common> </template> <!-- Upper case psi (Ψ). --> <template name="capital-psi" match="capital-psi|greek-capital-letter-psi"> <common formats="/latex/xelatex/">\ensuremath{\Psi}</common> <html><xsl:text disable-output-escaping="yes">&Psi;</xsl:text></html> <!-- U+03A8 GREEK CAPITAL LETTER PSI --> <xhtml><span class="unicode"><xsl:text>Ψ</xsl:text></span></xhtml> </template> <template name="capital-psi-stip" match="capital-psi|greek-capital-letter-psi" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-psi" /> </common> </template> <!-- Lower case omega (ω). --> <template name="omega" match="omega|greek-small-letter-omega"> <common formats="/latex/xelatex/">\ensuremath{\omega}</common> <html><xsl:text disable-output-escaping="yes">&omega;</xsl:text></html> <!-- U+03C9 GREEK SMALL LETTER OMEGA --> <xhtml><span class="unicode"><xsl:text>ω</xsl:text></span></xhtml> </template> <template name="omega-strip" match="omega|greek-small-letter-omega" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="omega" /> </common> </template> <!-- Upper case omega (Ω). --> <template name="capital-omega" match="capital-omega|greek-capital-letter-omega"> <common formats="/latex/xelatex/">\ensuremath{\Omega}</common> <html><xsl:text disable-output-escaping="yes">&Omega;</xsl:text></html> <!-- U+03A9 GREEK CAPITAL LETTER OMEGA --> <xhtml><span class="unicode"><xsl:text>Ω</xsl:text></span></xhtml> </template> <template name="capital-omega-stip" match="capital-omega|greek-capital-letter-omega" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="capital-omega" /> </common> </template> </stylesheet>
Ignore Space
Show notes
View
modules/mathematical-symbols.xml
<?xml version="1.0" encoding="utf-8"?> <!-- Various mathematical operators and symbols. We get around the problem of math vs. non-math mode operators in LaTeX by liberally sprinkling \ensuremath around. If we're not in math mode, it enables it, and if we're already in math mode, it ignores it. This means we don't need identical templates for math and non-math modes. Yay! Note that some operators (binary in particular) need spaces around them in the HTML templates, as they seem to get munched otherwise. The "strip" mode forms of the templates are for use in the context of an HTML <title> element (so the mode is only relevant to the HTML formats). Embedding HTML markup inside the <title> element causes the markup to appear verbatim in the window title, i.e., <title><em>foo</em> bar</title> will appear in the window title as "<em>foo</em> bar", not "foo bar". Putting the stylesheet into strip mode means that it will only output text nodes unless otherwise specified for a particular element. Generally the "strip" templates will simply call-template to the original, unless the original contains markup that needs to be eliminated (e.g., see space below). The downside of this approach, of course, is that you need "strip" mode templates for quite a lot of things, but that can't really be helped. --> <stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- BASIC OPERATORS AND SYMBOLS. --> <!-- Addition binary operation symbol (+). --> <template name="plus-operator" match="plus|plus-sign"> <!-- U+002B PLUS SIGN --> <common>+</common> </template> <!-- Multiplication binary operation symbol (×). --> <template name="times-operator" match="times|multiply|multiplication|multiplication-sign"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\times}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&times;</xsl:text></html> <!-- U+00D7 MULTIPLICATION SIGN --> <xhtml><span class="unicode"><xsl:text>×</xsl:text></span></xhtml> </template> <!-- Subtraction binary operation symbol (−). --> <template name="minus-operator" match="minus|subtract|minus-sign"> <common formats="/latex/xelatex/">\ensuremath{-}</common> <html><xsl:text disable-output-escaping="yes">&minus;</xsl:text></html> <!-- U+2212 MINUS SIGN --> <xhtml><span class="unicode"><xsl:text>−</xsl:text></span></xhtml> </template> <!-- Division binary operation symbol (∕). --> <template name="divide-operator" match="divide|division|division-slash"> <common formats="/latex/xelatex/">\ensuremath{/}</common> <html><xsl:text>/</xsl:text></html> <!-- U+2215 DIVISION SLASH --> <xhtml><span class="unicode"><xsl:text>∕</xsl:text></span></xhtml> </template> <!-- Equality relation symbol (=). --> <template name="equals-operator" match="equals|eq|equals-sign|equality"> <common formats="/latex/xelatex/">\ensuremath{=}</common> <!-- U+003D EQUALS SIGN --> <common formats="/html/xhtml/"><xsl:text> = </xsl:text></common> </template> <!-- Inequality relation symbol (≠). --> <template name="not-equals-operator" match="not-equals|ne|inequality|not-equal-to"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\neq}</xsl:text></common> <html><xsl:text disable-output-escaping="yes"> &ne; </xsl:text></html> <!-- U+2260 NOT EQUAL TO --> <xhtml><xsl:text> ≠ </xsl:text></xhtml> </template> <!-- Approximation relation symbol (≈). --> <template name="approximately-equals-operator" match="approximately-equals|approximately-equal-to|approx|almost-equal-to"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\approx}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&asymp;</xsl:text></html> <!-- U+2248 ALMOST EQUAL TO --> <xhtml><xsl:text>≈</xsl:text></xhtml> </template> <!-- Greater than relation symbol (>). --> <template name="greater-than-operator" match="greater-than|gt|greater-than-sign"> <common formats="/latex/xelatex/">\ensuremath{>}</common> <!-- U+003E GREATER-THAN SIGN --> <common formats="/html/xhtml/"><xsl:text disable-output-escaping="yes"> &gt; </xsl:text></common> </template> <!-- Greater than or equal to relation symbol (≥). --> <template name="greater-equals-operator" match="greater-equals|ge|greater-than-or-equal-to"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\geq}</xsl:text></common> <html><xsl:text disable-output-escaping="yes"> &ge; </xsl:text></html> <!-- U+2265 GREATER-THAN OR EQUAL TO --> <xhtml><xsl:text> ≥ </xsl:text></xhtml> </template> <!-- Less than relation symbol (<). --> <template name="less-than-operator" match="less-than|lt|less-than-sign"> <common formats="/latex/xelatex/"> \ensuremath{<} </common> <!-- U+003C LESS-THAN SIGN --> <common formats="/html/xhtml/"><xsl:text disable-output-escaping="yes"> &lt; </xsl:text></common> </template> <!-- Less than or equal to relation symbol (≤). --> <template name="less-equals-operator" match="less-equals|le|less-than-or-equal-to"> <common formats="/latex/xelatex/"> \ensuremath{\leq} </common> <html><xsl:text disable-output-escaping="yes"> &le; </xsl:text></html> <!-- U+2264 LESS-THAN OR EQUAL TO --> <xhtml><xsl:text> ≤ </xsl:text></xhtml> </template> <!-- SYMBOLS RELATING TO SETS. --> <!-- Empty set symbol (∅). --> <template name="empty-set-sign" match="empty-set-sign|empty-set|null"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\emptyset}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&empty;</xsl:text></html> <!-- U+2205 EMPTY SET --> <xhtml><span class="unicode"><xsl:text>∅</xsl:text></span></xhtml> </template> <template name="empty-set-sign-strip" match="empty-set-sign|empty-set|null" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="empty-set-sign" /> </common> </template> <!-- Element-of relation symbol (∈). --> <template name="element-sign" match="element-sign|element|element-of|is-element-of|is-an-element-of"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\in}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&isin;</xsl:text></html> <!-- U+2208 ELEMENT OF --> <xhtml><span class="unicode"><xsl:text>∈</xsl:text></span></xhtml> </template> <template name="element-sign-strip" match="element-sign|element|element-of|is-element-of|is-an-element-of" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="element-sign" /> </common> </template> <!-- Not-element-of relation symbol (∉). --> <template name="not-element-sign" match="not-element-sign|not-element|not-element-of|is-not-element-of|is-not-an-element-of|not-an-element-of"> <common formats="/latex/xelatex/">\ensuremath{\not\in}</common> <html><xsl:text disable-output-escaping="yes">&notin;</xsl:text></html> <!-- U+2209 NOT AN ELEMENT OF --> <xhtml><span class="unicode"><xsl:text>∉</xsl:text></span></xhtml> </template> <template name="not-element-sign-strip" match="not-element-sign|not-element|not-element-of|is-not-element-of|is-not-an-element-of|not-an-element-of" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="not-element-sign" /> </common> </template> <!-- Intersection binary operation symbol (∩). --> <template name="intersect-operator" match="intersect-operator|intersect|intersection|cap"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\cap}</xsl:text></common> <html><xsl:text disable-output-escaping="yes"> &cap; </xsl:text></html> <!-- U+2229 INTERSECTION --> <xhtml><span class="unicode"><xsl:text> ∩ </xsl:text></span></xhtml> </template> <template name="intersect-operator-strip" match="intersect-operator|intersect|intersection|cap" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="intersect-operator" /> </common> </template> <!-- Union binary operation symbol (∪). --> <template name="union-operator" match="union-operator|union|cup"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\cup}</xsl:text></common> <html><xsl:text disable-output-escaping="yes"> &cup; </xsl:text></html> <!-- U+222A UNION --> <xhtml><span class="unicode"><xsl:text> ∪ </xsl:text></span></xhtml> </template> <template name="union-operator-strip" match="union-operator|union|cup" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="union-operator" /> </common> </template> <!-- Strict subset relation symbol (⊂). --> <template name="strict-subset-sign" match="subset-sign|subset|subset-of|is-subset-of|is-a-subset-of|strict-subset"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\subset}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&sub;</xsl:text></html> <!-- U+2282 SUBSET OF --> <xhtml><span class="unicode"><xsl:text>⊂</xsl:text></span></xhtml> </template> <template name="strict-subset-sign-strip" match="subset-sign|subset|subset-of|is-subset-of|is-a-subset-of|strict-subset" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="strict-subset-sign" /> </common> </template> <!-- Strict superset relation symbol (⊃). --> <template name="strict-superset-sign" match="superset-sign|superset|superset-of|is-superset-of|is-a-superset-of"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\supset}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&sup;</xsl:text></html> <!-- U+2283 SUPERSET OF --> <xhtml><span class="unicode"><xsl:text>⊃</xsl:text></span></xhtml> </template> <template name="strict-superset-sign-strip" match="superset-sign|superset|superset-of|is-superset-of|is-a-superset-of" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="strict-superset-sign" /> </common> </template> <!-- Inclusive subset relation symbol (⊆). --> <template name="inclusive-subset-sign" match="inclusive-subset|subset-or-equal|subset-of-or-equal-to|is-subset-of-or-equal-to|is-a-subset-of-or-equal-to"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\subseteq}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&sube;</xsl:text></html> <!-- U+2286 SUBSET OF OR EQUAL TO --> <xhtml><span class="unicode"><xsl:text>⊆</xsl:text></span></xhtml> </template> <template name="inclusive-subset-sign-strip" match="inclusive-subset|subset-or-equal|subset-of-or-equal-to|is-subset-of-or-equal-to|is-a-subset-of-or-equal-to" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="inclusive-subset-sign" /> </common> </template> <!-- Inclusive superset relation symbol (⊇). --> <template name="inclusive-superset-sign" match="inclusive-superset|superset-or-equal|superset-of-or-equal-to|is-superset-of-or-equal-to|is-a-superset-of-or-equal-to"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\supset}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&supe;</xsl:text></html> <!-- U+2287 SUPERSET OF OR EQUAL TO --> <xhtml><span class="unicode"><xsl:text>⊇</xsl:text></span></xhtml> </template> <template name="inclusive-superset-sign-strip" match="inclusive-superset|superset-or-equal|superset-of-or-equal-to|is-superset-of-or-equal-to|is-a-superset-of-or-equal-to" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="inclusive-superset-sign" /> </common> </template> <!-- SYMBOLS RELATING TO LOGIC. --> <!-- Logical NOT binary operation symbol (¬). --> <template name="logical-not-operator" match="logical-not-operator|logical-negation-operator|logical-negation|logical-not|not|negation|neg|not-sign"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\neg}</xsl:text></common> <html><xsl:text disable-output-escaping="yes">&not;</xsl:text></html> <!-- U+00AC NOT SIGN --> <xhtml><span class="unicode"><xsl:text>¬</xsl:text></span></xhtml> </template> <template name="logical-not-operator-strip" match="logical-not-operator|logical-negation-operator|logical-negation|logical-not|not|negation|neg|not-sign" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="logical-not-operator" /> </common> </template> <!-- Logical AND binary operation symbol (∧). --> <template name="logical-and-operator" match="logical-and-operator|logical-and|and|and-operator|hat|wedge"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\wedge}</xsl:text></common> <html><xsl:text disable-output-escaping="yes"> &and; </xsl:text></html> <!-- U+2227 LOGICAL AND --> <xhtml><span class="unicode"><xsl:text> ∧ </xsl:text></span></xhtml> </template> <template name="logical-and-operator-strip" match="logical-and-operator|logical-and|and|and-operator|hat|wedge" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="logical-and-operator" /> </common> </template> <!-- Logical OR binary operation symbol (∨). --> <template name="logical-or-operator" match="logical-or-operator|logical-or|or|or-operator|vee"> <common formats="/latex/xelatex/"><xsl:text>\ensuremath{\vee}</xsl:text></common> <html><xsl:text disable-output-escaping="yes"> &or; </xsl:text></html> <!-- U+2228 LOGICAL OR --> <xhtml><span class="unicode"><xsl:text> ∨ </xsl:text></span></xhtml> </template> <template name="logical-or-operator-strip" match="logical-or-operator|logical-or|or|or-operator|vee" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="logical-or-operator" /> </common> </template> <!-- ARROWS. --> <!-- Rightwards arrow, both single and double (→, ⇒). We can't include the Unicode name in the match list, because the template handles more than one style of arrow. The closest we can manage is "rightwards-arrow". --> <template name="right-arrow" match="right-arrow|rightarrow|implies|rarr|rarrow|rightwards-arrow"> <common formats="/latex/xelatex/"> <xsl:text>\ensuremath{\</xsl:text> <xsl:choose> <xsl:when test="@weight='double'">R</xsl:when> <xsl:otherwise>r</xsl:otherwise> </xsl:choose> <xsl:text>ightarrow}</xsl:text> </common> <html> <xsl:choose> <xsl:when test="@weight='double'"> <xsl:text disable-output-escaping="yes"> &rArr; </xsl:text> </xsl:when> <xsl:otherwise> <xsl:text disable-output-escaping="yes"> &rarr; </xsl:text> </xsl:otherwise> </xsl:choose> </html> <xhtml> <xsl:choose> <xsl:when test="@weight='double'"> <!-- U+21D2 RIGHTWARDS DOUBLE ARROW --> <span class="unicode"> <xsl:text> ⇒ </xsl:text> </span> </xsl:when> <xsl:otherwise> <!-- U+2192 RIGHTWARDS ARROW --> <xsl:text> → </xsl:text> </xsl:otherwise> </xsl:choose> </xhtml> </template> <!-- Leftwards arrow, both single and double (←, ⇐). We can't include the Unicode name in the match list, because the template handles more than one style of arrow. The closest we can manage is "leftwards-arrow". --> <template name="left-arrow" match="left-arrow|leftarrow|larr|larrow|leftwards-arrow"> <common formats="/latex/xelatex/"> <xsl:text>\ensuremath{\</xsl:text> <xsl:choose> <xsl:when test="@weight='double'">L</xsl:when> <xsl:otherwise>l</xsl:otherwise> </xsl:choose> <xsl:text>eftarrow}</xsl:text> </common> <html> <xsl:choose> <xsl:when test="@weight='double'"> <xsl:text disable-output-escaping="yes"> &lArr; </xsl:text> </xsl:when> <xsl:otherwise> <xsl:text disable-output-escaping="yes"> &larr; </xsl:text> </xsl:otherwise> </xsl:choose> </html> <xhtml> <xsl:choose> <xsl:when test="@weight='double'"> <!-- U+21D0 LEFTWARDS DOUBLE ARROW --> <xsl:text> ⇐ </xsl:text> </xsl:when> <xsl:otherwise> <!-- U+2190 LEFTWARDS ARROW --> <xsl:text> ← </xsl:text> </xsl:otherwise> </xsl:choose> </xhtml> </template> </stylesheet>
<?xml version="1.0" encoding="utf-8"?> <!-- Various mathematical operators and symbols. We get around the problem of math vs. non-math mode operators in LaTeX by liberally sprinkling \ensuremath around. If we're not in math mode, it enables it, and if we're already in math mode, it ignores it. This means we don't need identical templates for math and non-math modes. Yay! Note that some operators (binary in particular) need spaces around them in the HTML templates, as they seem to get munched otherwise. The "strip" mode forms of the templates are for use in the context of an HTML <title> element (so the mode is only relevant to the HTML formats). Embedding HTML markup inside the <title> element causes the markup to appear verbatim in the window title, i.e., <title><em>foo</em> bar</title> will appear in the window title as "<em>foo</em> bar", not "foo bar". Putting the stylesheet into strip mode means that it will only output text nodes unless otherwise specified for a particular element. Generally the "strip" templates will simply call-template to the original, unless the original contains markup that needs to be eliminated (e.g., see space below). The downside of this approach, of course, is that you need "strip" mode templates for quite a lot of things, but that can't really be helped. --> <stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- BASIC OPERATORS AND SYMBOLS. --> <!-- Addition binary operation symbol (+). --> <template name="plus-operator" match="plus|plus-sign"> <!-- U+002B PLUS SIGN --> <common>+</common> </template> <!-- Multiplication binary operation symbol (×). --> <template name="times-operator" match="times|multiply|multiplication|multiplication-sign"> <common formats="/latex/xelatex/">\ensuremath{\times}</common> <html><xsl:text disable-output-escaping="yes">&times;</xsl:text></html> <!-- U+00D7 MULTIPLICATION SIGN --> <xhtml><span class="unicode"><xsl:text>×</xsl:text></span></xhtml> </template> <!-- Subtraction binary operation symbol (−). --> <template name="minus-operator" match="minus|subtract|minus-sign"> <common formats="/latex/xelatex/">\ensuremath{-}</common> <html><xsl:text disable-output-escaping="yes">&minus;</xsl:text></html> <!-- U+2212 MINUS SIGN --> <xhtml><span class="unicode"><xsl:text>−</xsl:text></span></xhtml> </template> <!-- Division binary operation symbol (∕). --> <template name="divide-operator" match="divide|division|division-slash"> <common formats="/latex/xelatex/">\ensuremath{/}</common> <html><xsl:text>/</xsl:text></html> <!-- U+2215 DIVISION SLASH --> <xhtml><span class="unicode"><xsl:text>∕</xsl:text></span></xhtml> </template> <!-- Equality relation symbol (=). --> <template name="equals-operator" match="equals|eq|equals-sign|equality"> <common formats="/latex/xelatex/">\ensuremath{=}</common> <!-- U+003D EQUALS SIGN --> <common formats="/html/xhtml/"><xsl:text> = </xsl:text></common> </template> <!-- Inequality relation symbol (≠). --> <template name="not-equals-operator" match="not-equals|ne|inequality|not-equal-to"> <common formats="/latex/xelatex/">\ensuremath{\neq}</common> <html><xsl:text disable-output-escaping="yes"> &ne; </xsl:text></html> <!-- U+2260 NOT EQUAL TO --> <xhtml><xsl:text> ≠ </xsl:text></xhtml> </template> <!-- Approximation relation symbol (≈). --> <template name="approximately-equals-operator" match="approximately-equals|approximately-equal-to|approx|almost-equal-to"> <common formats="/latex/xelatex/">\ensuremath{\approx}</common> <html><xsl:text disable-output-escaping="yes">&asymp;</xsl:text></html> <!-- U+2248 ALMOST EQUAL TO --> <xhtml><xsl:text>≈</xsl:text></xhtml> </template> <!-- Greater than relation symbol (>). --> <template name="greater-than-operator" match="greater-than|gt|greater-than-sign"> <common formats="/latex/xelatex/">\ensuremath{>}</common> <!-- U+003E GREATER-THAN SIGN --> <common formats="/html/xhtml/"><xsl:text disable-output-escaping="yes"> &gt; </xsl:text></common> </template> <!-- Greater than or equal to relation symbol (≥). --> <template name="greater-equals-operator" match="greater-equals|ge|greater-than-or-equal-to"> <common formats="/latex/xelatex/">\ensuremath{\geq}</common> <html><xsl:text disable-output-escaping="yes"> &ge; </xsl:text></html> <!-- U+2265 GREATER-THAN OR EQUAL TO --> <xhtml><xsl:text> ≥ </xsl:text></xhtml> </template> <!-- Less than relation symbol (<). --> <template name="less-than-operator" match="less-than|lt|less-than-sign"> <common formats="/latex/xelatex/"> \ensuremath{<} </common> <!-- U+003C LESS-THAN SIGN --> <common formats="/html/xhtml/"><xsl:text disable-output-escaping="yes"> &lt; </xsl:text></common> </template> <!-- Less than or equal to relation symbol (≤). --> <template name="less-equals-operator" match="less-equals|le|less-than-or-equal-to"> <common formats="/latex/xelatex/"> \ensuremath{\leq} </common> <html><xsl:text disable-output-escaping="yes"> &le; </xsl:text></html> <!-- U+2264 LESS-THAN OR EQUAL TO --> <xhtml><xsl:text> ≤ </xsl:text></xhtml> </template> <!-- SYMBOLS RELATING TO SETS. --> <!-- Empty set symbol (∅). --> <template name="empty-set-sign" match="empty-set-sign|empty-set|null"> <common formats="/latex/xelatex/">\ensuremath{\emptyset}</common> <html><xsl:text disable-output-escaping="yes">&empty;</xsl:text></html> <!-- U+2205 EMPTY SET --> <xhtml><span class="unicode"><xsl:text>∅</xsl:text></span></xhtml> </template> <template name="empty-set-sign-strip" match="empty-set-sign|empty-set|null" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="empty-set-sign" /> </common> </template> <!-- Element-of relation symbol (∈). --> <template name="element-sign" match="element-sign|element|element-of|is-element-of|is-an-element-of"> <common formats="/latex/xelatex/">\ensuremath{\in}</common> <html><xsl:text disable-output-escaping="yes">&isin;</xsl:text></html> <!-- U+2208 ELEMENT OF --> <xhtml><span class="unicode"><xsl:text>∈</xsl:text></span></xhtml> </template> <template name="element-sign-strip" match="element-sign|element|element-of|is-element-of|is-an-element-of" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="element-sign" /> </common> </template> <!-- Not-element-of relation symbol (∉). --> <template name="not-element-sign" match="not-element-sign|not-element|not-element-of|is-not-element-of|is-not-an-element-of|not-an-element-of"> <common formats="/latex/xelatex/">\ensuremath{\not\in}</common> <html><xsl:text disable-output-escaping="yes">&notin;</xsl:text></html> <!-- U+2209 NOT AN ELEMENT OF --> <xhtml><span class="unicode"><xsl:text>∉</xsl:text></span></xhtml> </template> <template name="not-element-sign-strip" match="not-element-sign|not-element|not-element-of|is-not-element-of|is-not-an-element-of|not-an-element-of" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="not-element-sign" /> </common> </template> <!-- Intersection binary operation symbol (∩). --> <template name="intersect-operator" match="intersect-operator|intersect|intersection|cap"> <common formats="/latex/xelatex/">\ensuremath{\cap}</common> <html><xsl:text disable-output-escaping="yes"> &cap; </xsl:text></html> <!-- U+2229 INTERSECTION --> <xhtml><span class="unicode"><xsl:text> ∩ </xsl:text></span></xhtml> </template> <template name="intersect-operator-strip" match="intersect-operator|intersect|intersection|cap" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="intersect-operator" /> </common> </template> <!-- Union binary operation symbol (∪). --> <template name="union-operator" match="union-operator|union|cup"> <common formats="/latex/xelatex/">\ensuremath{\cup}</common> <html><xsl:text disable-output-escaping="yes"> &cup; </xsl:text></html> <!-- U+222A UNION --> <xhtml><span class="unicode"><xsl:text> ∪ </xsl:text></span></xhtml> </template> <template name="union-operator-strip" match="union-operator|union|cup" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="union-operator" /> </common> </template> <!-- Strict subset relation symbol (⊂). --> <template name="strict-subset-sign" match="subset-sign|subset|subset-of|is-subset-of|is-a-subset-of|strict-subset"> <common formats="/latex/xelatex/">\ensuremath{\subset}</common> <html><xsl:text disable-output-escaping="yes">&sub;</xsl:text></html> <!-- U+2282 SUBSET OF --> <xhtml><span class="unicode"><xsl:text>⊂</xsl:text></span></xhtml> </template> <template name="strict-subset-sign-strip" match="subset-sign|subset|subset-of|is-subset-of|is-a-subset-of|strict-subset" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="strict-subset-sign" /> </common> </template> <!-- Strict superset relation symbol (⊃). --> <template name="strict-superset-sign" match="superset-sign|superset|superset-of|is-superset-of|is-a-superset-of"> <common formats="/latex/xelatex/">\ensuremath{\supset}</common> <html><xsl:text disable-output-escaping="yes">&sup;</xsl:text></html> <!-- U+2283 SUPERSET OF --> <xhtml><span class="unicode"><xsl:text>⊃</xsl:text></span></xhtml> </template> <template name="strict-superset-sign-strip" match="superset-sign|superset|superset-of|is-superset-of|is-a-superset-of" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="strict-superset-sign" /> </common> </template> <!-- Inclusive subset relation symbol (⊆). --> <template name="inclusive-subset-sign" match="inclusive-subset|subset-or-equal|subset-of-or-equal-to|is-subset-of-or-equal-to|is-a-subset-of-or-equal-to"> <common formats="/latex/xelatex/">\ensuremath{\subseteq}</common> <html><xsl:text disable-output-escaping="yes">&sube;</xsl:text></html> <!-- U+2286 SUBSET OF OR EQUAL TO --> <xhtml><span class="unicode"><xsl:text>⊆</xsl:text></span></xhtml> </template> <template name="inclusive-subset-sign-strip" match="inclusive-subset|subset-or-equal|subset-of-or-equal-to|is-subset-of-or-equal-to|is-a-subset-of-or-equal-to" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="inclusive-subset-sign" /> </common> </template> <!-- Inclusive superset relation symbol (⊇). --> <template name="inclusive-superset-sign" match="inclusive-superset|superset-or-equal|superset-of-or-equal-to|is-superset-of-or-equal-to|is-a-superset-of-or-equal-to"> <common formats="/latex/xelatex/">\ensuremath{\supset}</common> <html><xsl:text disable-output-escaping="yes">&supe;</xsl:text></html> <!-- U+2287 SUPERSET OF OR EQUAL TO --> <xhtml><span class="unicode"><xsl:text>⊇</xsl:text></span></xhtml> </template> <template name="inclusive-superset-sign-strip" match="inclusive-superset|superset-or-equal|superset-of-or-equal-to|is-superset-of-or-equal-to|is-a-superset-of-or-equal-to" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="inclusive-superset-sign" /> </common> </template> <!-- SYMBOLS RELATING TO LOGIC. --> <!-- Logical NOT binary operation symbol (¬). --> <template name="logical-not-operator" match="logical-not-operator|logical-negation-operator|logical-negation|logical-not|not|negation|neg|not-sign"> <common formats="/latex/xelatex/">\ensuremath{\neg}</common> <html><xsl:text disable-output-escaping="yes">&not;</xsl:text></html> <!-- U+00AC NOT SIGN --> <xhtml><span class="unicode"><xsl:text>¬</xsl:text></span></xhtml> </template> <template name="logical-not-operator-strip" match="logical-not-operator|logical-negation-operator|logical-negation|logical-not|not|negation|neg|not-sign" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="logical-not-operator" /> </common> </template> <!-- Logical AND binary operation symbol (∧). --> <template name="logical-and-operator" match="logical-and-operator|logical-and|and|and-operator|hat|wedge"> <common formats="/latex/xelatex/">\ensuremath{\wedge}</common> <html><xsl:text disable-output-escaping="yes"> &and; </xsl:text></html> <!-- U+2227 LOGICAL AND --> <xhtml><span class="unicode"><xsl:text> ∧ </xsl:text></span></xhtml> </template> <template name="logical-and-operator-strip" match="logical-and-operator|logical-and|and|and-operator|hat|wedge" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="logical-and-operator" /> </common> </template> <!-- Logical OR binary operation symbol (∨). --> <template name="logical-or-operator" match="logical-or-operator|logical-or|or|or-operator|vee"> <common formats="/latex/xelatex/">\ensuremath{\vee}</common> <html><xsl:text disable-output-escaping="yes"> &or; </xsl:text></html> <!-- U+2228 LOGICAL OR --> <xhtml><span class="unicode"><xsl:text> ∨ </xsl:text></span></xhtml> </template> <template name="logical-or-operator-strip" match="logical-or-operator|logical-or|or|or-operator|vee" mode="strip"> <common formats="/html/xhtml/"> <xsl:call-template name="logical-or-operator" /> </common> </template> <!-- ARROWS. --> <!-- Rightwards arrow, both single and double (→, ⇒). We can't include the Unicode name in the match list, because the template handles more than one style of arrow. The closest we can manage is "rightwards-arrow". --> <template name="right-arrow" match="right-arrow|rightarrow|implies|rarr|rarrow|rightwards-arrow"> <common formats="/latex/xelatex/"> <xsl:text>\ensuremath{\</xsl:text> <xsl:choose> <xsl:when test="@weight='double'">R</xsl:when> <xsl:otherwise>r</xsl:otherwise> </xsl:choose> <xsl:text>ightarrow}</xsl:text> </common> <html> <xsl:choose> <xsl:when test="@weight='double'"> <xsl:text disable-output-escaping="yes"> &rArr; </xsl:text> </xsl:when> <xsl:otherwise> <xsl:text disable-output-escaping="yes"> &rarr; </xsl:text> </xsl:otherwise> </xsl:choose> </html> <xhtml> <xsl:choose> <xsl:when test="@weight='double'"> <!-- U+21D2 RIGHTWARDS DOUBLE ARROW --> <span class="unicode"> <xsl:text> ⇒ </xsl:text> </span> </xsl:when> <xsl:otherwise> <!-- U+2192 RIGHTWARDS ARROW --> <xsl:text> → </xsl:text> </xsl:otherwise> </xsl:choose> </xhtml> </template> <!-- Leftwards arrow, both single and double (←, ⇐). We can't include the Unicode name in the match list, because the template handles more than one style of arrow. The closest we can manage is "leftwards-arrow". --> <template name="left-arrow" match="left-arrow|leftarrow|larr|larrow|leftwards-arrow"> <common formats="/latex/xelatex/"> <xsl:text>\ensuremath{\</xsl:text> <xsl:choose> <xsl:when test="@weight='double'">L</xsl:when> <xsl:otherwise>l</xsl:otherwise> </xsl:choose> <xsl:text>eftarrow}</xsl:text> </common> <html> <xsl:choose> <xsl:when test="@weight='double'"> <xsl:text disable-output-escaping="yes"> &lArr; </xsl:text> </xsl:when> <xsl:otherwise> <xsl:text disable-output-escaping="yes"> &larr; </xsl:text> </xsl:otherwise> </xsl:choose> </html> <xhtml> <xsl:choose> <xsl:when test="@weight='double'"> <!-- U+21D0 LEFTWARDS DOUBLE ARROW --> <xsl:text> ⇐ </xsl:text> </xsl:when> <xsl:otherwise> <!-- U+2190 LEFTWARDS ARROW --> <xsl:text> ← </xsl:text> </xsl:otherwise> </xsl:choose> </xhtml> </template> </stylesheet>
Show line notes below