I'm using TW5. My problem is that I don't know how to render maths with the 
reveal widget. For example, the following code will render the 
$$mathbb{Z}$$ correctly:

<$reveal type="nomatch" state="$:/state/SampleReveal2" text="show">
<$button set="$:/state/SampleReveal2" setTo="show">Show me</$button>
</$reveal>
<$reveal type="match" state="$:/state/SampleReveal2" text="show">
<$button set="$:/state/SampleReveal2" setTo="hide">Hide me</$button>
$$\mathbb{Z}$$
</$reveal>


But when I try to use a macro to get rid of all the extra baggage, it 
doesn't work:

\define showme(go)
<$reveal type="nomatch" state="$:/state/SampleReveal2" text="show">
<$button set="$:/state/SampleReveal2" setTo="show">Show me</$button>
</$reveal>
<$reveal type="match" state="$:/state/SampleReveal2" text="show">
<$button set="$:/state/SampleReveal2" setTo="hide">Hide me</$button>
$go$
</$reveal>
\end

<<showme $$\mathbb{Z}$$>>


This will just give me the string "$$\mathbb{Z}$$", unrendered. My question 
is: how do I get the maths to render in the second case?

Thanks for your help. 

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1f9a76e5-7811-467a-a713-1acc2aedd7c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to