kableExtra LaTeX Table Creation Guide

Guide to creating LaTeX tables using the kableExtra package in R, covering installation, styles, options, and advanced formatting.


kableExtra LaTeX Table Creation Guide - cover page
Brand
kableExtra
Document type
User Manual
Language
English
Pages
29
File format
PDF
File size
610 KB
Published
04 November, 2026
Updated
04 November, 2026
MD5 checksum
7BD5BBDDC1B16E38771EDCEA70754000

About this manual

This guide explains how to use the kableExtra package in R to generate LaTeX tables. It covers installation, basic usage, table styling, and advanced features like grouped columns and row styling. The package integrates with knitr and supports both HTML and LaTeX output formats. It also includes instructions for customizing LaTeX packages and handling table positioning and scaling.

What's inside

  • Installation
  • Getting Started
  • LaTeX packages used in this package
  • Plain LaTeX
  • LaTeX table with booktabs
  • Table Styles
  • LaTeX options
  • Column / Row Specification
  • Cell/Text Specification
  • Grouped Columns / Rows

Frequently asked questions

What is the default format for kable() when no format is specified?

By default, it will generate a markdown table and let pandoc handle the conversion from markdown to HTML/PDF.

What function should users start using instead of kable() for convenience?

It is recommended to start using the new kbl function for all its convenience.

What LaTeX package is required for the striped option in kable_styling?

The LaTeX package xcolor is required to make the striped option work.

What option should be used to fix the position of a LaTeX table?

Use the hold_position option to fix the position of a LaTeX table.

Download PDF (610 KB)

More kableExtra Manuals


View all kableExtra manuals →