Ok...
I have looked at the wikify widget, then I looked some more...then I tried
to find some examples....then I looked confused...
Right...so the full story.
I am using
\define mylatex(a,b)
<$wikify name="doit" text="""
<$latex text="{$a$}+{$b$}" displayMode="true"></$latex>""" >
<<doit>>
</$wikify>
\end
<$macrocall $name="mylatex" a=<<eval1 datatiddler:"data" cell:"random3">> b
=<<eval1 datatiddler:"data" cell:"random4">> >
To put a random value into a LaTeX equation (via the KaTeX plugin).
The random number is generated by
=@floor((@random() * 10) + 1)
and the eval1 macro is from the mathcell plugin.
So far so good. Unfortunately, at every update the random number changes
and a different random number is generated for each tiddler that uses the
above code.
In an ideal world, I would want the SAME random number sent to multiple
tiddlers.
This leads me to my problem.
1. I need to generate a random number which I can then insert into an
equation. DONE.
2. Student reads equation and submits answer.
3. Answer is compared to a list (generated by me) of 'correct' or 'nearly'
answers and appropriate feedback given.
So if I generate the random numbers into their own tiddlers and then take
the number displayed in that tiddler back into another field just
containing that plain number I can then transclude that into my latex and
also perform more eval1 functions on it to generate answers which can then
be compared to student imput also using the eval1 macro....
How hard can it be? *sobs*...
Regards
Stephen
On Monday, 19 June 2017 14:28:25 UTC+1, Ste Wilson wrote:
>
> I'll go have a look at the wikifi widget then I'll no doubt be back and
> will fill out the details.
>
> Cheers!
>
--
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/6c238f78-b9f1-490c-8289-20bca3ed6e5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.