I would like to draw picture like this:
(This picture is snipped from a figure in this research paper)
It is important that a
and a*
or tb
and tb*
or tr
and tr*
etc are vertically aligned (because they represent complementary strands of DNA and they should be vertically aligned in the figure for it to be meaningful.)
I tried something, like this:
$_{\xleftharpoondown[ta^*a^*tb^*b^*tr^*r^*tq^*]{}}^{\text{ }\xrightharpoonup{a\text{ }tb}\xrightharpoonup{b\text{ }tr}\xrightharpoonup{r\text{ }tq}}$
And it gives:
So few complaints about the above figure:
There is too much gap between the left harpoons and the right harpoons. How to fix this?
The most important thing - the labels
a
anda*
etc HAVE to be aligned! How to do that?
Also BONUS (but not strictly necessary):
I would like to use such a figure inline (like an equation). Right now what I have can be used inline. I am not sure if a tikz
figure can be used inline. So please demonstrate how to use this figure inline.
EDIT: This stackexchange answer shows how to insert tikz
figure inline. So the bonus question is kind of taken care of, if tikz
is used. Please someone help me draw this with tikz
!
EDIT: How to add a gap in the middle? Like this:
Labels not shown in above image, but they will be there and have to be aligned. Using the solution in the answer I could create this:
In this the first arrow on the top is wrong. It should start under ta
and end under a
, so that a gap is exposed over tb*
EDIT: I could solve it! Here is the code:
\begin{tikzcd}[DNA=odd]
ta\ar[below] & a & \, & b \ar[below] & tr & r \ar[below] & tq \\
ta^* & a^* & tb^* & b^* & tr^* & r^* & tq^* \ar[llllll, above]
\end{tikzcd}
And this results in: