On Mar 18, 1:48 pm, William Stein <wst...@gmail.com> wrote:
>
> Why not have some special shortcut so that we can typeset any ring
> using Sage itself. E.g.,
> in answer to your question "what should CDF" typeset as, I answer
>
> sage: latex(CDF)
>
> Then we can argue about what latex(CDF) should be in Sage instead...
> Building the docs could auto-define macros for all the standard
> pre-defined rings by calling Sage and getting the output of the latex
> command.
>
> Then the arguments below about how to typeset GF(p) also disappear (or
> change form) -- just typeset GF(p) as whatever
>
> sage: latex(GF(p))
>
> typesets as.
>
> My proposal has the advantage of consistency in that the typesetting
> in the docs will match the typesetting in sage.

I have a patch which does some of this: see <http://trac.sagemath.org/
sage_trac/ticket/5555>.  It doesn't 'automatically' create macros for
anything, but the macros are created using Sage's latex methods; thus
\ZZ turns into \mathbf{Z} and \CC turns into (the undefined command)
\C.  I only have about half a dozen macros right now, but it's easy
enough to add more.

  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