I am trying to make arrow labels look like they are written in math mode. This is what I have:
This is what I want ,
I tried to use different fonts but without success. This is my code:
\begin{tikzpicture}[node distance=2cm,inner sep=2pt,minimum size=0.5mm, bend angle=45]
\tikzstyle{place} = [ circle,draw=black,fill=black,thick ]
\tikzstyle{surd} = [circle]
\tikzstyle{pre} = [ <-,shorten <=2pt,shorten >=2pt, >=stealth', semithick]
\tikzstyle{every node} = [font=\normalsize\itshape]
\node[place] (first) {};
\node[place] (second) [right=of first] {}
edge [pre,bend right] node [above] {$a$} (first)
edge [pre,bend left] node [below] {$b$} (first);
\node[place] (third) [right=of second] {}
edge [pre] node [above] {$c$} (second);
\node[surd] (surd) [right=of third] {\Large$\surd$}
edge [pre] node [above] {$d$} (third);
\end{tikzpicture}
Best Answer
With the Beamer class you may want to use:
to render in serif font only the math. If one does not want to type every time the
$
to enter in math mode, it is possible to create a style for that:Then, by grouping all nodes in a
scope
:the style will be applied "locally".
An example with the
math mode
style active:A complete example without the style
math mode
:The result: