Changeset 2301b7 in git


Ignore:
Timestamp:
Jun 21, 2007, 12:30:41 AM (17 years ago)
Author:
Viktor Levandovskyy <levandov@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
4385f60d8f6656556577a3d8ec30d850ce35101f
Parents:
3c027f97d279289ce9a8afd78a7554d9286b8613
Message:
*levandov: last changed C.Gorzel 07/05/31


git-svn-id: file:///usr/local/Singular/svn/trunk@10137 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/latex.lib

    r3c027f r2301b7  
    11///////////////////////////////////////////////////////////////////////////////
    2 version="$Id: latex.lib,v 1.28 2006-07-18 15:53:58 Singular Exp $";
     2version="$Id: latex.lib,v 1.29 2007-06-20 22:30:41 levandov Exp $";
    33category="Visualization";
    44info="
     
    677677 if (size(#)==1)
    678678 { if (typeof(#[1])=="int" or typeof(#[1])=="intvec" or typeof(#[1])=="vector"
    679    or typeof(#[1])=="number" or defined(TeXaligned)) { DA = D; DE = D; } }
     679    or typeof(#[1])=="number" or typeof(#[1])=="bigint" or defined(TeXaligned))
     680   { DA = D; DE = D; }
     681}
    680682
    681683 s = DA;
     
    694696    else {s = s + obj + newline;}
    695697   }
    696    if (typeof(obj) == "int") { s = s + "  " + string(obj) + "  ";}
     698   if (typeof(obj) == "int" or typeof(#[1])=="bigint")
     699   { s = s + "  " + string(obj) + "  ";}
    697700
    698701   if (typeof(obj) == "intvec")
     
    14341437    cfm = leadcoef(monom);
    14351438    if (cfm*1 != 0) { monom = monom/cfm;} // the normalized monom
     1439    if (defined(TeXreplace)) { short =0;}  // this is essential //31.5.07
    14361440    s = string(monom) + "!";              // add a terminating sign
    14371441    cfmt = "";
    14381442
    1439     if (defined(TeXreplace)) { short =0;}  // this is essential
    14401443    cfmt = string(cfm);
    14411444    if (size(cfmt)>1)                   // check if sign is < 0
     
    14561459     if(realT) { monomt,msz = parsr(cfmt);}
    14571460     if (galT) { monomt,msz = parsg(cfmt);}
    1458      b = find(cfmt,")/(");                     // look if fraction
     1461     b = find(cfmt,"/(");                     // look if fraction  // 31.5.07
    14591462     b2 = find(cfmt,"/");
    1460      if (b) {b++;}
     1463     // if (b) {b++;}                         // 31.5.07
    14611464     n = size(cfmt);
    14621465     if (!(parT) and  !(realT) and !(galT))
     
    15411544  f;
    15421545  texpoly("",f);
     1546  texpoly("",1/(a2+2)*x+2/b);
    15431547}
    15441548
     
    15571561    { if(fl1) { nom = "(" + nom + ")"; sz1++;}
    15581562      if(fl2) {denom = "(" + denom + ")"; sz2++;}
    1559       mt = nom+ "/"+ denom; msz = sz1+sz2 +1;
     1563      mt = "(" + nom+ "/"+ denom+ ")"; msz = sz1+sz2 +1;   //31.5.07
    15601564    }
    15611565    else
     
    15881592  s = s + "!";
    15891593
    1590   if(defined(TeXreplace)){ short =0;}   // only then replacing works correctly
     1594  //if(defined(TeXreplace)){ short =0;}   // hier ueberfluessig 31.5.07
    15911595  if (short)
    1592   { while(s[i]<>"!")
    1593     { b=i; j++;
     1596  { j = 0;  // 31.5.07 
     1597    while(s[i]<>"!")
     1598    { b=i; if (s[i]=="+" or s[i]=="-") {j++;}  // 31.5.07
    15941599      while(s[i]>="0" and s[i]<="9" or (s[i]=="+" or s[i]=="-") and s[i]!="!")
    15951600      {i++;}     // scan the number
     
    18361841write(fname,"\\newcommand{\\Line}{\\rule{\\textwidth}{0.25mm}\\\\[5mm]}");
    18371842
    1838    write(fname,"\\centerline{\\large \\bf Demo file for latex.lib 2.0}");
     1843   write(fname,"\\centerline{\\large \\bf Demo file for latex.lib }");
     1844   write(fname,"\\centerline{07/05/3}");
    18391845   write(fname,"\\vspace{1cm}");
    18401846
Note: See TracChangeset for help on using the changeset viewer.