Skip to content

Instantly share code, notes, and snippets.

@sjhuskey
Created December 5, 2023 22:57
Show Gist options
  • Save sjhuskey/0065f5487ae06eee3c41614bbd5ca09f to your computer and use it in GitHub Desktop.
Save sjhuskey/0065f5487ae06eee3c41614bbd5ca09f to your computer and use it in GitHub Desktop.
LaTeX code for a basic stemma codicum
% I asked ChatGPT-4 for help with displaying a stemma codicum in LaTeX.
% Here is what I asked: "Please generate LaTeX code for a chart in which β is the parent and V and γ are the children.
% This is what it generated:
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{trees}
\begin{document}
\begin{tikzpicture}[sibling distance=10em]
\node {β}
child { node {V} }
child { node {γ} };
\end{tikzpicture}
\end{document}
% Here is a more complex stemma:
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{trees}
\begin{document}
\begin{tikzpicture}[sibling distance=10em]
\node {α}
child { node {β}
child { node {V} }
child { node {γ}
child { node {Pr} }
child { node {δ}
child { node {B} }
child { node {D} } } } };
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment