Math & Science\newcommand help needed

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
peaches2165
Posts: 25
Joined: Wed Oct 22, 2008 5:03 pm

\newcommand help needed

Post by peaches2165 »

I am typesetting a paper with

\newcommand[\cE}{\cal E}

when latex the paper, it give me an undefined control sequence. I am using other newcommands, but the above isn't working. I've even tried to put the straight {\cal E} and still get an error.

Any help would be appreciated.

Thanks,

peaches

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

\newcommand help needed

Post by Stefan Kottwitz »

Hi peaches,

perhaps post a complete small example, which produces the error, and possibly your .log file. This small example works:

Code: Select all

\documentclass{article}
\begin{document}
$\cal E$
\end{document}
However, you could try

Code: Select all

$\mathcal{E}$
Stefan
LaTeX.org admin
peaches2165
Posts: 25
Joined: Wed Oct 22, 2008 5:03 pm

Re: \newcommand help needed

Post by peaches2165 »

Hi,

Thanks for the help. The $\mathcal$ worked.

Peaches
Post Reply