Hmm, not sure how that would work. It might be relatively easy to invoke such a script when setting up the node at first, but what happens if/when you decide to move the node and its level changes? What would be really useful would be a way to traverse the hierarchy after it's written and ready for compiling to verify that each node is labeled correctly. I can't even imagine how that would be possible with a script (I do it manually now). But, I suppose just about anything is possible with enough ingenuity.
Rob......... > > This would be an interesting enhancement. > > Leo's rst3 command does exactly this, but the code in leo/core/leoRst.py > might induce heart palpitations. There are reasons for all that > complexity, and probably none of them relate to latex. > > In fact, it should be relatively simple to write a script or plugin to do > something useful. Define the *latex level* of a node p to be p.level() - > root.level(), where root is the root node of your hierarchy or latex > markup. Use this computed level to choose the latex markup. > > HTH. Feel free to ask questions or to create an enhancement request. > > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
