[l2h] graphicx vs. graphics

Diab Jerius dj@head-cfa.harvard.edu
Thu, 8 Aug 2002 18:04:39 -0400 (EDT)


---2130725163-1804928587-1028844280=:737
Content-Type: TEXT/plain; charset=us-ascii

In v. 2002-1, the style files graphics and graphicx are identical.
However, the format of the argument lists for includgraphics differs
between the two packages. This leads to problems when converting complex
graphicx includegraphics.  I've attached a revised version of
graphix.perl which processes the arguments more appropriately.

Thanks,
Diab

-- 
Diab Jerius                       Harvard-Smithsonian Center for Astrophysics
                                  60 Garden St, MS 70, Cambridge MA 02138 USA
djerius@cfa.harvard.edu           vox: 617 496 7575         fax: 617 495 7356
---2130725163-1804928587-1028844280=:737
Content-Type: TEXT/plain; name="graphicx.perl"
Content-Description: new version of graphicx.perl
Content-Disposition: attachment; filename="graphicx.perl"

# graphics.perl
#    by Bruce Miller <bruce.miller@nist.gov>
# Support of the graphics.sty standard LaTeX2e package
#    with `standard argument format'
# See graphics-support.perl
# ====================================================================== 
do_require_package('graphics-support');

# Package Options
sub do_graphics_dvips {}
sub do_graphics_draft {} # What'd be the point?
sub do_graphics_final {}
sub do_graphics_hiresbb {}
sub do_graphics_hiderotate { 
  map($GRAPHICS_OPTHIDE{$_}=1, @GRAPHICS_ROTATEOPTS); }
sub do_graphics_hidescale  { 
  map($GRAPHICS_OPTHIDE{$_}=1, @GRAPHICS_SCALEEOPTS); }

# ====================================================================== 
sub do_cmd_includegraphics {
  local($_)=@_;
  my $opt=x_next_optarg();
  my $file = x_next_arg();
  do_includegraphics($file, $opt, 
     "\\includegraphics".($opt && "[$opt]")."\{$file\}"); }

sub do_cmd_includegraphicsstar {
  local($_)=@_;
  my $opt=x_next_optarg();
  my $file = x_next_arg();
  do_includegraphics($file, $opt,
     "\\includegraphics*".($opt && "[$opt]")."\{$file\}"); }

# ====================================================================== 
1;


---2130725163-1804928587-1028844280=:737--