Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2013-02-15 Thread Thomas Coffee
In case it is helpful to anyone, I am posting below a recent
conversation working out some issues with an installation of the
SageTeX module previously discussed on this thread:


Dear mr McCoffee,

I was very excited when I discovered your module for integrating Sage
with LyX. But I'm afraid I need a little bit more help to make it
work.

I managed to setup the one-step conversion in LyX, however, when I
apply it to your file example.lyx all sage-blocks display as double
questionmarks in the .pdf file. Can you point me to a more detailed
tutorial on how to use this LyX module?

Here is what I did:

downloaded example.lyx, setup.sh, compile-pdf-sage.sh, sage.module
and preferences to the desktop
edited setup.sh to reflect non-standard paths on my system
(~/.lyx2 and /opt/sage-5.2)
ran setup.sh (sudo bash setup.sh)

I checked that compile-pdf-sage.sh is copied to the sage directory,
the preferences file to ~/lyx2 and sage.module to the layouts folder
in ~/lyx2.

I also copied sagetex.sty to /home/dd/texmf, my user texmf folder.

I noticed the following error in the console from which I started LyX2:

insets/InsetLayout.cpp (191): Flex insets must have names of the form
`Flex:name'.
This one has the name `sagecommand'

I hope you can help me out,
yours sincerely

Dirk Danckaert



Hi Dirk,

I'm currently running LyX 2.0.0 with Sage 4.8 on Ubuntu 11.10. Since
my Sage version is old (for complicated reasons), it's possible
something has changed in SageTeX, but let's try some other things
before I install another Sage.

I get the same message you do about the insets, along with some other
LyX complaints, and they are not causing me problems (yet), so that
may not be something to worry about.

