New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix calling pnmcrop with a duplicated -sides option (aka PNMCROPOPT) #73
Conversation
If the variable PNMCROPOPT is defined as "-sides" via config/config.pl in pstoimg.bin, calling `pnmcrop -bot -sides $PNMCROPOPT` will give an error, due to the duplicated option.
@@ -1300,9 +1300,9 @@ sub crop_scale_etc { | |||
my $edge = $1; | |||
my $croparg = ''; | |||
if($edge =~ /b/i) { | |||
$croparg = "-bot -sides $PNMCROPOPT "; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PNMCROPOPT
may be set only to -sides
via config/config.pl
.
Can you provide a test case? |
pnmcrop version
Test case (invocation of latex2html/pstoimg)To trigger the bug you may try with the following:
|
Thanks. Your test case works ok for me, even though it does use a duplicate "-sides" in processing image 16. I can also run "pnmcrop -sides -sides" from the command line with no problem. In your test case, I do get an error on image # 23, because page 23 of images.pdf is blank. This is because \dmodel is undefined in the input file (which is not the main latex file of the document). Do you get an image of an eqn on page 16 of images.pdf? What happens when you run "pnmcrop -sides -sides" from the command line? |
Thanks for the prompt reply.
On my machine it's different...
It's the same for me. I took the first latex example at hand... I think it's normal, the problem is the duplicated
Yes I do, it's something like the below representation:
|
Thanks for merging ;) |
If the variable
PNMCROPOPT
is defined as-sides
viaconfig/config.pl
inpstoimg.bin
, callingwill give an error, due to the duplicated option.
This probably relates to issues #40 and #41.