blob: 291a18aaead3d56786ea8982f5edcfc637a26a27 [file] [log] [blame]
Hao Zhubacd2f32017-10-11 14:06:36 -04001% 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{
7cell_spec(x, format, bold = F, italic = F, monospace = F, color = NULL,
Hao Zhu9ce317e2017-10-12 18:19:55 -04008 background = NULL, align = NULL, font_size = NULL, angle = NULL,
Hao Zhu457acb42017-10-14 17:37:02 -04009 hover_message = NULL, background_as_tile = TRUE)
Hao Zhubacd2f32017-10-11 14:06:36 -040010}
11\arguments{
12\item{x}{Things to be formated. It could be a vector of numbers or strings.}
13
14\item{format}{Either "html" or "latex". It can also be set through
15\code{option(knitr.table.format)}, same as \code{knitr::kable()}.}
16
17\item{bold}{A T/F value to control whether the text of the selected column
18need to be bolded.}
19
20\item{italic}{A T/F value to control whether the text of the selected column
21need to be emphasized.}
22
23\item{monospace}{A T/F value to control whether the text of the selected column
24need to be monospaced (verbatim)}
25
26\item{color}{A character string for column text color. Here please pay
27attention to the differences in color codes between HTML and LaTeX.}
28
29\item{background}{A character string for column background color. Here please
30pay attention to the differences in color codes between HTML and LaTeX.}
31
32\item{align}{A character string for cell alignment. For HTML, possible values could
33be \code{l}, \code{c}, \code{r} plus \code{left}, \code{center}, \code{right}, \code{justify}, \code{initial} and \code{inherit}
34while for LaTeX, you can only choose from \code{l}, \code{c} & \code{r}.}
35
36\item{font_size}{Only if you want to specify font size locally in HTML.
37This feature is not available in LaTeX}
38
Hao Zhu9ce317e2017-10-12 18:19:55 -040039\item{angle}{0-360, degree that the text will rotate. Can be a vector.}
40
41\item{hover_message}{A vector of strings to be displayed as hover message.
42Of course, this feature is nly available in HTML.}
Hao Zhu457acb42017-10-14 17:37:02 -040043
44\item{background_as_tile}{T/F value indicating if you want to have round
45cornered tile as background.}
Hao Zhubacd2f32017-10-11 14:06:36 -040046}
47\description{
48Specify Cell format before it gets into kable
49}