Ask Your Question
1

MathJax Font Sizes and Spacing/Positioning in Notebook

asked 2013-04-10 18:41:01 -0500

rickhg12hs gravatar image

updated 2013-04-10 18:43:13 -0500

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-10 21:00:44 -0500

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 04:40:07 -0500 )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 05:59:55 -0500 )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 11:09:12 -0500 )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 16:45:46 -0500 )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 09:12:26 -0500 )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-10 18:41:01 -0500

Seen: 1,380 times

Last updated: Apr 10 '13