From f7c46a5e40ba4a027cf203e7bf326639822ee3a9 Mon Sep 17 00:00:00 2001 From: Jirka Kosek Date: Thu, 21 Feb 2002 22:05:23 +0000 Subject: [PATCH] Better control over delimiters for TeX equations. Added parameter tex.math.delims, when is set to 0, no delimiters (like $ and $$) are output. Same can be done for single equation by . --- xsl/fo/math.xsl | 43 +++++++++++-- xsl/fo/param.ent | 1 + xsl/fo/param.xweb | 2 + xsl/html/Makefile.param | 1 + xsl/html/math.xsl | 113 +++++++++++++++++++++++++-------- xsl/html/param.ent | 1 + xsl/html/param.xweb | 2 + xsl/params/tex.math.delims.xml | 24 +++++++ xsl/params/tex.math.file.xml | 2 +- xsl/params/tex.math.in.alt.xml | 2 +- 10 files changed, 156 insertions(+), 35 deletions(-) create mode 100644 xsl/params/tex.math.delims.xml diff --git a/xsl/fo/math.xsl b/xsl/fo/math.xsl index a1af70d40..7209e7f18 100644 --- a/xsl/fo/math.xsl +++ b/xsl/fo/math.xsl @@ -17,7 +17,11 @@ - + + + + + @@ -44,11 +48,16 @@ + - $ + + $ + - $ + + $ + @@ -56,11 +65,18 @@ + + + - $$ + + $$ + - $$ + + $$ + @@ -73,6 +89,23 @@ + + + + + + + + + + 0 + 0 + 1 + + + + + diff --git a/xsl/fo/param.ent b/xsl/fo/param.ent index c19a766fb..17fabb62b 100644 --- a/xsl/fo/param.ent +++ b/xsl/fo/param.ent @@ -116,6 +116,7 @@ + diff --git a/xsl/fo/param.xweb b/xsl/fo/param.xweb index b792b52dc..408bb7863 100644 --- a/xsl/fo/param.xweb +++ b/xsl/fo/param.xweb @@ -108,6 +108,7 @@ to be incomplete. Don't forget to read the source, too :-) &fop.extensions; &passivetex.extensions; &tex.math.in.alt; +&tex.math.delims; &xep.extensions; @@ -467,6 +468,7 @@ around all these parameters. + diff --git a/xsl/html/Makefile.param b/xsl/html/Makefile.param index c515edb03..f205e0f94 100644 --- a/xsl/html/Makefile.param +++ b/xsl/html/Makefile.param @@ -136,6 +136,7 @@ PARAMS=../params/admon.graphics.xml \ ../params/table.borders.with.css.xml \ ../params/tablecolumns.extension.xml \ ../params/textinsert.extension.xml \ + ../params/tex.math.delims.xml \ ../params/tex.math.in.alt.xml \ ../params/tex.math.file.xml \ ../params/toc.list.type.xml \ diff --git a/xsl/html/math.xsl b/xsl/html/math.xsl index d640d5c30..878aef848 100644 --- a/xsl/html/math.xsl +++ b/xsl/html/math.xsl @@ -74,13 +74,23 @@ - \special{dvi2bitmap outputfile - - } - $ - - $ - \vfill\eject + + + + + + \special{dvi2bitmap outputfile + + } + + $ + + + + $ + + \vfill\eject + @@ -98,13 +108,23 @@ - \special{dvi2bitmap outputfile - - } - $$ - - $$ - \vfill\eject + + + + + + \special{dvi2bitmap outputfile + + } + + $$ + + + + $$ + + \vfill\eject + @@ -136,13 +156,23 @@ - \special{dvi2bitmap outputfile - - } - $ - - $ - \newpage + + + + + + \special{dvi2bitmap outputfile + + } + + $ + + + + $ + + \newpage + @@ -160,13 +190,23 @@ - \special{dvi2bitmap outputfile - - } - $$ - - $$ - \newpage + + + + + + \special{dvi2bitmap outputfile + + } + + $$ + + + + $$ + + \newpage + @@ -231,4 +271,21 @@ + + + + + + + + + + 0 + 0 + 1 + + + + + diff --git a/xsl/html/param.ent b/xsl/html/param.ent index 4d4452a02..883c40882 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -136,6 +136,7 @@ + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index 44e78349f..a04635f48 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -227,6 +227,7 @@ to be incomplete. Don't forget to read the source, too :-) &variablelist.as.table; &tex.math.in.alt; &tex.math.file; +&tex.math.delims; &pixels.per.inch; @@ -429,6 +430,7 @@ around all these parameters. + diff --git a/xsl/params/tex.math.delims.xml b/xsl/params/tex.math.delims.xml new file mode 100644 index 000000000..d2e01f983 --- /dev/null +++ b/xsl/params/tex.math.delims.xml @@ -0,0 +1,24 @@ + + +tex.math.delims +boolean + + +tex.math.delims +Should be equations outputed for processing by TeX +automatically surrounded by math mode delimiters + + + + + + + + +Description + +For compatibility with DSSSL based DBTeXMath from Allin Cottrell +you should set this parameter to 0. + + + diff --git a/xsl/params/tex.math.file.xml b/xsl/params/tex.math.file.xml index fd0fcf087..566177a3b 100644 --- a/xsl/params/tex.math.file.xml +++ b/xsl/params/tex.math.file.xml @@ -5,7 +5,7 @@ tex.math.file - +Name of temporary file for generating images from equations diff --git a/xsl/params/tex.math.in.alt.xml b/xsl/params/tex.math.in.alt.xml index 9bfd7e642..0b956c6c8 100644 --- a/xsl/params/tex.math.in.alt.xml +++ b/xsl/params/tex.math.in.alt.xml @@ -5,7 +5,7 @@ tex.math.in.alt - +TeX notation used for equations -- 2.40.0