I'm trying to draw simple block diagram in via:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[-,auto,node distance=1.25cm]
\tikzstyle{point}=[coordinate]
\tikzstyle{block}=[draw, rectangle, minimum height=1em, minimum width=1.5em]
\node[point] (0) {};
\node[point] (1) [right of=0 ] {};
\node[block] (2) [above right of=1] {A};
\node[block] (3) [right of=2] {B};
\node[block] (4) [right of=3] {C};
\node[block] (7) [right of=1] {A};
\node[block] (8) [right of=7] {E};
\node[block] (9) [right of=8] {D};
\node[block] (12) [below right of=1] {B};
\node[block] (13) [right of=12] {C};
\node[block] (14) [right of=13] {E};
\node[point] (15) [right of=4] {};
\node[point] (16) [right of=9] {};
\node[point] (17) [right of=14] {};
\node[point] (18) [right of=16] {};
\draw [thick] (12) -| (1) (7) -| (1) (2) -| (1) ;
\draw [thick] (0) -- (1) (2) -- (3) (7) -- (8) (3) -- (4) (8) -- (9) (12) -- (13);
\draw [thick] (13) -- (14) ;
\draw [thick] (15) -- (4) ;
\draw [thick] (16) -- (9) ;
\draw [thick] (17) -- (14) ;
\draw [thick] (18) -- (16) ;
\draw [thick] (15) -| (16) (17) -| (16);
\end{tikzpicture}
\end{document}
This gives:
What I have trouble with is proper alignment between boxes and general symmetry of diagram. Namely I'd like to have lines on the left and on the right of the same length. Although I'm rather an occasional Latex user I'd appreciate hint as well as some alternative and maybe cleaner way to draw such a diagram.



\matrixwould be a better usage. By the way, theright ofsyntax is considered to be depecrated and is replaced by thepositioninglibrary and theright=ofsyntax. (Whether this is part of your problem or solution I haven't checked. You'd want to useon gridthen, probably) So is\tikzstylebut that's really offtopic. – Qrrbrbirlbel Oct 26 '23 at 19:08positioningyou could usenode distance=1.25cm and 1.25cmfor the diagonals. But you can avoid this by placing an A right of 1, and the other A above of that A and the B below the first A. But again, a\matrixmakes this very easy and flexible. Or even TikZ-CD. – Qrrbrbirlbel Oct 26 '23 at 19:12