Hao Zhu | bacd2f3 | 2017-10-11 14:06:36 -0400 | [diff] [blame^] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/cell_spec.R |
| 3 | \name{cell_spec} |
| 4 | \alias{cell_spec} |
| 5 | \title{Specify Cell format} |
| 6 | \usage{ |
| 7 | cell_spec(x, format, bold = F, italic = F, monospace = F, color = NULL, |
| 8 | background = NULL, align = NULL, font_size = NULL, angle = NULL) |
| 9 | } |
| 10 | \arguments{ |
| 11 | \item{x}{Things to be formated. It could be a vector of numbers or strings.} |
| 12 | |
| 13 | \item{format}{Either "html" or "latex". It can also be set through |
| 14 | \code{option(knitr.table.format)}, same as \code{knitr::kable()}.} |
| 15 | |
| 16 | \item{bold}{A T/F value to control whether the text of the selected column |
| 17 | need to be bolded.} |
| 18 | |
| 19 | \item{italic}{A T/F value to control whether the text of the selected column |
| 20 | need to be emphasized.} |
| 21 | |
| 22 | \item{monospace}{A T/F value to control whether the text of the selected column |
| 23 | need to be monospaced (verbatim)} |
| 24 | |
| 25 | \item{color}{A character string for column text color. Here please pay |
| 26 | attention to the differences in color codes between HTML and LaTeX.} |
| 27 | |
| 28 | \item{background}{A character string for column background color. Here please |
| 29 | pay attention to the differences in color codes between HTML and LaTeX.} |
| 30 | |
| 31 | \item{align}{A character string for cell alignment. For HTML, possible values could |
| 32 | be \code{l}, \code{c}, \code{r} plus \code{left}, \code{center}, \code{right}, \code{justify}, \code{initial} and \code{inherit} |
| 33 | while for LaTeX, you can only choose from \code{l}, \code{c} & \code{r}.} |
| 34 | |
| 35 | \item{font_size}{Only if you want to specify font size locally in HTML. |
| 36 | This feature is not available in LaTeX} |
| 37 | |
| 38 | \item{angle}{0-360, degree that the text will rotate.} |
| 39 | } |
| 40 | \description{ |
| 41 | Specify Cell format before it gets into kable |
| 42 | } |