CVSROOT: /sources/groff
Module name: groff
Changes by: Eric S. Raymond <esr> 07/02/03 05:32:48
Modified files:
src/preproc/eqn: delim.cpp
Log message:
The -TMathML option for eqn.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/src/preproc/eqn/delim.cpp?cvsroot=groff&r1=1.2&r2=1.3
Patches:
Index: delim.cpp
===================================================================
RCS file: /sources/groff/groff/src/preproc/eqn/delim.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- delim.cpp 26 May 2005 21:02:00 -0000 1.2
+++ delim.cpp 3 Feb 2007 05:32:48 -0000 1.3
@@ -378,11 +378,17 @@
void delim_box::output()
{
+ if (output_format == troff) {
if (left)
printf("\\*[" LEFT_DELIM_STRING_FORMAT "]", uid);
p->output();
if (right)
printf("\\*[" RIGHT_DELIM_STRING_FORMAT "]", uid);
+ } else if (output_format == mathml) {
+ printf("<mrow><mo>%s</mo>", left);
+ p->output();
+ printf("<mo>%s</mo></mrow>", right);
+ }
}
void delim_box::check_tabs(int level)
_______________________________________________
Groff-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/groff-commit