V
vinay
How do i write mathematical symbols such as ^p (p-cap) , Po(p-not) in
HTML correctly?Please help.
HTML correctly?Please help.
vinay said:How do i write mathematical symbols such as ^p (p-cap) , Po(p-not) in
HTML correctly?Please help.
How do i write mathematical symbols such as ^p (p-cap) , Po(p-not) in
HTML correctly?Please help.
This is a broad question and one could write a book on it (except that it
would not sell).
I don't understand "Po(p-not)", perhaps because it is literally some new
math.
Herbert said:If you want to display superscripts then use an inline style such as
<SUP>exponent</SUP>.
HTML mimics the negation operator by using
<SPAN style="text-decoration: overline">some text</SPAN>.
What has the question got to do with superscripts?
Which "the negation operator"? You seem to imply that "o" after "P" means a
line over "P". This is admittedly a better guess than superscript zero and
corresponds to one way (an odd way if you ask me, and even if you don't) of
denoting negation in formalisms.
Maybe we'll never know what the question was really about...
But there are serious flaws with your claim that HTML mimics the negation
operator. It's actually quite absurd. First, text-decoration is CSS and has
nothing to do with HTML. Second, using CSS to convey such an essential
information as logical negation is - really absurd. This is not about the
visual rendering of the letter "P" but about something purported to express
the negation of P.
If you wanted to use a horizontal line above a letter as a symbol of
negation, then the question really is whether it would be better to use
COMBINING MACRON U+0304 or COMBINING OVERLINE U+0305 for it. On the
practical side, both of them tend to produce awful results when used after
"P", on present-day browsers. After "p", the situation is different, and I'd
vote for U+0305 on the practical ground that it tends to be longer.
vinay said:How do i write mathematical symbols such as ^p (p-cap) ,
Po(p-not) in HTML correctly? Please help.
I obtained excellent results using mathml. Mathml is difficult to
"hand-code"; but by including a piece of javascript called
asciimathml, it can be done with an easy "shorthand". E.g p-cap
can be written as `hat(p)`. You can even use (La)TeX notation.
Examples (with explanation & links) are on my experimental pages:
http://www.jw-stumpel.nl/bounce.htmlhttp://www.jw-stumpel.nl/test/greenhouse.html
In the second example, I managed to produce numbered equations.
Never mind the (mostly bullshit) content of those pages. Just look
at the formulas, and follow the asciimathml link.
Helpful said:Doesn't work in IE7 on my computer.
It did on mine (when I was still using Windows/IE7; in fact better
than in FF at the time, although FF has since been improved). Did
you install Mathplayer and the math fonts? Is javascript enabled?
I think that is a bit pessimistic. Certainly at least 0.02 % ofHelpful said:Of course I didn't install those items. Nor will 99.99% of
people viewing the web site. However, it did display OK in FF.
What has the question got to do with superscripts?
Which "the negation operator"? You seem to imply that "o" after "P" means a
line over "P". This is admittedly a better guess than superscript zero and
corresponds to one way (an odd way if you ask me, and even if you don't) of
denoting negation in formalisms.
Maybe we'll never know what the question was really about...
But there are serious flaws with your claim that HTML mimics the negation
operator. It's actually quite absurd. First, text-decoration is CSS and has
nothing to do with HTML. Second, using CSS to convey such an essential
information as logical negation is - really absurd. This is not about the
visual rendering of the letter "P" but about something purported to express
the negation of P.
I think that is a bit pessimistic. Certainly at least 0.02 % of
the people who are interested enough in the content of a page to
search for it in Google, will have the sense to follow
instructions which are clearly displayed at the beginning of it.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.