Changeset 2ad754 in git for Singular/LIB/latex.lib
- Timestamp:
- Feb 21, 2013, 7:02:39 PM (11 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 8c2815d19daf34708c2cbc2cf44f8a95b28e3a28
- Parents:
- 0c516e37d47da9dbc827d68d2253f7289dfbfd3c
- git-author:
- Yue Ren <ren@mathematik.uni-kl.de>2013-02-21 19:02:39+01:00
- git-committer:
- Yue Ren <ren@mathematik.uni-kl.de>2013-02-25 10:56:53+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/latex.lib
r0c516e r2ad754 1311 1311 { 1312 1312 string t; 1313 if (s==" Inf") { return("\\infty",3);}1314 if (s==" -Inf") { return("\\-infty",6);}1315 if (s[ 7]=="-"){t ="-";}1316 if (s[ 8]<>"0"){t = t + s[8];}1317 if (s[ 9]<>"0" or s[8]<>"0"){t = t + s[9];}1313 if (s=="( Inf)") { return("\\infty",3);} 1314 if (s=="( -Inf)") { return("\\-infty",6);} 1315 if (s[8]=="-"){t ="-";} 1316 if (s[9]<>"0"){t = t + s[9];} 1317 if (s[10]<>"0" or s[9]<>"0"){t = t + s[10];} 1318 1318 if (size(t)) 1319 { if (t=="1") {return(s[1, 5]+"*10",21);}1320 if (size(t)>1) {return(s[1, 5]+"*10^{"+t+"}",21+2*size(t));}1321 else {return(s[1, 5]+"*10^"+t,23);}1319 { if (t=="1") {return(s[1,6]+"\\cdot 10",21);} 1320 if (size(t)>1) {return(s[1,6]+"\\cdot 10^{"+t+"}",21+2*size(t));} 1321 else {return(s[1,6]+"\\cdot 10^"+t+")",23);} 1322 1322 } 1323 1323 else 1324 1324 { 1325 return(s[ 1,5],12);1325 return(s[2,5],12); 1326 1326 } 1327 1327 }
Note: See TracChangeset
for help on using the changeset viewer.