Hi, I'm struggling getting macrocall to work to allow me to use a macro within a macro
Here's what I originally wanted to do:
Given this macro (<<sliderO "*" "hello there">>)
\define sliderO(label,text)
<$set name=this value=$(currentTiddler)$ >
<$button popup="$:/state/<<this>>$label$" class="btn-invisible tw-slider">$label$</$button>
<$reveal type="match" text="" default="" state="$:/state/<<this>>$label$" animate="yes">
$text$
</$reveal></$set>
\end
I wanted to call that macro with the following as the text:
| ''resisted finger ext'' | <<rorlcheck resfingerext>> |
So the content would be revealed with the slider mechanism. The problem is that you can't have a <<macro>> within a <<different macro>> I assume because of the "<<>>" repetition
----
The answer I presume from googling here is to use a macrocall, but for the life of me I can't seem to get it to work
I tried setting the content as both a macro and a variable:
\define motor2ndorder()
| ''resisted finger ext'' | <<rorlcheck resfingerext>> |
\end
<$macrocall name=sliderO label="Motor 2nd Order" text=<<motor2ndorder>>/>and
<$vars text="""
| ''resisted finger ext'' | <<rorlcheck resfingerext>> |
"""></$vars>
<$macrocall name=sliderO label="Motor 2nd Order" text=<<text>>/>
but neither of those is working :(
any suggestions?