1:52 AM
2:43 AM
@SašoŽivanović How can I change the processing order? The manual says that this must be done in a nodewalk. But I want to put it in a style and saying for nodewalk... there doesn't work at all happily.
\forestset{% define long step={proof tree proof first}{}{% if line numbering={% c2,descendants,fake=o,1,descendants, if justifications={fake=o,3,descendants}{}% }{tree}, }, proof tree 2/.style={% for nodewalk={before typesetting nodes processing order/.style={proof tree proof first}}, } } \begin{forest} proof tree 2 [#1,l sep=0,for n=1{ l=0,no edge,delay={enumerate=#1}} [ [[[[][]][[][]]][[[][]]]] [[[[][]][[][]]][[[][]]]] [[[[][]][[][]]][[[][]]]]
I think the definition of the step is OK because I tested it with your enumtree thing before trying this version. (It didn't quite work initially, but it seems to work correctly now.)
I can't figure out how to order the
delay
s correctly and there aren't enough stages before nodes are set. So I thought maybe if I could change the order of processing, it would be easier. (This isn't the only reason it no longer works at all - that was already true.)
\documentclass[tikz,border=10pt,multi]{standalone} \usepackage{forest} \begin{document} \forestset{% declare boolean register={line numbering},% line numbers line numbering,% default is for line numbers declare boolean register={justifications},% line justifications not justifications,% default is for no line justifications (b/c there's no point in enabling this if the user doesn't specify any content) define long step={proof tree proof first}{}{% if line numbering={% c2,descendants,fake=o,1,descendants,
\begin{forest} [for nodewalk={before typesetting nodes processing order/.style={proof tree proof first}}, [[[[][]][[][]]][[[][]]]] [[[[][]][[][]]][[[][]]]] [[[[][]][[][]]][[[][]]]] ] \end{forest}
3:54 AM
10 hours later…
1:27 PM
@cfr
for nodewalk
does need two arguments. (I think this is the source of the misterious nodewalk stepped to the invalid node; stack: ",tree,back"
error message.
About too many nested
delay
s. You can define your own stages. More precisely, you can invent your own keylist option (e.g. blabla
) and modify stages
so that it will include process keylist=blabla
before typesetting nodes.
1:52 PM
2 hours later…
4:14 PM
3 hours later…
1 hour later…
8:39 PM
1 hour later…
9:49 PM
@SašoŽivanović I think it would be better if it is not much trouble. If it is, I think a clear warning in the manual would be useful. What's especially confusing is that
often seems fine. It only causes issues if you then try to read it without setting it explicitly later. So you can have several such options and then add one and suddenly you get weird errors complaining that
f
isn't a number. And that's... well, it makes figuring it out rather challenging. Especially since, if you check the manual it gives possible values as
or something like that. And then goes onto explain that false/true are parsed as 0/1. So the use of
false
in your declaration doesn't exactly leap out as a suspect when trying to debug.
Also, I found a way to eliminate the need for
just to line
which was a bit annoying. Now you can just say just=<stuff>, to line=<integer>
and both wff and justification will* end up in the right places.
1 hour later…
11:53 PM
@Paolo You're the author of texdoc, right? Some people have reported that
texdoc forest
gives them the code (forest.pdf) instead of the manual (forest-doc.pdf), which is surely not what most people would want. I was suggested to rename the files. Would renaming the code to forest-code.pdf do the trick? (I'm not eager to part with my forest.dtx, but ah well...) Or is there something you can do?
« first day (117 days earlier) ← previous day next day → last day (442 days later) »