Extension Question:

template variable searches the equation field of tiddlers tagged equation 
and then returns values of fields which contain the variable of the tidler 
in which the template is called.

Can this be simplified using the new and shiny vars field?

I'm just trying to head off situations in which this filter will cause 
problems where the same letter is used for different values, e.g h for 
height and h for specific enthalpy.

Stephen

\define makePattern() 
^<.*?(?:=).*?(?:=).*?(?:\b$(var)$\b)
\end

{{!!description}}

Variable: {{!!variablelatex}}

Unit: {{!!unitlatex}}

<$set name="var" value={{!!variable}}>
<$set name="varpattern" value=<<makePattern>>>
<$list filter="[tag[Equation]regexp:equation<varpattern>limit[1]]">
<h2>Used in Equations</h2>
</$list>
</$set>
</$set>
<$set name="var" value={{!!variable}}>
<$set name="varpattern" value=<<makePattern>>>
<$list filter="[tag[Equation]regexp:equation<varpattern>]">
<$link><$transclude field="title"/></$link>
<$transclude field="equation"/>
</$list>
</$set>
</$set>


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6489b4da-bfd9-4e1b-8be4-c328f4b470f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to