Skip to content

Instantly share code, notes, and snippets.

@dfbarrero
Last active May 25, 2019 05:11
Show Gist options
  • Select an option

  • Save dfbarrero/7acfa85098a52ae75ed38003fccda6b7 to your computer and use it in GitHub Desktop.

Select an option

Save dfbarrero/7acfa85098a52ae75ed38003fccda6b7 to your computer and use it in GitHub Desktop.
Vector figure in LaTeX/Tikz
\begin{tikzpicture} [nodes in empty cells,
nodes={minimum width=0.5cm, minimum height=0.5cm},
row sep=-\pgflinewidth, column sep=-\pgflinewidth]
border/.style={draw}
\matrix(vector)[matrix of nodes,
row 1/.style={nodes={draw=none, minimum width=0.3cm}},
nodes={draw}]
{
\tiny{0} & \tiny{1} & \tiny{2} & \tiny{3}\\
$a_{0}$ & $a_{1}$ & $a_{2}$ & $a_{3}$\\
};
\end{tikzpicture}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment