Bug 161186 - latex2html images generated from postscript have gray background when white requested
Summary: latex2html images generated from postscript have gray background when white r...
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: latex2html
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-06-21 07:20 UTC by Julius Smith
Modified: 2013-07-02 23:07 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2005-06-21 13:18:27 UTC


Attachments (Terms of Use)
pstoimg script with patch installed (42.30 KB, text/plain)
2005-06-21 07:20 UTC, Julius Smith
no flags Details

Description Julius Smith 2005-06-21 07:20:25 UTC
Created attachment 115732 [details]
pstoimg script with patch installed

Comment 1 Julius Smith 2005-06-21 07:20:25 UTC
Description of problem:

A portion of Bugzilla Bug 127010 (FC2) lives on.  Below is a patch to fix the
problem.

<jos2p8:/home/jos> diff -cb /usr/bin/pstoimg /mnt/hdb/FC2/local/bin/pstoimg
*** /usr/bin/pstoimg	Wed May  4 02:26:31 2005
--- /mnt/hdb/bkp/local/bin/pstoimg	Tue Feb  1 22:49:46 2005
***************
*** 1021,1027 ****
        }
      my $had_nonwhite;
      if($opt{white}) {
!       $had_nonwhite = ($ps =~ s/(\n\d+ \d+ bop gsave) \d*\.\d+ (TeXcolorgray
clippath fill grestore)/$1 1 $2/s);
        }
      $ps_changed = $had_papersize || $had_nonwhite;
      if($ps_changed) {
--- 1021,1027 ----
        }
      my $had_nonwhite;
      if($opt{white}) {
!       $had_nonwhite = ($ps =~ s/(\d+ \d+ bop gsave) \d*\.\d+ (TeXcolorgray
clippath fill grestore)/$1 1 $2/s);
        }
      $ps_changed = $had_papersize || $had_nonwhite;
      if($ps_changed) {

-----------------------------

By the way, in my opinion, latex2html should be in Fedora Extras.

Comment 2 Julius Smith 2005-06-21 07:29:26 UTC
The repaired version of pstoimg in my original post contains comments at the top
inserted by RCS which reset the revision history.  Please just manually
implement the patch instead (deleting the '\n' in that one line) and update the
revision history in the comments, if desired.  (As far as I know, there does not
exist an accessible CVS tree for latex2html --- hence the version reset in my
own copy.)

Comment 3 Jindrich Novy 2005-06-21 13:18:27 UTC
Applied, thanks.


Note You need to log in before you can comment on or make changes to this bug.