On 1 lis, 15:08, "ma...@mendelu.cz" <ma...@mendelu.cz> wrote:
>
> I have two another improvements (and changed the script at
> http://user.mendelu.cz/marik/sage/sage2tex)
>
btw: another improvement in current http://user.mendelu.cz/marik/sage/sage2tex
(from October 30) are lines
lines 46-48
worksheet=open("sage_worksheet/worksheet.txt",'r')
title = worksheet.readline()
worksheet.close()
lines 184-190 from TeX preamble:
\usepackage{eso-pic}
\definecolor{mygreen}{RGB}{10,80,40}
\AddToShipoutPicture{\hbox to \paperwidth{\color{mygreen}\vrule
width 0.5em height\paperheight
\raise 2pt\hbox to \paperwidth{\tiny\hss\color{mygreen}\textrm {Robert
Ma\v{r}\'{\i}k}: \titlename \quad \hss Sage worksheet converted by
\href{http://user.mendelu.cz/marik/sage/sage2tex}{\texttt{sage2tex}}
\qquad}}}%
and line 206
+"\\def\\titlename{"+do_substitutions(title)+
this is used to write name of the author and name of the worksheet in
bottom line.
The name of the author is hardwired in my version, however it could be
perhaps passed from command line or config file.
I am thinking also on possibility how to translate the stuff D
[0,0]\left(y\right) into y''. I think that the simplest solution is to
allow users custom substitutions specified from command line or from
config file. And I think that there is a trac which will fix this
notation.
Questions to more experienced Sage users and developers:
----------------------------------------------------------------------------------
when exporting sws file and unpacking, I do not understand the
following
1. what is the difference between sage_workseet/worksheet.html and
sage_workseet/worksheet.txt ? (neglecting the ffirst two lines, the
rest is identical in my notebooks)
2. My worksheet.html looks like this
{{{id=1|
x,y=var('x y')
///
}}}
{{{id=2|
plot(sin(x),(x,0,3))
///
<html><font color='black'><img src='cell://sage0.png'></font></html>
}}}
{{{id=3|
plot(sin(x),(x,0,6),filename="sage0.pdf")
///
<html><font color='black'><img src='cell://sage0.pdf'></font></html>
}}}
{{{id=4|
plot3d(x^2-y^2,(x,-1,1),(y,-1,1),viewer='tachyon')
///
}}}
{{{id=5|
///
}}}
Why is line like <html><font color='black'><img src='cell://
sage0.png'></font></html> missing in the output for cell id=4. The
file with the picture is in the directory and the picture is in the
notebook - exactly like for output of 2d plot in cell id=2. Is there
any reason to skip it, or is it a bug?
Thank you.
Robert
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---