[system] / trunk / pg / macros / PGbasicmacros.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/PGbasicmacros.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2199 Revision 2215
1980 # path to an EPS file. latex can get its dimmensions no problem! 1980 # path to an EPS file. latex can get its dimmensions no problem!
1981 1981
1982 $out = "\\includegraphics[width=$width_ratio\\linewidth]{$imagePath}\n"; 1982 $out = "\\includegraphics[width=$width_ratio\\linewidth]{$imagePath}\n";
1983 } 1983 }
1984 } elsif ($displayMode eq 'Latex2HTML') { 1984 } elsif ($displayMode eq 'Latex2HTML') {
1985 $out = qq!\\begin{rawhtml}\n<A HREF= "$imageURL" TARGET="ZOOM"><IMG SRC="$imageURL" WIDTH="$width" HEIGHT="$height"></A>\n 1985 my $wid = ($envir->{onTheFlyImageSize} || 0)+ 30;
1986 $out = qq!\\begin{rawhtml}\n<A HREF= "$imageURL" TARGET="_blank" onclick="window.open(this.href,this.target, 'width=$wid,height=$wid,scrollbars=yes,resizable=on'); return false;"><IMG SRC="$imageURL" WIDTH="$width" HEIGHT="$height"></A>\n
1986 \\end{rawhtml}\n ! 1987 \\end{rawhtml}\n !
1987 } elsif ($displayMode eq 'HTML' || $displayMode eq 'HTML_tth' || $displayMode eq 'HTML_dpng' || $displayMode eq 'HTML_img' || $displayMode eq 'HTML_jsMath' || $displayMode eq 'HTML_asciimath') { 1988 } elsif ($displayMode eq 'HTML' || $displayMode eq 'HTML_tth' || $displayMode eq 'HTML_dpng' || $displayMode eq 'HTML_img' || $displayMode eq 'HTML_jsMath' || $displayMode eq 'HTML_asciimath') {
1988 $out = qq!<A HREF= "$imageURL" TARGET="ZOOM"><IMG SRC="$imageURL" WIDTH="$width" HEIGHT="$height"></A> 1989 my $wid = ($envir->{onTheFlyImageSize} || 0) +30;
1990 $out = qq!<A HREF= "$imageURL" TARGET="_blank" onclick="window.open(this.href,this.target, 'width=$wid,height=$wid,scrollbars=yes,resizable=on'); return false;"><IMG SRC="$imageURL" WIDTH="$width" HEIGHT="$height"></A>
1989 ! 1991 !
1990 } else { 1992 } else {
1991 $out = "Error: PGbasicmacros: image: Unknown displayMode: $displayMode.\n"; 1993 $out = "Error: PGbasicmacros: image: Unknown displayMode: $displayMode.\n";
1992 } 1994 }
1993 push(@output_list, $out); 1995 push(@output_list, $out);

Legend:
Removed from v.2199  
changed lines
  Added in v.2215

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9