% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/linf.R
\name{latex.linf.csts}
\alias{latex.linf.csts}
\title{Render dCSTs as a LaTeX table}
\usage{
latex.linf.csts(
  csts,
  depth = NULL,
  caption = NULL,
  label = NULL,
  digits = 1,
  include.percent = TRUE
)
}
\arguments{
\item{csts}{A dCST object produced by \code{linf.csts()} and optionally refined
by \code{refine.linf.csts()} or \code{refine.linf.csts.iter()}.}

\item{depth}{Integer. dCST depth to render. Default is the leaf level
(\code{csts$cst.depth}). If \code{cst.levels} is missing, depth is ignored.}

\item{caption}{Character or NULL. LaTeX table caption.}

\item{label}{Character or NULL. LaTeX label for referencing the table.}

\item{digits}{Integer. Digits to display for percentages. Default: 1.}

\item{include.percent}{Logical. If TRUE, include percent of total samples.}
}
\value{
Character vector containing LaTeX table code.
}
\description{
Generates LaTeX code summarizing dCSTs at a specified hierarchy depth.
Uses the explicit dCST hierarchy stored in \code{cst.levels} when available.
}
\details{
This function is hierarchy-aware. It does not infer dCST depth from label
strings. If the dCST object does not contain \code{cst.levels}, the function
falls back to using \code{cell.label} as a single-level dCST.
}
