PDA

View Full Version : very basic latex question



orlox
April 10th, 2006, 03:06 AM
I'm having a very simple, but annoying problem in latex. I need to write "0000008.FIT_0, and when trying to build the document, it says that what I wrote was wrong because of the _ that corresponds to the character used to subscript something. How can I solve this? This also made me thought, what if I want to write something like \frac{}{} so it displays just like simple text?

mentok
April 10th, 2006, 03:26 AM
Try 0000008.FIT\_0

](*,)

hod139
April 10th, 2006, 05:04 AM
The backslash is the escape character. So to write the frac command:

\\frac\{\}\{\}
or to make it stick out you can use a verbatim environment


\verb \frac{}{} {} foo % Need the {} to get the space before foo
\begin{verbatim}
\frac{}{}
\end{verbatim}