• API
• FAQ
• Tools
• Archive
daily pastebin goal
13%
SHARE
TWEET

# Untitled

a guest Dec 15th, 2017 57 Never
ENDING IN00days00hours00mins00secs

1. begin{tikzpicture}
2.       matrix[matrix of math nodes, anchor=south west,
3.       nodes={
4.       draw=red,
5.       align=center,
6.       inner sep=0pt,
7.       text width=1cm - pgflinewidth,
8.       minimum size = 1cm - pgflinewidth
9.       }
10.       ]{
11.         A & B & D & B & A & C & E & G & E & H & E & C & F & I & F & C & A \
12.         0 & 1 & 2 & 1 & 0 & 1 & 2 & 3 & 2 & 3 & 2 & 1 & 2 & 3 & 2 & 1 & 0 \
13.       };
14.      foreach x in {0,...,16}
15.      node[align=center] at (x+1,0) {x};
16.      end{tikzpicture}
17.
18. documentclass{standalone}
19.
20.  usepackage{tikz}
21.  usetikzlibrary{matrix}
22.
23.  begin{document}
24.
25.  begin{tikzpicture}
26.        matrix[matrix of math nodes, anchor=south west,
27.        nodes={
28.        draw=red,
29.        align=center,
30.        inner sep=0pt,
31.        text width=1cm - pgflinewidth,
32.        minimum size = 1cm - pgflinewidth
33.        }
34.        ]{
35.          A & B & D & B & A & C & E & G & E & H & E & C & F & I & F & C & A \
36.          0 & 1 & 2 & 1 & 0 & 1 & 2 & 3 & 2 & 3 & 2 & 1 & 2 & 3 & 2 & 1 & 0 \
37.        };
38.       foreach x in {0,...,16}
39.       node[align=center] at (x+0.62,-0.04) {x};
40.  end{tikzpicture}
41.
42.  end{document}
43.
44. documentclass{article}
45. usepackage[landscape]{geometry}
46. usepackage{tikz}
47. usetikzlibrary{matrix}
48. usepackage{etoolbox}
49. begin{document}
50. begin{tikzpicture}[cell/.style={align=center,inner sep=0pt,text width=1cm,minimum size=1cm}]
51.   letmymatrixcontentempty
52.   catcode`&=active
53.   foreach x in {0,...,16} {%
54.     expandaftergapptoexpandaftermymatrixcontentexpandafter{x &}%
55.   }
56.   gapptomymatrixcontent{\}
57.   tikzstyle{row 3}=[gray,draw=white]
58.   matrix[matrix of math nodes, anchor=south west,
59.           row 1/.style={nodes={cell,draw=red}},
60.           row 2/.style={nodes={cell,draw=red}},
61.           row 3/.style={nodes={cell,gray}}
62.           ]{
63.       A & B & D & B & A & C & E & G & E & H & E & C & F & I & F & C & A \
64.       0 & 1 & 2 & 1 & 0 & 1 & 2 & 3 & 2 & 3 & 2 & 1 & 2 & 3 & 2 & 1 & 0 \
65.       mymatrixcontent
66.     };
67. end{tikzpicture}
68. end{document}
69.
70. documentclass[tikz]{standalone}
71. usetikzlibrary{matrix}
72.
73. begin{document}
74.
75.      begin{tikzpicture}
76.       matrix[matrix of math nodes, anchor=south west,
77.       nodes={
78.       draw=red,
79.       align=center,
80.       inner sep=0pt,
81.       text width=1cm - pgflinewidth,
82.       minimum size = 1cm - pgflinewidth
83.       }
84.       ]{
85.         A & B & D & B & A & C & E & G & E & H & E & C & F & I & F & C & A \
86.         0 & 1 & 2 & 1 & 0 & 1 & 2 & 3 & 2 & 3 & 2 & 1 & 2 & 3 & 2 & 1 & 0 \
87.       };
88.      foreach x in {0,...,16}
89.       node[%
90.        gray,
91.        anchor=north east,
92.        align=center,
93.        text width=pgflinewidth,
94.        minimum size = 1cm - pgflinewidth
95.        ]%
96.       at (x+1,0) {x};
97.
98.       end{tikzpicture}
99. end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

Top