3

Really tried to code this one on my own, but I have no luck in doing so so far! enter image description here

I can do everything in this problem, except the alpha and beta above and beneath the arrows. I believe that alpha is a superscript and beta is a subscript to the arrows.

Thanks in advance!

imnothere
  • 14,215
Sas
  • 147
  • 3
    You might be interested to see some of the answers to the related issued common in typesetting chemistry https://tex.stackexchange.com/questions/14957/how-to-get-text-above-and-below-double-harpoon-reversible-reaction-symbols-in – oliversm Feb 29 '20 at 19:09
  • For future questions, it would be nice to give us what you can do so far, so that we have something to go from. And try to have a title that is more search friendly, since yours could apply to every question on this site. – Teepeemm Feb 29 '20 at 19:39
  • @Teepeemm I elaborated on what I can do in the question. Can you be more specific as to what is a title that is more search friendly? It seems that it was very friendly, as I have already received an excellent answer to my query. :) – Sas Feb 29 '20 at 19:44
  • 1
    Sorry about that. By "what you can do so far", I meant the minimal working code example that has \[S_0 \leftrightarrow S_1\] (clearly I don't know how to do that arrow offhand). You got an answer because you asked the question recently, so it's on the front page of the site. But once it's off the front page, people won't be able to find it. Maybe "How do I display things above and below an arrow?" – Teepeemm Feb 29 '20 at 20:32
  • @Teepeeman Changed the question. – Sas Mar 01 '20 at 00:21

2 Answers2

4

Another simple approach is to use the \overset and \underset commands with the \leftrightarrows symbol like so:

\overset{\alpha}{\underset{\beta}{\leftrightarrows}}

enter image description here

chezbgone
  • 336
3

A simple-minded approach.

\documentclass{article}
\usepackage{mathtools}
\begin{document}
$S_0\mathrel{\raisebox{2pt}{$\xrightarrow{\alpha}$}
\llap{\raisebox{-2pt}{$\xleftarrow[\beta]{}$}}} S_1$
\end{document}

enter image description here

Or a more extensive solution.

\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\[\begin{tikzcd}
S_0\arrow[r,shift left=2pt,"\alpha"] & \arrow[l,shift left=2pt,"\beta"] S_1
\end{tikzcd}\]
\end{document}

enter image description here