[LON-CAPA-cvs] cvs: modules /TexConvert/tthperl tthperl.c
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 28 Feb 2003 21:03:58 -0000
albertel Fri Feb 28 16:03:58 2003 EDT
Modified files:
/modules/TexConvert/tthperl tthperl.c
Log:
- turn mathitalic off (or on)
-i0 off
-i1 on
Index: modules/TexConvert/tthperl/tthperl.c
diff -u modules/TexConvert/tthperl/tthperl.c:1.6 modules/TexConvert/tthperl/tthperl.c:1.7
--- modules/TexConvert/tthperl/tthperl.c:1.6 Thu Feb 27 15:31:25 2003
+++ modules/TexConvert/tthperl/tthperl.c Fri Feb 28 16:03:57 2003
@@ -90,7 +90,13 @@
case 'f': sscanf(cur+2,"%d",&tth_flev0);
/*add_error("Fraction level %d\n",tth_flev0);*/break;
case 'g': tth_fontguess=0;break;
- case 'I': case 'i': tth_mathitalic=1;break;
+ case 'I': case 'i':
+ if (cur[2]) {
+ sscanf(cur+2,"%d",&tth_mathitalic);
+ } else {
+ tth_mathitalic=1;
+ }
+ break;
/*case 'k': strcpy(tth_latex_file,argv[i]+2);break;*/
case 'L': case 'l':{
/*strcpy(tth_latex_file,argv[i]+2);*/
@@ -152,7 +158,13 @@
case 'f': sscanf(cur+2,"%d",&ttm_flev0);
/*add_error("Fraction level %d\n",ttm_flev0);*/break;
case 'g': ttm_fontguess=0;break;
- case 'I': case 'i': ttm_mathitalic=1;break;
+ case 'I': case 'i':
+ if (cur[2]) {
+ sscanf(cur+2,"%d",&ttm_mathitalic);
+ } else {
+ ttm_mathitalic=1;
+ }
+ break;
/*case 'k': strcpy(ttm_latex_file,argv[i]+2);break;*/
case 'L': case 'l':{
/*strcpy(ttm_latex_file,argv[i]+2);*/