Math formatting "Pro tips" edition: Fonts for math text! - "?"
1 Answer
Examples of fonts that you can use for math text.
Explanation:
It didn't occur to me to write this answer when I first found out about these because I don't use different fonts in my answers, but I think that some of you would make good use of them in your answers.
The basic font that we have for math text looks like this
- without hashtags
"Sample text"
- with hashtags
#"Sample text"#
Now, you have
You can thus have
- without hashtags
bb("Sample text using bb()")
- with hashtags
#bb("Sample text using bb()")#
- without hashtags
bbb("Sample text using bbb()")
- with hashtags
#bbb("Sample text using bbb()")#
- without hashtags
sf("Sample text using sf()")
- with hashtags
#sf("Sample text using sf()")#
- without hashtags
fr("Sample text using fr()")
- with hashtags
#fr("Sample text using fr()")#
- without hashtags
tt("Sample text using tt()")
- with hashtags
#tt("Sample text using tt()")#
You can use different fonts for math expressions and equations. For example, you can have
- without hashtags
bb( (-b +- sqrt(b^2 - 4ac))/(2a) )
- with hashtags
#bb( (-b +- sqrt(b^2 - 4ac))/(2a) )#
- without hashtags
bbb( (-b +- sqrt(b^2 - 4ac))/(2a) )
- with hashtags
#bbb( (-b +- sqrt(b^2 - 4ac))/(2a) )#
- without hashtags
sf( (-b +- sqrt(b^2 - 4ac))/(2a) )
- with hashtags
#sf( (-b +- sqrt(b^2 - 4ac))/(2a) )#
- without hashtags
fr( (-b +- sqrt(b^2 - 4ac))/(2a) )
- with hashtags
#fr( (-b +- sqrt(b^2 - 4ac))/(2a) )#
- without hashtags
tt( (-b +- sqrt(b^2 - 4ac))/(2a) )
- with hashtags
#tt( (-b +- sqrt(b^2 - 4ac))/(2a) )#
You can also combine different fonts with color to get things like
- without hashtags
bb(color(red)("Sample text using bb() and color(red)()")
- with hashtags
#bb(color(red)("Sample text using bb() and color(red)()")#
- without hashtags
tt(color(blue)("Sample text using tt() and color(blue)()")
- with hashtags
#tt(color(blue)("Sample text using tt() and color(blue)()")#
And so on and so forth.
You can even use different combinations of fonts if you want. For example, you can have things like
- without hashtags
overbrace( bb("something over here") )^(sf(color(green)("something un top"))) = underbrace( bb("something over there") )_ (sf(color(darkorange)("something on the bottom")))
- with hashtags
#overbrace(bb("something over here"))^(sf(color(green)("something on top"))) = underbrace(bb("something over there"))_ (sf(color(darkorange)("something on the bottom")))#