[LON-CAPA-cvs] cvs: capa /capa51/pProj capaCommon.c

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 01 Jun 2004 19:57:19 -0000


albertel		Tue Jun  1 15:57:19 2004 EDT

  Modified files:              
    /capa/capa51/pProj	capaCommon.c 
  Log:
  - stop italicizing units in TeX mode
  
  
Index: capa/capa51/pProj/capaCommon.c
diff -u capa/capa51/pProj/capaCommon.c:1.23 capa/capa51/pProj/capaCommon.c:1.24
--- capa/capa51/pProj/capaCommon.c:1.23	Fri Mar 26 15:02:03 2004
+++ capa/capa51/pProj/capaCommon.c	Tue Jun  1 15:57:18 2004
@@ -2638,7 +2638,7 @@
              if(len_dd == 0 ) {  /* no unit_str */
                sprintf(ans_str," %s [%s,%s]\n\n", str_aa,str_bb,str_cc);
              } else {
-               sprintf(ans_str," %s [%s,%s] $%s$\n\n", str_aa,str_bb,str_cc,p->unit_str);
+               sprintf(ans_str," %s [%s,%s] $\\mathrm{%s}$\n\n", str_aa,str_bb,str_cc,p->unit_str);
              }
              capa_mfree((char *)str_aa); 
 	     capa_mfree((char *)str_bb); 
@@ -2660,7 +2660,7 @@
              if(len_dd == 0 ) {  /* no unit_str */
                sprintf(ans_str," %s\n", str_bb);
              } else {
-               sprintf(ans_str," %s $%s$\n", str_bb,p->unit_str);
+               sprintf(ans_str," %s $\\mathrm{%s}$\n", str_bb,p->unit_str);
              }
              capa_mfree((char *)str_bb);
            }