Thanks a lot, BurningTreeC, I did as you recommended:
\define ref_r(label) <$button popup="$:/state/$(currentTiddler)$/r_$label$" class="tc-btn-invisible tc-slider">[<span style="color:blue">$label$</span>]</$button> \end \define definition_r(label,text) <$reveal type="popup" state="$:/state/$(currentTiddler)$/r_$label$" animate= "yes"> <div class="tc-drop-down"> <dl> <span style="color:lightgrey;">Посилання</span> <dt>$label$</dt> <dd>$text$</dd> </dl> </div> </$reveal> \end \define caption_r(label,text) <<ref_r "$label$">> <<definition_r "$label$" "$text$">> \end \define captions_r(label,text) <<definition_r "$label$" "$text$">> [<span style="color:blue">$label$</span>] $text$ \end It works for a single tiddler, when definition and reference are located together say in tiddler 1: Caption definition <<captions_r "34" "askaskadsk asdsadasdsa">> Reference to the caption <<ref_r "34">> However, when then I put reference into other tiddler 2 - it does not reveal the reference windows: Reference to the caption <<ref_r "34">> from another tiddler Then after I changed your suggested construction from /$(currentTiddler)$ to /$<currentTiddler>$, it started working though incorrectly as I described from the very beginning in https://youtu.be/m8z4iDkmcgY. Any other ideas? пʼятниця, 14 вересня 2018 р. 05:23:19 UTC+3 користувач BurningTreeC написав: > > Dear colleagues, >> >> Danielo's PopupFootnotes is very simple but very nice piece of work. I >> developed a bit Danielo's approach for several different types of text >> object: figures, formulas, references, etc.: see here >> http://bit.ly/2MvVR30. >> >> However, the issue I encountered make all these useless. The only >> reasonable explanation I found is in the latest TW version - 5.1.17. >> >> So, step by step I did the following: >> >> 1. I installed clean TW 5.1.17 (empty html from >> https://tiddlywiki.com/#GettingStarted or node.js does not matter - >> the effect was the same); >> 2. pulled two files from the source http://braintest.tiddlyspot.com/: >> *popupStyle* and *$:/macros/danielo/footNote*. >> 3. defined two tiddlers: the first one defines footnotes and >> references to them, and the second one defines references to the >> footnotes >> from the first tiddler. >> >> The result had a defected look, namely: while the references in the first >> tiddler works fine, the references in the second tiddlers showed popup >> windows over the first tiddler but not over the second one as expected. >> >> The result one can see at the short video https://youtu.be/m8z4iDkmcgY. >> >> I would be grateful for anyones assisstance in surpassing the issue. >> >> Olegh >> >> > Hi Olegh, > > If you change the state="$:/state/..." in the ref_ macros and the > definition macros to state="$:/state/$(currentTiddler)$/..." it should work > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/025b6aae-da18-43fc-807c-eb341107ce86%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.