Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Typing formulas without latex.

  1. Jul 1, 2004 #1
    Let's say I have some simple formulas I want to type -maybe inline- and I don't want to go through the trouble of using latex. Let's say I just want to type mainly symbols that are on the keyboard + some greek letters and subscripts. How can I do this?
    I'll appreciate your suggestions.
  2. jcsd
  3. Jul 1, 2004 #2
    Where do you want the results displayed? On a Web page? Then MathML is probably the answer. But I doubt it is much easier than LateX.

    But why not LaTeX? It is probably the simplest way to display simple math symbols and formulas in existence.
  4. Jul 2, 2004 #3
    Yup, but if all you want are greek super/subscripts, then tags along with using charactermap (assuming you are on a unicode system) it will work.
  5. Jul 2, 2004 #4
    Sorry if I didn't explain in detail. I would like to display those symbols in my posts to this forum.
    I have used latex to do this and I am looking for an alternative. There are people on the threads to which I post that routinely type formulas that are clearly not in latex and they still are able to include greek letters, superscripts, and subscripts.
    I could ask them, but I was trying not to include questions on those threads that are not related to the subject of the thread.
    If you are familiar with this I'll appreciate your help.
  6. Jul 2, 2004 #5

    Doc Al

    User Avatar

    Staff: Mentor

    HTML codes

    I think you are looking for HTML codes that allow you to write things like Δ and θ. Go here: https://www.physicsforums.com/showpost.php?p=170713&postcount=14
  7. Jul 2, 2004 #6
    For superscripts and subscripts in this forum, you can use [ sub ] and [ /sub ] and [ sup ] and [ /sup ] (without the spaces inside the tags). With that, you can do things like this:

    a2 + b2 = c2

    For greek letters, I think you can use HTML entities. This page has a list of them:


    Look at the "Entity" column. For example, Pi is "& pi;" (without the space and the quotes, and make sure to include the semicolon). With that, you can do some things like this:

    c = 1/√(ε0μ0)

    Personally, I think LaTeX is a lot easier than doing all of that, and it's much more powerful. Furthermore, all of this HTML stuff won't necessarily work in older browsers, whereas LaTeX is guaranteed to work in this forum.
  8. Jul 2, 2004 #7
    Doc Al , TALewis and Goalie,
    Thanks for your responses. From what you say and a little experimentation I did, I gather that while html tags are enclosed in the delimeters "<" and ">", on this forum you can use the same tags but enclosing them in "[" and "]".
    So the forum's engine replaces all the "["s by "<"s.
    This makes sense since otherwise we would not be able to write in Dirac notation as it would be interpreted as html tags.
    About greek letters, I typed an alpha using "&" "alpha" ";" and it looked like an "a" on my computer screen.
    Ok, I'll do some testing

    Supescripts: E=mc² This works.
    More superscripts (different method): A=b1/2
    Subscripts: a&sub1;+a&sub2; + a&sub3; (this didn't work)
    Try a different method:
    Subscripts: a1+a2+a3+a4
    Let's see if I can show the html using the "code" tag:
    Code (Text):
    I hope the forum doesn't send email everytime I edit! If it did, you must be kind of angry by now!

    I don't understand what "[ code ]" is for as if I type using "["s it still translates it. Only when I use "<"s they remain intact. But that is the way it would work even if I didn't use "[ code ]"
    Last edited: Jul 2, 2004
  9. Jul 2, 2004 #8
    Not exacly. The tags enclosed by [ ] are vB codes used by this forum. See this page:


    It doesn't work for general HTML tags. That's why things like [table] didn't work in your post. I think HTML might be disabled on this forum.

    Make sure you type the entities exactly as shown on the page I sent you. The codes are, for example:

    & alpha;
    & beta;
    & gamma;
    & delta;

    Including semicolon, without the space. These show up fine for me:


    Do you see Greek alpha, beta, gamma, and delta? If not, let's try the decimal entities in the next column of the page I sent you:

    & #945;
    & #946;
    & #947;
    & #948;

    Once again, no space. Test:


    If none of those show up as Greek characters, then you've come across one of the many frustrations about doing this sort of thing on the WWW: some browsers implement standards differently, poorly, or not at all. You will find that LaTeX always works, without any of this hassle.

    Edit: I agree with you -- the [ code ] [ /code ] tags weren't very helpful in formatting my post either.
    Last edited: Jul 2, 2004
  10. Jul 2, 2004 #9
    Thanks for clariffying the difference between vbcode and html. I had tried the buttons in the edit menu for bold, italic and underline and had noticed that the codes were the same as the corresponding html codes, except for the delimiters. This led me to the wrong conclusion.
    On the other hand, probably you would agree with me that in those cases where the code is the same in vbcode and in html, the end result is that the furum's engine will make the replacement I mentioned. I understand that there may be very few tags for which this applies.
    With respect to the "alpha", it still looks very close to an "a" in your post. When I tried it, I though it was actually being displayed as an "a". (my vission is not as good as it used to be). As I didn't try the other greek letters I thought they were being displayed incorrectly. But I guess it just was the alpha.
    For big equations I am planning on using latex, but for small things I'll use the vbcode tags. Oh! by the way, the way to display greek letters in vbcode is exactly the same as in html.
    Thanks again,
  11. Jul 2, 2004 #10


    User Avatar
    Science Advisor
    Gold Member

  12. Jul 2, 2004 #11

    Tom Mattson

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    While that is a quick way to do it, you get much nicer looking letters if you use the "symbol" font, as follows:

    [ font=symbol ]put letters in here[ /font ]

    (but don't put the spaces in the tags).


  13. Jul 2, 2004 #12
    Assuming you have the same Symbol font, which not all of us have.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Typing formulas without latex.
  1. Energy types (Replies: 44)

  2. Types of pressure (Replies: 1)