WeBWorK Main Forum

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.

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

Andras

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

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
    cvs -r HEAD dangerousMacros.pl