Math & Science ⇒ \newcommand help needed
-
- Posts: 25
- Joined: Wed Oct 22, 2008 5:03 pm
\newcommand help needed
\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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10359
- Joined: Mon Mar 10, 2008 9:44 pm
\newcommand help needed
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}
Code: Select all
$\mathcal{E}$
-
- Posts: 25
- Joined: Wed Oct 22, 2008 5:03 pm
Re: \newcommand help needed
Thanks for the help. The $\mathcal$ worked.
Peaches