General$ symbol

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

$ symbol

Post by Mini »

Hello,

In my LaTeX output log I have alot of errors.

Basically they are:

! Missing $ inserted.

When am I supposed to enter the '$' symbol in my code?

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

$ symbol

Post by frabjous »

$ is one way of entering/exiting math-mode. It's not the only way, however. You'll get this error, however, whenever you use math mode commands in text mode.

Use $...$ around math you want to use inside a paragraph.

Use \[ ... \] for displayed math.

Or use the other options for entering math mode.

You're asking some extremely basic questions all over the forum. I think it might be best for you read carefully a beginner's guide like this one:

"The Not So Short Introduction to LaTeX 2e"

And then come back here and ask your remaining questions afterwards, rather than expecting the forum to answer all your basic questions.
Last edited by frabjous on Sat Aug 08, 2009 7:18 am, edited 1 time in total.
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: $ symbol

Post by josephwright »

TeX is telling you that it found something which was supposed to be in maths modes, but wasn't. So it guessed that you wanted maths mode and inserted $ (the "maths shift" token). We'll need to see some source to be more helpful.
Joseph Wright
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

Re: $ symbol

Post by Mini »

Thank you very much for that guide. If only someone could've pointed it to me earlier -_-;
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

$ symbol

Post by localghost »

Translated versions of lshort can be found on CTAN.


Best regards
Thorsten
Post Reply