Since you're on Ubuntu, one possible source of trouble (which happened
to me when I changed machines) is that, if you're using TeXLive, the
potentially mis-matched version of SageTeX that it includes can stick
around and pre-empt the correct one (even if you've followed the
instructions --- http://www.sagemath.org/doc/installation/sagetex.html
--- to install the one from your Sage distribution into LaTeX. Try
making sure it's gone by doing something like

sudo rm -r /usr/share/texmf-texlive/tex/latex/sagetex
sudo texhash

- Thomas



Hi Thomas,

I have corrected at least one error while checking things out again.
Seems the copying of sagetex.sty had not been done as it should.
However, still no joy. I did the two sudo-commands, with no
error-messages. I loaded example.lyx and tried a .pdf-export (I chose
/File/Export/PDF (pdflatex+sagetex). As a result I got the error
message

An error occurred while running:

compile-pdf-sage.sh example.sagetex.sage


I tried to make sense of that but I couldn't:

compile-pdf-sage.sh must be located in the SAGE-directory, isn't it?
So how does it find the .sagetex.sage-file?

I tried to locate example.sagetex.sage (I thought this is an
intermediate file produced by LyX) in the directory that contained
example.lyx (a folder on my desktop) but it wasn't there.

Is there perhaps a simpler test that I could perform, e.g. just
calculate 1+1 in LyX?

Dirk



Hi Dirk,

In order to figure out what's going on, please try running LyX from a
terminal window and running the export again --- then the error
messages from the call to compile-pdf-sage.sh will be visible in the
terminal.

I believe you edited the setup.sh script included with the module to
point to your Sage installation at /opt/sage-5.2. The script normally
puts compile-pdf-sage.sh in this same directory and adds that
directory to the execution path. However, it doesn't make that change
to the execution path permanent --- when you start a new shell, it
won't be there --- so in retrospect, it's probably a better idea to
move or link compile-pdf-sage.sh to somewhere like /usr/local/bin
where it can always be found. You can always do `echo $PATH' to make
sure it's somewhere findable. (The reason I did it this way was that,
in the Sage installations I had used before, it was normally necessary
to permanently add the Sage directory to the execution path anyway, so
it didn't occur to me this would be a problem.)

In the LyX that I'm running, it does all its LaTeX file operations in
an auto-generated temporary directory with a name like
`/tmp/lyx_tmpdir.J23736/lyx_tmpbuf2' (to avoid cluttering your file
system). This is where I would expect `example.sagetex.sage' to
appear. It might be helpful to see the files it generates in this
directory to make sure things are working right --- but whenever we
make any changes, clear out the old files so we know what's new.

If you want, you can replace the Sage insets in example.lyx with a
single simpler one, but I doubt it will help much --- once we get Sage
doing its job, the whole thing should run very fast.


- Thomas



Hi Thomas,

First I have to thank you for your time and patience. But I think I'm
making progress. As you assumed, the system couldn't find
compile-pdf-sage.sh, 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2013-02-15 Thread Scott Kostyshak
Thanks for continuing to support the module. I'm not sure if you have
the time, but it would be great if some the useful tips were posted on
a wiki page, which many users find easier to read than going through
an email conversation. You could make a page and then link to it from
the module description:
http://wiki.lyx.org/Layouts/Modules#toc7

Thanks,

Scott

On Fri, Feb 15, 2013 at 3:42 PM, Thomas Coffee thomasmcof...@gmail.com wrote:
 In case it is helpful to anyone, I am posting below a recent
 conversation working out some issues with an installation of the
 SageTeX module previously discussed on this thread:


 Dear mr McCoffee,

 I was very excited when I discovered your module for integrating Sage
 with LyX. But I'm afraid I need a little bit more help to make it
 work.

 I managed to setup the one-step conversion in LyX, however, when I
 apply it to your file example.lyx all sage-blocks display as double
 questionmarks in the .pdf file. Can you point me to a more detailed
 tutorial on how to use this LyX module?

 Here is what I did:

 downloaded example.lyx, setup.sh, compile-pdf-sage.sh, sage.module
 and preferences to the desktop
 edited setup.sh to reflect non-standard paths on my system
 (~/.lyx2 and /opt/sage-5.2)
 ran setup.sh (sudo bash setup.sh)

 I checked that compile-pdf-sage.sh is copied to the sage directory,
 the preferences file to ~/lyx2 and sage.module to the layouts folder
 in ~/lyx2.

 I also copied sagetex.sty to /home/dd/texmf, my user texmf folder.

 I noticed the following error in the console from which I started LyX2:

 insets/InsetLayout.cpp (191): Flex insets must have names of the form
 `Flex:name'.
 This one has the name `sagecommand'

 I hope you can help me out,
 yours sincerely

 Dirk Danckaert



 Hi Dirk,

 I'm currently running LyX 2.0.0 with Sage 4.8 on Ubuntu 11.10. Since
 my Sage version is old (for complicated reasons), it's possible
 something has changed in SageTeX, but let's try some other things
 before I install another Sage.

 I get the same message you do about the insets, along with some other
 LyX complaints, and they are not causing me problems (yet), so that
 may not be something to worry about.

 Since you're on Ubuntu, one possible source of trouble (which happened
 to me when I changed machines) is that, if you're using TeXLive, the
 potentially mis-matched version of SageTeX that it includes can stick
 around and pre-empt the correct one (even if you've followed the
 instructions --- http://www.sagemath.org/doc/installation/sagetex.html
 --- to install the one from your Sage distribution into LaTeX. Try
 making sure it's gone by doing something like

 sudo rm -r /usr/share/texmf-texlive/tex/latex/sagetex
 sudo texhash

 - Thomas



 Hi Thomas,

 I have corrected at least one error while checking things out again.
 Seems the copying of sagetex.sty had not been done as it should.
 However, still no joy. I did the two sudo-commands, with no
 error-messages. I loaded example.lyx and tried a .pdf-export (I chose
 /File/Export/PDF (pdflatex+sagetex). As a result I got the error
 message

 An error occurred while running:

 compile-pdf-sage.sh example.sagetex.sage


 I tried to make sense of that but I couldn't:

 compile-pdf-sage.sh must be located in the SAGE-directory, isn't it?
 So how does it find the .sagetex.sage-file?

 I tried to locate example.sagetex.sage (I thought this is an
 intermediate file produced by LyX) in the directory that contained
 example.lyx (a folder on my desktop) but it wasn't there.

 Is there perhaps a simpler test that I could perform, e.g. just
 calculate 1+1 in LyX?

 Dirk



 Hi Dirk,

 In order to figure out what's going on, please try running LyX from a
 terminal window and running the export again --- then the error
 messages from the call to compile-pdf-sage.sh will be visible in the
 terminal.

 I believe you edited the setup.sh script included with the module to
 point to your Sage installation at /opt/sage-5.2. The script normally
 puts compile-pdf-sage.sh in this same directory and adds that
 directory to the execution path. However, it doesn't make that change
 to the execution path permanent --- when you start a new shell, it
 won't be there --- so in retrospect, it's probably a better idea to
 move or link compile-pdf-sage.sh to somewhere like /usr/local/bin
 where it can always be found. You can always do `echo $PATH' to make
 sure it's somewhere findable. (The reason I did it this way was that,
 in the Sage installations I had used before, it was normally necessary
 to permanently add the Sage directory to the execution path anyway, so
 it didn't occur to me this would be a problem.)

 In the LyX that I'm running, it does all its LaTeX file operations in
 an auto-generated temporary directory with a name like
 `/tmp/lyx_tmpdir.J23736/lyx_tmpbuf2' (to avoid cluttering your file
 system). This is where I would expect `example.sagetex.sage' to
 appear. It might be helpful to see the 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2013-02-15 Thread Thomas Coffee
In case it is helpful to anyone, I am posting below a recent
conversation working out some issues with an installation of the
SageTeX module previously discussed on this thread:


Dear mr McCoffee,

I was very excited when I discovered your module for integrating Sage
with LyX. But I'm afraid I need a little bit more help to make it
work.

I managed to setup the one-step conversion in LyX, however, when I
apply it to your file example.lyx all sage-blocks display as double
questionmarks in the .pdf file. Can you point me to a more detailed
tutorial on how to use this LyX module?

Here is what I did:

downloaded example.lyx, setup.sh, compile-pdf-sage.sh, sage.module
and preferences to the desktop
edited setup.sh to reflect non-standard paths on my system
(~/.lyx2 and /opt/sage-5.2)
ran setup.sh (sudo bash setup.sh)

I checked that compile-pdf-sage.sh is copied to the sage directory,
the preferences file to ~/lyx2 and sage.module to the layouts folder
in ~/lyx2.

I also copied sagetex.sty to /home/dd/texmf, my user texmf folder.

I noticed the following error in the console from which I started LyX2:

insets/InsetLayout.cpp (191): Flex insets must have names of the form
`Flex:name'.
This one has the name `sagecommand'

I hope you can help me out,
yours sincerely

Dirk Danckaert



Hi Dirk,

I'm currently running LyX 2.0.0 with Sage 4.8 on Ubuntu 11.10. Since
my Sage version is old (for complicated reasons), it's possible
something has changed in SageTeX, but let's try some other things
before I install another Sage.

I get the same message you do about the insets, along with some other
LyX complaints, and they are not causing me problems (yet), so that
may not be something to worry about.

Since you're on Ubuntu, one possible source of trouble (which happened
to me when I changed machines) is that, if you're using TeXLive, the
potentially mis-matched version of SageTeX that it includes can stick
around and pre-empt the correct one (even if you've followed the
instructions --- http://www.sagemath.org/doc/installation/sagetex.html
--- to install the one from your Sage distribution into LaTeX. Try
making sure it's gone by doing something like

sudo rm -r /usr/share/texmf-texlive/tex/latex/sagetex
sudo texhash

- Thomas



Hi Thomas,

I have corrected at least one error while checking things out again.
Seems the copying of sagetex.sty had not been done as it should.
However, still no joy. I did the two sudo-commands, with no
error-messages. I loaded example.lyx and tried a .pdf-export (I chose
/File/Export/PDF (pdflatex+sagetex). As a result I got the error
message

An error occurred while running:

compile-pdf-sage.sh example.sagetex.sage


I tried to make sense of that but I couldn't:

compile-pdf-sage.sh must be located in the SAGE-directory, isn't it?
So how does it find the .sagetex.sage-file?

I tried to locate example.sagetex.sage (I thought this is an
intermediate file produced by LyX) in the directory that contained
example.lyx (a folder on my desktop) but it wasn't there.

Is there perhaps a simpler test that I could perform, e.g. just
calculate 1+1 in LyX?

Dirk



Hi Dirk,

In order to figure out what's going on, please try running LyX from a
terminal window and running the export again --- then the error
messages from the call to compile-pdf-sage.sh will be visible in the
terminal.

I believe you edited the setup.sh script included with the module to
point to your Sage installation at /opt/sage-5.2. The script normally
puts compile-pdf-sage.sh in this same directory and adds that
directory to the execution path. However, it doesn't make that change
to the execution path permanent --- when you start a new shell, it
won't be there --- so in retrospect, it's probably a better idea to
move or link compile-pdf-sage.sh to somewhere like /usr/local/bin
where it can always be found. You can always do `echo $PATH' to make
sure it's somewhere findable. (The reason I did it this way was that,
in the Sage installations I had used before, it was normally necessary
to permanently add the Sage directory to the execution path anyway, so
it didn't occur to me this would be a problem.)

In the LyX that I'm running, it does all its LaTeX file operations in
an auto-generated temporary directory with a name like
`/tmp/lyx_tmpdir.J23736/lyx_tmpbuf2' (to avoid cluttering your file
system). This is where I would expect `example.sagetex.sage' to
appear. It might be helpful to see the files it generates in this
directory to make sure things are working right --- but whenever we
make any changes, clear out the old files so we know what's new.

If you want, you can replace the Sage insets in example.lyx with a
single simpler one, but I doubt it will help much --- once we get Sage
doing its job, the whole thing should run very fast.


- Thomas



Hi Thomas,

First I have to thank you for your time and patience. But I think I'm
making progress. As you assumed, the system couldn't find
compile-pdf-sage.sh, 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2013-02-15 Thread Scott Kostyshak
Thanks for continuing to support the module. I'm not sure if you have
the time, but it would be great if some the useful tips were posted on
a wiki page, which many users find easier to read than going through
an email conversation. You could make a page and then link to it from
the module description:
http://wiki.lyx.org/Layouts/Modules#toc7

Thanks,

Scott

On Fri, Feb 15, 2013 at 3:42 PM, Thomas Coffee thomasmcof...@gmail.com wrote:
 In case it is helpful to anyone, I am posting below a recent
 conversation working out some issues with an installation of the
 SageTeX module previously discussed on this thread:


 Dear mr McCoffee,

 I was very excited when I discovered your module for integrating Sage
 with LyX. But I'm afraid I need a little bit more help to make it
 work.

 I managed to setup the one-step conversion in LyX, however, when I
 apply it to your file example.lyx all sage-blocks display as double
 questionmarks in the .pdf file. Can you point me to a more detailed
 tutorial on how to use this LyX module?

 Here is what I did:

 downloaded example.lyx, setup.sh, compile-pdf-sage.sh, sage.module
 and preferences to the desktop
 edited setup.sh to reflect non-standard paths on my system
 (~/.lyx2 and /opt/sage-5.2)
 ran setup.sh (sudo bash setup.sh)

 I checked that compile-pdf-sage.sh is copied to the sage directory,
 the preferences file to ~/lyx2 and sage.module to the layouts folder
 in ~/lyx2.

 I also copied sagetex.sty to /home/dd/texmf, my user texmf folder.

 I noticed the following error in the console from which I started LyX2:

 insets/InsetLayout.cpp (191): Flex insets must have names of the form
 `Flex:name'.
 This one has the name `sagecommand'

 I hope you can help me out,
 yours sincerely

 Dirk Danckaert



 Hi Dirk,

 I'm currently running LyX 2.0.0 with Sage 4.8 on Ubuntu 11.10. Since
 my Sage version is old (for complicated reasons), it's possible
 something has changed in SageTeX, but let's try some other things
 before I install another Sage.

 I get the same message you do about the insets, along with some other
 LyX complaints, and they are not causing me problems (yet), so that
 may not be something to worry about.

 Since you're on Ubuntu, one possible source of trouble (which happened
 to me when I changed machines) is that, if you're using TeXLive, the
 potentially mis-matched version of SageTeX that it includes can stick
 around and pre-empt the correct one (even if you've followed the
 instructions --- http://www.sagemath.org/doc/installation/sagetex.html
 --- to install the one from your Sage distribution into LaTeX. Try
 making sure it's gone by doing something like

 sudo rm -r /usr/share/texmf-texlive/tex/latex/sagetex
 sudo texhash

 - Thomas



 Hi Thomas,

 I have corrected at least one error while checking things out again.
 Seems the copying of sagetex.sty had not been done as it should.
 However, still no joy. I did the two sudo-commands, with no
 error-messages. I loaded example.lyx and tried a .pdf-export (I chose
 /File/Export/PDF (pdflatex+sagetex). As a result I got the error
 message

 An error occurred while running:

 compile-pdf-sage.sh example.sagetex.sage


 I tried to make sense of that but I couldn't:

 compile-pdf-sage.sh must be located in the SAGE-directory, isn't it?
 So how does it find the .sagetex.sage-file?

 I tried to locate example.sagetex.sage (I thought this is an
 intermediate file produced by LyX) in the directory that contained
 example.lyx (a folder on my desktop) but it wasn't there.

 Is there perhaps a simpler test that I could perform, e.g. just
 calculate 1+1 in LyX?

 Dirk



 Hi Dirk,

 In order to figure out what's going on, please try running LyX from a
 terminal window and running the export again --- then the error
 messages from the call to compile-pdf-sage.sh will be visible in the
 terminal.

 I believe you edited the setup.sh script included with the module to
 point to your Sage installation at /opt/sage-5.2. The script normally
 puts compile-pdf-sage.sh in this same directory and adds that
 directory to the execution path. However, it doesn't make that change
 to the execution path permanent --- when you start a new shell, it
 won't be there --- so in retrospect, it's probably a better idea to
 move or link compile-pdf-sage.sh to somewhere like /usr/local/bin
 where it can always be found. You can always do `echo $PATH' to make
 sure it's somewhere findable. (The reason I did it this way was that,
 in the Sage installations I had used before, it was normally necessary
 to permanently add the Sage directory to the execution path anyway, so
 it didn't occur to me this would be a problem.)

 In the LyX that I'm running, it does all its LaTeX file operations in
 an auto-generated temporary directory with a name like
 `/tmp/lyx_tmpdir.J23736/lyx_tmpbuf2' (to avoid cluttering your file
 system). This is where I would expect `example.sagetex.sage' to
 appear. It might be helpful to see the 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2013-02-15 Thread Thomas Coffee
In case it is helpful to anyone, I am posting below a recent
conversation working out some issues with an installation of the
SageTeX module previously discussed on this thread:


Dear mr McCoffee,

I was very excited when I discovered your module for integrating Sage
with LyX. But I'm afraid I need a little bit more help to make it
work.

I managed to setup the one-step conversion in LyX, however, when I
apply it to your file example.lyx all sage-blocks display as double
questionmarks in the .pdf file. Can you point me to a more detailed
tutorial on how to use this LyX module?

Here is what I did:

downloaded example.lyx, setup.sh, compile-pdf-sage.sh, sage.module
and preferences to the desktop
edited setup.sh to reflect non-standard paths on my system
(~/.lyx2 and /opt/sage-5.2)
ran setup.sh (sudo bash setup.sh)

I checked that compile-pdf-sage.sh is copied to the sage directory,
the preferences file to ~/lyx2 and sage.module to the layouts folder
in ~/lyx2.

I also copied sagetex.sty to /home/dd/texmf, my user texmf folder.

I noticed the following error in the console from which I started LyX2:

insets/InsetLayout.cpp (191): Flex insets must have names of the form
`Flex:'.
This one has the name `sagecommand'

I hope you can help me out,
yours sincerely

Dirk Danckaert



Hi Dirk,

I'm currently running LyX 2.0.0 with Sage 4.8 on Ubuntu 11.10. Since
my Sage version is old (for complicated reasons), it's possible
something has changed in SageTeX, but let's try some other things
before I install another Sage.

I get the same message you do about the insets, along with some other
LyX complaints, and they are not causing me problems (yet), so that
may not be something to worry about.

Since you're on Ubuntu, one possible source of trouble (which happened
to me when I changed machines) is that, if you're using TeXLive, the
potentially mis-matched version of SageTeX that it includes can stick
around and pre-empt the correct one (even if you've followed the
instructions --- http://www.sagemath.org/doc/installation/sagetex.html
--- to install the one from your Sage distribution into LaTeX. Try
making sure it's gone by doing something like

sudo rm -r /usr/share/texmf-texlive/tex/latex/sagetex
sudo texhash

- Thomas



Hi Thomas,

I have corrected at least one error while checking things out again.
Seems the copying of sagetex.sty had not been done as it should.
However, still no joy. I did the two sudo-commands, with no
error-messages. I loaded example.lyx and tried a .pdf-export (I chose
/File/Export/PDF (pdflatex+sagetex). As a result I got the error
message

An error occurred while running:

compile-pdf-sage.sh "example.sagetex.sage"


I tried to make sense of that but I couldn't:

compile-pdf-sage.sh must be located in the SAGE-directory, isn't it?
So how does it find the .sagetex.sage-file?

I tried to locate example.sagetex.sage (I thought this is an
intermediate file produced by LyX) in the directory that contained
example.lyx (a folder on my desktop) but it wasn't there.

Is there perhaps a simpler test that I could perform, e.g. just
calculate 1+1 in LyX?

Dirk



Hi Dirk,

In order to figure out what's going on, please try running LyX from a
terminal window and running the export again --- then the error
messages from the call to compile-pdf-sage.sh will be visible in the
terminal.

I believe you edited the setup.sh script included with the module to
point to your Sage installation at /opt/sage-5.2. The script normally
puts compile-pdf-sage.sh in this same directory and adds that
directory to the execution path. However, it doesn't make that change
to the execution path permanent --- when you start a new shell, it
won't be there --- so in retrospect, it's probably a better idea to
move or link compile-pdf-sage.sh to somewhere like /usr/local/bin
where it can always be found. You can always do `echo $PATH' to make
sure it's somewhere findable. (The reason I did it this way was that,
in the Sage installations I had used before, it was normally necessary
to permanently add the Sage directory to the execution path anyway, so
it didn't occur to me this would be a problem.)

In the LyX that I'm running, it does all its LaTeX file operations in
an auto-generated temporary directory with a name like
`/tmp/lyx_tmpdir.J23736/lyx_tmpbuf2' (to avoid cluttering your file
system). This is where I would expect `example.sagetex.sage' to
appear. It might be helpful to see the files it generates in this
directory to make sure things are working right --- but whenever we
make any changes, clear out the old files so we know what's new.

If you want, you can replace the Sage insets in example.lyx with a
single simpler one, but I doubt it will help much --- once we get Sage
doing its job, the whole thing should run very fast.


- Thomas



Hi Thomas,

First I have to thank you for your time and patience. But I think I'm
making progress. As you assumed, the system couldn't find
compile-pdf-sage.sh, and 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2013-02-15 Thread Scott Kostyshak
Thanks for continuing to support the module. I'm not sure if you have
the time, but it would be great if some the useful tips were posted on
a wiki page, which many users find easier to read than going through
an email conversation. You could make a page and then link to it from
the module description:
http://wiki.lyx.org/Layouts/Modules#toc7

Thanks,

Scott

On Fri, Feb 15, 2013 at 3:42 PM, Thomas Coffee  wrote:
> In case it is helpful to anyone, I am posting below a recent
> conversation working out some issues with an installation of the
> SageTeX module previously discussed on this thread:
>
>
> Dear mr McCoffee,
>
> I was very excited when I discovered your module for integrating Sage
> with LyX. But I'm afraid I need a little bit more help to make it
> work.
>
> I managed to setup the one-step conversion in LyX, however, when I
> apply it to your file example.lyx all sage-blocks display as double
> questionmarks in the .pdf file. Can you point me to a more detailed
> tutorial on how to use this LyX module?
>
> Here is what I did:
>
> downloaded example.lyx, setup.sh, compile-pdf-sage.sh, sage.module
> and preferences to the desktop
> edited setup.sh to reflect non-standard paths on my system
> (~/.lyx2 and /opt/sage-5.2)
> ran setup.sh (sudo bash setup.sh)
>
> I checked that compile-pdf-sage.sh is copied to the sage directory,
> the preferences file to ~/lyx2 and sage.module to the layouts folder
> in ~/lyx2.
>
> I also copied sagetex.sty to /home/dd/texmf, my user texmf folder.
>
> I noticed the following error in the console from which I started LyX2:
>
> insets/InsetLayout.cpp (191): Flex insets must have names of the form
> `Flex:'.
> This one has the name `sagecommand'
>
> I hope you can help me out,
> yours sincerely
>
> Dirk Danckaert
>
>
>
> Hi Dirk,
>
> I'm currently running LyX 2.0.0 with Sage 4.8 on Ubuntu 11.10. Since
> my Sage version is old (for complicated reasons), it's possible
> something has changed in SageTeX, but let's try some other things
> before I install another Sage.
>
> I get the same message you do about the insets, along with some other
> LyX complaints, and they are not causing me problems (yet), so that
> may not be something to worry about.
>
> Since you're on Ubuntu, one possible source of trouble (which happened
> to me when I changed machines) is that, if you're using TeXLive, the
> potentially mis-matched version of SageTeX that it includes can stick
> around and pre-empt the correct one (even if you've followed the
> instructions --- http://www.sagemath.org/doc/installation/sagetex.html
> --- to install the one from your Sage distribution into LaTeX. Try
> making sure it's gone by doing something like
>
> sudo rm -r /usr/share/texmf-texlive/tex/latex/sagetex
> sudo texhash
>
> - Thomas
>
>
>
> Hi Thomas,
>
> I have corrected at least one error while checking things out again.
> Seems the copying of sagetex.sty had not been done as it should.
> However, still no joy. I did the two sudo-commands, with no
> error-messages. I loaded example.lyx and tried a .pdf-export (I chose
> /File/Export/PDF (pdflatex+sagetex). As a result I got the error
> message
>
> An error occurred while running:
>
> compile-pdf-sage.sh "example.sagetex.sage"
>
>
> I tried to make sense of that but I couldn't:
>
> compile-pdf-sage.sh must be located in the SAGE-directory, isn't it?
> So how does it find the .sagetex.sage-file?
>
> I tried to locate example.sagetex.sage (I thought this is an
> intermediate file produced by LyX) in the directory that contained
> example.lyx (a folder on my desktop) but it wasn't there.
>
> Is there perhaps a simpler test that I could perform, e.g. just
> calculate 1+1 in LyX?
>
> Dirk
>
>
>
> Hi Dirk,
>
> In order to figure out what's going on, please try running LyX from a
> terminal window and running the export again --- then the error
> messages from the call to compile-pdf-sage.sh will be visible in the
> terminal.
>
> I believe you edited the setup.sh script included with the module to
> point to your Sage installation at /opt/sage-5.2. The script normally
> puts compile-pdf-sage.sh in this same directory and adds that
> directory to the execution path. However, it doesn't make that change
> to the execution path permanent --- when you start a new shell, it
> won't be there --- so in retrospect, it's probably a better idea to
> move or link compile-pdf-sage.sh to somewhere like /usr/local/bin
> where it can always be found. You can always do `echo $PATH' to make
> sure it's somewhere findable. (The reason I did it this way was that,
> in the Sage installations I had used before, it was normally necessary
> to permanently add the Sage directory to the execution path anyway, so
> it didn't occur to me this would be a problem.)
>
> In the LyX that I'm running, it does all its LaTeX file operations in
> an auto-generated temporary directory with a name like
> `/tmp/lyx_tmpdir.J23736/lyx_tmpbuf2' (to avoid 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-02 Thread Thomas Coffee
The attachments on this thread have been posted to the wiki (thanks Christian):

http://wiki.lyx.org/Layouts/Modules/#toc7
http://wiki.lyx.org/uploads/Modules/Sage

Note that if you customize the sage.module file, you can load the
changes immediately by entering layout-reload in the minibuffer.

As Murat has done: I hereby grant permission to license my
contributions to the sage module for LyX under the GNU General Public
License, version 2 or later.

- Thomas


On Sun, Apr 1, 2012 at 12:03 PM, Murat Yildizoglu myi...@gmail.com wrote:
 Good idea, thanks a lot for the suggestion Xu. Here is my statement (I put
 the devel list as CC) :

 I hereby grant permission to license my contributions to the SAGE module for
 LyX under the GNU
 General Public Licence, version 2 or later.

 Murat Yildizoglu


 2012/3/31 Xu Wang xuwang...@gmail.com

 Dear Thomas

 Excellent news! Thank you for your continued work. I have not taken a fine
 look at this yet, but I also use Ubuntu so it looks like it might be useful.

 I'm not sure but I think for your contributions to be used you have to
 give permission explicitly. Look at this email:

 http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
 You can send something like that to the development list, lyx-devel

 And it could be a good idea for Murat to do the same.

 I'm not sure though.

 In any case, thank you for your continued work. I am appreciative. Xu



 On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee thomasmcof...@gmail.com
 wrote:

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
  help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
  If I
  get any answer to my questions, I can construct a little bit smarter
  module
  but the one we have now is already usable. With some supplementary
  tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this
  would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
  file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
   transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu
   myi...@gmail.comwrote:
  
   Just another mail to correct a problem with the preceding Lyx file
   (see
   the new file attached, and the $ signs in ERT boxes, this is
   connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is
   this
   possible at all? Especially in displayed equation where one would
   like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
   member
   in a displayed equation and the right member in a sagecode inset
   that would
   be converted to the expression I give
    (\sage{integral(x/(x^2+1),x,0,1))
          \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
   Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand,
   because
    x^2 in the right member must not be interpreted by LyX, since
   Sage will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-02 Thread Thomas Coffee
The attachments on this thread have been posted to the wiki (thanks Christian):

http://wiki.lyx.org/Layouts/Modules/#toc7
http://wiki.lyx.org/uploads/Modules/Sage

Note that if you customize the sage.module file, you can load the
changes immediately by entering layout-reload in the minibuffer.

As Murat has done: I hereby grant permission to license my
contributions to the sage module for LyX under the GNU General Public
License, version 2 or later.

- Thomas


On Sun, Apr 1, 2012 at 12:03 PM, Murat Yildizoglu myi...@gmail.com wrote:
 Good idea, thanks a lot for the suggestion Xu. Here is my statement (I put
 the devel list as CC) :

 I hereby grant permission to license my contributions to the SAGE module for
 LyX under the GNU
 General Public Licence, version 2 or later.

 Murat Yildizoglu


 2012/3/31 Xu Wang xuwang...@gmail.com

 Dear Thomas

 Excellent news! Thank you for your continued work. I have not taken a fine
 look at this yet, but I also use Ubuntu so it looks like it might be useful.

 I'm not sure but I think for your contributions to be used you have to
 give permission explicitly. Look at this email:

 http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
 You can send something like that to the development list, lyx-devel

 And it could be a good idea for Murat to do the same.

 I'm not sure though.

 In any case, thank you for your continued work. I am appreciative. Xu



 On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee thomasmcof...@gmail.com
 wrote:

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
  help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
  If I
  get any answer to my questions, I can construct a little bit smarter
  module
  but the one we have now is already usable. With some supplementary
  tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this
  would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
  file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
   transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu
   myi...@gmail.comwrote:
  
   Just another mail to correct a problem with the preceding Lyx file
   (see
   the new file attached, and the $ signs in ERT boxes, this is
   connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is
   this
   possible at all? Especially in displayed equation where one would
   like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
   member
   in a displayed equation and the right member in a sagecode inset
   that would
   be converted to the expression I give
    (\sage{integral(x/(x^2+1),x,0,1))
          \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
   Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand,
   because
    x^2 in the right member must not be interpreted by LyX, since
   Sage will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-02 Thread Thomas Coffee
The attachments on this thread have been posted to the wiki (thanks Christian):

http://wiki.lyx.org/Layouts/Modules/#toc7
http://wiki.lyx.org/uploads/Modules/Sage

Note that if you customize the sage.module file, you can load the
changes immediately by entering "layout-reload" in the minibuffer.

As Murat has done: I hereby grant permission to license my
contributions to the sage module for LyX under the GNU General Public
License, version 2 or later.

- Thomas


On Sun, Apr 1, 2012 at 12:03 PM, Murat Yildizoglu  wrote:
> Good idea, thanks a lot for the suggestion Xu. Here is my statement (I put
> the devel list as CC) :
>
> I hereby grant permission to license my contributions to the SAGE module for
> LyX under the GNU
> General Public Licence, version 2 or later.
>
> Murat Yildizoglu
>
>
> 2012/3/31 Xu Wang 
>>
>> Dear Thomas
>>
>> Excellent news! Thank you for your continued work. I have not taken a fine
>> look at this yet, but I also use Ubuntu so it looks like it might be useful.
>>
>> I'm not sure but I think for your contributions to be used you have to
>> give permission explicitly. Look at this email:
>>
>> http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
>> You can send something like that to the development list, lyx-devel
>>
>> And it could be a good idea for Murat to do the same.
>>
>> I'm not sure though.
>>
>> In any case, thank you for your continued work. I am appreciative. Xu
>>
>>
>>
>> On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee 
>> wrote:
>>>
>>> Hi Murat and Xu,
>>>
>>> I found your thread in the archives and did some further work on the
>>> LyX-SageTeX module that Murat posted previously.
>>>
>>> I fixed a few things that did not work for me in the version described
>>> earlier, and expanded the module specification to provide some
>>> additional conveniences for including literate Sage code in LyX
>>> documents. There's still much room for development and customization.
>>>
>>> The attachments comprise a set of files and a shell script "setup.sh"
>>> that should largely automate the configuration process on GNU/Linux
>>> systems.
>>>
>>> *** Help needed:
>>>
>>> For other interested users, I'd like to upload this to
>>> http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
>>> links anywhere under the upload path wiki.lyx.org/ipfm. The page
>>> http://wiki.lyx.org/Site/AboutUploading also tells me I will need
>>> someone to tell me the upload password. Can anyone assist?
>>>
>>> Thanks,
>>>  Thomas
>>>
>>>
>>> > Hi Xu,
>>> >
>>> > Thank you for your appreciation. I cannot advance anymore without any
>>> > help
>>> > from Lyx gurus.
>>> > I think I have extracted all the information I can from the help docs.
>>> > If I
>>> > get any answer to my questions, I can construct a little bit smarter
>>> > module
>>> > but the one we have now is already usable. With some supplementary
>>> > tricks
>>> > from the sagetex documentation and through manual executions of the
>>> > latex-sage-latex chain, it is possible to make a lot of computations.
>>> >
>>> > I was also very agreeably surprised that this module can be used for
>>> > conversion to HTML from LyX, with figures and all.
>>> >
>>> > I attach to this message the module in its actual stage and some
>>> > instruction for making the conversion chain functional. I hope this
>>> > would
>>> > already help some of you.
>>> >
>>> > As soon as I have more information, I will try to complete the module
>>> > file.
>>> >
>>> > Best regards,
>>> >
>>> > Murat
>>> >
>>> > 2011/10/31 Xu Wang 
>>> >
>>> > > Dear Murat,
>>> > >
>>> > > This is great! I have been waiting for something like this for a long
>>> > > time. I also like the Sweave-like philosophy of this. It's more
>>> > > transparent
>>> > > and reproducible.
>>> > >
>>> > > I am looking forward to the final release with much excitement.
>>> > >
>>> > > Thank you for your work!
>>> > >
>>> > > Best,
>>> > >
>>> > > Xu
>>> > >
>>> > >
>>> > > On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu
>>> > > wrote:
>>> > >
>>> > >> Just another mail to correct a problem with the preceding Lyx file
>>> > >> (see
>>> > >> the new file attached, and the $ signs in ERT boxes, this is
>>> > >> connected with
>>> > >> the problem I describe below) and ask a question about insets again:
>>> > >>
>>> > >> What kind of Flex insets can be included in a math mode text? Is
>>> > >> this
>>> > >> possible at all? Especially in displayed equation where one would
>>> > >> like to
>>> > >> include results from SAge computations?
>>> > >> I cannot write the following in math mode in Lyx, putting the left
>>> > >> member
>>> > >> in a displayed equation and the right member in a sagecode inset
>>> > >> that would
>>> > >> be converted to the expression I give
>>> > >>  (\sage{integral(x/(x^2+1),x,0,1))
>>> > >>        \dfrac{\partial^{4}y}{\partial
>>> > >> 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Liviu Andronic
On Sat, Mar 31, 2012 at 10:28 PM, Trevor Jenkins bslwann...@gmail.com wrote:
 Thomas' attachments were sent to me and are in my archive (aka my GMail
 folder for LyX) so it doesn't appear to be the size or number of attachments
 sent.

Thomas was likely talking about Internet archiving. His first message
didn't get archived (attachments including a binary PDF), while his
last (without the PDF) got. [1]

Liviu

[1] http://www.mail-archive.com/lyx-users@lists.lyx.org/msg91798.html


Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Murat Yildizoglu
Very nice initiative, thank you very much Thomas!

I have not yet had time to check the modifications you have sent, but I am
sure that they make this module much more useful.

2012/3/31 Thomas Coffee thomasmcof...@gmail.com

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
 help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
 If I
  get any answer to my questions, I can construct a little bit smarter
 module
  but the one we have now is already usable. With some supplementary tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
 file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
 transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.com
 wrote:
  
   Just another mail to correct a problem with the preceding Lyx file
 (see
   the new file attached, and the $ signs in ERT boxes, this is
 connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is this
   possible at all? Especially in displayed equation where one would
 like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
 member
   in a displayed equation and the right member in a sagecode inset that
 would
   be converted to the expression I give
  (\sage{integral(x/(x^2+1),x,0,1))
  \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
 Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
x^2 in the right member must not be interpreted by LyX, since Sage
 will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have reread again the help document on layouts and insets, and I
 have
   checked the files that come in the layout folder of LyX, but cannot
 find
   any answer to my question.
  
   Sorry for bothering you again with my problems... I hope that Sage
   integration will interest other people...
  
   Murat
  
   I definitely need the help of a Lyx wizard who understands well the
   insets and their integration in Lyx/Latex...
  
  
  
   2011/10/31 Murat Yildizoglu myi...@gmail.com
  
   Just to show you the kind of niceties that such an integration can
   bring, I send you two files. One is the Lyx source and the other one
 is the
   final PDF.
   In Lyx, I just click on the  Preview button and wait a little bit to
 get
   the final PDF that I show here, with results of the computations
 done by
   Sage and converted back to Latex.
  
   The module isfar from perfect yet (this is the first module I am
   creating), a better integration between the Latex output by Sage,
 and the
   math mode in LyX would be implemented to have nice equations typeset
 with
   equation numbers and what not. You can also see that the output of
 the
   integral by Sage is not very beautiful...
  
   I will continue to work on this module, but it is already useful for
 me
   and eliminates some regrets I feel ;-), since I 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Murat Yildizoglu
Good idea, thanks a lot for the suggestion Xu. Here is my statement (I put
the devel list as CC) :

I hereby grant permission to license my contributions to the SAGE
module for LyX under the GNU
General Public Licence, version 2 or later.

Murat Yildizoglu


2012/3/31 Xu Wang xuwang...@gmail.com

 Dear Thomas

 Excellent news! Thank you for your continued work. I have not taken a fine
 look at this yet, but I also use Ubuntu so it looks like it might be useful.

 I'm not sure but I think for your contributions to be used you have to
 give permission explicitly. Look at this email:

 http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
 You can send something like that to the development list, lyx-devel

 And it could be a good idea for Murat to do the same.

 I'm not sure though.

 In any case, thank you for your continued work. I am appreciative. Xu



 On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee thomasmcof...@gmail.comwrote:

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
 help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
 If I
  get any answer to my questions, I can construct a little bit smarter
 module
  but the one we have now is already usable. With some supplementary
 tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this
 would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
 file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
 transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.com
 wrote:
  
   Just another mail to correct a problem with the preceding Lyx file
 (see
   the new file attached, and the $ signs in ERT boxes, this is
 connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is this
   possible at all? Especially in displayed equation where one would
 like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
 member
   in a displayed equation and the right member in a sagecode inset
 that would
   be converted to the expression I give
  (\sage{integral(x/(x^2+1),x,0,1))
  \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
 Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
x^2 in the right member must not be interpreted by LyX, since
 Sage will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have reread again the help document on layouts and insets, and I
 have
   checked the files that come in the layout folder of LyX, but cannot
 find
   any answer to my question.
  
   Sorry for bothering you again with my problems... I hope that Sage
   integration will interest other people...
  
   Murat
  
   I definitely need the help of a Lyx wizard who understands well the
   insets and their integration in Lyx/Latex...
  
  
  
   2011/10/31 Murat Yildizoglu myi...@gmail.com
  
   Just to show you the kind of niceties that such an integration can
   bring, I send you two 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Liviu Andronic
On Sat, Mar 31, 2012 at 10:28 PM, Trevor Jenkins bslwann...@gmail.com wrote:
 Thomas' attachments were sent to me and are in my archive (aka my GMail
 folder for LyX) so it doesn't appear to be the size or number of attachments
 sent.

Thomas was likely talking about Internet archiving. His first message
didn't get archived (attachments including a binary PDF), while his
last (without the PDF) got. [1]

Liviu

[1] http://www.mail-archive.com/lyx-users@lists.lyx.org/msg91798.html


Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Murat Yildizoglu
Very nice initiative, thank you very much Thomas!

I have not yet had time to check the modifications you have sent, but I am
sure that they make this module much more useful.

2012/3/31 Thomas Coffee thomasmcof...@gmail.com

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
 help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
 If I
  get any answer to my questions, I can construct a little bit smarter
 module
  but the one we have now is already usable. With some supplementary tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
 file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
 transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.com
 wrote:
  
   Just another mail to correct a problem with the preceding Lyx file
 (see
   the new file attached, and the $ signs in ERT boxes, this is
 connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is this
   possible at all? Especially in displayed equation where one would
 like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
 member
   in a displayed equation and the right member in a sagecode inset that
 would
   be converted to the expression I give
  (\sage{integral(x/(x^2+1),x,0,1))
  \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
 Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
x^2 in the right member must not be interpreted by LyX, since Sage
 will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have reread again the help document on layouts and insets, and I
 have
   checked the files that come in the layout folder of LyX, but cannot
 find
   any answer to my question.
  
   Sorry for bothering you again with my problems... I hope that Sage
   integration will interest other people...
  
   Murat
  
   I definitely need the help of a Lyx wizard who understands well the
   insets and their integration in Lyx/Latex...
  
  
  
   2011/10/31 Murat Yildizoglu myi...@gmail.com
  
   Just to show you the kind of niceties that such an integration can
   bring, I send you two files. One is the Lyx source and the other one
 is the
   final PDF.
   In Lyx, I just click on the  Preview button and wait a little bit to
 get
   the final PDF that I show here, with results of the computations
 done by
   Sage and converted back to Latex.
  
   The module isfar from perfect yet (this is the first module I am
   creating), a better integration between the Latex output by Sage,
 and the
   math mode in LyX would be implemented to have nice equations typeset
 with
   equation numbers and what not. You can also see that the output of
 the
   integral by Sage is not very beautiful...
  
   I will continue to work on this module, but it is already useful for
 me
   and eliminates some regrets I feel ;-), since I 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Murat Yildizoglu
Good idea, thanks a lot for the suggestion Xu. Here is my statement (I put
the devel list as CC) :

I hereby grant permission to license my contributions to the SAGE
module for LyX under the GNU
General Public Licence, version 2 or later.

Murat Yildizoglu


2012/3/31 Xu Wang xuwang...@gmail.com

 Dear Thomas

 Excellent news! Thank you for your continued work. I have not taken a fine
 look at this yet, but I also use Ubuntu so it looks like it might be useful.

 I'm not sure but I think for your contributions to be used you have to
 give permission explicitly. Look at this email:

 http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
 You can send something like that to the development list, lyx-devel

 And it could be a good idea for Murat to do the same.

 I'm not sure though.

 In any case, thank you for your continued work. I am appreciative. Xu



 On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee thomasmcof...@gmail.comwrote:

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
 help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
 If I
  get any answer to my questions, I can construct a little bit smarter
 module
  but the one we have now is already usable. With some supplementary
 tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this
 would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
 file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
 transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.com
 wrote:
  
   Just another mail to correct a problem with the preceding Lyx file
 (see
   the new file attached, and the $ signs in ERT boxes, this is
 connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is this
   possible at all? Especially in displayed equation where one would
 like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
 member
   in a displayed equation and the right member in a sagecode inset
 that would
   be converted to the expression I give
  (\sage{integral(x/(x^2+1),x,0,1))
  \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
 Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
x^2 in the right member must not be interpreted by LyX, since
 Sage will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have reread again the help document on layouts and insets, and I
 have
   checked the files that come in the layout folder of LyX, but cannot
 find
   any answer to my question.
  
   Sorry for bothering you again with my problems... I hope that Sage
   integration will interest other people...
  
   Murat
  
   I definitely need the help of a Lyx wizard who understands well the
   insets and their integration in Lyx/Latex...
  
  
  
   2011/10/31 Murat Yildizoglu myi...@gmail.com
  
   Just to show you the kind of niceties that such an integration can
   bring, I send you two 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Liviu Andronic
On Sat, Mar 31, 2012 at 10:28 PM, Trevor Jenkins  wrote:
> Thomas' attachments were sent to me and are in my "archive" (aka my GMail
> folder for LyX) so it doesn't appear to be the size or number of attachments
> sent.
>
Thomas was likely talking about Internet archiving. His first message
didn't get archived (attachments including a binary PDF), while his
last (without the PDF) got. [1]

Liviu

[1] http://www.mail-archive.com/lyx-users@lists.lyx.org/msg91798.html


Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Murat Yildizoglu
Very nice initiative, thank you very much Thomas!

I have not yet had time to check the modifications you have sent, but I am
sure that they make this module much more useful.

2012/3/31 Thomas Coffee 

> Hi Murat and Xu,
>
> I found your thread in the archives and did some further work on the
> LyX-SageTeX module that Murat posted previously.
>
> I fixed a few things that did not work for me in the version described
> earlier, and expanded the module specification to provide some
> additional conveniences for including literate Sage code in LyX
> documents. There's still much room for development and customization.
>
> The attachments comprise a set of files and a shell script "setup.sh"
> that should largely automate the configuration process on GNU/Linux
> systems.
>
> *** Help needed:
>
> For other interested users, I'd like to upload this to
> http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
> links anywhere under the upload path wiki.lyx.org/ipfm. The page
> http://wiki.lyx.org/Site/AboutUploading also tells me I will need
> someone to tell me the upload password. Can anyone assist?
>
> Thanks,
>  Thomas
>
>
> > Hi Xu,
> >
> > Thank you for your appreciation. I cannot advance anymore without any
> help
> > from Lyx gurus.
> > I think I have extracted all the information I can from the help docs.
> If I
> > get any answer to my questions, I can construct a little bit smarter
> module
> > but the one we have now is already usable. With some supplementary tricks
> > from the sagetex documentation and through manual executions of the
> > latex-sage-latex chain, it is possible to make a lot of computations.
> >
> > I was also very agreeably surprised that this module can be used for
> > conversion to HTML from LyX, with figures and all.
> >
> > I attach to this message the module in its actual stage and some
> > instruction for making the conversion chain functional. I hope this would
> > already help some of you.
> >
> > As soon as I have more information, I will try to complete the module
> file.
> >
> > Best regards,
> >
> > Murat
> >
> > 2011/10/31 Xu Wang 
> >
> > > Dear Murat,
> > >
> > > This is great! I have been waiting for something like this for a long
> > > time. I also like the Sweave-like philosophy of this. It's more
> transparent
> > > and reproducible.
> > >
> > > I am looking forward to the final release with much excitement.
> > >
> > > Thank you for your work!
> > >
> > > Best,
> > >
> > > Xu
> > >
> > >
> > > On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu  >wrote:
> > >
> > >> Just another mail to correct a problem with the preceding Lyx file
> (see
> > >> the new file attached, and the $ signs in ERT boxes, this is
> connected with
> > >> the problem I describe below) and ask a question about insets again:
> > >>
> > >> What kind of Flex insets can be included in a math mode text? Is this
> > >> possible at all? Especially in displayed equation where one would
> like to
> > >> include results from SAge computations?
> > >> I cannot write the following in math mode in Lyx, putting the left
> member
> > >> in a displayed equation and the right member in a sagecode inset that
> would
> > >> be converted to the expression I give
>  (\sage{integral(x/(x^2+1),x,0,1))
> > >>\dfrac{\partial^{4}y}{\partial
> > >> x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
> > >>
> > >> I meet two problems:
> > >> 1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
> Lyx
> > >> just goes to the next line before inserting it...
> > >> 2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
> > >>  "x^2" in the right member must not be interpreted by LyX, since Sage
> will
> > >> need it for its computation.
> > >>
> > >> I can of course type everything in an ERT, but this cannot be called
> > >> "integration" can it? ;-)
> > >>
> > >> I have reread again the help document on layouts and insets, and I
> have
> > >> checked the files that come in the layout folder of LyX, but cannot
> find
> > >> any answer to my question.
> > >>
> > >> Sorry for bothering you again with my problems... I hope that Sage
> > >> integration will interest other people...
> > >>
> > >> Murat
> > >>
> > >> I definitely need the help of a Lyx wizard who understands well the
> > >> insets and their integration in Lyx/Latex...
> > >>
> > >>
> > >>
> > >> 2011/10/31 Murat Yildizoglu 
> > >>
> > >>> Just to show you the kind of niceties that such an integration can
> > >>> bring, I send you two files. One is the Lyx source and the other one
> is the
> > >>> final PDF.
> > >>> In Lyx, I just click on the  Preview button and wait a little bit to
> get
> > >>> the final PDF that I show here, with results of the computations
> done by
> > >>> Sage and converted back to Latex.
> > >>>
> > >>> The module isfar from perfect yet (this is the first module I am
> > >>> creating), a better integration between the 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-04-01 Thread Murat Yildizoglu
Good idea, thanks a lot for the suggestion Xu. Here is my statement (I put
the devel list as CC) :

I hereby grant permission to license my contributions to the SAGE
module for LyX under the GNU
General Public Licence, version 2 or later.

Murat Yildizoglu


2012/3/31 Xu Wang 

> Dear Thomas
>
> Excellent news! Thank you for your continued work. I have not taken a fine
> look at this yet, but I also use Ubuntu so it looks like it might be useful.
>
> I'm not sure but I think for your contributions to be used you have to
> give permission explicitly. Look at this email:
>
> http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
> You can send something like that to the development list, lyx-devel
>
> And it could be a good idea for Murat to do the same.
>
> I'm not sure though.
>
> In any case, thank you for your continued work. I am appreciative. Xu
>
>
>
> On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee wrote:
>
>> Hi Murat and Xu,
>>
>> I found your thread in the archives and did some further work on the
>> LyX-SageTeX module that Murat posted previously.
>>
>> I fixed a few things that did not work for me in the version described
>> earlier, and expanded the module specification to provide some
>> additional conveniences for including literate Sage code in LyX
>> documents. There's still much room for development and customization.
>>
>> The attachments comprise a set of files and a shell script "setup.sh"
>> that should largely automate the configuration process on GNU/Linux
>> systems.
>>
>> *** Help needed:
>>
>> For other interested users, I'd like to upload this to
>> http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
>> links anywhere under the upload path wiki.lyx.org/ipfm. The page
>> http://wiki.lyx.org/Site/AboutUploading also tells me I will need
>> someone to tell me the upload password. Can anyone assist?
>>
>> Thanks,
>>  Thomas
>>
>>
>> > Hi Xu,
>> >
>> > Thank you for your appreciation. I cannot advance anymore without any
>> help
>> > from Lyx gurus.
>> > I think I have extracted all the information I can from the help docs.
>> If I
>> > get any answer to my questions, I can construct a little bit smarter
>> module
>> > but the one we have now is already usable. With some supplementary
>> tricks
>> > from the sagetex documentation and through manual executions of the
>> > latex-sage-latex chain, it is possible to make a lot of computations.
>> >
>> > I was also very agreeably surprised that this module can be used for
>> > conversion to HTML from LyX, with figures and all.
>> >
>> > I attach to this message the module in its actual stage and some
>> > instruction for making the conversion chain functional. I hope this
>> would
>> > already help some of you.
>> >
>> > As soon as I have more information, I will try to complete the module
>> file.
>> >
>> > Best regards,
>> >
>> > Murat
>> >
>> > 2011/10/31 Xu Wang 
>> >
>> > > Dear Murat,
>> > >
>> > > This is great! I have been waiting for something like this for a long
>> > > time. I also like the Sweave-like philosophy of this. It's more
>> transparent
>> > > and reproducible.
>> > >
>> > > I am looking forward to the final release with much excitement.
>> > >
>> > > Thank you for your work!
>> > >
>> > > Best,
>> > >
>> > > Xu
>> > >
>> > >
>> > > On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu > >wrote:
>> > >
>> > >> Just another mail to correct a problem with the preceding Lyx file
>> (see
>> > >> the new file attached, and the $ signs in ERT boxes, this is
>> connected with
>> > >> the problem I describe below) and ask a question about insets again:
>> > >>
>> > >> What kind of Flex insets can be included in a math mode text? Is this
>> > >> possible at all? Especially in displayed equation where one would
>> like to
>> > >> include results from SAge computations?
>> > >> I cannot write the following in math mode in Lyx, putting the left
>> member
>> > >> in a displayed equation and the right member in a sagecode inset
>> that would
>> > >> be converted to the expression I give
>>  (\sage{integral(x/(x^2+1),x,0,1))
>> > >>\dfrac{\partial^{4}y}{\partial
>> > >> x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
>> > >>
>> > >> I meet two problems:
>> > >> 1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
>> Lyx
>> > >> just goes to the next line before inserting it...
>> > >> 2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
>> > >>  "x^2" in the right member must not be interpreted by LyX, since
>> Sage will
>> > >> need it for its computation.
>> > >>
>> > >> I can of course type everything in an ERT, but this cannot be called
>> > >> "integration" can it? ;-)
>> > >>
>> > >> I have reread again the help document on layouts and insets, and I
>> have
>> > >> checked the files that come in the layout folder of LyX, but cannot
>> find
>> > >> any answer to my question.
>> > >>
>> > 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Xu Wang
Dear Thomas

Excellent news! Thank you for your continued work. I have not taken a fine
look at this yet, but I also use Ubuntu so it looks like it might be useful.

I'm not sure but I think for your contributions to be used you have to give
permission explicitly. Look at this email:

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
You can send something like that to the development list, lyx-devel

And it could be a good idea for Murat to do the same.

I'm not sure though.

In any case, thank you for your continued work. I am appreciative. Xu


On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee thomasmcof...@gmail.comwrote:

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
 help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
 If I
  get any answer to my questions, I can construct a little bit smarter
 module
  but the one we have now is already usable. With some supplementary tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
 file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
 transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.com
 wrote:
  
   Just another mail to correct a problem with the preceding Lyx file
 (see
   the new file attached, and the $ signs in ERT boxes, this is
 connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is this
   possible at all? Especially in displayed equation where one would
 like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
 member
   in a displayed equation and the right member in a sagecode inset that
 would
   be converted to the expression I give
  (\sage{integral(x/(x^2+1),x,0,1))
  \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
 Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
x^2 in the right member must not be interpreted by LyX, since Sage
 will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have reread again the help document on layouts and insets, and I
 have
   checked the files that come in the layout folder of LyX, but cannot
 find
   any answer to my question.
  
   Sorry for bothering you again with my problems... I hope that Sage
   integration will interest other people...
  
   Murat
  
   I definitely need the help of a Lyx wizard who understands well the
   insets and their integration in Lyx/Latex...
  
  
  
   2011/10/31 Murat Yildizoglu myi...@gmail.com
  
   Just to show you the kind of niceties that such an integration can
   bring, I send you two files. One is the Lyx source and the other one
 is the
   final PDF.
   In Lyx, I just click on the  Preview button and wait a little bit to
 get
   the final PDF that I show here, with results of the computations
 done by
   Sage and converted back to Latex.
  
   The module isfar from perfect yet (this is the 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Thomas Coffee
Hi Xu,

I notice your email shows up in the archive thread but mine does not,
and thus neither do the attachments. Any idea how to change this?

Here is a modified preferences file that preserves a pdflatex-only
update pathway, allowing the user to update the LaTeX only without
updating the Sage computations.

I will try emailing lyx-devel.

Thanks,
 Thomas


On Sat, Mar 31, 2012 at 4:48 AM, Xu Wang xuwang...@gmail.com wrote:
 Dear Thomas

 Excellent news! Thank you for your continued work. I have not taken a fine
 look at this yet, but I also use Ubuntu so it looks like it might be useful.

 I'm not sure but I think for your contributions to be used you have to give
 permission explicitly. Look at this email:

 http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
 You can send something like that to the development list, lyx-devel

 And it could be a good idea for Murat to do the same.

 I'm not sure though.

 In any case, thank you for your continued work. I am appreciative. Xu



 On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee thomasmcof...@gmail.com
 wrote:

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
  help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
  If I
  get any answer to my questions, I can construct a little bit smarter
  module
  but the one we have now is already usable. With some supplementary
  tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this
  would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
  file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
   transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu
   myi...@gmail.comwrote:
  
   Just another mail to correct a problem with the preceding Lyx file
   (see
   the new file attached, and the $ signs in ERT boxes, this is
   connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is this
   possible at all? Especially in displayed equation where one would
   like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
   member
   in a displayed equation and the right member in a sagecode inset that
   would
   be converted to the expression I give
    (\sage{integral(x/(x^2+1),x,0,1))
          \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
   Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
    x^2 in the right member must not be interpreted by LyX, since Sage
   will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have reread again the help document on layouts and insets, and I
   have
   checked the files that come in the layout folder of LyX, but cannot
   find
   any answer to my question.
  
   Sorry for bothering you again with my problems... I hope that Sage
   integration will interest other people...
  
   Murat
  
   I definitely need the help of a Lyx wizard who understands well the
   insets and their integration in 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Liviu Andronic
On Sat, Mar 31, 2012 at 6:53 PM, Thomas Coffee thomasmcof...@gmail.com wrote:
 I notice your email shows up in the archive thread but mine does not,
 and thus neither do the attachments. Any idea how to change this?

Sending big attachments to mailing lists (and binary files) may have
this effect.

Liviu


Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Trevor Jenkins
On Sat, Mar 31, 2012 at 9:19 PM, Liviu Andronic landronim...@gmail.comwrote:

 On Sat, Mar 31, 2012 at 6:53 PM, Thomas Coffee thomasmcof...@gmail.com
 wrote:
  I notice your email shows up in the archive thread but mine does not,
  and thus neither do the attachments. Any idea how to change this?
 
 Sending big attachments to mailing lists (and binary files) may have
 this effect.


Thomas' attachments were sent to me and are in my archive (aka my GMail
folder for LyX) so it doesn't appear to be the size or number of
attachments sent.

Regards, Trevor.

 Re: deemed!


Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Thomas Coffee
I'm trying the earlier attachments again from the message that didn't
make it into the archive, minus the binary .pdf file.

- Thomas


On Sat, Mar 31, 2012 at 12:53 PM, Thomas Coffee thomasmcof...@gmail.com wrote:
 Hi Xu,

 I notice your email shows up in the archive thread but mine does not,
 and thus neither do the attachments. Any idea how to change this?

 Here is a modified preferences file that preserves a pdflatex-only
 update pathway, allowing the user to update the LaTeX only without
 updating the Sage computations.

 I will try emailing lyx-devel.

 Thanks,
  Thomas


 On Sat, Mar 31, 2012 at 4:48 AM, Xu Wang xuwang...@gmail.com wrote:
 Dear Thomas

 Excellent news! Thank you for your continued work. I have not taken a fine
 look at this yet, but I also use Ubuntu so it looks like it might be useful.

 I'm not sure but I think for your contributions to be used you have to give
 permission explicitly. Look at this email:

 http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
 You can send something like that to the development list, lyx-devel

 And it could be a good idea for Murat to do the same.

 I'm not sure though.

 In any case, thank you for your continued work. I am appreciative. Xu



 On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee thomasmcof...@gmail.com
 wrote:

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
  help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
  If I
  get any answer to my questions, I can construct a little bit smarter
  module
  but the one we have now is already usable. With some supplementary
  tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this
  would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
  file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
   transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu
   myi...@gmail.comwrote:
  
   Just another mail to correct a problem with the preceding Lyx file
   (see
   the new file attached, and the $ signs in ERT boxes, this is
   connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is this
   possible at all? Especially in displayed equation where one would
   like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
   member
   in a displayed equation and the right member in a sagecode inset that
   would
   be converted to the expression I give
    (\sage{integral(x/(x^2+1),x,0,1))
          \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
   Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
    x^2 in the right member must not be interpreted by LyX, since Sage
   will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have reread again the help document on layouts and insets, and I
   have
   checked the files that come in the layout folder of LyX, but cannot
   find
   any answer to my question.
  
   Sorry for 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Xu Wang
Dear Thomas

Excellent news! Thank you for your continued work. I have not taken a fine
look at this yet, but I also use Ubuntu so it looks like it might be useful.

I'm not sure but I think for your contributions to be used you have to give
permission explicitly. Look at this email:

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
You can send something like that to the development list, lyx-devel

And it could be a good idea for Murat to do the same.

I'm not sure though.

In any case, thank you for your continued work. I am appreciative. Xu


On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee thomasmcof...@gmail.comwrote:

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
 help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
 If I
  get any answer to my questions, I can construct a little bit smarter
 module
  but the one we have now is already usable. With some supplementary tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
 file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
 transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.com
 wrote:
  
   Just another mail to correct a problem with the preceding Lyx file
 (see
   the new file attached, and the $ signs in ERT boxes, this is
 connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is this
   possible at all? Especially in displayed equation where one would
 like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
 member
   in a displayed equation and the right member in a sagecode inset that
 would
   be converted to the expression I give
  (\sage{integral(x/(x^2+1),x,0,1))
  \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
 Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
x^2 in the right member must not be interpreted by LyX, since Sage
 will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have reread again the help document on layouts and insets, and I
 have
   checked the files that come in the layout folder of LyX, but cannot
 find
   any answer to my question.
  
   Sorry for bothering you again with my problems... I hope that Sage
   integration will interest other people...
  
   Murat
  
   I definitely need the help of a Lyx wizard who understands well the
   insets and their integration in Lyx/Latex...
  
  
  
   2011/10/31 Murat Yildizoglu myi...@gmail.com
  
   Just to show you the kind of niceties that such an integration can
   bring, I send you two files. One is the Lyx source and the other one
 is the
   final PDF.
   In Lyx, I just click on the  Preview button and wait a little bit to
 get
   the final PDF that I show here, with results of the computations
 done by
   Sage and converted back to Latex.
  
   The module isfar from perfect yet (this is the 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Thomas Coffee
Hi Xu,

I notice your email shows up in the archive thread but mine does not,
and thus neither do the attachments. Any idea how to change this?

Here is a modified preferences file that preserves a pdflatex-only
update pathway, allowing the user to update the LaTeX only without
updating the Sage computations.

I will try emailing lyx-devel.

Thanks,
 Thomas


On Sat, Mar 31, 2012 at 4:48 AM, Xu Wang xuwang...@gmail.com wrote:
 Dear Thomas

 Excellent news! Thank you for your continued work. I have not taken a fine
 look at this yet, but I also use Ubuntu so it looks like it might be useful.

 I'm not sure but I think for your contributions to be used you have to give
 permission explicitly. Look at this email:

 http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
 You can send something like that to the development list, lyx-devel

 And it could be a good idea for Murat to do the same.

 I'm not sure though.

 In any case, thank you for your continued work. I am appreciative. Xu



 On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee thomasmcof...@gmail.com
 wrote:

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
  help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
  If I
  get any answer to my questions, I can construct a little bit smarter
  module
  but the one we have now is already usable. With some supplementary
  tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this
  would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
  file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
   transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu
   myi...@gmail.comwrote:
  
   Just another mail to correct a problem with the preceding Lyx file
   (see
   the new file attached, and the $ signs in ERT boxes, this is
   connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is this
   possible at all? Especially in displayed equation where one would
   like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
   member
   in a displayed equation and the right member in a sagecode inset that
   would
   be converted to the expression I give
    (\sage{integral(x/(x^2+1),x,0,1))
          \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
   Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
    x^2 in the right member must not be interpreted by LyX, since Sage
   will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have reread again the help document on layouts and insets, and I
   have
   checked the files that come in the layout folder of LyX, but cannot
   find
   any answer to my question.
  
   Sorry for bothering you again with my problems... I hope that Sage
   integration will interest other people...
  
   Murat
  
   I definitely need the help of a Lyx wizard who understands well the
   insets and their integration in 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Liviu Andronic
On Sat, Mar 31, 2012 at 6:53 PM, Thomas Coffee thomasmcof...@gmail.com wrote:
 I notice your email shows up in the archive thread but mine does not,
 and thus neither do the attachments. Any idea how to change this?

Sending big attachments to mailing lists (and binary files) may have
this effect.

Liviu


Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Trevor Jenkins
On Sat, Mar 31, 2012 at 9:19 PM, Liviu Andronic landronim...@gmail.comwrote:

 On Sat, Mar 31, 2012 at 6:53 PM, Thomas Coffee thomasmcof...@gmail.com
 wrote:
  I notice your email shows up in the archive thread but mine does not,
  and thus neither do the attachments. Any idea how to change this?
 
 Sending big attachments to mailing lists (and binary files) may have
 this effect.


Thomas' attachments were sent to me and are in my archive (aka my GMail
folder for LyX) so it doesn't appear to be the size or number of
attachments sent.

Regards, Trevor.

 Re: deemed!


Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Thomas Coffee
I'm trying the earlier attachments again from the message that didn't
make it into the archive, minus the binary .pdf file.

- Thomas


On Sat, Mar 31, 2012 at 12:53 PM, Thomas Coffee thomasmcof...@gmail.com wrote:
 Hi Xu,

 I notice your email shows up in the archive thread but mine does not,
 and thus neither do the attachments. Any idea how to change this?

 Here is a modified preferences file that preserves a pdflatex-only
 update pathway, allowing the user to update the LaTeX only without
 updating the Sage computations.

 I will try emailing lyx-devel.

 Thanks,
  Thomas


 On Sat, Mar 31, 2012 at 4:48 AM, Xu Wang xuwang...@gmail.com wrote:
 Dear Thomas

 Excellent news! Thank you for your continued work. I have not taken a fine
 look at this yet, but I also use Ubuntu so it looks like it might be useful.

 I'm not sure but I think for your contributions to be used you have to give
 permission explicitly. Look at this email:

 http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
 You can send something like that to the development list, lyx-devel

 And it could be a good idea for Murat to do the same.

 I'm not sure though.

 In any case, thank you for your continued work. I am appreciative. Xu



 On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee thomasmcof...@gmail.com
 wrote:

 Hi Murat and Xu,

 I found your thread in the archives and did some further work on the
 LyX-SageTeX module that Murat posted previously.

 I fixed a few things that did not work for me in the version described
 earlier, and expanded the module specification to provide some
 additional conveniences for including literate Sage code in LyX
 documents. There's still much room for development and customization.

 The attachments comprise a set of files and a shell script setup.sh
 that should largely automate the configuration process on GNU/Linux
 systems.

 *** Help needed:

 For other interested users, I'd like to upload this to
 http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
 links anywhere under the upload path wiki.lyx.org/ipfm. The page
 http://wiki.lyx.org/Site/AboutUploading also tells me I will need
 someone to tell me the upload password. Can anyone assist?

 Thanks,
  Thomas


  Hi Xu,
 
  Thank you for your appreciation. I cannot advance anymore without any
  help
  from Lyx gurus.
  I think I have extracted all the information I can from the help docs.
  If I
  get any answer to my questions, I can construct a little bit smarter
  module
  but the one we have now is already usable. With some supplementary
  tricks
  from the sagetex documentation and through manual executions of the
  latex-sage-latex chain, it is possible to make a lot of computations.
 
  I was also very agreeably surprised that this module can be used for
  conversion to HTML from LyX, with figures and all.
 
  I attach to this message the module in its actual stage and some
  instruction for making the conversion chain functional. I hope this
  would
  already help some of you.
 
  As soon as I have more information, I will try to complete the module
  file.
 
  Best regards,
 
  Murat
 
  2011/10/31 Xu Wang xuwang...@gmail.com
 
   Dear Murat,
  
   This is great! I have been waiting for something like this for a long
   time. I also like the Sweave-like philosophy of this. It's more
   transparent
   and reproducible.
  
   I am looking forward to the final release with much excitement.
  
   Thank you for your work!
  
   Best,
  
   Xu
  
  
   On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu
   myi...@gmail.comwrote:
  
   Just another mail to correct a problem with the preceding Lyx file
   (see
   the new file attached, and the $ signs in ERT boxes, this is
   connected with
   the problem I describe below) and ask a question about insets again:
  
   What kind of Flex insets can be included in a math mode text? Is this
   possible at all? Especially in displayed equation where one would
   like to
   include results from SAge computations?
   I cannot write the following in math mode in Lyx, putting the left
   member
   in a displayed equation and the right member in a sagecode inset that
   would
   be converted to the expression I give
    (\sage{integral(x/(x^2+1),x,0,1))
          \dfrac{\partial^{4}y}{\partial
   x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
  
   I meet two problems:
   1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
   Lyx
   just goes to the next line before inserting it...
   2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
    x^2 in the right member must not be interpreted by LyX, since Sage
   will
   need it for its computation.
  
   I can of course type everything in an ERT, but this cannot be called
   integration can it? ;-)
  
   I have reread again the help document on layouts and insets, and I
   have
   checked the files that come in the layout folder of LyX, but cannot
   find
   any answer to my question.
  
   Sorry for 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Xu Wang
Dear Thomas

Excellent news! Thank you for your continued work. I have not taken a fine
look at this yet, but I also use Ubuntu so it looks like it might be useful.

I'm not sure but I think for your contributions to be used you have to give
permission explicitly. Look at this email:

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
You can send something like that to the development list, lyx-devel

And it could be a good idea for Murat to do the same.

I'm not sure though.

In any case, thank you for your continued work. I am appreciative. Xu


On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee wrote:

> Hi Murat and Xu,
>
> I found your thread in the archives and did some further work on the
> LyX-SageTeX module that Murat posted previously.
>
> I fixed a few things that did not work for me in the version described
> earlier, and expanded the module specification to provide some
> additional conveniences for including literate Sage code in LyX
> documents. There's still much room for development and customization.
>
> The attachments comprise a set of files and a shell script "setup.sh"
> that should largely automate the configuration process on GNU/Linux
> systems.
>
> *** Help needed:
>
> For other interested users, I'd like to upload this to
> http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
> links anywhere under the upload path wiki.lyx.org/ipfm. The page
> http://wiki.lyx.org/Site/AboutUploading also tells me I will need
> someone to tell me the upload password. Can anyone assist?
>
> Thanks,
>  Thomas
>
>
> > Hi Xu,
> >
> > Thank you for your appreciation. I cannot advance anymore without any
> help
> > from Lyx gurus.
> > I think I have extracted all the information I can from the help docs.
> If I
> > get any answer to my questions, I can construct a little bit smarter
> module
> > but the one we have now is already usable. With some supplementary tricks
> > from the sagetex documentation and through manual executions of the
> > latex-sage-latex chain, it is possible to make a lot of computations.
> >
> > I was also very agreeably surprised that this module can be used for
> > conversion to HTML from LyX, with figures and all.
> >
> > I attach to this message the module in its actual stage and some
> > instruction for making the conversion chain functional. I hope this would
> > already help some of you.
> >
> > As soon as I have more information, I will try to complete the module
> file.
> >
> > Best regards,
> >
> > Murat
> >
> > 2011/10/31 Xu Wang 
> >
> > > Dear Murat,
> > >
> > > This is great! I have been waiting for something like this for a long
> > > time. I also like the Sweave-like philosophy of this. It's more
> transparent
> > > and reproducible.
> > >
> > > I am looking forward to the final release with much excitement.
> > >
> > > Thank you for your work!
> > >
> > > Best,
> > >
> > > Xu
> > >
> > >
> > > On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu  >wrote:
> > >
> > >> Just another mail to correct a problem with the preceding Lyx file
> (see
> > >> the new file attached, and the $ signs in ERT boxes, this is
> connected with
> > >> the problem I describe below) and ask a question about insets again:
> > >>
> > >> What kind of Flex insets can be included in a math mode text? Is this
> > >> possible at all? Especially in displayed equation where one would
> like to
> > >> include results from SAge computations?
> > >> I cannot write the following in math mode in Lyx, putting the left
> member
> > >> in a displayed equation and the right member in a sagecode inset that
> would
> > >> be converted to the expression I give
>  (\sage{integral(x/(x^2+1),x,0,1))
> > >>\dfrac{\partial^{4}y}{\partial
> > >> x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
> > >>
> > >> I meet two problems:
> > >> 1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
> Lyx
> > >> just goes to the next line before inserting it...
> > >> 2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
> > >>  "x^2" in the right member must not be interpreted by LyX, since Sage
> will
> > >> need it for its computation.
> > >>
> > >> I can of course type everything in an ERT, but this cannot be called
> > >> "integration" can it? ;-)
> > >>
> > >> I have reread again the help document on layouts and insets, and I
> have
> > >> checked the files that come in the layout folder of LyX, but cannot
> find
> > >> any answer to my question.
> > >>
> > >> Sorry for bothering you again with my problems... I hope that Sage
> > >> integration will interest other people...
> > >>
> > >> Murat
> > >>
> > >> I definitely need the help of a Lyx wizard who understands well the
> > >> insets and their integration in Lyx/Latex...
> > >>
> > >>
> > >>
> > >> 2011/10/31 Murat Yildizoglu 
> > >>
> > >>> Just to show you the kind of niceties that such an integration can
> > >>> bring, I send 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Thomas Coffee
Hi Xu,

I notice your email shows up in the archive thread but mine does not,
and thus neither do the attachments. Any idea how to change this?

Here is a modified preferences file that preserves a pdflatex-only
update pathway, allowing the user to update the LaTeX only without
updating the Sage computations.

I will try emailing lyx-devel.

Thanks,
 Thomas


On Sat, Mar 31, 2012 at 4:48 AM, Xu Wang  wrote:
> Dear Thomas
>
> Excellent news! Thank you for your continued work. I have not taken a fine
> look at this yet, but I also use Ubuntu so it looks like it might be useful.
>
> I'm not sure but I think for your contributions to be used you have to give
> permission explicitly. Look at this email:
>
> http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
> You can send something like that to the development list, lyx-devel
>
> And it could be a good idea for Murat to do the same.
>
> I'm not sure though.
>
> In any case, thank you for your continued work. I am appreciative. Xu
>
>
>
> On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee 
> wrote:
>>
>> Hi Murat and Xu,
>>
>> I found your thread in the archives and did some further work on the
>> LyX-SageTeX module that Murat posted previously.
>>
>> I fixed a few things that did not work for me in the version described
>> earlier, and expanded the module specification to provide some
>> additional conveniences for including literate Sage code in LyX
>> documents. There's still much room for development and customization.
>>
>> The attachments comprise a set of files and a shell script "setup.sh"
>> that should largely automate the configuration process on GNU/Linux
>> systems.
>>
>> *** Help needed:
>>
>> For other interested users, I'd like to upload this to
>> http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
>> links anywhere under the upload path wiki.lyx.org/ipfm. The page
>> http://wiki.lyx.org/Site/AboutUploading also tells me I will need
>> someone to tell me the upload password. Can anyone assist?
>>
>> Thanks,
>>  Thomas
>>
>>
>> > Hi Xu,
>> >
>> > Thank you for your appreciation. I cannot advance anymore without any
>> > help
>> > from Lyx gurus.
>> > I think I have extracted all the information I can from the help docs.
>> > If I
>> > get any answer to my questions, I can construct a little bit smarter
>> > module
>> > but the one we have now is already usable. With some supplementary
>> > tricks
>> > from the sagetex documentation and through manual executions of the
>> > latex-sage-latex chain, it is possible to make a lot of computations.
>> >
>> > I was also very agreeably surprised that this module can be used for
>> > conversion to HTML from LyX, with figures and all.
>> >
>> > I attach to this message the module in its actual stage and some
>> > instruction for making the conversion chain functional. I hope this
>> > would
>> > already help some of you.
>> >
>> > As soon as I have more information, I will try to complete the module
>> > file.
>> >
>> > Best regards,
>> >
>> > Murat
>> >
>> > 2011/10/31 Xu Wang 
>> >
>> > > Dear Murat,
>> > >
>> > > This is great! I have been waiting for something like this for a long
>> > > time. I also like the Sweave-like philosophy of this. It's more
>> > > transparent
>> > > and reproducible.
>> > >
>> > > I am looking forward to the final release with much excitement.
>> > >
>> > > Thank you for your work!
>> > >
>> > > Best,
>> > >
>> > > Xu
>> > >
>> > >
>> > > On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu
>> > > wrote:
>> > >
>> > >> Just another mail to correct a problem with the preceding Lyx file
>> > >> (see
>> > >> the new file attached, and the $ signs in ERT boxes, this is
>> > >> connected with
>> > >> the problem I describe below) and ask a question about insets again:
>> > >>
>> > >> What kind of Flex insets can be included in a math mode text? Is this
>> > >> possible at all? Especially in displayed equation where one would
>> > >> like to
>> > >> include results from SAge computations?
>> > >> I cannot write the following in math mode in Lyx, putting the left
>> > >> member
>> > >> in a displayed equation and the right member in a sagecode inset that
>> > >> would
>> > >> be converted to the expression I give
>> > >>  (\sage{integral(x/(x^2+1),x,0,1))
>> > >>        \dfrac{\partial^{4}y}{\partial
>> > >> x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
>> > >>
>> > >> I meet two problems:
>> > >> 1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
>> > >> Lyx
>> > >> just goes to the next line before inserting it...
>> > >> 2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
>> > >>  "x^2" in the right member must not be interpreted by LyX, since Sage
>> > >> will
>> > >> need it for its computation.
>> > >>
>> > >> I can of course type everything in an ERT, but this cannot be called
>> > >> "integration" can it? ;-)
>> > >>
>> > >> I have reread 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Liviu Andronic
On Sat, Mar 31, 2012 at 6:53 PM, Thomas Coffee  wrote:
> I notice your email shows up in the archive thread but mine does not,
> and thus neither do the attachments. Any idea how to change this?
>
Sending big attachments to mailing lists (and binary files) may have
this effect.

Liviu


Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Trevor Jenkins
On Sat, Mar 31, 2012 at 9:19 PM, Liviu Andronic wrote:

> On Sat, Mar 31, 2012 at 6:53 PM, Thomas Coffee 
> wrote:
> > I notice your email shows up in the archive thread but mine does not,
> > and thus neither do the attachments. Any idea how to change this?
> >
> Sending big attachments to mailing lists (and binary files) may have
> this effect.
>

Thomas' attachments were sent to me and are in my "archive" (aka my GMail
folder for LyX) so it doesn't appear to be the size or number of
attachments sent.

Regards, Trevor.

<>< Re: deemed!


Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2012-03-31 Thread Thomas Coffee
I'm trying the earlier attachments again from the message that didn't
make it into the archive, minus the binary .pdf file.

- Thomas


On Sat, Mar 31, 2012 at 12:53 PM, Thomas Coffee  wrote:
> Hi Xu,
>
> I notice your email shows up in the archive thread but mine does not,
> and thus neither do the attachments. Any idea how to change this?
>
> Here is a modified preferences file that preserves a pdflatex-only
> update pathway, allowing the user to update the LaTeX only without
> updating the Sage computations.
>
> I will try emailing lyx-devel.
>
> Thanks,
>  Thomas
>
>
> On Sat, Mar 31, 2012 at 4:48 AM, Xu Wang  wrote:
>> Dear Thomas
>>
>> Excellent news! Thank you for your continued work. I have not taken a fine
>> look at this yet, but I also use Ubuntu so it looks like it might be useful.
>>
>> I'm not sure but I think for your contributions to be used you have to give
>> permission explicitly. Look at this email:
>>
>> http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161963.html
>> You can send something like that to the development list, lyx-devel
>>
>> And it could be a good idea for Murat to do the same.
>>
>> I'm not sure though.
>>
>> In any case, thank you for your continued work. I am appreciative. Xu
>>
>>
>>
>> On Sat, Mar 31, 2012 at 3:08 AM, Thomas Coffee 
>> wrote:
>>>
>>> Hi Murat and Xu,
>>>
>>> I found your thread in the archives and did some further work on the
>>> LyX-SageTeX module that Murat posted previously.
>>>
>>> I fixed a few things that did not work for me in the version described
>>> earlier, and expanded the module specification to provide some
>>> additional conveniences for including literate Sage code in LyX
>>> documents. There's still much room for development and customization.
>>>
>>> The attachments comprise a set of files and a shell script "setup.sh"
>>> that should largely automate the configuration process on GNU/Linux
>>> systems.
>>>
>>> *** Help needed:
>>>
>>> For other interested users, I'd like to upload this to
>>> http://wiki.lyx.org/Layouts/Modules, but I get browser errors for
>>> links anywhere under the upload path wiki.lyx.org/ipfm. The page
>>> http://wiki.lyx.org/Site/AboutUploading also tells me I will need
>>> someone to tell me the upload password. Can anyone assist?
>>>
>>> Thanks,
>>>  Thomas
>>>
>>>
>>> > Hi Xu,
>>> >
>>> > Thank you for your appreciation. I cannot advance anymore without any
>>> > help
>>> > from Lyx gurus.
>>> > I think I have extracted all the information I can from the help docs.
>>> > If I
>>> > get any answer to my questions, I can construct a little bit smarter
>>> > module
>>> > but the one we have now is already usable. With some supplementary
>>> > tricks
>>> > from the sagetex documentation and through manual executions of the
>>> > latex-sage-latex chain, it is possible to make a lot of computations.
>>> >
>>> > I was also very agreeably surprised that this module can be used for
>>> > conversion to HTML from LyX, with figures and all.
>>> >
>>> > I attach to this message the module in its actual stage and some
>>> > instruction for making the conversion chain functional. I hope this
>>> > would
>>> > already help some of you.
>>> >
>>> > As soon as I have more information, I will try to complete the module
>>> > file.
>>> >
>>> > Best regards,
>>> >
>>> > Murat
>>> >
>>> > 2011/10/31 Xu Wang 
>>> >
>>> > > Dear Murat,
>>> > >
>>> > > This is great! I have been waiting for something like this for a long
>>> > > time. I also like the Sweave-like philosophy of this. It's more
>>> > > transparent
>>> > > and reproducible.
>>> > >
>>> > > I am looking forward to the final release with much excitement.
>>> > >
>>> > > Thank you for your work!
>>> > >
>>> > > Best,
>>> > >
>>> > > Xu
>>> > >
>>> > >
>>> > > On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu
>>> > > wrote:
>>> > >
>>> > >> Just another mail to correct a problem with the preceding Lyx file
>>> > >> (see
>>> > >> the new file attached, and the $ signs in ERT boxes, this is
>>> > >> connected with
>>> > >> the problem I describe below) and ask a question about insets again:
>>> > >>
>>> > >> What kind of Flex insets can be included in a math mode text? Is this
>>> > >> possible at all? Especially in displayed equation where one would
>>> > >> like to
>>> > >> include results from SAge computations?
>>> > >> I cannot write the following in math mode in Lyx, putting the left
>>> > >> member
>>> > >> in a displayed equation and the right member in a sagecode inset that
>>> > >> would
>>> > >> be converted to the expression I give
>>> > >>  (\sage{integral(x/(x^2+1),x,0,1))
>>> > >>        \dfrac{\partial^{4}y}{\partial
>>> > >> x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
>>> > >>
>>> > >> I meet two problems:
>>> > >> 1/ I cannot insert a Flex:sagecommand inset in a displayed equation,
>>> > >> Lyx
>>> > >> just goes to the next line before 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2011-10-31 Thread Murat Yildizoglu
Just another mail to correct a problem with the preceding Lyx file (see the
new file attached, and the $ signs in ERT boxes, this is connected with the
problem I describe below) and ask a question about insets again:

What kind of Flex insets can be included in a math mode text? Is this
possible at all? Especially in displayed equation where one would like to
include results from SAge computations?
I cannot write the following in math mode in Lyx, putting the left member
in a displayed equation and the right member in a sagecode inset that would
be converted to the expression I give  (\sage{integral(x/(x^2+1),x,0,1))
   \dfrac{\partial^{4}y}{\partial
x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}

I meet two problems:
1/ I cannot insert a Flex:sagecommand inset in a displayed equation, Lyx
just goes to the next line before inserting it...
2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
 x^2 in the right member must not be interpreted by LyX, since Sage will
need it for its computation.

I can of course type everything in an ERT, but this cannot be called
integration can it? ;-)

I have reread again the help document on layouts and insets, and I have
checked the files that come in the layout folder of LyX, but cannot find
any answer to my question.

Sorry for bothering you again with my problems... I hope that Sage
integration will interest other people...

Murat

I definitely need the help of a Lyx wizard who understands well the insets
and their integration in Lyx/Latex...



2011/10/31 Murat Yildizoglu myi...@gmail.com

 Just to show you the kind of niceties that such an integration can bring,
 I send you two files. One is the Lyx source and the other one is the final
 PDF.
 In Lyx, I just click on the  Preview button and wait a little bit to get
 the final PDF that I show here, with results of the computations done by
 Sage and converted back to Latex.

 The module isfar from perfect yet (this is the first module I am
 creating), a better integration between the Latex output by Sage, and the
 math mode in LyX would be implemented to have nice equations typeset with
 equation numbers and what not. You can also see that the output of the
 integral by Sage is not very beautiful...

 I will continue to work on this module, but it is already useful for me
 and eliminates some regrets I feel ;-), since I have dropped Scientific
 Workplace in favor of LyX.

 I hope that you will like this new possibilities.

 Best regards,

 Murat

 PS. Sage lives in: http://www.sagemath.org


 --
 Prof. Murat Yildizoglu

 Université Montesquieu Bordeaux IV
 GREThA (UMR CNRS 5113)
 Avenue Léon Duguit
 33608 Pessac cedex
 France

 yi...@u-bordeaux4.fr

  http://yildizoglu.info

 http://www.twitter.com/yildizoglu




-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


testsage-mod.lyx
Description: Binary data


Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2011-10-31 Thread Xu Wang
Dear Murat,

This is great! I have been waiting for something like this for a long time.
I also like the Sweave-like philosophy of this. It's more transparent and
reproducible.

I am looking forward to the final release with much excitement.

Thank you for your work!

Best,

Xu

On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.com wrote:

 Just another mail to correct a problem with the preceding Lyx file (see
 the new file attached, and the $ signs in ERT boxes, this is connected with
 the problem I describe below) and ask a question about insets again:

 What kind of Flex insets can be included in a math mode text? Is this
 possible at all? Especially in displayed equation where one would like to
 include results from SAge computations?
 I cannot write the following in math mode in Lyx, putting the left member
 in a displayed equation and the right member in a sagecode inset that would
 be converted to the expression I give  (\sage{integral(x/(x^2+1),x,0,1))
\dfrac{\partial^{4}y}{\partial
 x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}

 I meet two problems:
 1/ I cannot insert a Flex:sagecommand inset in a displayed equation, Lyx
 just goes to the next line before inserting it...
 2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
  x^2 in the right member must not be interpreted by LyX, since Sage will
 need it for its computation.

 I can of course type everything in an ERT, but this cannot be called
 integration can it? ;-)

 I have reread again the help document on layouts and insets, and I have
 checked the files that come in the layout folder of LyX, but cannot find
 any answer to my question.

 Sorry for bothering you again with my problems... I hope that Sage
 integration will interest other people...

 Murat

 I definitely need the help of a Lyx wizard who understands well the insets
 and their integration in Lyx/Latex...



 2011/10/31 Murat Yildizoglu myi...@gmail.com

 Just to show you the kind of niceties that such an integration can bring,
 I send you two files. One is the Lyx source and the other one is the final
 PDF.
 In Lyx, I just click on the  Preview button and wait a little bit to get
 the final PDF that I show here, with results of the computations done by
 Sage and converted back to Latex.

 The module isfar from perfect yet (this is the first module I am
 creating), a better integration between the Latex output by Sage, and the
 math mode in LyX would be implemented to have nice equations typeset with
 equation numbers and what not. You can also see that the output of the
 integral by Sage is not very beautiful...

 I will continue to work on this module, but it is already useful for me
 and eliminates some regrets I feel ;-), since I have dropped Scientific
 Workplace in favor of LyX.

 I hope that you will like this new possibilities.

 Best regards,

 Murat

 PS. Sage lives in: http://www.sagemath.org


 --
 Prof. Murat Yildizoglu

 Université Montesquieu Bordeaux IV
 GREThA (UMR CNRS 5113)
 Avenue Léon Duguit
 33608 Pessac cedex
 France

 yi...@u-bordeaux4.fr

  http://yildizoglu.info

 http://www.twitter.com/yildizoglu




 --
 Prof. Murat Yildizoglu

 Université Montesquieu Bordeaux IV
 GREThA (UMR CNRS 5113)
 Avenue Léon Duguit
 33608 Pessac cedex
 France

 yi...@u-bordeaux4.fr

 http://yildizoglu.info

 http://www.twitter.com/yildizoglu




Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2011-10-31 Thread Murat Yildizoglu
Hi Xu,

Thank you for your appreciation. I cannot advance anymore without any help
from Lyx gurus.
I think I have extracted all the information I can from the help docs. If I
get any answer to my questions, I can construct a little bit smarter module
but the one we have now is already usable. With some supplementary tricks
from the sagetex documentation and through manual executions of the
latex-sage-latex chain, it is possible to make a lot of computations.

I was also very agreeably surprised that this module can be used for
conversion to HTML from LyX, with figures and all.

I attach to this message the module in its actual stage and some
instruction for making the conversion chain functional. I hope this would
already help some of you.

As soon as I have more information, I will try to complete the module file.

Best regards,

Murat

2011/10/31 Xu Wang xuwang...@gmail.com

 Dear Murat,

 This is great! I have been waiting for something like this for a long
 time. I also like the Sweave-like philosophy of this. It's more transparent
 and reproducible.

 I am looking forward to the final release with much excitement.

 Thank you for your work!

 Best,

 Xu


 On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.comwrote:

 Just another mail to correct a problem with the preceding Lyx file (see
 the new file attached, and the $ signs in ERT boxes, this is connected with
 the problem I describe below) and ask a question about insets again:

 What kind of Flex insets can be included in a math mode text? Is this
 possible at all? Especially in displayed equation where one would like to
 include results from SAge computations?
 I cannot write the following in math mode in Lyx, putting the left member
 in a displayed equation and the right member in a sagecode inset that would
 be converted to the expression I give  (\sage{integral(x/(x^2+1),x,0,1))
\dfrac{\partial^{4}y}{\partial
 x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}

 I meet two problems:
 1/ I cannot insert a Flex:sagecommand inset in a displayed equation, Lyx
 just goes to the next line before inserting it...
 2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
  x^2 in the right member must not be interpreted by LyX, since Sage will
 need it for its computation.

 I can of course type everything in an ERT, but this cannot be called
 integration can it? ;-)

 I have reread again the help document on layouts and insets, and I have
 checked the files that come in the layout folder of LyX, but cannot find
 any answer to my question.

 Sorry for bothering you again with my problems... I hope that Sage
 integration will interest other people...

 Murat

 I definitely need the help of a Lyx wizard who understands well the
 insets and their integration in Lyx/Latex...



 2011/10/31 Murat Yildizoglu myi...@gmail.com

 Just to show you the kind of niceties that such an integration can
 bring, I send you two files. One is the Lyx source and the other one is the
 final PDF.
 In Lyx, I just click on the  Preview button and wait a little bit to get
 the final PDF that I show here, with results of the computations done by
 Sage and converted back to Latex.

 The module isfar from perfect yet (this is the first module I am
 creating), a better integration between the Latex output by Sage, and the
 math mode in LyX would be implemented to have nice equations typeset with
 equation numbers and what not. You can also see that the output of the
 integral by Sage is not very beautiful...

 I will continue to work on this module, but it is already useful for me
 and eliminates some regrets I feel ;-), since I have dropped Scientific
 Workplace in favor of LyX.

 I hope that you will like this new possibilities.

 Best regards,

 Murat

 PS. Sage lives in: http://www.sagemath.org


 --
 Prof. Murat Yildizoglu

 Université Montesquieu Bordeaux IV
 GREThA (UMR CNRS 5113)
 Avenue Léon Duguit
 33608 Pessac cedex
 France

 yi...@u-bordeaux4.fr

  http://yildizoglu.info

 http://www.twitter.com/yildizoglu




 --
 Prof. Murat Yildizoglu

 Université Montesquieu Bordeaux IV
 GREThA (UMR CNRS 5113)
 Avenue Léon Duguit
 33608 Pessac cedex
 France

 yi...@u-bordeaux4.fr

 http://yildizoglu.info

 http://www.twitter.com/yildizoglu





-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

yi...@u-bordeaux4.fr

h http://myildi.e-jemed.org/ttp://yildizoglu.info

http://www.twitter.com/yildizoglu
The Sage module allows the use of the open source Sage mathematical platform 
for computations in Lyx (with results inserted in the final PDF file), in a 
somewhat similar way for R-project with the Sweave module.

To be able to use it, you must have Sage installed on your computer and the 
sage command must be in the path.
See : http://www.sagemath.org/

Sage speaks Latex and can interact with it through the sagetex.sty package.

See: 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2011-10-31 Thread Murat Yildizoglu
Just another mail to correct a problem with the preceding Lyx file (see the
new file attached, and the $ signs in ERT boxes, this is connected with the
problem I describe below) and ask a question about insets again:

What kind of Flex insets can be included in a math mode text? Is this
possible at all? Especially in displayed equation where one would like to
include results from SAge computations?
I cannot write the following in math mode in Lyx, putting the left member
in a displayed equation and the right member in a sagecode inset that would
be converted to the expression I give  (\sage{integral(x/(x^2+1),x,0,1))
   \dfrac{\partial^{4}y}{\partial
x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}

I meet two problems:
1/ I cannot insert a Flex:sagecommand inset in a displayed equation, Lyx
just goes to the next line before inserting it...
2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
 x^2 in the right member must not be interpreted by LyX, since Sage will
need it for its computation.

I can of course type everything in an ERT, but this cannot be called
integration can it? ;-)

I have reread again the help document on layouts and insets, and I have
checked the files that come in the layout folder of LyX, but cannot find
any answer to my question.

Sorry for bothering you again with my problems... I hope that Sage
integration will interest other people...

Murat

I definitely need the help of a Lyx wizard who understands well the insets
and their integration in Lyx/Latex...



2011/10/31 Murat Yildizoglu myi...@gmail.com

 Just to show you the kind of niceties that such an integration can bring,
 I send you two files. One is the Lyx source and the other one is the final
 PDF.
 In Lyx, I just click on the  Preview button and wait a little bit to get
 the final PDF that I show here, with results of the computations done by
 Sage and converted back to Latex.

 The module isfar from perfect yet (this is the first module I am
 creating), a better integration between the Latex output by Sage, and the
 math mode in LyX would be implemented to have nice equations typeset with
 equation numbers and what not. You can also see that the output of the
 integral by Sage is not very beautiful...

 I will continue to work on this module, but it is already useful for me
 and eliminates some regrets I feel ;-), since I have dropped Scientific
 Workplace in favor of LyX.

 I hope that you will like this new possibilities.

 Best regards,

 Murat

 PS. Sage lives in: http://www.sagemath.org


 --
 Prof. Murat Yildizoglu

 Université Montesquieu Bordeaux IV
 GREThA (UMR CNRS 5113)
 Avenue Léon Duguit
 33608 Pessac cedex
 France

 yi...@u-bordeaux4.fr

  http://yildizoglu.info

 http://www.twitter.com/yildizoglu




-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


testsage-mod.lyx
Description: Binary data


Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2011-10-31 Thread Xu Wang
Dear Murat,

This is great! I have been waiting for something like this for a long time.
I also like the Sweave-like philosophy of this. It's more transparent and
reproducible.

I am looking forward to the final release with much excitement.

Thank you for your work!

Best,

Xu

On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.com wrote:

 Just another mail to correct a problem with the preceding Lyx file (see
 the new file attached, and the $ signs in ERT boxes, this is connected with
 the problem I describe below) and ask a question about insets again:

 What kind of Flex insets can be included in a math mode text? Is this
 possible at all? Especially in displayed equation where one would like to
 include results from SAge computations?
 I cannot write the following in math mode in Lyx, putting the left member
 in a displayed equation and the right member in a sagecode inset that would
 be converted to the expression I give  (\sage{integral(x/(x^2+1),x,0,1))
\dfrac{\partial^{4}y}{\partial
 x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}

 I meet two problems:
 1/ I cannot insert a Flex:sagecommand inset in a displayed equation, Lyx
 just goes to the next line before inserting it...
 2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
  x^2 in the right member must not be interpreted by LyX, since Sage will
 need it for its computation.

 I can of course type everything in an ERT, but this cannot be called
 integration can it? ;-)

 I have reread again the help document on layouts and insets, and I have
 checked the files that come in the layout folder of LyX, but cannot find
 any answer to my question.

 Sorry for bothering you again with my problems... I hope that Sage
 integration will interest other people...

 Murat

 I definitely need the help of a Lyx wizard who understands well the insets
 and their integration in Lyx/Latex...



 2011/10/31 Murat Yildizoglu myi...@gmail.com

 Just to show you the kind of niceties that such an integration can bring,
 I send you two files. One is the Lyx source and the other one is the final
 PDF.
 In Lyx, I just click on the  Preview button and wait a little bit to get
 the final PDF that I show here, with results of the computations done by
 Sage and converted back to Latex.

 The module isfar from perfect yet (this is the first module I am
 creating), a better integration between the Latex output by Sage, and the
 math mode in LyX would be implemented to have nice equations typeset with
 equation numbers and what not. You can also see that the output of the
 integral by Sage is not very beautiful...

 I will continue to work on this module, but it is already useful for me
 and eliminates some regrets I feel ;-), since I have dropped Scientific
 Workplace in favor of LyX.

 I hope that you will like this new possibilities.

 Best regards,

 Murat

 PS. Sage lives in: http://www.sagemath.org


 --
 Prof. Murat Yildizoglu

 Université Montesquieu Bordeaux IV
 GREThA (UMR CNRS 5113)
 Avenue Léon Duguit
 33608 Pessac cedex
 France

 yi...@u-bordeaux4.fr

  http://yildizoglu.info

 http://www.twitter.com/yildizoglu




 --
 Prof. Murat Yildizoglu

 Université Montesquieu Bordeaux IV
 GREThA (UMR CNRS 5113)
 Avenue Léon Duguit
 33608 Pessac cedex
 France

 yi...@u-bordeaux4.fr

 http://yildizoglu.info

 http://www.twitter.com/yildizoglu




Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2011-10-31 Thread Murat Yildizoglu
Hi Xu,

Thank you for your appreciation. I cannot advance anymore without any help
from Lyx gurus.
I think I have extracted all the information I can from the help docs. If I
get any answer to my questions, I can construct a little bit smarter module
but the one we have now is already usable. With some supplementary tricks
from the sagetex documentation and through manual executions of the
latex-sage-latex chain, it is possible to make a lot of computations.

I was also very agreeably surprised that this module can be used for
conversion to HTML from LyX, with figures and all.

I attach to this message the module in its actual stage and some
instruction for making the conversion chain functional. I hope this would
already help some of you.

As soon as I have more information, I will try to complete the module file.

Best regards,

Murat

2011/10/31 Xu Wang xuwang...@gmail.com

 Dear Murat,

 This is great! I have been waiting for something like this for a long
 time. I also like the Sweave-like philosophy of this. It's more transparent
 and reproducible.

 I am looking forward to the final release with much excitement.

 Thank you for your work!

 Best,

 Xu


 On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu myi...@gmail.comwrote:

 Just another mail to correct a problem with the preceding Lyx file (see
 the new file attached, and the $ signs in ERT boxes, this is connected with
 the problem I describe below) and ask a question about insets again:

 What kind of Flex insets can be included in a math mode text? Is this
 possible at all? Especially in displayed equation where one would like to
 include results from SAge computations?
 I cannot write the following in math mode in Lyx, putting the left member
 in a displayed equation and the right member in a sagecode inset that would
 be converted to the expression I give  (\sage{integral(x/(x^2+1),x,0,1))
\dfrac{\partial^{4}y}{\partial
 x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}

 I meet two problems:
 1/ I cannot insert a Flex:sagecommand inset in a displayed equation, Lyx
 just goes to the next line before inserting it...
 2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
  x^2 in the right member must not be interpreted by LyX, since Sage will
 need it for its computation.

 I can of course type everything in an ERT, but this cannot be called
 integration can it? ;-)

 I have reread again the help document on layouts and insets, and I have
 checked the files that come in the layout folder of LyX, but cannot find
 any answer to my question.

 Sorry for bothering you again with my problems... I hope that Sage
 integration will interest other people...

 Murat

 I definitely need the help of a Lyx wizard who understands well the
 insets and their integration in Lyx/Latex...



 2011/10/31 Murat Yildizoglu myi...@gmail.com

 Just to show you the kind of niceties that such an integration can
 bring, I send you two files. One is the Lyx source and the other one is the
 final PDF.
 In Lyx, I just click on the  Preview button and wait a little bit to get
 the final PDF that I show here, with results of the computations done by
 Sage and converted back to Latex.

 The module isfar from perfect yet (this is the first module I am
 creating), a better integration between the Latex output by Sage, and the
 math mode in LyX would be implemented to have nice equations typeset with
 equation numbers and what not. You can also see that the output of the
 integral by Sage is not very beautiful...

 I will continue to work on this module, but it is already useful for me
 and eliminates some regrets I feel ;-), since I have dropped Scientific
 Workplace in favor of LyX.

 I hope that you will like this new possibilities.

 Best regards,

 Murat

 PS. Sage lives in: http://www.sagemath.org


 --
 Prof. Murat Yildizoglu

 Université Montesquieu Bordeaux IV
 GREThA (UMR CNRS 5113)
 Avenue Léon Duguit
 33608 Pessac cedex
 France

 yi...@u-bordeaux4.fr

  http://yildizoglu.info

 http://www.twitter.com/yildizoglu




 --
 Prof. Murat Yildizoglu

 Université Montesquieu Bordeaux IV
 GREThA (UMR CNRS 5113)
 Avenue Léon Duguit
 33608 Pessac cedex
 France

 yi...@u-bordeaux4.fr

 http://yildizoglu.info

 http://www.twitter.com/yildizoglu





-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

yi...@u-bordeaux4.fr

h http://myildi.e-jemed.org/ttp://yildizoglu.info

http://www.twitter.com/yildizoglu
The Sage module allows the use of the open source Sage mathematical platform 
for computations in Lyx (with results inserted in the final PDF file), in a 
somewhat similar way for R-project with the Sweave module.

To be able to use it, you must have Sage installed on your computer and the 
sage command must be in the path.
See : http://www.sagemath.org/

Sage speaks Latex and can interact with it through the sagetex.sty package.

See: 

Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2011-10-31 Thread Murat Yildizoglu
Just another mail to correct a problem with the preceding Lyx file (see the
new file attached, and the $ signs in ERT boxes, this is connected with the
problem I describe below) and ask a question about insets again:

What kind of Flex insets can be included in a math mode text? Is this
possible at all? Especially in displayed equation where one would like to
include results from SAge computations?
I cannot write the following in math mode in Lyx, putting the left member
in a displayed equation and the right member in a sagecode inset that would
be converted to the expression I give  (\sage{integral(x/(x^2+1),x,0,1))
   \dfrac{\partial^{4}y}{\partial
x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}

I meet two problems:
1/ I cannot insert a Flex:sagecommand inset in a displayed equation, Lyx
just goes to the next line before inserting it...
2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
 "x^2" in the right member must not be interpreted by LyX, since Sage will
need it for its computation.

I can of course type everything in an ERT, but this cannot be called
"integration" can it? ;-)

I have reread again the help document on layouts and insets, and I have
checked the files that come in the layout folder of LyX, but cannot find
any answer to my question.

Sorry for bothering you again with my problems... I hope that Sage
integration will interest other people...

Murat

I definitely need the help of a Lyx wizard who understands well the insets
and their integration in Lyx/Latex...



2011/10/31 Murat Yildizoglu 

> Just to show you the kind of niceties that such an integration can bring,
> I send you two files. One is the Lyx source and the other one is the final
> PDF.
> In Lyx, I just click on the  Preview button and wait a little bit to get
> the final PDF that I show here, with results of the computations done by
> Sage and converted back to Latex.
>
> The module isfar from perfect yet (this is the first module I am
> creating), a better integration between the Latex output by Sage, and the
> math mode in LyX would be implemented to have nice equations typeset with
> equation numbers and what not. You can also see that the output of the
> integral by Sage is not very beautiful...
>
> I will continue to work on this module, but it is already useful for me
> and eliminates some regrets I feel ;-), since I have dropped Scientific
> Workplace in favor of LyX.
>
> I hope that you will like this new possibilities.
>
> Best regards,
>
> Murat
>
> PS. Sage lives in: http://www.sagemath.org
>
>
> --
> Prof. Murat Yildizoglu
>
> Université Montesquieu Bordeaux IV
> GREThA (UMR CNRS 5113)
> Avenue Léon Duguit
> 33608 Pessac cedex
> France
>
> yi...@u-bordeaux4.fr
>
>  http://yildizoglu.info
>
> http://www.twitter.com/yildizoglu
>
>


-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

yi...@u-bordeaux4.fr

http://yildizoglu.info

http://www.twitter.com/yildizoglu


testsage-mod.lyx
Description: Binary data


Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2011-10-31 Thread Xu Wang
Dear Murat,

This is great! I have been waiting for something like this for a long time.
I also like the Sweave-like philosophy of this. It's more transparent and
reproducible.

I am looking forward to the final release with much excitement.

Thank you for your work!

Best,

Xu

On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu  wrote:

> Just another mail to correct a problem with the preceding Lyx file (see
> the new file attached, and the $ signs in ERT boxes, this is connected with
> the problem I describe below) and ask a question about insets again:
>
> What kind of Flex insets can be included in a math mode text? Is this
> possible at all? Especially in displayed equation where one would like to
> include results from SAge computations?
> I cannot write the following in math mode in Lyx, putting the left member
> in a displayed equation and the right member in a sagecode inset that would
> be converted to the expression I give  (\sage{integral(x/(x^2+1),x,0,1))
>\dfrac{\partial^{4}y}{\partial
> x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
>
> I meet two problems:
> 1/ I cannot insert a Flex:sagecommand inset in a displayed equation, Lyx
> just goes to the next line before inserting it...
> 2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
>  "x^2" in the right member must not be interpreted by LyX, since Sage will
> need it for its computation.
>
> I can of course type everything in an ERT, but this cannot be called
> "integration" can it? ;-)
>
> I have reread again the help document on layouts and insets, and I have
> checked the files that come in the layout folder of LyX, but cannot find
> any answer to my question.
>
> Sorry for bothering you again with my problems... I hope that Sage
> integration will interest other people...
>
> Murat
>
> I definitely need the help of a Lyx wizard who understands well the insets
> and their integration in Lyx/Latex...
>
>
>
> 2011/10/31 Murat Yildizoglu 
>
>> Just to show you the kind of niceties that such an integration can bring,
>> I send you two files. One is the Lyx source and the other one is the final
>> PDF.
>> In Lyx, I just click on the  Preview button and wait a little bit to get
>> the final PDF that I show here, with results of the computations done by
>> Sage and converted back to Latex.
>>
>> The module isfar from perfect yet (this is the first module I am
>> creating), a better integration between the Latex output by Sage, and the
>> math mode in LyX would be implemented to have nice equations typeset with
>> equation numbers and what not. You can also see that the output of the
>> integral by Sage is not very beautiful...
>>
>> I will continue to work on this module, but it is already useful for me
>> and eliminates some regrets I feel ;-), since I have dropped Scientific
>> Workplace in favor of LyX.
>>
>> I hope that you will like this new possibilities.
>>
>> Best regards,
>>
>> Murat
>>
>> PS. Sage lives in: http://www.sagemath.org
>>
>>
>> --
>> Prof. Murat Yildizoglu
>>
>> Université Montesquieu Bordeaux IV
>> GREThA (UMR CNRS 5113)
>> Avenue Léon Duguit
>> 33608 Pessac cedex
>> France
>>
>> yi...@u-bordeaux4.fr
>>
>>  http://yildizoglu.info
>>
>> http://www.twitter.com/yildizoglu
>>
>>
>
>
> --
> Prof. Murat Yildizoglu
>
> Université Montesquieu Bordeaux IV
> GREThA (UMR CNRS 5113)
> Avenue Léon Duguit
> 33608 Pessac cedex
> France
>
> yi...@u-bordeaux4.fr
>
> http://yildizoglu.info
>
> http://www.twitter.com/yildizoglu
>
>


Re: Examples of integration between Lyx, Sage computations, and PDFLateX

2011-10-31 Thread Murat Yildizoglu
Hi Xu,

Thank you for your appreciation. I cannot advance anymore without any help
from Lyx gurus.
I think I have extracted all the information I can from the help docs. If I
get any answer to my questions, I can construct a little bit smarter module
but the one we have now is already usable. With some supplementary tricks
from the sagetex documentation and through manual executions of the
latex-sage-latex chain, it is possible to make a lot of computations.

I was also very agreeably surprised that this module can be used for
conversion to HTML from LyX, with figures and all.

I attach to this message the module in its actual stage and some
instruction for making the conversion chain functional. I hope this would
already help some of you.

As soon as I have more information, I will try to complete the module file.

Best regards,

Murat

2011/10/31 Xu Wang 

> Dear Murat,
>
> This is great! I have been waiting for something like this for a long
> time. I also like the Sweave-like philosophy of this. It's more transparent
> and reproducible.
>
> I am looking forward to the final release with much excitement.
>
> Thank you for your work!
>
> Best,
>
> Xu
>
>
> On Mon, Oct 31, 2011 at 12:54 PM, Murat Yildizoglu wrote:
>
>> Just another mail to correct a problem with the preceding Lyx file (see
>> the new file attached, and the $ signs in ERT boxes, this is connected with
>> the problem I describe below) and ask a question about insets again:
>>
>> What kind of Flex insets can be included in a math mode text? Is this
>> possible at all? Especially in displayed equation where one would like to
>> include results from SAge computations?
>> I cannot write the following in math mode in Lyx, putting the left member
>> in a displayed equation and the right member in a sagecode inset that would
>> be converted to the expression I give  (\sage{integral(x/(x^2+1),x,0,1))
>>\dfrac{\partial^{4}y}{\partial
>> x^{4}}=\sage{integral(x/(x^2+1),x,0,1)}
>>
>> I meet two problems:
>> 1/ I cannot insert a Flex:sagecommand inset in a displayed equation, Lyx
>> just goes to the next line before inserting it...
>> 2/ I cannot type the sagetex instruction (*sage{}  ) by hand, because
>>  "x^2" in the right member must not be interpreted by LyX, since Sage will
>> need it for its computation.
>>
>> I can of course type everything in an ERT, but this cannot be called
>> "integration" can it? ;-)
>>
>> I have reread again the help document on layouts and insets, and I have
>> checked the files that come in the layout folder of LyX, but cannot find
>> any answer to my question.
>>
>> Sorry for bothering you again with my problems... I hope that Sage
>> integration will interest other people...
>>
>> Murat
>>
>> I definitely need the help of a Lyx wizard who understands well the
>> insets and their integration in Lyx/Latex...
>>
>>
>>
>> 2011/10/31 Murat Yildizoglu 
>>
>>> Just to show you the kind of niceties that such an integration can
>>> bring, I send you two files. One is the Lyx source and the other one is the
>>> final PDF.
>>> In Lyx, I just click on the  Preview button and wait a little bit to get
>>> the final PDF that I show here, with results of the computations done by
>>> Sage and converted back to Latex.
>>>
>>> The module isfar from perfect yet (this is the first module I am
>>> creating), a better integration between the Latex output by Sage, and the
>>> math mode in LyX would be implemented to have nice equations typeset with
>>> equation numbers and what not. You can also see that the output of the
>>> integral by Sage is not very beautiful...
>>>
>>> I will continue to work on this module, but it is already useful for me
>>> and eliminates some regrets I feel ;-), since I have dropped Scientific
>>> Workplace in favor of LyX.
>>>
>>> I hope that you will like this new possibilities.
>>>
>>> Best regards,
>>>
>>> Murat
>>>
>>> PS. Sage lives in: http://www.sagemath.org
>>>
>>>
>>> --
>>> Prof. Murat Yildizoglu
>>>
>>> Université Montesquieu Bordeaux IV
>>> GREThA (UMR CNRS 5113)
>>> Avenue Léon Duguit
>>> 33608 Pessac cedex
>>> France
>>>
>>> yi...@u-bordeaux4.fr
>>>
>>>  http://yildizoglu.info
>>>
>>> http://www.twitter.com/yildizoglu
>>>
>>>
>>
>>
>> --
>> Prof. Murat Yildizoglu
>>
>> Université Montesquieu Bordeaux IV
>> GREThA (UMR CNRS 5113)
>> Avenue Léon Duguit
>> 33608 Pessac cedex
>> France
>>
>> yi...@u-bordeaux4.fr
>>
>> http://yildizoglu.info
>>
>> http://www.twitter.com/yildizoglu
>>
>>
>


-- 
Prof. Murat Yildizoglu

Université Montesquieu Bordeaux IV
GREThA (UMR CNRS 5113)
Avenue Léon Duguit
33608 Pessac cedex
France

yi...@u-bordeaux4.fr

h ttp://yildizoglu.info

http://www.twitter.com/yildizoglu
The Sage module allows the use of the open source Sage mathematical platform 
for computations in Lyx (with results inserted in the final PDF file), in a 
somewhat similar way for R-project with the Sweave module.

To