3

I'm trying to create a diagram with logical implications between various propositions, and some of them are conjunctions. Suppose I want to show this:

 A => C
 A&B => D

the best I can get so far is this, but there's still some space that I can't get rid of:

$$\begin{tikzcd}
     a\arrow[d,Rightarrow]
      \arrow[dr,Rightarrow,""{name=A}] 
   & b\arrow[to=A,Rightarrow,dash] \\
   c & d
\end{tikzcd}$$

rendered diagram

I feel this must be a common problem and probably I'm missing something obvious.

1 Answers1

5

This is a bit of a hack, since the placement and length of the equals arrow was found by trial and error. For a different diagram you'd have to make adjustments.

enter image description here

\documentclass{article}

\usepackage{tikz-cd}

\begin{document}

\begin{tikzcd} a\arrow[d,Rightarrow] \arrow[dr,Rightarrow,""{name=A, xshift=4.85pt}] & b\arrow[to=A, equals, shorten >=-8.75pt] \ c & d \end{tikzcd}

\end{document}

The shorten > key can be used with a negative value to increase the length of the equals arrow. Note the required space between shorten and >.

Sandy G
  • 42,558