Subversion Repositories wimsdev

Rev

Rev 5517 | Rev 5544 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5517 Rev 5523
Line 626... Line 626...
626
     SUBEND = "}";
626
     SUBEND = "}";
627
     m_prefix="\\";
627
     m_prefix="\\";
628
  }
628
  }
629
  for (p1=find_mathvar_start(p);*p1!=0;p1=find_mathvar_start(p2)) {
629
  for (p1=find_mathvar_start(p);*p1!=0;p1=find_mathvar_start(p2)) {
630
    char buf[MAX_LINELEN+1];
630
    char buf[MAX_LINELEN+1];
-
 
631
    /* if the variable is preceded by \ do nothing - in fact this should not arrive
-
 
632
    */
-
 
633
    if (p1>p && *(p1-1) == '\\' ) break ;
631
    p2 = find_mathvar_end(p1);
634
    p2 = find_mathvar_end(p1);
632
        if (p1 == p2) break;
635
        if (p1 == p2) break;
633
    memmove(buf,p1,p2-p1);buf[p2-p1]=0;
636
    memmove(buf,p1,p2-p1);buf[p2-p1]=0;
634
 
637
 
635
    if(myisdigit(buf[0])) {
638
    if(myisdigit(buf[0])) {
Line 693... Line 696...
693
   strip_trailing_spaces(p);
696
   strip_trailing_spaces(p);
694
}
697
}
695
 
698
 
696
void htmlmath(char *p)
699
void htmlmath(char *p)
697
{
700
{
698
  __htmlmath(p) ;
701
  __htmlmath(p) ;  if (mathalign_base == 2) { mathml(p,1);}
699
}
702
}