--- loncom/homework/structuretags.pm 2003/07/10 06:17:41 1.194
+++ loncom/homework/structuretags.pm 2003/07/16 19:36:02 1.196
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.194 2003/07/10 06:17:41 www Exp $
+# $Id: structuretags.pm,v 1.196 2003/07/16 19:36:02 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -902,11 +902,17 @@ sub start_part {
if ( $target eq "web" ) {
$result="
Part is not open to be viewed. It $accessmsg
";
} elsif ( $target eq 'tex' ) {
- $result="\\end{minipage}\\vskip 0 mm Part is not open to be viewed. It $accessmsg \\\\\\begin{minipage}{\\textwidth}";
+ if (not $ENV{'form.problem_split'}=~/yes/) {
+ $result="\\end{minipage}\\vskip 0 mm Part is not open to be viewed. It $accessmsg \\\\\\begin{minipage}{\\textwidth}";
+ } else {
+ $result="\\vskip 0 mm Part is not open to be viewed. It $accessmsg \\\\";
+ }
}
} else {
if ($target eq 'tex') {
- $result.='\noindent \end{minipage}\vskip 0 mm \noindent \begin{minipage}{\textwidth}\noindent';
+ if (not $ENV{'form.problem_split'}=~/yes/) {
+ $result.='\noindent \end{minipage}\vskip 0 mm \noindent \begin{minipage}{\textwidth}\noindent';
+ }
my $weight = &Apache::lonnet::EXT("resource.$id.weight");
if ($Apache::lonhomework::type eq 'exam') { $result .= '\fbox{\textit{'.$weight.' pt}}';}
}
@@ -1091,7 +1097,8 @@ sub start_simpleeditbutton {
my $url=$ENV{'REQUEST_URI'};
$url=~s/\?.*$//;
$result='
'. - 'Simple Problem Editor - Note: it can take up to 10 minutes for changes to take effect for all users. |