[sage-support] Re: No sans-serif font in notebook latex entries

2009-05-13 Thread Brian Hawkins

I did not know about the %latex command, thanks for the tip.

Looking at the symbol table, I found one that serves my particular
purpose well: \top.  $M^\top$ renders as I'd like for a transpose and
avoids using an unsupported font in jsMath.

Brian

On May 12, 4:55 am, Jason Grout  wrote:
> Rob Beezer wrote:
> > Hi Brian,
>
> > In a notebook cell, I enter and evaluate:
>
> > %latex
> > $M^\mathsf{T}$
>
> > and get back a slanted M and a very crisp, upright superscript T.  So
> > it can be done, but this is accomplished by running a full-blown
> > instance of TeX and creating a PNG graphic as output.  $M^{\sf T}$
> > looks to render identically.
>
> > I get the error you mention when I add $M^\mathsf{T}$ via the TinyMCE
> > editor (shift-click on a blue bar).  I think this gets interpreted by
> > jsMath, so any fonts will come from jsMath.  From here I'm not sure
> > how to proceed, but maybe this will be enough for somebody else to
> > show the way forward.
>
> Searching in the jsmath source shows that \mathrm and \rm are defined,
> but \mathsf and \sf don't seem to be defined.
>
> Davide, does jsmath implement san serif fonts?
>
> Thanks,
>
> Jason
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] No sans-serif font in notebook latex entries

2009-05-11 Thread Brian Hawkins

Hi,

First I'd like to say that I'm new to sage, I like it very much so
far, and I am excited by its potential.  The attention to
documentation is especially nice.

I currently have an issue with sans serif fonts in latex math entered
in the notebook interface.  Specifically I'm trying to get a nice-
looking transpose operator with something like $M^\mathsf{T}$ or
similarly $M^{\sf T}$.  In the notebook display I get the error,
"Unknown control sequence '\sf'."  The \bf (bold) and \rm (Roman)
macros work fine, though.  Is there any way to get \sf working?

I'm on a Mac OS X 10.5.6 with sage 3.4.1.  I followed the instructions
in the FAQ to install TeX .ttf fonts with no joy.

Thanks,
Brian

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