According to Zachary Uram:
> Hi I installed latest version of Ghostscript per someone's advice on here
> (thanks!), I had to install to /tmp since system people won't let me
> install to /local/bin directory and they don't want to install new
> version. I went to through the trouble of compiling it so they should just
> let me install it for them oh well, anyways I *finally* got latex2html to
> run. I ran it on a large LaTeX2e file, I copied the ams*ish .sty files the
> document uses into my TEXINPUTS directory but it still complained about
> device error for pagecolor{}, I have color.sty so I don't know why it's
> complaing. Well it seems latex2html run through the document multiple
> times and identifies each unique image it will need right? Well once it
> was finished I looked at the .html file and it doesn't look right. The
> background is just plain Netscape grey (I would like white background and
> black fonts) and the results show lots of LaTeX commands mixed in with
> some math stuff it did process and it didnt display any of the images. I
> selected (g) for GIF when I ran configure-pstoimg so I don't know why it
> produced all .ps files? Can someone help me.

Hi Zach,

  Firstly, latex creates .dvi images, ghostscript converts .dvi to .ps,
  and pstoimg converts .ps to .gif.

  The way I get white backgrounds and ensure images have white
  backgrounds too, is to add the following to a .latex2html-init file
  (which should be in your home directory, or I believe it can also
  be in the same directory you are currently working):

$BODYTEXT = "text=\"\#000000\" bgcolor=\"\#FFFFFF\"";
# This ensures that some figures do not end up with a grey background
$WHITE_BACKGROUND = 1;
$LATEX_COLOR = "\\pagecolor{white}";

  There was some discussion on this some months back, containing
  suggestions that work better, apparently ... but this worked fine
  for me. The last line of your .latex2html-init file should be:

1;      # This must be the last line

  I also have things like:

# If this is set then the resulting HTML will look marginally better if viewed
# with Netscape.
$NETSCAPE_HTML = 1;

  and

# Reuse images generated during previous runs
$REUSE = 2;

  in my .latex2html-init file. There is a file dot.latex2html-init
  with the latex2html distribution ... you can use this as a template
  for your own .latex2html-init file.

  Regards,
  Greg Gamble <[EMAIL PROTECTED]>

Reply via email to