问题
Is there some way to draw a B+ tree in latex? It would look something like the picture below (ignoring the animations)
回答1:
You can use PGF/Tikz to draw vector graphics with latex. I was satisfied with this latex package. It has a very detailed manual with many examples. Chapter 11.6 of the manual gives a Special syntax for Specifying Trees.
回答2:
I don't know if it's possible to draw the B+ tree directly in LaTeX, but it's definitely possible to include an image. With GraphicX installed, insert \usepackage{graphicx} in the header and \includegraphics{imagefilename} and the body. See this Wikibook on LaTeX for more information.
来源:https://stackoverflow.com/questions/5878286/draw-a-b-tree-in-latex