On 03/30/2018 06:35 PM, Scott Kostyshak wrote:
I would like to make a simple tree that uses math. The current way I do
it is to use the linguistics module, which gives access to the forest
package. Then I go to Insert > custom insets > Structure tree. I then
wrap the math I want to write in \protect. Attached is an example of
what I'm currently doing. It works, but I don't like writing out
\protect, and I have the feeling I'm asking the forest package to do
something it was not meant to do (include math).
Does someone recommend a different way?
Thanks,
Scott
I'm also a fan of PGF/TiKZ. If you want to draw the diagrams using a
drawing program, Inkscape can export a .tikz file, which you can then
include in your LyX document. So can several other programs (Wikipedia
page <https://en.wikipedia.org/wiki/PGF/TikZ>).
If by any chance you're an R user, you might consider using something
like the DiagrammeR package to generate the diagrams and the tikzDevice
package to output the diagram to a .tikz file.
Paul