#5610: [with patch, not ready for review?] LaTeX customization
---------------------------+------------------------------------------------
 Reporter:  jhpalmieri     |       Owner:  jhpalmieri
     Type:  enhancement    |      Status:  new       
 Priority:  major          |   Milestone:  sage-3.4.2
Component:  documentation  |    Keywords:            
---------------------------+------------------------------------------------
 This patch attempts to implement LaTeX customizations for the following
 things:

 1. matrix and vector delimiters (see #5474 -- this patch moves that code
 around)

 2. the use of plain bold vs. blackboard bold for ZZ, RR, etc.

 It almost succeeds, except that I don't know how to get jsMath to display
 blackboard bold fonts, so it doesn't work completely in the notebook.
 (This is why the ticket is labeled as not being ready for review.)

 Here's what it does: from the command line,

 {{{
 sage: latex_customize.use_blackboard_bold(True)
 sage: view(ZZ)
 }}}

 will pop up a PDF or DVI file with a blackboard bold ZZ.  Similarly, in
 the notebook,
 {{{
 latex_customize.use_blackboard_bold(True)
 }}}
 followed by a cell containing
 {{{
 %latex
 $\ZZ$
 }}}
 will show a blackboard bold Z.

 From either the command line or the notebook,
 {{{
 latex_customize.set_vector_delimiters("\\langle", "\\rangle")
 latex_customize.set_matrix_delimiters("\\{", "]")
 }}}
 will change the left and right vector and matrix delimiters as indicated.

 There are also tons of changes in the second patch of the sort
 "\mathbf{Q}" --> "\QQ".  The idea here is, first, to make the docstrings
 more readable, and second, to make it easy to change between \mathbf and
 \mathbb.  Note that "\QQ" is defined (via #5555) as the output of the
 {{{_latex_}}} method for QQ which this patch redefines to be "\Bold{QQ}",
 and setting {{{use_blackboard_bold}}} controls the definition of the
 command "\Bold".

 Now, if you want to typeset the reference manual, say, with blackboard
 bold instead of the default bold, the PDF version is relatively easy: just
 create the latex version ({{{sage -docbuild reference latex}}}) and edit
 the preamble: change the definition of \Bold, and run latex.  For the html
 version, you probably have to edit the definition of \Bold in
 sage/misc/latex_macros.py, or add \renewcommand{\Bold}... in the right
 place in sage/doc/conf.py; then run {{{sage -b}}}, then build the docs. As
 you can see, I don't have very good ideas about how to change the
 reference manuals -- should there be a command-line switch to {{{sage
 -docbuild}}}? -- so please chime in if you think of something.

 See [http://groups.google.com/group/sage-
 devel/browse_frm/thread/68cdf05b40303286 this thread] on sage-devel for
 some more discussion, especially about mathbf vs. mathbb.

 This ticket depends on #5359, #5433, and #5568 (all of which will be part
 of Sage 3.4.1.alpha0), and also on #5555.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5610>
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