I wanted to put a bar over my variable such as not(x) and also some set symbols in my web page? How do I incorporate that in my html page.
+6
A:
For the set symbols, you ought to use unicode HTML entities.
For the line over a variable (p), I'd rather use an alternate symbol for not, such as:
¬p (¬p
)
You may also, as a commenter pointed out, use the combining diacritical unicode HTML entity like so:
p̅ (p̅
)
Lastly, you may use one of the CSS methods provided.
Triptych
2009-06-09 13:34:28
Those are great for the symbols but how about the bar?
Michael Haren
2009-06-09 13:36:31
Good point, I like that better, too.
Michael Haren
2009-06-09 13:38:52
For a bar you could use the combining diacritic 0x0305 (see http://unicode.org/charts/PDF/U0300.pdf)
Paul Dixon
2009-06-09 13:43:00
Very cool Paul; I didn't know about this. Added to my answer.
Triptych
2009-06-09 13:50:45
FWIW, that diacritic doesn't work in Google Chrome.
Dominic Rodger
2009-06-09 13:54:18
@Dominic - for what it's worth, I'm looking at it right now in Google Chrome.
Triptych
2009-06-09 13:54:55
I'd rather track down a tool designed to enter mathematical symbols and then use straight Unicode rather than entities. It will result in more readable source code.
David Dorward
2009-06-09 14:10:53