【发布时间】:2019-09-14 20:49:20
【问题描述】:
我正在开发一个闪亮的应用程序。我使用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,"$$"))
})
}
【问题讨论】: