Changeset 16
- Timestamp:
- 06/10/08 22:53:23 (7 months ago)
- Files:
-
- trunk/pgiac/pgiac (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pgiac/pgiac
r15 r16 23 23 24 24 25 my $VERSION = "0.1. 5"; # Lundi 9juin 200825 my $VERSION = "0.1.6"; # Mardi 10 juin 2008 26 26 27 27 my $OUT = ""; # Contenu en sortie. … … 47 47 48 48 my $DEBUG = 0; 49 50 my $INBLOC = 0; 51 my $BLOC = ""; 49 52 50 53 # Commande pour déterminer la BoundingBox d'un fichier EPS via GS. … … 88 91 while (<INGIAC>) { 89 92 chomp($_); 90 if ($_ =~ /^\.gp (.*)/) { 93 if ($INBLOC) { 94 if ($_ =~ /^\.end/) { 95 chomp($BLOC); 96 &Executer($BLOC,"ltx"); 97 $INBLOC = 0; $BLOC = ""; 98 } else { 99 $BLOC .= "$_\n"; 100 } 101 } elsif ($_ =~ /^\.gp (.*)/) { 91 102 &LireParametres($1); 92 103 } elsif ($_ =~ /^\.gmp (.*)/) { 93 104 &Executer($1,"mp"); 94 } elsif ($_ =~ /^\.g (.*)/) {105 } elsif ($_ =~ /^\.g (.*)/) { 95 106 &Executer($1,"ltx"); 107 } elsif ($_ =~ /^\.g\:(.*)/) { 108 $INBLOC = 1; $BLOC = $1 ? "$1\n" : ""; 96 109 } elsif ($_ =~ /^\.G(.*)/) { 97 110 my @lignes = qx{cat $1}; … … 179 192 $t 180 193 \\end{lstlisting} 194 eop 195 } 196 if ($INBLOC) { 197 return << "eop"; 198 {\\MarqueBlocGiac{$COMPTEUR} 199 \\begin{verbatim} 200 $t 201 \\end{verbatim} 202 } 181 203 eop 182 204 }
