First time here? Check out the FAQ!

Ask Your Question
0

Notebook font settings?

asked 13 years ago

Eugene gravatar image

Is there any way to change the default set of fonts used in notebook? For interface, code editor and text output?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 13 years ago

I don't know of any easy way. An inconvenient way: edit the file SAGE_ROOT/devel/sagenb/sagenb/data/sage/css/main.css. For example, changing the line

body { background-color: white; }

to

body { background-color: white; font-family: impact, chicago; }

affects some of the fonts. Alternatively, notice that this file main.css says at the beginning

/* Warning: These .css files are automatically generated and will be overwritten */
/* when they are next generated. Please edit the SASS source located at */
/* <sagenb-spkg-root>/sass/src. Kindly refer to the readme for editing */
/* instructions at <sagenb-spkg-root>/sass */

So you could follow these directions and instead read SAGE_ROOT/devel/sagenb/sass/readme.txt and edit files in the directory SAGE_ROOT/devel/sagenb/sass/src/, and then compile the changes using compass.

Preview: (hide)
link

Comments

A pretty complicated solution... I am now thinking about another approach - using Firefox with Stylish plugin (it allows to create css wich will override existing rules)

Eugene gravatar imageEugene ( 13 years ago )

Thank you for reply! A pretty complicated solution... I am now thinking about another approach - using Firefox with Stylish plugin (it allows to create css wich will override existing rules)

Eugene gravatar imageEugene ( 13 years ago )

that wil work only for you, while the solution above will work for anyone connecting to the Sage server

pang gravatar imagepang ( 13 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

Stats

Asked: 13 years ago

Seen: 852 times

Last updated: Jan 08 '12