Centering: Centering Caption of LaTeX Table

View source: R/Centering.R

CenteringR Documentation

Centering Caption of LaTeX Table

Description

This function adds the "\centering" command to the caption of a LaTeX table, allowing the caption to be centered in the final output.

Usage

Centering(x)

Arguments

x

LaTeX-formatted table with a caption.

Value

LaTeX-formatted table with a centered caption.

Examples

latex_table <- "\\begin{table}\\caption{This is a caption.}\\end{table}"
centered_table <- Centering(latex_table)
print(centered_table)

RTLknitr documentation built on Aug. 25, 2023, 9:06 a.m.