The official list of characters available in html is at:
http://www.w3.org/TR/html4/sgml/entities.html#h-24.3
It seems that overline exists only as an independent character.
A natural solution is unicode which has combining diacriticals:
http://www.unicode.org/charts/PDF/U0300.pdf
Therefore, this should work:
<meta CONTENT="text/html CHARSET=UTF-8">
xİ <!-- should be x overline -->
but I find it is not supported on my browser.
Never use MS Word equation editor. It produces very poor quality typesetting.
If you want to use an image, tex2im produces far better results and is much easier to use:
http://www.nought.de/tex2im.php
For example, the command "tex2im '\overline{x}'" produces http://keithbriggs.info/xbar.png.
Keith
Dr. Keith M. Briggs
Senior Mathematician, Complexity Research
Mobility Research Centre, BT
http://keithbriggs.info/
-----Original Message-----
From: A UK-based worldwide e-mail broadcast system mailing list
[mailto:[log in to unmask]]On Behalf Of Margaret MacDougall
Sent: 13 October 2005 19:40
To: [log in to unmask]
Subject: Query re html coding for sample mean
I would be most grateful for suggestions on how best to code the conventional symbol for the sample mean (which I am taking to be a small x with a bar immediately above it) in the language of html.
At present, I am using the following approach:
<style type="text/css">
#overline {text-decoration: overline}
</style>
<div id=overline>x,</div>
However, this tends to give a rather make-shift result, as the 'overline' tends to sit rather aloof from the x. Moreover, the character is forced onto a new line and therefore is not embedded in my sentence as wished.
I have consulted several good html books and discovered that whilst listings of characters and codes are made for many characters including latin letters with circumflexes, the character I am after is not represented.
I am learning html almost from scratch and expect that a more experienced user could offer some code which has worked for them in the past.
An alternative approach would be to capture as an image the result of creating my desired character using an MS Word equation editor. However, this seems a little far fetched for just one character.
Thank you in advance for your suggestions.
Best wishes
Margaret
|