version 1.376, 2007/09/10 19:50:20
|
version 1.379, 2007/10/15 19:40:53
|
Line 578 sub start_body {
|
Line 578 sub start_body {
|
'force_register' => 1}); |
'force_register' => 1}); |
|
|
if ($env{'request.state'} ne 'published') { |
if ($env{'request.state'} ne 'published') { |
|
$currentstring.=&Apache::lonmenu::constspaceform(); |
|
$currentstring.=&Apache::londefdef::edit_controls(); |
} |
} |
$currentstring.=&Apache::lonxml::message_location(); |
$currentstring.=&Apache::lonxml::message_location(); |
$currentstring.=&Apache::londefdef::edit_controls(); |
|
} elsif ($target eq 'tex') { |
} elsif ($target eq 'tex') { |
$currentstring = '\begin{document}'; |
$currentstring = '\begin{document}'; |
} |
} |
Line 589 sub start_body {
|
Line 589 sub start_body {
|
} |
} |
|
|
sub edit_controls { |
sub edit_controls { |
my $result = &Apache::lonmenu::constspaceform(); |
my $result .= (<<EDITBUTTON); |
$result .= (<<EDITBUTTON); |
|
<form method="post"> |
<form method="post"> |
<input type="submit" name="editmode" accesskey="e" value="Edit" /> |
<input type="submit" name="editmode" accesskey="e" value="Edit" /> |
</form> |
</form> |
Line 4544 sub align_latex_image {
|
Line 4543 sub align_latex_image {
|
my ($align, $latex_rendering, $image, $width, $height) = @_; |
my ($align, $latex_rendering, $image, $width, $height) = @_; |
my $currentstring; # The 1/2 wrapped image. |
my $currentstring; # The 1/2 wrapped image. |
my $closure; # The closure of the wrappage. |
my $closure; # The closure of the wrappage. |
|
|
|
# if it's none just return it back |
|
if ($latex_rendering eq 'none') { |
|
return ($image,''); |
|
} |
|
|
# If there's an alignment specification we need to honor it here. |
# If there's an alignment specification we need to honor it here. |
# For the horizontal alignments, we will also honor the |
# For the horizontal alignments, we will also honor the |
# value of the latex specfication. The default is parbox, |
# value of the latex specfication. The default is parbox, |