Changeset 17

Show
Ignore:
Timestamp:
06/12/08 21:38:03 (7 months ago)
Author:
jms
Message:

[pgiac] Version 0.1.7, ajout de la valeur tex pour le paramètre string.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/pgiac/pgiac

    r16 r17  
    211211    my $t = shift;     
    212212    if ($STRING eq "text") { 
     213        $t =~ s/\^/\\\^\{}/g; 
     214        $t =~ s/\-\>/\\(\\rightarrow\\)/g; 
    213215        return << "eop"; 
    214216{\\MarqueLaTeXGiac{\\[\\text{$t}\\]}} 
     217eop 
     218    } 
     219    if ($STRING eq "tex") { 
     220        $t =~ s/\-\>/\\rightarrow /g; 
     221        return << "eop"; 
     222{\\MarqueLaTeXGiac{\\[$t\\]}} 
    215223eop 
    216224    } 
     
    328336    } 
    329337    if ($1 eq "string") { 
    330         ($2 eq "verbatim" or $2 eq "text") and $STRING = $2; 
     338        ($2 eq "verbatim" or $2 eq "text" or $2 eq "tex" ) and $STRING = $2; 
    331339    } 
    332340    if ($1 eq "commande") {