_
. I can't make them type O
say. So I can't use it to say 'if such-and-such, use option so-and-so; otherwise, use some other option', for example. Have I misunderstood something? I guess I hoped it would reduce the need to repeat code. _
. I can't make them type O
say. So I can't use it to say 'if such-and-such, use option so-and-so; otherwise, use some other option', for example. Have I misunderstood something? I guess I hoped it would reduce the need to repeat code. if is auto iteration={ if iteration=1{ edge label/.process={Ow}{iteration}{node [midway, anchor=south east, left, xshift=-2.5pt, font=\scriptsize] {$\frac{2}{n}$}}, }{ edge label/.process={Ow+nw}{iteration}{#1-1}{node [midway, anchor=south east, xshift=-2.5pt, left, font=\scriptsize] {$\frac{2}{n-#1}$}}, if phantom={}{ !u.edge label/.process={OW+nw2}{iteration}{#1-2}{node [midway, below, font=\scriptsize] {$\frac{n-#1}{n-#2}$}},
.process
, then I could avoid some of the repetition e.g. by using \frac{2}{#1}
, where #1
depended on whether iteration
was 1
etc. I realise I couldn't nest if
s that way, of course, but it would reduce the amount of repetition. However, I can't work out how to do this. I tried to use a P
to do some of it, but got thoroughly confused and gave up :(. First Caveat
Note that I think I ought not answer do-it-for-mes, although I and others sometimes do. However, I like trees and it is, after all, your first question.
However, since I answer do-it-for-mes solely for me, I am sympathetic to requests for adjustments, refinements, corrections and ...