Hi Jeremy (and other wonderful peeps),

Finally had time to play with your code.
I need to expand it to accept output multiple variables so my button mow 
looks like

<$button>
Create Tiddler

<$set
 name="valuetext" value={{{ [{!!value_temp}addprefix[<$latex 
text="]addsuffix["displayMode="true"></$latex>]] }}} >
<$set
 name="constext" value={{{ [{!!const_temp}addprefix[<$latex 
text="]addsuffix["displayMode="true"></$latex>]] }}} >
<$set
 name="unittext" value={{{ [{!!unit_temp}addprefix[<$latex 
text="]addsuffix["displayMode="true"></$latex>]] }}} >
<$action-setfield $tiddler={{!!name_temp}} 
text={{!!text_temp}} 
value=<<valuetext>>
variablelatex=<<constext>>
unitlatex=<<unittext>>
tags='constant'/>
</$set>
<$action-navigate $to={{!!name_temp}}/>

</$button>

</$tiddler>

All works as expected apart from the button which now reads *Create Tiddler 
</$button> **</$tiddler>*

I suspect I've missed a bracket somewhere, but my attempts to resolve the 
matter end in only the final field being created.

Stephen

On Sunday, 29 July 2018 14:16:21 UTC+1, Ste Wilson wrote:
>
> I'm trying to set some user input between latex markers so the user 
> doesn't have to put in the $$. 
>
> So far I have: 
>
> \define mylatex(a)
> <$latex text="{$a$}" displayMode="true"></$latex>
> \end
>
> <$button>
> Work...Please work
> <$action-setfield $tiddler="Newtid" $field="test" 
> $value=''<$macrocall $name="mylatex" a={{lddata}}> /''
> </$button>
>
> So what I'd want in field test is for example <latex>3+5</latex> or $$3+4$$
>
> The macro will render a latex string in the text field without having to 
> add anything.
> I just don't know how to get that Wiki text into a different field. 
>
>
> Any help as always appreciated. 
>
>

-- 
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/1f3ea0b6-3b2d-4122-b1e6-b9f0d50ead65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to