I have been attempting to draw this language family tree into LaTeX:
I have tried using the tikz
package as well as the forest
package, but to no avail. I do not need the colours in the tree, nor do I need the lines to be formatted in the same way, but just for the lines to go to the correct language(s).
This is the code I have now (I have not included the "Baltic" branch, as it is not absolutely neccesary):
\documentclass[a4paper, 11pt]{book}
\usepackage{lipsum} %This package just generates Lorem Ipsum filler text.
\usepackage{fullpage} % changes the margin
\usepackage{forest}
\usepackage{showframe} % just to show the margin lines; comment this package out for the final version
\begin{document}
\section*{Language tree}
\begin{forest}
for tree={
edge path={
\noexpand\path [thick, \forestoption{edge}] (!u.parent anchor) -- +(0,-7pt) -| (.child anchor)\forestoption{edge label};
}, % this option together with setting the parent and child anchors to south and north, respectively, gives you the right-angle style for your branches
parent anchor=south,
child anchor=north,
align=center, % allows you to put line breaks within nodes
}
[Indo-European
[Balto-Slavic
[Slavic
[West
[Old West Slavic
[Minovian
[Old Minovian
[Minovian]
[Lechitic
[Old Polish
[Polish]
[Silesian]
[Polabian
[Pomeranian
[Kashubian]
[Czech-Slovak
[Czech]
[Slovak]
[Knaanic
[Sorbian
[South
[Western
[Slovene]
[Serbo-Croatian
[Bosnian]
[Croatian]
[Serbian]
[Eastern
[Old Church Slavonic
[Bulgarian]
[Church Slavonic]
[Macedonian]
[East
[Old Novgorod]
[Old East Slavic
[Old Ruthenian]
[Belarusian]
[Russian]
[Rusyn]
[Ukranian]
]
]
]
]
]
]
]
\end{forest}
\end{document}
These are the errors I receive:
Is it possible to do this in LaTeX?
(I am using XeLaTeX compiler)
Thank you for any help in advance.
As requested by the OP, I paste a version that compiles. I have starting shuffling closing brackets ]
but not finished it. -marmot
\documentclass[a4paper, 11pt]{book}
\usepackage{lipsum} %This package just generates Lorem Ipsum filler text.
\usepackage{fullpage} % changes the margin
\usepackage{forest}
\usepackage{showframe} % just to show the margin lines; comment this package out for the final version
\begin{document}
\section*{Language tree}
\begin{forest}
for tree={
edge path={
\noexpand\path [thick, \forestoption{edge}] (!u.parent anchor) -- +(0,-7pt) -| (.child anchor)\forestoption{edge label};
}, % this option together with setting the parent and child anchors to south and north, respectively, gives you the right-angle style for your branches
parent anchor=south,
child anchor=north,
align=center, % allows you to put line breaks within nodes
%grow'=south
}
[Indo-European
[Balto-Slavic
[Slavic
[West
[Old West Slavic
[Minovian
[Old Minovian
[Minovian]
]
]
[Lechitic
[Old Polish
[Polish
[Silesian]
]
[Polabian
[Pomeranian
[Kashubian]
]
]
]
[Czech-Slovak
[Czech]
[Slovak]
]
[Knaanic]
[Sorbian]
[South
[Western
[Slovene]
[Serbo-Croatian
[Bosnian]
[Croatian]
[Serbian]
[Eastern
[Old Church Slavonic
[Bulgarian]
[Church Slavonic]
[Macedonian]
[East
[Old Novgorod]
[Old East Slavic
[Old Ruthenian]
[Belarusian]
[Russian]
[Rusyn]
[Ukranian]
]
]
]
]
]
]
]]]]]]]
\end{forest}
\end{document}
forest
, (although arbitrary branching paths are not completely trivial) so perhaps you should edit your question with a document showing a small part of the tree that you've tried withforest
and explain what you're having trouble with.[
over closing]
.]
?]
, it still won't compile. Have you succesfully compiled it? If so, would you mind just copy-paste the code, thank you very much.