r - LaTeX formula in Shiny panel -
i want display -latex formated- formula in shiny panel, can't find way combine textoutput withmathjax. tried following didn't work. gratefully appreciated.
--ui.r
... tabpanel("diagnostics", h4(textoutput("diagtitle")), withmathjax(textoutput("formula")), ), ... --server.r
... output$formula <- rendertext({ print(paste0("use formula: $$\\hat{a}_{\\small{\\textrm{m€}}} =", my_calculated_value,"$$")) }) ...
ui.r
tabpanel("diagnostics", h4(textoutput("diagtitle")), withmathjax(uioutput("formula")), ) server.r
output$formula <- renderui({ return(html(paste0("<p>,"use formula: $$\\hat{a}_{\\small{\\textrm{m€}}} =", my_calculated_value,"$$","</p>"))) })
Comments
Post a Comment