2

I want to draw a diagram with the following two implications:

NM-CCA1 =/=> NM-CCA2
                 <=

But so far I do not know how to draw two arrows between the items. I can only draw one and I also cannot explicitly show that one implication does not hold. How would I go about this?

\begin{displaymath}
\xymatrix{NM-CCA1 \ar@2{->}[r] & NM-CCA2 \ar@2{->}[l]}
\end{displaymath}
2
  • I don't think a solution is available with xymatrix. You could move the arrows around (using <-.5ex> and <.5ex> after the [r] and [l] respectivally), but you can't define the crossed arrow (=/=>) you wanted. Available styles are describe here
    – tmrlvi
    May 11, 2017 at 14:03
  • Welcome to TeX.SX! It is recommended to post not only code snippets but always a minimal but working example (MWE). Such examples help us to understand the problem and to test our suggestions before posting an answer. So it would help us to help you. May 11, 2017 at 14:04

1 Answer 1

3

Here, with a stack.

\documentclass{article}
\usepackage{stackengine}
\stackMath
\begin{document}
\[
\def\stacktype{L}
\textrm{NM--CCA1} 
\mathrel{\stackunder[.7\baselineskip]{\stackon[0pt]{\Longrightarrow}{/}}{\Longleftarrow}} 
\textrm{NM--CCA2}
\]
\end{document}

enter image description here

or maybe this, with a one-macro change:

\documentclass{article}
\usepackage{stackengine}
\stackMath
\begin{document}
\[
\def\stacktype{L}
\textrm{NM--CCA1} 
\mathrel{\stackanchor[.7\baselineskip]{\stackon[0pt]{\Longrightarrow}{/}}{\Longleftarrow}} 
\textrm{NM--CCA2}
\]
\end{document}

enter image description here

1
  • Thank you very much for this quick and thurough answer =)
    – gentmatt
    May 11, 2017 at 13:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .