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.
For those of you on e-mail...Original post updated as I pressed the wrong button while typing it.
Tony
enter text : <$edit-text tiddler="test b" field="input"/>
\define concatlatexfield() $${{!!input}}$$
\define actions()
<$wikify name="latextext" text=<<concatlatexfield>>>
<$action-setfield inputlatex=<<latextext>>/>
</$wikify>
\end
<$button actions=<<actions>>>to latex</$button>
input : <$view field="input"/>
inputlatex : <$view field="inputlatex"/>
\define convalue() <$latex text="{{$:/state/NewTiddlerForm!!value}}"></$latex>
\define actions()<$wikify name="valuetext" text=<<convalue>>><$action-setfield $tiddler="$:/state/NewTiddlerForm" $field="valuetext" $value=<<valuetext>> /></$wikify>\end
!Title<$edit-text class='tc-edit-texteditor' tiddler='$:/state/NewTiddlerForm' field='name_temp' placeholder='Life the Universe and Everything' /><br>
!!Value of Constant
<$edit-text class='tc-edit-texteditor' tiddler='$:/state/NewTiddlerForm' field='value'/><br>
<$button>Create Tiddler<<actions>><$action-setfield $tiddler={{$:/state/NewTiddlerForm!!name_temp}} text={{$:/state/NewTiddlerForm!!text}} value={{$:/state/NewTiddlerForm!!valuetext}}/><$action-navigate $to={{$:/state/NewTiddlerForm!!name_temp}}/><$action-setfield $tiddler='$:/state/NewTiddlerForm' name_temp='' text='' description='' tags=''/></$button>
<$tiddler tiddler="$:/state/NewTiddlerForm">
!Title
<$edit-text class='tc-edit-texteditor' field='name_temp' placeholder='Life the Universe and Everything' /><br>
!!Value of Constant
<$edit-text class='tc-edit-texteditor' field='value'/>
<$button>
Create Tiddler
<$set name="valuetext" value={{{ [{!!value}addprefix[<$latex text="""]addsuffix["""></$latex>]] }}}>
<$action-setfield $tiddler={{!!name_temp}} text=<<valuetext>> value={{!!value}}/>
</$set>
<$action-navigate $to={{!!name_temp}}/>
</$button>
</$tiddler>
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@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/fae270d4-c9b7-4e4a-92f4-5ea09f750e17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
So if I defined some css in another tiddler tagged with $:/tags/Stylesheet then can I use them with tiddlerTagClasses?
<$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>
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
All works as expected apart from the button which now readsCreate 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.