## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Diagram figure in LaTeX with TikZ Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
kostao
Posts: 16
Joined: Tue Jan 10, 2017 8:48 pm

### Diagram figure in LaTeX with TikZ

Hello,
I am writing my dissertation using latex. Can you help me to create this figue in LaTeX (see below)?

diagram.png (142.49 KiB) Viewed 2032 times

The similar scheme http://www.texample.net/tikz/examples/radix2fft/ (Tikz example).
Thanks.
Last edited by Stefan Kottwitz on Tue Jan 10, 2017 9:15 pm, edited 2 times in total.

Tags:

Stefan Kottwitz
Posts: 9550
Joined: Mon Mar 10, 2008 9:44 pm
It looks like an algebraic diagram. You could use tikz-cd or a TikZ matrix, such as here - putting the symbols into a matrix, and drawing some arrows. Perhaps I post an example later today. Btw. I added an answer to your other question with tcolorbox.

Stefan

kostao
Posts: 16
Joined: Tue Jan 10, 2017 8:48 pm
Thanks, it works !!!
1. % A simple commutative diagram
2. % Stefan Kottwitz
3. \documentclass{article}
4. \usepackage{tikz}
5. %%%<
6. \usepackage{verbatim}
7. \usepackage[active,tightpage]{preview}
8. \PreviewEnvironment{tikzpicture}
9. \setlength\PreviewBorder{5pt}%
10. %%%>
11. \begin{comment}
12. :Title: Commutative diagram
13. :Tags: Matrices;Arrows;Diagrams;Mathematics
14. :Author: Stefan Kottwitz
15. :Slug: commutative-diagram-tikz
16.
17. A simple example of a commutative diagram using TikZ, short and readable.
18. It has been posted as answer to the question
19. <!-- m --><a class="postlink" href="http://tex.stackexchange.com/q/45741/213">http://tex.stackexchange.com/q/45741/213</a><!-- m --> of Elias.
20.
21. * A matrix is used for positioning the main nodes
22. * Arrows are drawn as edges, between the main nodes,
23. using further nodes for labeling
24. * As columns and row distance is expressed by em units, which scale
25. with the font size, the diagram can be scaled by using font size commands
26. such as \Large, \huge etc.
27.
28. Note the (m-2-1.east|-m-2-2) syntax for getting a horizontal arrow
29. between cells of a different height.
30. \end{comment}
31. \usetikzlibrary{matrix}
32. \begin{document}
33. \begin{tikzpicture}
34. \matrix (m) [matrix of math nodes,row sep=1em,column sep=1em,minimum width=1em]
35. {
36. x(t_1) & x(t_2) & \dots & x(t_{N/2}) & x(t_{N/2+1}) & x(t_{N/2+2}) & \dots & x(t_{N}) \\
37. \otimes & \otimes & \dots & \otimes & & & & \\
38. y(t_1) & y(t_2) & \dots & y(t_{N/2}) & & & & \\
39. };
40. \path[-stealth]
41. (m-1-1) edge node [left] {} (m-2-1)
42. (m-1-2) edge node [left] {} (m-2-2)
43. (m-1-4) edge node [left] {} (m-2-4)
44. (m-1-5) edge node [left] {} (m-2-1)
45. (m-1-6) edge node [left] {} (m-2-2)
46. (m-1-8) edge node [left] {} (m-2-4)
47. (m-2-1) edge node [left] {} (m-3-1)
48. (m-2-2) edge node [left] {} (m-3-2)
49. (m-2-4) edge node [left] {} (m-3-4)
50. ;
51. \end{tikzpicture}
52. \end{document}