pub enum TableStyle {
Tabular,
Longtabu,
Booktabs,
}Expand description
Table rendering style
Controls how Markdown tables are converted to LaTeX table environments. Each style has different capabilities and LaTeX package requirements.
Variants§
Tabular
Basic tabular environment
Uses the standard LaTeX tabular environment with \hline for borders.
This is the most compatible option and works without additional packages.
Requirements: None (built into LaTeX)
Example output:
\begin{tabular}[lc]
Header 1 & Header 2 \\
\hline
Cell 1 & Cell 2 \\
\end{tabular}Longtabu
Long tables with page breaks using longtabu
Uses the longtabu environment which can automatically break across pages.
Useful for very long tables that exceed page length.
Requirements: longtabu package
Example output:
\begin{longtabu}[X[l] to \textwidth {lc}]
Header 1 & Header 2 \\
\\ \hline
Cell 1 & Cell 2 \\
\end{longtabu}Booktabs
Beautiful tables using booktabs package
Uses professional typography rules from the booktabs package.
Produces the most aesthetically pleasing tables with proper spacing
and rule weights.
Requirements: booktabs package
Example output:
\begin{tabular}[lc]
\toprule
Header 1 & Header 2 \\
\midrule
Cell 1 & Cell 2 \\
\bottomrule
\end{tabular}Trait Implementations§
Source§impl Clone for TableStyle
impl Clone for TableStyle
Source§fn clone(&self) -> TableStyle
fn clone(&self) -> TableStyle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more