Rev 1119 | Rev 5461 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1119 | Rev 3522 | ||
---|---|---|---|
Line 106... | Line 106... | ||
106 | #endif |
106 | #endif |
107 | if(stat(buf1,&st)!=0) return NULL; |
107 | if(stat(buf1,&st)!=0) return NULL; |
108 | snprintf(buf2,sizeof(buf2),",%s,",fontname); |
108 | snprintf(buf2,sizeof(buf2),",%s,",fontname); |
109 | if(strstr(middle_fonts,buf2)!=NULL) |
109 | if(strstr(middle_fonts,buf2)!=NULL) |
110 | snprintf(buf2,sizeof(buf2), |
110 | snprintf(buf2,sizeof(buf2), |
111 | "%s<img src=\"%s%s\" |
111 | "%s<img src=\"%s%s\" align=\"middle\" border=\"0\" \ |
112 | alt=\"%s\">%s", |
112 | alt=\"%s\">%s", |
113 | mathalign_sup1,ref_base,buf1,fontname,mathalign_sup2); |
113 | mathalign_sup1,ref_base,buf1,fontname,mathalign_sup2); |
114 | else |
114 | else |
115 | snprintf(buf2,sizeof(buf2),"<img src=\"%s%s\" |
115 | snprintf(buf2,sizeof(buf2),"<img src=\"%s%s\" vspace=\"0\" border=\"0\" \ |
116 | alt=\"%s\">", |
116 | alt=\"%s\">", |
117 | ref_base,buf1,fontname); |
117 | ref_base,buf1,fontname); |
118 | } |
118 | } |
119 | force_setvar("wims_mathfont_",buf2); return getvar("wims_mathfont_"); |
119 | force_setvar("wims_mathfont_",buf2); return getvar("wims_mathfont_"); |
120 | } |
120 | } |