0

Here is the figure I want to draw: enter image description here

Could someone show me how to draw tilted arrows please? I know how to draw a commutative triangle like this:

\documentclass{book}
\usepackage{tikz-cd}
\begin{document}
 \[
    \begin{tikzcd}
    A \arrow [r, dashed ,"\tilde{f}"] \arrow[swap]{dr}{f} & E \arrow{d}{i} \\
     & X
  \end{tikzcd}
  \]
\end{document}
3
  • 1
    What do you mean with tilted arrows?
    – Bernard
    Mar 31 at 20:41
  • The arrows are tilted in the picture I gave, they are not either horizontal or vertical @Bernard
    – Idonotknow
    Mar 31 at 23:50
  • I see. Personally, I use the qualifier ‘oblique’ arrows
    – Bernard
    Apr 1 at 8:05

2 Answers 2

2

In tikz-cd use dl to indicate the arrow should go "down-left". Similarly, dr is "down-right". Remember to add an extra empty cell in row two below the A (which is why there is an & before the first cell and two && in the second row). The extra single quote is shorthand for swap.

enter image description here

\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\[
  \begin{tikzcd}
  & A \arrow[dl,"f_1"']\arrow[dr,"f_2"] \\
  X && Y
  \end{tikzcd}
\]
\end{document}

If you want the columns closer together, you can use \begin{tikzcd}[column sep=small], or you can set column sep=.5cm or any dimension you wish.

enter image description here

0

I know how to do it using chemfig and tikz packages

\documentclass[margin={2mm 4mm}]{standalone}
\usepackage{tikz}
\usepackage{chemfig}

\begin{document}
\schemestart
X \arrow{<-[$f_1$]}[45,1.5] A \arrow{->[$f_2$]}[315,1.5] Y
\schemestop
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.