- remove '\n' causing that pstoimg generates gray images (#161186,
#127010), solution from Julius Smith
This commit is contained in:
parent
790d13e7c1
commit
f22f18f107
11
latex2html-2002.2.1-grayimg.patch
Normal file
11
latex2html-2002.2.1-grayimg.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- latex2html-2002-2-1/pstoimg.pin.grayimg 2005-05-04 11:20:46.000000000 +0200
|
||||
+++ latex2html-2002-2-1/pstoimg.pin 2005-06-21 14:54:30.899550448 +0200
|
||||
@@ -1021,7 +1021,7 @@ sub ps2pnm {
|
||||
}
|
||||
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);
|
||||
+ $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) {
|
@ -4,7 +4,7 @@
|
||||
Summary: Converts LaTeX documents to HTML
|
||||
Name: latex2html
|
||||
Version: 2002.2.1
|
||||
Release: 3
|
||||
Release: 4
|
||||
License: Free To Use But Restricted (See LICENSE)
|
||||
Group: Applications/Publishing
|
||||
URL: http://www.latex2html.org/
|
||||
@ -16,6 +16,7 @@ Patch1: teTeX-l2h-config.patch
|
||||
Patch3: latex2html-2K.1beta-DB.patch
|
||||
Patch4: latex2html-2002-2-1-SHLIB.patch
|
||||
Patch5: latex2html-2002-2-1-gsfont.patch
|
||||
Patch6: latex2html-2002.2.1-grayimg.patch
|
||||
|
||||
###
|
||||
# Japanization patches
|
||||
@ -55,6 +56,9 @@ pushd %{name}-%{latex2html_ver}
|
||||
# don't require the font directory to be ended with PATH/fonts
|
||||
%patch5 -p1 -b .gsfont
|
||||
|
||||
# don't generate gray images as output form latex2html
|
||||
%patch6 -p1 -b .grayimg
|
||||
|
||||
# remove all platforms we don't need
|
||||
for i in Dos Mac OS2 Win32; do
|
||||
rm -f L2hos/${i}.pm
|
||||
@ -210,6 +214,10 @@ exit 0
|
||||
%{_mandir}/man1/pstoimg.*
|
||||
|
||||
%changelog
|
||||
* Tue Jun 21 2005 Jindrich Novy <jnovy@redhat.com> 2002.2.1-4
|
||||
- remove '\n' causing that pstoimg generates gray images
|
||||
(#161186, #127010), solution from Julius Smith
|
||||
|
||||
* Wed May 4 2005 Jindrich Novy <jnovy@redhat.com> 2002.2.1-3
|
||||
- add latex2html, texexpand, pstoimg man pages (#60308)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user