Forum archive 2000-2006

Zoran - pdflatex problem

Zoran - pdflatex problem

by Arnold Pizer -
Number of replies: 0
inactiveTopicpdflatex problem topic started 5/3/2004; 2:04:51 PM
last post 5/4/2004; 3:14:08 PM
userZoran - pdflatex problem  blueArrow
5/3/2004; 2:04:51 PM (reads: 1580, responses: 4)
Hi.

I am trying to generate a hardcopy. Tex is not a problem. If I save it and do either dvipdf or pdflatex I am getting valid pdf file.
When I tried to generate pdf file, I got the message:

+++++++++++++++++++++
+++++++++++++++++++++
Hardcopy Generator

 

Software Error

 

WeBWorK has encountered a software error while attempting to process this problem. It is likely that there is an error in the problem itself. If you are a student, contact your professor to have the error corrected. If you are a professor, please consut the error output below for more informaiton.

 

Error messages

 

Failed to generate PDF from tex

 

Error context

 

Call to /usr/bin/pdflatex failed: Inappropriate ioctl for device

Some pdf output was produced and is available here.

 


pdflatex ran, but did not succeed. This suggests an error in the TeX
version of one of the problems, or a problem with the pdflatex system.
The essential contents of the TeX log are as follows:


! Missing $ inserted.
<inserted text>
$
l.76 enter elementary expressions such as 2^
3 instead of 8, sin(3pi/2) instead
I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.

LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <10> not available
(Font) Font shape `OT1/ptm/b/n' tried instead on input line 76.
LaTeX Font Info: Font shape `OT1/ptm/bx/n' in size <7.4> not available
(Font) Font shape `OT1/ptm/b/n' tried instead on input line 76.
! Missing $ inserted.
<inserted text>
$
l.82

I've inserted a begin-math/end-math symbol since I think
you left one out. Proceed, with fingers crossed.


Underfull hbox (badness 10000) in paragraph at lines 74--82
/ptmr7t/ex-pres-sions such as 2$[]/zptmcmrm/insteadof/zptmcmr/8/zptmcmrm/; sin/
zptmcmr/(3/zptmcmrm/pi=/zptmcmr/2)/zptmcmrm/insteadof /zpzccmry/^^@
[]


Underfull hbox (badness 10000) in paragraph at lines 74--82
/zptmcmr/1/zptmcmrm/; e[]ln/zptmcmr/(2))/zptmcmrm/insteadof/zptmcmr/2/zptmcmrm/
; /zptmcmr/(2 + /zptmcmrm/tan/zptmcmr/(3)) /zpzccmry/^^C /zptmcmr/(4 /zpzccmry/
^^@ /zptmcmrm/sin/zptmcmr/(5))[] /zpzccmry/^^@
[]


Overfull hbox (101.34259pt too wide) in paragraph at lines 74--82
/zptmcmr/7/zptmcmrm/=/zptmcmr/8/zptmcmrm/insteadof/zptmcmr/27620/zptmcmrm/:/zpt
mcmr/3413/zptmcmrm/; etc:Here[]sthe[]whichWeBWorKunderstands:$
[]

[1{/usr/share/texmf/dvips/config/pdftex.map}]
LaTeX Font Info: Font shape `OMS/ptm/m/n' in size <6> not available
(Font) Font shape `OMS/pzccm/m/n' tried instead on input line 893.

[2] (./hardcopy.aux) )
Here is how much of TeX's memory you used:
2549 strings out of 50453
29810 string characters out of 688420
85563 words of memory out of 1500001
5370 multiletter control sequences out of 10000+25000
33541 words of font info for 75 fonts, out of 400000 for 1000
175 hyphenation exceptions out of 10000
34i,5n,26p,351b,364s stack positions out of 3000i,500n,3000p,50000b,5000s
{/usr/share/texmf/dvips/base/8r.enc}</usr/share/texmf/fon
ts/type1/bluesky/cm/cmsy10.pfb></usr/share/texmf/fonts/type1/bluesky/cm/cmr10.p
fb></usr/share/texmf/fonts/type1/bluesky/cm/cmmi10.pfb>
Output written on hardcopy.pdf (2 pages, 15754 bytes).

++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++

pdf output is OK, but why I am getting this error??

Regards
Zoran

<| Post or View Comments |>


userMichael Gage - Re: pdflatex problem  blueArrow
5/3/2004; 2:22:03 PM (reads: 1749, responses: 0)
There is a TeX error in the "setHeader file" you are using for your set. There are a number of copies of set header files that work when shown on the screen (using HTML) but which do not work when they are run through the TeX compiler. I've included below a version which I use that will work for both HTML and TeX output:

 



DOCUMENT();



loadMacros(
PG.pl,
PGbasicmacros.pl,
PGchoicemacros.pl,
PGanswermacros.pl
);



TEXT($BEGIN_ONE_COLUMN);



TEXT(MODES(TeX =>EV3(<<'EOT'),HTML=>"",Latex2HTML=>""));
noindent {large bf $studentName}
hfill
noindent {large bf MTH 162 $sectionNumber Spring 2004}
par



EOT



BEGIN_TEXT



$BBOLD WeBWorK assignment number $setNumber is due : $formattedDueDate. $EBOLD



$PAR
(This is early Tuesday morning, so it needs to be done MONDAY night!)
Remember to get this done early!
$PAR
The { htmlLink(qq!http://www.math.rochester.edu/courses/162/home/!,"home page") }
for the course contains the syllabus, grading policy, and other information.
$PAR
END_TEXT



##################
# EDIT BELOW HERE
##################
BEGIN_TEXT
$HR



Your message here.




$HR
END_TEXT
##################
# EDIT ABOVE HERE
##################
BEGIN_TEXT
$PAR
Here's the
{ htmlLink(qq!http://webwork.math.rochester.edu/docs/docs/pglanguage/availableFunctions.html!,"list of the functions") }
which WeBWorK understands.
$PAR
You can use the "Email instructor" button on each problem
page to send e-mail to the professors.




$END_ONE_COLUMN
END_TEXT



ENDDOCUMENT(); # This should be the last executable line in the problem.







<| Post or View Comments |>


userZoran - Re: pdflatex problem  blueArrow
5/4/2004; 11:47:17 AM (reads: 1718, responses: 0)
Hi Mike.

I am not sure which setHeader file you had in mind. Is it setHeader.pg in conf/snippets directory or is it SetHeaders files (screen & paper) in myCourseName templates? What about setHeader files from rochester problem library. I downloaded it through CVS. Are they OK?

Zoran.

<| Post or View Comments |>


userMichael Gage - Re: pdflatex problem  blueArrow
5/4/2004; 1:14:55 PM (reads: 1739, responses: 0)
The set header is determined for each set on the Set List page, and folks change these quite a lot since this is where you can make customized comments to students on a particular set.

You can check the content of this header by clicking [edit] next to Set Info on the first page of a problem set -- the one that lists all of the problems. If you see TeX like commands such as ^ and _ which are not inside math mode, then that is probably what is causing the problem.

The current copy of

/conf/snippets/setHeader.pg

is a version of what I copied above. It should work fine, but you would need to make sure that the set is using something like this as it's set header.

<| Post or View Comments |>


userZoran - Re: pdflatex problem  blueArrow
5/4/2004; 3:14:08 PM (reads: 1722, responses: 0)
Thanx Mike. It solved my problem.

Zoran.

<| Post or View Comments |>