#10146: update SageTeX spkg to version 2.3
---------------------------+------------------------------------------------
   Reporter:  ddrake       |       Owner:  ddrake      
       Type:  enhancement  |      Status:  needs_review
   Priority:  minor        |   Milestone:  sage-4.6.1  
  Component:  packages     |    Keywords:              
     Author:  Dan Drake    |    Upstream:  N/A         
   Reviewer:               |      Merged:              
Work_issues:               |  
---------------------------+------------------------------------------------

Comment(by novoselt):

 Optimization suggestion for listings-styles: `basicstyle` propagates to
 all other ones, so setting it to `\ttfamily` makes everything typeset with
 it. Also, there is no bold version of typewriter fonts (at least for
 standard fonts of LaTeX), so `\bfseries` didn't do anything. The following
 commands do for me the same typesetting as the original ones, but look a
 little cleaner and make it easier for the user to understand what should
 be changed. (I wanted to make everything a little smaller, and my first
 impression was that I have to insert `\small` into 10 places or so, but
 one turned out to be enough.)

 {{{
 \lstdefinestyle{DefaultSageInputOutput}{
   nolol,
   identifierstyle=,
   name=sagecommandline,
   xleftmargin=5pt,
   numbersep=5pt,
   aboveskip=0pt,
   belowskip=0pt,
   breaklines=true,
   basicstyle={\ttfamily},
   numberstyle=\footnotesize,
   numbers=right
 }
 \lstdefinestyle{DefaultSageInput}{
   language=Sage,
   style=DefaultSageInputOutput,
   commentstyle={\color{dgreencolor}},
   keywordstyle={\color{dbluecolor}},
   stringstyle={\color{dgraycolor}},
 }
 \lstdefinestyle{DefaultSageOutput}{
   language=SageOutput,
   style=DefaultSageInputOutput,
   commentstyle={\color{dgreencolor}},
   keywordstyle={\color{dbluecolor}},
   stringstyle={\color{dgraycolor}},
 }
 }}}
 In the last definition I think all styles can go since the output should
 not be typeset with any kind of "syntax highlighting", in particular
 True/False should not be blue.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10146#comment:18>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
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