# How to use \rightarrow in normal sentence construction

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?

• 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???) – Sean Allred May 9 '13 at 20:27
• I get a "! Missing $inserted" error – Bruce May 9 '13 at 20:31 • @bruce: Use [ID, List of symbols]$\rightarrow$Sequence of rules – Werner May 9 '13 at 20:38 ## 1 Answer Make the text parts of your formula text instead of maths $\hbox{[ID, List of symbols]} \rightarrow \hbox{Sequence of rules}\$

or if you prefex "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}$$