Log of /branches/rel-2-1-patches/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
Parent Directory
Revision
2394 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 24 21:06:22 2004 UTC (8 years, 11 months ago) by
dpvc
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 26155 byte(s)
Diff to
previous 1892
Moved problem-separation snippet to ABOVE the problem (to get the
line above the first problem and simultaneously avoid having to check
for being the last problem).
Also put the correct answers in verbatim mode to avoid having to make
and-hoc adjustments to the answer string (the result will be exactly
what the instructor typed, no matter what).
This also avoids a problem when the correct answer begins with "[",
where LaTeX would think this was part of an optional parameter to
\item and either eat the answer (up to the "]") or fail to run
entirely (if the answer were "[1,infinity)" for example).
If you don't like the verbatim, you can take it out, but then add {}
or \relax after the \item to avoid this problem.
Revision
1878 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Mar 13 05:09:20 2004 UTC (9 years, 2 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 25257 byte(s)
Diff to
previous 1841
Temporary fix for problem with hardcopy.
#my $singleSet = $r->urlpath->args("setID");
my $singleSet; #FIXME trace down how sets are being passed to hardcopy.
$singleSet was receiving the notion 1/8
@sets was getting the correct value of the number of the set.
Looks like $singleSet is receivinv a hash??
The calling code needs to be checked over and reconciled with the responding code.
Revision
1663 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Dec 9 01:12:32 2003 UTC (9 years, 5 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 24979 byte(s)
Diff to
previous 1636
Normalized headers. All files now contain the text below as a header.
This is important since all files now (a) use the full name of the
package, (b) assign copyright to "The WeBWorK Project", (c) give the
full path of the file (relative to CVSROOT) instead of simply the file
name, and (d) include license and warranty information.
Here is the new header:
################################################################################
# WeBWorK Online Homework Delivery System
# Copyright © 2000-2003 The WeBWorK Projcct, http://openwebwork.sf.net/
# $CVSHeader$
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of either: (a) the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version, or (b) the "Artistic License" which comes with this package.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the
# Artistic License for more details.
################################################################################
Revision
1180 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 17 02:20:15 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 23522 byte(s)
Diff to
previous 1176
Hardcopy now moves the pdf file to the tempDir/hardcopy
and sends the browser a redirect to pick it up.
Cleaned up the logic of latex2pdf and generateHardcopy to
some extent. More remains to be done. In particular
tempDir can be generated within latex2pdf. Possibly
it could be passed a file name as well, rather than a tex
string.
this process is a good candidate for testing the timing
mechanisms once they are done. How much faster is
redirect? How much faster is passing a long tex string
rather than a pointer? etc.
--Mike
Revision
1153 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 13 02:20:06 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 20435 byte(s)
Diff to
previous 1146
Hardcopy now does a reasonable job of reading the TeX log file, cutting
off the initial errors.
If there are tex errors then these are reported and one can optionally
download a pdf file if this was created.
Have not yet added the TeX file output -- Need to see how this is
handled in 1.8 first.
Good stopping point. Good night.
--Mike
Revision
1113 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 11 02:04:13 2003 UTC (9 years, 11 months ago) by
gage
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 16681 byte(s)
Diff to
previous 973
(1) Moved order in which snippets are assembled. Only one preamble and one postamble are used
for a single download (also a single run of TeX). The postamble ends the document and nothing
else in the file will be read by TeX.
(2) Modified the getSetTeX and getProblemTeX subroutines to include a username (for sets)
and a user object (for problems) so that problems and sets can be made for different students.
The new identifier is the first arguement.
$self->getSetTeX($effectiveUserName, $setName);
and
$self->getProblemTeX($effectiveUser,$setName, 0, $setHeader);
It seems to work pretty well, but perhaps a bit slow still.
--Mike
Revision
562 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 27 23:53:42 2002 UTC (10 years, 7 months ago) by
sh002i
Original Path:
trunk/webwork2/lib/WeBWorK/ContentGenerator/Hardcopy.pm
File length: 7054 byte(s)
Diff to
previous 547
- created macros/IO.pl, which is loaded with no opmask by PG.pm. It is a copy
of WeBWorK::PG::IO.pm, with some changes to make it work as a macro package.
The translator no longer shares IO.pm's functions with the safe compartment.
This is a BAD THING, and should be reconsidered when the Translator is
revised.
- Changed many (but not all) checks for HTML or HTML_tth modes to match /^HTML/
in the macros.
- changed &header to &head in Problem.pm
- Added problem environment variables for gif2eps and png2eps and modified
&dangerousMacros::alias to use them
- fixed MOST of the harmless warnings in the system. there's still the "Use
of uninitialized value in null operation" warning in template(), tho.
Still to come:
- make images in PDFs work
- fix TTH mode character encodings on mac (maybe)
- have logout button invalidate key
- Pretty die messages (from outside of the translator)
- Feedback - need nice modular way of sending email
- Options - email address and password
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.