我正在开发一款闪亮的应用程序。我使用 withMathJax()
插入了一个方程式。我想让方程式左对齐并将字体更改为 "Arial"。有人可以帮忙吗?
以下是示例问题:
library(shiny)
ui <- fluidPage(
titlePanel("hello"),
sidebarLayout(
sidebarPanel(),
mainPanel(
uiOutput("formula")
)
)
)
server <- function(input,output){
output$formula <- renderUI({
listcat <- c("Men","Ladies")
value <- 15
withMathJax(paste0("$$\\frac{",listcat[1], "\\cap ", listcat[2],"}{",listcat[1],"} =", value,"$$"))
})
}