You're a super star.
Saves me having to learn regex which I'm guessing is where the original 
problem lay.
That works a treat.

Thank you.

Stephen 

On Tuesday, 2 May 2017 16:22:56 UTC+1, Mark S. wrote:
>
> Since you're looking for the letter 'a' in field that always contains the 
> word 'latex' there's bound to be something off.
>
> If I may suggest a simpler approach. Include a list field, say 'vars' that 
> lists the variables associated with an equation. For acceleration, we would 
> have
>
> [[Inital Velocity]] [[Final Velocity]] Time
>
> Then this simpler code would do what you want (hopefully):
>
> {{!!equation}}
>
> <table>
> <tr><th>Variable</th><th>Description</th><th>Unit</th></tr>
> <$list filter="[list[!!vars]sort[title]]" >
> <tr><th>
> <$transclude field="variablelatex"/>
> </th><th><$link><$transclude field="title"/></$link></th><th><$transclude 
> field="unitlatex"/></th></tr>
> </$list>
> </table>
>
> It worked on Acceleration. But you don't have the variable tiddlers for 
> Enthalpy defined so I couldn't test that.
>
> Good luck!
>
> On Tuesday, May 2, 2017 at 4:22:05 AM UTC-7, Stephen Wilson wrote:
>>
>> Hello Helpful People!
>>
>> Following on from this thread here 
>> <https://groups.google.com/d/msg/tiddlywiki/r2tVxlOiXl4/hrNqYEWsEwAJ> 
>> and Sara kindly putting her work up on tiddlyspot here: 
>> http://foxridgegarden.tiddlyspot.com/
>> I've finally carved out a little time to see if I can steal the core 
>> filters and apply it to my own equation heavy tiddlyspot here: 
>> stephenteacher.tiddlyspot.com/
>>
>> Rather than go in all guns blazing I have started a small test wiki here 
>> http://stephenteachertests.tiddlyspot.com/
>>
>> All is mostly well and things working as they should, however...
>>
>> Acceleration appears to be a problem.  When I set the variable to 'a' it 
>> appears in all equations regardless of whether acceleration is in the 
>> equation or not.  If I change it to a 'b' all is fine and it only appears 
>> in the proper place.
>>
>> The code from the template is:
>> \define varPattern() 
>> $(var)$
>> \end
>>
>> {{!!equation}}
>>
>> <table>
>> <tr><th>Variable</th><th>Description</th><th>Unit</th></tr>
>> <$set name="eq" value={{!!equation}}>
>> <$list filter="[tag[Variable]sort[title]]" variable="varTiddler">
>> <$set name="var" filter="[<varTiddler>get[variable]]">
>> <$set name="unit" filter="[<varTiddler>get[unit]]">
>> <$list filter=
>> "[tag[Equation]field:equation<eq>regexp:equation<varPattern>]">
>> <$tiddler tiddler=<<varTiddler>>>
>> <tr><th>
>> <$transclude field="variablelatex"/>
>> </th><th><$link><$transclude field="title"/></$link></th><th><$transclude 
>> field="unitlatex"/></th></tr>
>> </$tiddler>
>> </$list>
>> </$set>
>> </$set>
>> </$list>
>> </$set>
>> </table>
>>
>> All other templates and related can be found at 
>> http://stephenteachertests.tiddlyspot.com/
>>
>>
>>

-- 
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/686d3f38-02c7-4793-ac4a-e180eeea289b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to