I wanna make a diagram like this:enter image description here

How can I draw such a “jointed” path?

  • Could you perhaps at least show what you tried so far? There are several ways to make such a diagram. Help us help you by showing a bit of your code. Thank you! May 1, 2020 at 12:57

1 Answer 1


One way is to use tikz-cd.


\begin{tikzcd}[/tikz/column 1/.style={column sep=4em},
    /tikz/column 4/.style={column sep=4em},
    every arrow/.append style={-stealth,semithick}]
 & \text{divisor} \arrow[rr]& & \text{existence} 
 \arrow[dr,rounded corners=1em,to path={-- ++ (4em,0) |- (\tikztotarget)}]& \\
 \arrow[ur,rounded corners=1em,to path={-- ++ (4em,0) |- (\tikztotarget)}]
 \arrow[dr,rounded corners=1em,to path={-- ++ (4em,0) |- (\tikztotarget)}]
 & & & & \text{UFD} \\
 & \text{GCD}\arrow[r] & \text{primeness}\arrow[r,"" {marking,name=p,pos=0.8}] &
 \arrow[ur,rounded corners=1em,to path={-- ++ (4em,0) |- (\tikztotarget)}]& \\

enter image description here

  • 1
    Why there was an unjustified downvote? :-(
    – Sebastiano
    May 1, 2020 at 11:27
  • @Sebastiano Presumably the same user as the one responsible for this downvote, probably a user who started their career here with a question which also required significant efforts by the answerer (and at this point thanked the answerer for the support...). It is sad, as usual, but not much one can do.
    – user194703
    May 1, 2020 at 18:26
  • I never liked childish behaviour and wickedness. I made up for your beautiful answers. I can do no more.
    – Sebastiano
    May 1, 2020 at 19:33
  • 1
    @Sebastiano Thanks! I think the best option is to ignore those. They mainly want to have attention. Let's just deny them that attention. It is usually possible to make an educated guess who is behind these downvotes. So ignoring them also means ignoring their posts, if they do not want to participate in constructive voting there is no reason to upvote their posts.
    – user194703
    May 1, 2020 at 19:37

You must log in to answer this question.

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