To use the \cancel method in Shiny MathJax, you can simply insert it as a LaTeX expression using the dollar sign delimiter. For example, if you want to strikeout the number "5" in your app, you can use the following code:
ui <- fluidPage(
mainPanel(
HTML('Here is a canceled number: $\\cancel{5}$')
)
)
server <- function(input, output) {}
shinyApp(ui, server)
This will render a text element with a strikethrough line over the number 5, like this:
Here is a canceled number: 5
You can adjust the size, color and style of the strikethrough line using CSS, or by specifying additional options in the LaTeX expression.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-05-22 19:28:45 +0000
Seen: 13 times
Last updated: May 22 '23
How can user input be added to an array using a loop in C# and then displayed through printing?
How can bits be mapped to integers?
What is the highest number title that can be typed in Excel?
How can NumPy compute the sum of numbers that are in the vicinity of a given number?
What is the maximum number of emails one can send per day using Google Apps Script?
What is the method to obtain a count from specific columns while disregarding the rest?
How can one determine if a given number is a perfect square?
In what way can ecommerce be measured with Nextjs13 using event GA4?
What is the procedure for modifying the default number delimiter formatting in Excel?