4

I want to use the \rightarrow without the \mathit command. Here is what I want to write: [ID, List of symbols] \rightarrow Sequence of rules but when I write it using \mathit command all the spaces are collapsed.

(\mathit{[ID, List of symbols]  \rightarrow  Sequence of rules }\)

How do I correct this?

4
  • 2
    Why is it in math mode in the first place?
    – Werner
    May 9 '13 at 20:27
  • Use text or textit (or a combination of both) (and also what Werner said???) May 9 '13 at 20:27
  • I get a "! Missing $ inserted" error
    – Bruce
    May 9 '13 at 20:31
  • 6
    @bruce: Use [ID, List of symbols] $\rightarrow$ Sequence of rules
    – Werner
    May 9 '13 at 20:38
7

Make the text parts of your formula text instead of maths

$\hbox{[ID, List of symbols]} \rightarrow \hbox{Sequence of rules}$

or if you prefer "proper" LaTeX and you have the amsmath package loaded to give you the \text command

\(\text{[ID, List of symbols]} \rightarrow \text{Sequence of rules}\)

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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