[sage-support] Re: using latex packages

2008-08-29 Thread Stan Schymanski

Hi Maike,

Have you heard of sagetex? This allows sage computations as part of the 
compilation of a latex file. From my experience, this is not very good 
for interactive work because all the code within the latex file is 
compiled every time you run sage over your document, but it's great for 
getting a nicely typeset document that does all the sage calculations 
and plots you want.

Check out: http://www.ctan.org/tex-archive/macros/latex/contrib/sagetex/

I believe that this would allow you to use any latex functionality you like.

Stan

Maike wrote:
 Hello again,

 is there any way to use latex packages within sage? I'd like to write
 a german text, and that will be a pain if

 %latex
 \usepackage{ngerman}

 doen't work. Maybe I first have to install the package somewhere??

   
 



--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: using latex packages

2008-08-29 Thread William Stein

On Fri, Aug 29, 2008 at 1:22 AM, Maike [EMAIL PROTECTED] wrote:

 Hello again,

 is there any way to use latex packages within sage? I'd like to write
 a german text, and that will be a pain if

 %latex
 \usepackage{ngerman}

 doen't work. Maybe I first have to install the package somewhere??

There is no current supported way to do the above.

It shouldn't be hard for somebody to add though.  How complicated
of a pre-amble do you want?  Would something like the following
be acceptable to you?


sage: latex.set_preamble('\\usepackage{ngerman}  [etc]')

then henceforth %latex would always include
the \usepackage{ngerman} code before typesetting
a cell.  The above would be extremely easy to implement.

 -- William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: using latex packages

2008-08-29 Thread Maike

Hi William,

That sounds great to me. As long as it'll allow me to load the ngerman
package in the notebook version of Sage, that'll do. Thanks!

Maike

P.S. And thanks Stan for the hint! I didn't know sagetex. As I'm using
the notebook to combine latex typesetting with the interact
functionality of Sage, it's probably not the best idea. But it might
be helpful for future projects!
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---