[Aimmath-commit] AIM/WEB-INF/java/tth TtH.java,1.2,1.3
Brought to you by:
gustav_delius,
npstrick
|
From: <gus...@us...> - 2003-08-30 22:40:59
|
Update of /cvsroot/aimmath/AIM/WEB-INF/java/tth
In directory sc8-pr-cvs1:/tmp/cvs-serv26415/WEB-INF/java/tth
Modified Files:
TtH.java
Log Message:
Manolis' implementation of the -u tag setting
Index: TtH.java
===================================================================
RCS file: /cvsroot/aimmath/AIM/WEB-INF/java/tth/TtH.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TtH.java 5 May 2003 05:12:52 -0000 1.2
--- TtH.java 30 Aug 2003 22:40:55 -0000 1.3
***************
*** 130,134 ****
}
! public static String convertChunk(String s)
throws Exception {
--- 130,134 ----
}
! public static String convertChunk(String s, String opt)
throws Exception {
***************
*** 146,150 ****
// start a TtH process
! p = Runtime.getRuntime().exec(program + " -r -L");
tthinput = p.getOutputStream();
outreader = new TtHReader(p.getInputStream());
--- 146,150 ----
// start a TtH process
! p = Runtime.getRuntime().exec(program + " " + opt + " -r -L");
tthinput = p.getOutputStream();
outreader = new TtHReader(p.getInputStream());
***************
*** 181,185 ****
}
! public static String convert(String s)
throws Exception {
int i,j,k,l,m;
--- 181,185 ----
}
! public static String convert(String s, String opt)
throws Exception {
int i,j,k,l,m;
***************
*** 213,217 ****
i = input.length();
} else {
! html += convertChunk(input.substring(k,l));
i = l + "</latex>".length();
}
--- 213,217 ----
i = input.length();
} else {
! html += convertChunk(input.substring(k,l),opt);
i = l + "</latex>".length();
}
|