[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Wed, 20 Mar 2002 22:13:19 -0000
sakharuk Wed Mar 20 17:13:19 2002 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
corrections for the latex output
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.84 loncom/homework/structuretags.pm:1.85
--- loncom/homework/structuretags.pm:1.84 Wed Mar 6 15:22:12 2002
+++ loncom/homework/structuretags.pm Wed Mar 20 17:13:19 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.84 2002/03/06 20:22:12 matthew Exp $
+# $Id: structuretags.pm,v 1.85 2002/03/20 22:13:19 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -297,7 +297,7 @@
$result=$token->[4];
$result.=&Apache::edit::handle_insert();
} elsif ($target eq 'tex') {
- $result .= '\begin{document}\noindent\textbf{Problem.}\newline';
+ $result .= '\begin{document} ';
} else {
# page_start returned a starting result, delete it if we don't need it
$result = '';
@@ -341,7 +341,7 @@
&Apache::lonxml::debug("in end_problem with $target, edit");
$result='<br /><input type="submit" name="submit" value="Submit Changes" />';
} elsif ($target eq 'tex') {
- $result .= '\end{document}';
+ $result .= '\noindent\makebox[9.0cm][b]{\hrulefill}\end{document}';
}
return $result;
}
@@ -616,6 +616,9 @@
if ($target eq 'modified') {
$text=&Apache::lonxml::get_all_text("endouttext",$$parser['-1']);
$result='<startouttext />'.&Apache::edit::modifiedfield();
+ }
+ if ($target eq 'tex') {
+ $result .= '\noindent ';
}
return $result;
}