View source: R/sds_character.R
sds_character | R Documentation |
Given a character from a special unicode or other font, translate it into a tex command if needed.
sds_character( char, show = FALSE, format = ifelse(knitr::is_latex_output(), "latex", "html") )
char |
the character, as a quoted string |
show |
if TRUE, return a vector showing the available characters. Not intended for use in documents, just to help identify when a character you want to use is missing. |
format |
either |
The point of this function is to let you use native characters in html mode, but avoid characters that latex doesn't recognize by using the corresponding latex command when in latex mode. Why not just use the latex command in both cases. That's not a bad practice, but it causes problems when trying to create a Kindle edition, since Kindle doesn't process latex.
sds_character("♣", format = "latex") sds_character(show = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.