File: use_latex_packages.Rd

package info (click to toggle)
r-cran-kableextra 1.4.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,400 kB
  • sloc: javascript: 579; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 903 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/util.R
\name{use_latex_packages}
\alias{use_latex_packages}
\title{Declare LaTeX packages needed by kableExtra}
\usage{
use_latex_packages()
}
\description{
Declares all of the LaTeX packages that
may be used by \code{kableExtra} functions so that they
will be loaded when the document is produced.
}
\details{
When \code{kableExtra} loads, it calls this function if it
detects that \code{knitr} is running and producing
LaTeX output.  However, sometimes \code{kableExtra}
is loaded before \code{knitr} runs, and then these packages
can end up being missed, leading to LaTeX errors such as
"Undefined control sequence."  (See
Github issue #721 for an example.)

Our \code{kbl()} wrapper for \code{knitr::kable()} calls
this function for LaTeX output, so an explicit call
is not necessary.
}
\examples{
use_latex_packages()
}