TT, Perhaps this quick answer demonstrates what you are after?
\customize tick=q _element="$macrocall" $name=display-macro _srcName= "wikitext" display="block" \customize tick=a _element="$macrocall" $name=display-macro _srcName= "wikitext" display={{!!display-answers}} \define display-macro(wikitext display:"inline") <span style="display: $display$;">$wikitext$</span> ´q this is a question ´a This is an answer ´q this is another question ´a This is another answer answers will only be displayed if the field display-answers on the current tiddler = block or inline (not none)? - The above (may) be achieved only with a customise, but demonstrates calling macros with the customise as well. - This is achieved using the macrocall widget in part because it allows us to use the substitution $display$ to alter the style. Regards Tony On Saturday, 24 October 2020 23:26:14 UTC+11, @TiddlyTweeter wrote: > > Ciao Tony > > When I get back to reviewing the customise solution I will demonstrate a >> method for your need. > > > *How to dynamically change Custom Markup styling USING a Custom Markup > launched macro ... ?* > > The issue is NOT Custom Markup per se. Assume that is DONE already. And > well. > > Rather, the issue is DYNAMIC modification of CSS style values for styles > already applied. > > The Palette macro instantiates an economical stable approach that > illustrates a solution. > > IF you have time to explore this it could be useful. For ... > > 1 - MY needs; > > 2 - WIDER demonstration of the utility of macros UNDER Custom Markup. > > I think it is point (2) that has most gravitas. > > Best wishes > TT > > On Friday, 23 October 2020 04:50:56 UTC+2, TonyM wrote: >> >> TT, >> >> This requirement is a fundamental aspect of the customise solution, which >> started with an idea called dot paragraphs. >> This idea had a leading . on any line causes subsequent lines to be >> treated as a single paragraph unit a \n is reached. >> >> In your case arguably you want to use a div or span rather than a p >> >> \customise tick=div _element=div >> >> >> When I get back to reviewing the customise solution I will demonstrate a >> method for your need. >> >> In short it is I believe already possible. >> >> Tones >> >> >> >> >> On Friday, 23 October 2020 01:28:37 UTC+11, @TiddlyTweeter wrote: >>> >>> Ciao Tony >>> >>> Me ... >>> >>>> A SERIOUS use case would be HOW to invoke dynamic style change via >>>>> inline buttons. >>>>> >>>> >>> TonyM ... >>> >>>> Can you give an example? >>> >>> >>> A simple one would be to able to dynamically change "block style" for >>> paragraphs. I'm interested in archaic forms of writing where there is NO >>> gap between paragraphs. They form one flow. >>> >>> Being able to do this simply by changing <state> ... >>> >>> p.archaic { >>> display: <state> >>> } >>> >>> ... from "block" to "inline" in a stylesheet that is otherwise unchanged >>> would be ace. >>> >>> Hope that is clearer on my aim! >>> TT >>> >> -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikidev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/54183e11-f418-4b1e-afb4-a39cd1316d2eo%40googlegroups.com.