TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following code that raises "undefined control sequence" error on the line that draws redarrow. When I continue with compilation, it does produce the red arrow, but gives this error that I can't figure out.



\tikzstyle{redarrow}=[->, >=triangle 90,dashed, red]

\tikzstyle{every entity} = []
\tikzstyle{smentity} = [rectangle, draw, black, 
                      minimum width=4em, minimum height=2em,
                      every entity]

\begin{tikzpicture}[node distance=1cm, every edge/.style={link}]

\node[smentity] (d1) {1111 1101};

\draw[redarrow] (d1.130) -- ++(0,0.4) node[above]{\alert{11101}} -|  (d1.35);

share|improve this question

closed as too localized by percusse, Claudio Fiandrino, Tom Bombadil, egreg, lockstep Sep 30 '12 at 16:34

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

It has a beamer related command \alert. You can use \textcolor{red}{11101} instead – percusse Sep 30 '12 at 13:35
Thank you... I am not having a good day making naive mistakes. I copied the code from a beamer presentation and never caught on to the \alert. Much appreciated. – ozsu Sep 30 '12 at 13:41
@percusse sounds like you've fixed this; could you post an answer- otherwise, if the problem is solved, should this question be closed as too localized? – cmhughes Sep 30 '12 at 14:29
@cmhughes Better close it too localized. I've voted for that – percusse Sep 30 '12 at 14:32

Browse other questions tagged or ask your own question.