Ask Your Question
1

MathJax Font Sizes and Spacing/Positioning in Notebook

asked 2013-04-11 01:41:01 +0100

rickhg12hs gravatar image

updated 2013-04-11 01:43:13 +0100

I'd like to control the Latex fontsize in the notebook. In the first cell, I placed:

%html
<style>.MathJax {font-size: 200%;}</style>

... and in later cells' view() outputs the individual characters/symbols increase in size but the positioning/spacing gets all spread out and ugly.

What's the right/easy way to increase the latex fontsize in Sage's notebook and still have it look good?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-04-11 04:00:44 +0100

ppurka gravatar image

Right click on any rendered Latex expression and you will get a MathJax menu. In that menu, you will get the option to scale all math, or zoom with some trigger, etc.

edit flag offensive delete link more

Comments

Is this in the notebook documentation? It seems like this would be useful on the "Help" page, not (just) in the reference manual, though it could be good there too...

kcrisman gravatar imagekcrisman ( 2013-04-11 11:40:07 +0100 )edit

Well, it is in the MathJax docs :) I had once implemented a way for this menu to popup on double click, just like in jsmath the latex would popup on double click. Not sure if there is any interest in that behavior anymore.

ppurka gravatar imageppurka ( 2013-04-11 12:59:55 +0100 )edit
1

Thanks, I hadn't tried right-click. Is there an easy way to control this programmatically on a per-cell basis? The right-click options seems to affect the entire worksheet.

rickhg12hs gravatar imagerickhg12hs ( 2013-04-11 18:09:12 +0100 )edit

Does something like this help? html("this is $%s$"%(LatexExpr(x^2 + 2))) It is quite fragile though. And the `` tag is also deprecated for years, and is not available in HTML5.

ppurka gravatar imageppurka ( 2013-04-11 23:45:46 +0100 )edit

Thanks. That may be enough for now. Would MathJax need some visibility into the javascript to get more/better fontsize control?

rickhg12hs gravatar imagerickhg12hs ( 2013-04-15 16:12:26 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-04-11 01:41:01 +0100

Seen: 3,865 times

Last updated: Apr 11 '13