#5791: [with patch, needs review] Allow custom packages to be injected or %latex
and the Sage latex mode
-------------------------+--------------------------------------------------
 Reporter:  mabshoff     |       Owner:  jhpalmieri
     Type:  enhancement  |      Status:  assigned  
 Priority:  major        |   Milestone:  sage-4.0  
Component:  misc         |    Keywords:            
-------------------------+--------------------------------------------------
Changes (by jhpalmieri):

  * owner:  cwitty => jhpalmieri
  * status:  new => assigned


Comment:

 Here's an attempt at this.  To use it:
 {{{
 sage: latex.add_macro('\\newcommand{\\foo}{bar}')
 }}}
 and then a %latex cell with \\foo in it will be processed correctly, as
 will %jsmath and %html cells.  Also,
 {{{
 sage: latex.add_to_preamble('\\usepackage{blah}')
 }}}
 will do what it says; it should only have an effect on %latex cells.

 (In this patch, "macros" are things which are processed by latex and
 jsmath, while the "preamble" is only passed to latex.  For both
 categories, you can add to the current string with latex.add_macro or
 latex.add_preamble, or you can replace it with latex.extra_macros or
 latex.extra_preamble.)

 Some pictures are
 [http://sage.math.washington.edu/home/palmieri/misc/foobar.png here] and
 [http://sage.math.washington.edu/home/palmieri/misc/ext.png here].

 Anyway, please test it out; the patch is against 3.4.2.alpha0.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5791#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to