Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • But the package is not on CTAN? Or is it? Commented Dec 16, 2015 at 18:01
  • 2
    This looks like a nice package. Perhaps you should consider submitting it to CTAN so that it will be available more widely. Could you also post the source code that you used to generate the image rather than just a link to your blog? Links die, and the StackExchange model strives to keep information for the longer term. Commented Dec 16, 2015 at 18:02
  • No, the package is not on CTAN (yet). I'll consider submitting it, but for now, it's available on GitHub. I've updated the answer with a few code examples and usage information. Commented Dec 16, 2015 at 18:24
  • This is a very nice solution! As you now add color, would it also be possible to add a number next to the node in the same manner as you know color to it? So \forest{1[3,4]} would generate a tree like your example but with the numbers next to node accordingly? Commented Dec 16, 2015 at 21:20
  • Labeled nodes is a nice idea, however, I think that the label text would become too large compared to the forest. At least for normal magnification of the trees and forest. I did some experiments, but even with \tiny labels, the label text becomes much larger than the nodes themselves. Take a look at this test PDF file. Here you can see that the forests themselves are already quite small compared to the surrounding text under standard magnification. Commented Dec 16, 2015 at 22:51