- Added latexsym package to LaTeX preamble (needed for join operator).
- Added join, intersect and union operators.
- Deleted spaces in HTML versions of operators because they look weird in isolation.
  (Need to rethink this in general, as it will probably now look weird in equations!)
1 parent ddf36da commit 1d2ee556794050f70f569222e9cea8dc621e25c0
nstanger authored on 7 Jul 2004
Showing 2 changed files
View
21
format-master.xml
 
<template name="superset-sign" match="superset-sign|superset|superset-of|is-superset-of|is-a-superset-of">
<latex>\ensuremath{\supset}</latex>
<html><xsl:text disable-output-escaping="yes">&amp;#8835;</xsl:text></html>
</template>
 
<template name="join-operator" match="join-operator|join|natural-join">
<latex>\ensuremath{\Join}</latex>
<html><xsl:text disable-output-escaping="yes">|&amp;#215;|</xsl:text></html>
</template>
 
<template name="intersect-operator" match="intersect-operator|intersect|intersection|cap">
<latex>\ensuremath{\cap}</latex>
<html><xsl:text disable-output-escaping="yes">&amp;#8745;</xsl:text></html>
</template>
 
<template name="union-operator" match="union-operator|union|cup">
<latex>\ensuremath{\cup}</latex>
<html><xsl:text disable-output-escaping="yes">&amp;#8746;</xsl:text></html>
</template>
 
<template name="LaTeX" match="LaTeX|latex">
<latex>{\LaTeX}</latex>
</template>
<template name="times-operator" match="times">
<latex>\ensuremath{\times}</latex>
<html><xsl:text disable-output-escaping="yes"> &amp;#215; </xsl:text></html>
</template>
<html><xsl:text disable-output-escaping="yes">&amp;#215;</xsl:text></html>
</template>
<template name="divide-operator" match="divide">
<common>/</common>
</template>
<template name="equals-operator" match="equals">
<!-- Need spaces for HTML as they seem to get munched otherwise. -->
<common> = </common>
<common>=</common>
</template>
 
<template name="greater-than-operator" match="greater-than|gt">
<!-- Need spaces for HTML as they seem to get munched otherwise. -->
View
1
■■■■
xml2xslt.xsl
\usepackage{mathpple}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{verbatim} % needed for \verbatiminput
\usepackage{latexsym} % needed for \Join
<xsl-out:apply-templates select="environment/latex-packages"/>
\usepackage[pdftex]{hyperref}
 
<xsl-out:apply-templates select="environment/latex-commands"/>