blob: 237c15b930a6636ffeb48f17e471cfb1ed1e3794 [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,
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
17need to be bolded.}
18
19\item{italic}{A T/F value to control whether the text of the selected column
20need to be emphasized.}
21
22\item{monospace}{A T/F value to control whether the text of the selected column
23need to be monospaced (verbatim)}
24
25\item{color}{A character string for column text color. Here please pay
26attention to the differences in color codes between HTML and LaTeX.}
27
28\item{background}{A character string for column background color. Here please
29pay 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
32be \code{l}, \code{c}, \code{r} plus \code{left}, \code{center}, \code{right}, \code{justify}, \code{initial} and \code{inherit}
33while 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.
36This feature is not available in LaTeX}
37
38\item{angle}{0-360, degree that the text will rotate.}
39}
40\description{
41Specify Cell format before it gets into kable
42}