");
}
my @colcont=split(/\&/,$rows[$i]);
@@ -522,11 +482,11 @@ sub handler {
my $rid=$colcont[$j];
my $metainfo =&get_buttons(\%hash,$rid).'
';
- unless ($target eq 'tex') {
+ unless (($target eq 'tex') || ($target eq 'tex_answer')) {
$r->print('print(' bgcolor="'.
$ssibgcolor{$rid}.'"');
@@ -547,14 +507,17 @@ sub handler {
}
$r->print('>');
}
- $r->print($ssibody{$rid});
- unless ($target eq 'tex') {
+ unless (($cellexternal{$rid}) &&
+ ($target eq 'tex') && ($target eq 'tex_answer')) {
+ $r->print($ssibody{$rid});
+ }
+ unless (($target eq 'tex') || ($target eq 'tex_answer')) {
$r->print('');
}
if ($env{'course.'.
$env{'request.course.id'}.
'.pageseparators'} eq 'yes') {
- unless($target eq 'tex') {
+ unless (($target eq 'tex') || ($target eq 'tex_answer')) {
$r->print(' ');
}
}
@@ -569,25 +532,25 @@ sub handler {
&mt('It is recommended that you use an up-to-date virus scanner before handling this file.').''.
&Apache::londocs::entryline(0,&mt("Click to download or use your browser's Save Link function"),'/'.&Apache::lonnet::declutter($hash{'src_'.$rid})).' ');
}
- unless ($target eq 'tex') {
+ unless (($target eq 'tex') || ($target eq 'tex_answer')) {
$r->print(' | ');
} else {
- for (my $incol=1;$incol<=$avespan;$incol++) {
- $r->print(' & ');
- }
+# for (my $incol=1;$incol<=$avespan;$incol++) {
+# $r->print(' & ');
+# }
}
}
- unless ($target eq 'tex') {
+ unless (($target eq 'tex') || ($target eq 'tex_answer')) {
$r->print('
');
} else {
- $r->print('REMOVETHEHEADOFLONGTABLE\\\\');
+# $r->print('REMOVETHEHEADOFLONGTABLE\\\\');
}
}
}
- unless ($target eq 'tex') {
+ unless (($target eq 'tex') || ($target eq 'tex_answer')) {
$r->print("\n