Blog//tdi.github.io/2013-01-30T12:00:39+01:00Text above arrows in LaTeX2013-01-30T12:00:39+01:00Dariusz Dwornikowskitag:tdi.github.io,2013-01-30:2013/01/30/text-above-arrows-in-latex/<p>Sometimes you need to place text above arrows. Let's say you need to write transitions for a labelled transition system. In fact in LaTeX this is not so obvious, especially if you want to have text above and under the arrow. I know of two easy ways to do it.</p>
<div class="highlight"><pre><span></span><span class="sb">$$</span><span class="nb"> E </span><span class="nv">\xrightarrow</span><span class="nb">{</span><span class="nv">\alpha</span><span class="nb">} F </span><span class="s">$$</span>
</pre></div>
<p>The second method.</p>
<div class="highlight"><pre><span></span><span class="sb">$$</span><span class="nb"> </span><span class="nv">\mathop</span><span class="nb">{</span><span class="nv">\longrightarrow</span><span class="nb">}^_{</span><span class="nv">\alpha</span><span class="nb">} </span><span class="s">$$</span>
</pre></div>