[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm structuretags.pm
foxr
foxr@source.lon-capa.org
Sat, 02 May 2009 22:18:24 -0000
foxr Sat May 2 22:18:24 2009 EDT
Modified files:
/loncom/homework bridgetask.pm structuretags.pm
Log:
remove \begin{document} from here as it's now output in londefdef.pm's common
header emission code.. finally latex headers only in one spot (probably).
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.247 loncom/homework/bridgetask.pm:1.248
--- loncom/homework/bridgetask.pm:1.247 Fri Mar 27 01:07:10 2009
+++ loncom/homework/bridgetask.pm Sat May 2 22:18:24 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.247 2009/03/27 01:07:10 raeburn Exp $
+# $Id: bridgetask.pm,v 1.248 2009/05/02 22:18:24 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -714,7 +714,7 @@
}
$result.=$msg.'<br />';
} elsif ($target eq 'tex') {
- $result.='\begin{document}\noindent \vskip 1 mm \begin{minipage}{\textwidth}\vskip 0 mm';
+ $result.='\noindent \vskip 1 mm \begin{minipage}{\textwidth}\vskip 0 mm';
if ($status eq 'UNAVAILABLE') {
$result.=&mt('Unable to determine if this resource is open due to network problems. Please try again later.').'\vskip 0 mm ';
} else {
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.442 loncom/homework/structuretags.pm:1.443
--- loncom/homework/structuretags.pm:1.442 Mon Apr 6 13:29:02 2009
+++ loncom/homework/structuretags.pm Sat May 2 22:18:24 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.442 2009/04/06 13:29:02 bisitz Exp $
+# $Id: structuretags.pm,v 1.443 2009/05/02 22:18:24 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -957,7 +957,7 @@
} elsif ($target eq 'tex') {
my $startminipage = ($env{'form.problem_split'}=~/yes/i)? ''
: '\begin{minipage}{\textwidth}';
- $result.='\begin{document}\noindent \vskip 1 mm '.
+ $result.='\noindent \vskip 1 mm '.
$startminipage.'\vskip 0 mm';
if ($status eq 'UNAVAILABLE') {
$result.=&mt('Unable to determine if this resource is open due to network problems. Please try again later.').'\vskip 0 mm ';
@@ -1058,7 +1058,7 @@
$allow_print_points=0;
}
my $name_of_resourse= &Apache::lonxml::latex_special_symbols(&get_resource_name($parstack,$safeeval),'header');
- my $begin_doc='\begin{document} \typeout{STAMPOFPASSEDRESOURCESTART Resource <h2>"'.$name_of_resourse.'"</h2> located in <br /><small><b>'.$env{'request.uri'}.'</b></small><br /> STAMPOFPASSEDRESOURCEEND} \noindent ';
+ my $begin_doc=' \typeout{STAMPOFPASSEDRESOURCESTART Resource <h2>"'.$name_of_resourse.'"</h2> located in <br /><small><b>'.$env{'request.uri'}.'</b></small><br /> STAMPOFPASSEDRESOURCEEND} \noindent ';
my $toc_line='\vskip 1 mm\noindent '.$startminipage.
'\addcontentsline{toc}{subsection}{'.$name_of_resourse.'}';