[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff-commit] groff/src/preproc/eqn limit.cpp
From: |
Eric S. Raymond |
Subject: |
[Groff-commit] groff/src/preproc/eqn limit.cpp |
Date: |
Sat, 03 Feb 2007 05:32:53 +0000 |
CVSROOT: /sources/groff
Module name: groff
Changes by: Eric S. Raymond <esr> 07/02/03 05:32:53
Modified files:
src/preproc/eqn: limit.cpp
Log message:
The -TMathML option for eqn.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/src/preproc/eqn/limit.cpp?cvsroot=groff&r1=1.2&r2=1.3
Patches:
Index: limit.cpp
===================================================================
RCS file: /sources/groff/groff/src/preproc/eqn/limit.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- limit.cpp 26 May 2005 21:02:00 -0000 1.2
+++ limit.cpp 3 Feb 2007 05:32:52 -0000 1.3
@@ -139,6 +139,7 @@
void limit_box::output()
{
+ if (output_format == troff) {
printf("\\s[\\n[" SMALL_SIZE_FORMAT "]u]", uid);
if (to != 0) {
printf("\\Z" DELIMITER_CHAR);
@@ -166,6 +167,25 @@
p->output();
printf(DELIMITER_CHAR);
printf("\\h'\\n[" WIDTH_FORMAT "]u'", uid);
+ } else if (output_format == mathml) {
+ if (from != 0 && to != 0) {
+ printf("<munderover>");
+ p->output();
+ from->output();
+ to->output();
+ printf("</munderover>");
+ } else if (from != 0) {
+ printf("<munder>");
+ p->output();
+ from->output();
+ printf("</munder>");
+ } else if (to != 0) {
+ printf("<mover>");
+ p->output();
+ to->output();
+ printf("</mover>");
+ }
+ }
}
void limit_box::debug_print()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Groff-commit] groff/src/preproc/eqn limit.cpp,
Eric S. Raymond <=