TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If i write $t=a$ in LaTex, I get "t = a". If I write $t=?$ I get "t =?" but I want to get "t = ?". The ? shall have the same distance from the equals sign as any other variable or letter. Is there a way to to treat the "?" the same way as any other letter in a formula?

To make clear how $t=a$ and t=? look like, I have added a screenshot.To make clear how <code>$t=a$</code> and <code>t=?</code> look like, I have added a screenshot.

share|improve this question
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. – Jubobs Apr 20 '14 at 12:47
up vote 12 down vote accepted

Use the \mathord command to declare an ordinary mathematical symbol, as in:

t = \mathord{?}

If you're going to be using this repeatedly, I would define something like


so that you can use it easily (and be true to the semantic ideals of LaTeX, etc. etc.).


enter image description here

share|improve this answer

?is a punctuation symbol. Try $t={}?$.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.