On Mar 17, 12:03 pm, Carl Witty <carl.wi...@gmail.com> wrote:
> On Tue, Mar 17, 2009 at 11:55 AM, John H Palmieri
>
> <jhpalmier...@gmail.com> wrote:
> > Well, I've been trying to modify 'latex_preamble' in sage/doc/common/
> > conf.py, and I'm having no luck at all: no changes I make have any
> > effect. It seems like a good place to put a few macros (like \ZZ), but
> > maybe that variable isn't used either?
>
> I modified latex_preamble, did "sage -docbuild a_tour_of_sage latex",
> and the changes I made showed up in
> doc/output/latex/en/a_tour_of_sage/a_tour_of_sage.tex.  (I picked
> a_tour_of_sage because it's the smallest document, so presumably the
> fastest to play with.)
>
> Carl

Of course you're right. Since 'sage -docbuild blah html' also runs
latex (which you can see if you put \ZZ in some docstring somewhere --
you'll get a LaTeX error about an undefined control sequence), I was
hoping that latex_preamble would also affect the html output.  It
doesn't: pngmath_latex_preamble does, though.

So I think it's easy to implement TeX macros into Sage: see <http://
trac.sagemath.org/sage_trac/ticket/5555>. What macros should we
implement? I have \ZZ, \CC, \RR, and \QQ so far.  The file $SAGE_ROOT/
devel/sage/doc/common/macros.tex has lots of other choices, way too
many I think.  If we can settle on a good selection, I will modify the
ticket to add them.

  John

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

Reply via email to