WeBWorK Main Forum

fix for periods in set names and png file names

fix for periods in set names and png file names

by Andras Balogh -
Number of replies: 3
I had this problem before when I named homework sets with period in their name like 1.1, 2.1, etc.
This resulted in error message "Unknown graphics extension" .1-1-001.png with TeX confused about which period denotes the extension.


Adding the line
\usepackage{grffile}
to the file hardcopyPreamble.tex
in directory
/opt/webwork/webwork2/conf/snippets/
fixes that problem.


Andras
In reply to Andras Balogh

Re: fix for periods in set names and png file names

by Davide Cervone -
This issue was resolved in version 1.53 of pg/macros/dangerousMacros.pl (where the extra periods are replaced by underscores). It is nice to have an alternative solution, however.

Davide
In reply to Davide Cervone

Re: fix for periods in set names and png file names

by Andras Balogh -
How do I get version 1.53 of dangerousMacros.pl?

I just upgraded to version 2.4.5 of pg and
that has pg/macros/dangerousMacros.pl,v 1.41.2.3.2.1.

Andras
In reply to Andras Balogh

Re: fix for periods in set names and png file names

by Davide Cervone -
CD to your pg/macros directory and do
    cvs -r HEAD dangerousMacros.pl
and that should do it.

Davide