Hello,

I would like to consider some HTML styles in a worksheet (principally
controlling margins and fonts). For example, I would be able do define
a style for definitions, another one for theorems and so on. My actual
solution for this is to define python functions :
{{{
sage: def formatting1(s): html("<p style='font-size: 12pt; color:
#A10000;'>" + s + "</p>")
}}}
and use hide cells. But it is not well adapted : using python here is
messy and there is no css-inheritance possibility (i.e. controlling
list or citation renderings inside a paragraph of a given class).

Is there a way to have a css stylesheet inclusion in the header of a
Sage worksheet ? Or a general method for controlling the HTML header ?

Or, if the answer to those questions is "no", do you have a better
solution than mine for my problem ?

Vincent

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to