WeBWorK Main Forum

Homework set names

Homework set names

by Daryl Tingley -
Number of replies: 3
I am running webwork 2.5 on RedHat 5.7

We have had webwork errors(pink screen) which have been  tracked down to the name of the Homework Set.  It seems that both "dot"(.) "and underscore"(_) cause pdflatex errors for hardcopy (only).  Is that correct?

Is there any documentation on legal names for homework sets and courses? 

Daryl
In reply to Daryl Tingley

Re: Homework set names

by Arnold Pizer -
Hi,

Not sure about "dots" (.) but underscores are fine if you PROTECT them with protect_underbar. See e.g.

.../templates/ASimpleCombinedHeaderFile.pg which used the code:

{\large \bf {\{protect_underbar($courseName)\}}}

Otherwise LaTeX processes an underscore as a subscript.

Arnie
In reply to Arnold Pizer

Re: Homework set names

by Daryl Tingley -
Thanks for the info re underscore. An old header file was the problem. 

As for "dots" in homework set names I'll give you an example.
(I am not trying to solve an issue here - we have stopped using dots and that is just fine.)

Homework set Section_1.1 containing the following problem:                   

Library/CollegeOfIdaho/setAlgebra_02_01_IntroFunctions/
                     21IntAlg_10_function.pg
generates the issue. 

Making a hardcopy gives the following error:

! LaTeX Error: Unknown graphics extension: .1prob4image1.png.

Its pretty clear that latex is confused over the two dots in the filename used for the image file, 
daryl-3-setSection_1.1prob4image1.png

Note this only arose for dynamically generated images.

I thank you for helping make webwork possible. It is great.

Daryl

In reply to Daryl Tingley

Re: Homework set names

by Arnold Pizer -
Hi Daryl,

I had forgotten about "dots". It is a well know "feature" of TeX that the full file path can not contain any "dots" except for the extension of the actual TeX file.

Some TeX packages may have a way around this (e.g. multidot) but as far as I know, there is no general way LaTeX can handle this.  WeBWorK users just live without using dots in directory/file names.

Arnie