Skip to content

Instantly share code, notes, and snippets.

@abikoushi
Created December 24, 2025 04:45
Show Gist options
  • Select an option

  • Save abikoushi/3b3c08e8db51f5f877e839b2f8f94639 to your computer and use it in GitHub Desktop.

Select an option

Save abikoushi/3b3c08e8db51f5f877e839b2f8f94639 to your computer and use it in GitHub Desktop.
A TikZ picture of ALTO spread
\documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{matrix,positioning,quotes}
\begin{document}
\tikzset{
table/.style={
matrix of nodes,
row sep=-\pgflinewidth,
column sep=-\pgflinewidth,
nodes={
rectangle,
draw=black,
fill=white,
align=center
},
minimum height=1.5em,
text depth=0.5ex,
text height=2.5ex,
nodes in empty cells}
}
\begin{tikzpicture}
\matrix (index0)[table, text width=3em]
{
1& 0 & 1 & 0 & 0\\
};
%%Hair
\matrix (index1)[below left = of index0, table, text width=3em]
{
1& 0 & 1 & 0 & 0\\
};
\matrix (hair1)[below = of index1, table, text width=3em]
{
1& 0 & 1 & 0 & 0\\
};
\matrix (mhair)[below = of hair1, yshift = 1em, table, text width=3em]
{
0& 0 & 0 & 0 & 1\\
};
\matrix (shair)[below = of mhair, table, text width=3em]
{
0& 0 & 0 & 0 & 0\\
};
\node(times1)[left = of mhair]{$\times$};
\node(equal1)[left = of shair]{$=$};
\draw[very thick, gray, ->] (index1-1-1.south) -- (hair1-1-1.north);
%%
%%Eye
\matrix (index2)[below= of index0, table, text width=3em]
{
1& 0 & 1 & 0 & 0\\
};
\matrix (eye1)[below = of index2, table, text width=3em]
{
0 & 0 & 1& 0 & 1 \\
};
\matrix (meye)[below = of eye1, yshift = 1em, table, text width=3em]
{
0& 0 & 0 & 1 & 1\\
};
\matrix (seye)[below = of meye, table, text width=3em]
{
0& 0 & 0 & 0 & 1\\
};
\draw[very thick, gray, ->] (index2-1-1.south)--([yshift=-0.5em]index2-1-1.south) -- ([yshift=-0.5em]index2-1-3.south)-- (eye1-1-3.north);
%%
%%Sex
\matrix (index3)[below right = of index0, table, text width=3em]
{
1& 0 & 1 & 0 & 0\\
};
\matrix (sex1)[below = of index3, table, text width=3em]
{
0 & 0 & 0& 0 & 1 \\
};
\matrix (msex)[below = of sex1, yshift = 1em, table, text width=3em]
{
0& 1 & 1 & 1 & 1\\
};
\matrix (ssex)[below = of msex, table, text width=3em]
{
0& 0 & 0 & 0 & 1\\
};
\draw[very thick, gray, ->] (index3-1-1.south)--([yshift=-0.5em]index3-1-1.south) -- ([yshift=-0.5em]index3-1-5.south)-- (sex1-1-5.north);
%%
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment