The problem with pi...

71 views
Skip to first unread message

Ste Wilson

unread,
Mar 27, 2019, 5:56:42 PM3/27/19
to TiddlyWiki
My templates allow cross referencing of variables, constants and equations. So voltage will list all of the equations which use it. All good. I also have Greek letters listed for reference and all equations which use that letter will be listed. The problem comes with pi.. Pi is a constant AND a Greek letter, and is tagged with both of these and so lists equations with pi in twice. All the other Greek variables are called other things.. Eg thermal heat transfer / second is big Phi. Can I stop the variable template filter kicking in for title Pi?
<$list filter='[is[current]tag[Greek Letters]]'>

Upper Case: {{!!variablelatexbig}}

Lower Case: {{!!variablelatexsmall}}

{{!!description}}

<$list filter="[title<currentTiddler>listed[greek]tag[Equation]] -[title<currentTiddler>] +[limit[1]]"><br><br>
<h2>Used in Equations</h2><br>
</$list>

<$list filter="[title<currentTiddler>listed[greek]tag[Equation]] -[title<currentTiddler>]">
<$link><$transclude field="title"/></$link>
<$transclude field="equation"/><br><br>
</$list>

</$list>


The variable, constant and Greek tags all have essentially the same code with slight variation. 

Mark S.

unread,
Mar 27, 2019, 9:10:31 PM3/27/19
to TiddlyWiki
Maybe wrap the constant template with a list that makes sure that the current item is not already covered as a
Greek letter?

<$list filter="[is[current]!tag[greek]limit[1]]">
<$list filter="[is[current]tag[constant]]">
...

swilson...@gmail.com

unread,
Mar 28, 2019, 8:43:15 AM3/28/19
to TiddlyWiki
Beautiful! Thank you!
Reply all
Reply to author
Forward
0 new messages