# character in TeX

Discussion in 'Off-Topic' started by Papabravo, Dec 11, 2014.

  1. Papabravo

    Thread Starter Expert

    Feb 24, 2006
    10,152
    1,793
    I'm having some trouble with TeX
    1. How do I make the hash character?
    2. How do I make an embedded space in an expression?
     
  2. LDC3

    Active Member

    Apr 27, 2013
    920
    160
    The escape character is "\". So to get a space, there are several forms defined, but not all of them are implemented on each processor. The most common space is "\ ", a smaller space is "\;", or is it "\,", or "\.". I don't remember which is which. The hash character should be "\#".
     
  3. Papabravo

    Thread Starter Expert

    Feb 24, 2006
    10,152
    1,793
    I knew about the escape character, and the reason I asked about the hash symbol is that \# does not work on this board, and I think a hash by itself might be a comment. Try it and see.
    Thanks for the heads up on spaces.
     
  4. LDC3

    Active Member

    Apr 27, 2013
    920
    160
    \sharp will work
     
    Papabravo likes this.
  5. Papabravo

    Thread Starter Expert

    Feb 24, 2006
    10,152
    1,793
  6. Georacer

    Moderator

    Nov 25, 2009
    5,142
    1,266
    Indeed, it's not one of the best out there...
     
  7. Papabravo

    Thread Starter Expert

    Feb 24, 2006
    10,152
    1,793
    It's actually the sharp sign from a music key signature.
    The better question is why doesn't \# work. Why does it misbehave?
     
Loading...