First time here? Check out the FAQ!

Ask Your Question
2

How to change default font-size in shift-click-created cells inside Sage Notebook?

asked 12 years ago

anatematic gravatar image

updated 12 years ago

To insert text with Latex in Sage Notebook we can create a special cell with a nice embedded text-editor by shift-clicking between two cells, but then the default font is really tiny compared to the one of the code. Change it every time is quite annoying. Any way to change it once and for all?

EDIT: I mean the default font size both in the output and in the editor while composing.

Preview: (hide)

Comments

Did you figure out the solution for increasing font size while composing?

NahsiN gravatar imageNahsiN ( 10 years ago )

1 Answer

Sort by » oldest newest most voted
3

answered 12 years ago

ppurka gravatar image

updated 12 years ago

You can create a file $HOME/.sage/notebook.css with the following content

.text_cell { font-size: 16px; }

Then restart your notebook. Change the font size to what you like of course.

Preview: (hide)
link

Comments

Thank you! This solves half of the problem, the one about the output. I've edited my question, adding that I'm annoyed also by the size of the text in the editor itself.

anatematic gravatar imageanatematic ( 12 years ago )
1

I am not so sure about the content in the tinymce editor. I suspect it is controlled by the tinymce editor itself, and given what my searches came up with, one needs to [provide a custom css file](http://stackoverflow.com/questions/4427407/how-to-change-default-font-size-in-tinymce) during the init of the editor.

ppurka gravatar imageppurka ( 12 years ago )

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 12 years ago

Seen: 1,078 times

Last updated: Jan 16 '13