On Fri, Mar 30, 2018 at 11:51:54PM +0000, Paul A. Rubin wrote: > 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>).
Thanks. Perhaps then I would create a simple macro based on TiKZ. The reason I want a simple macro is that it is for lecture notes and I use these trees a lot, so want to easily create them. > 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. I am and did not know about that package. Cool! Thanks, Paul. Scott
signature.asc
Description: PGP signature