Bug 161186 - latex2html images generated from postscript have gray background when white requested
latex2html images generated from postscript have gray background when white r...
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: latex2html (Show other bugs)
4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jindrich Novy
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-06-21 03:20 EDT by Julius Smith
Modified: 2013-07-02 19:07 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-06-21 09:18:27 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description Julius Smith 2005-06-21 03:20:25 EDT
Created attachment 115732 [details]
pstoimg script with patch installed
Comment 1 Julius Smith 2005-06-21 03:20:25 EDT
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 03:29:26 EDT
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 09:18:27 EDT
Applied, thanks.

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