Math & ScienceProblem with AMS symbol under $$ environment

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
yoyega
Posts: 2
Joined: Mon Nov 07, 2011 7:07 pm

Problem with AMS symbol under $$ environment

Post by yoyega »

Hi, I am having a little problem with some AMS symbols. The problem is that when I use in my text something like:

Code: Select all

...even if $ W \ll L$ ...
I get an 'Undefined symbol error' pointing out to the \ll symbol. BUT if I write:

Code: Select all

\begin{equation}
W \ll L
\end{equation}
everything works fine.

Does anyone knows why the mathematical environment defined by $$ doesn't work in this case?? I am using kile editor under kubuntu 11.04

Thanks in advance,
Yoyega
Last edited by Stefan Kottwitz on Wed Nov 09, 2011 12:40 am, edited 1 time in total.

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Problem with AMS symbol under $$ environment

Post by Stefan Kottwitz »

Hi Yoyega,

welcome to the board!

This code works without error:

Code: Select all

\documentclass{article}
\usepackage{amssymb}
\begin{document}
\begin{equation}
W \ll L
\end{equation}
...even if $ W \ll L$ ...
\end{document}
Try it. The problem may be caused by code which you did not show yet, please post a complete small example (as I did) which produces that error.

Stefan
LaTeX.org admin
yoyega
Posts: 2
Joined: Mon Nov 07, 2011 7:07 pm

Re: Problem with AMS symbol under $$ environment

Post by yoyega »

Hi Stefan_K, thank you very much for your reply. At the end, what I did, was to move all important files to a new directory, and to use command line instead of kile...and it magically worked!! Everything compiles now!...I don't know what the real problem was, but...

Thanks,
Yoyega

PD: by the way, nice forum...lots of information :)
Post Reply