96ca6e2 ←501ed07antonApr 18, 2026 api

create tables.tex via macOS

A /docs/undefined +99 -0
A /docs/undefined +99 -0
1\documentclass[12pt]{article}
2\usepackage{booktabs}
3\usepackage{multirow}
4\usepackage{array}
5\usepackage{xcolor, colortbl}
6
7\title{Tables in LaTeX}
8\author{sublimated}
9\date{}
10
11\begin{document}
12\maketitle
13
14\section{Basic Table}
15
16\begin{table}[h]
17\centering
18\caption{Hash algorithm comparison}
19\label{tab:hashes}
20\begin{tabular}{lcc}
21 \toprule
22 Algorithm & Output (bits) & Speed (GB/s) \\
23 \midrule
24 SHA-1 & 160 & 1.2 \\
25 SHA-256 & 256 & 0.8 \\
26 BLAKE3 & 256 & 6.4 \\
27 \bottomrule
28\end{tabular}
29\end{table}
30
31Reference: Table~\ref{tab:hashes}.
32
33\section{Column Alignment}
34
35\begin{center}
36\begin{tabular}{l r r r}
37 \toprule
38 Region & Q1 & Q2 & Q3 \\
39 \midrule
40 North America & \$1,200 & \$1,350 & \$1,100 \\
41 Europe & \$980 & \$1,020 & \$1,150 \\
42 Asia Pacific & \$750 & \$890 & \$920 \\
43 \bottomrule
44\end{tabular}
45\end{center}
46
47\section{Multicolumn and Multirow}
48
49\begin{table}[h]
50\centering
51\caption{Conference submission deadlines}
52\begin{tabular}{llcc}
53 \toprule
54 \multirow{2}{*}{Conference} & \multirow{2}{*}{Field} & \multicolumn{2}{c}{Deadlines} \\
55 \cmidrule(lr){3-4}
56 & & Submission & Notification \\
57 \midrule
58 NeurIPS & ML & May 2026 & Sep 2026 \\
59 ICML & ML & Jan 2026 & Apr 2026 \\
60 ACL & NLP & Feb 2026 & May 2026 \\
61 CVPR & Vision & Nov 2025 & Feb 2026 \\
62 \bottomrule
63\end{tabular}
64\end{table}
65
66\section{Colored Rows}
67
68\begin{center}
69\begin{tabular}{l l l}
70 \toprule
71 \rowcolor{blue!10} Format & Extension & Use Case \\
72 \midrule
73 LaTeX & .tex & Academic papers \\
74 \rowcolor{gray!10} Typst & .typ & Modern documents \\
75 Markdown & .md & Notes and docs \\
76 \rowcolor{gray!10} Org Mode & .org & Literate programming \\
77 \bottomrule
78\end{tabular}
79\end{center}
80
81\section{Wide Table with Fixed Columns}
82
83\begin{table}[h]
84\centering
85\caption{Item types in sublimated}
86\begin{tabular}{l >{\raggedright\arraybackslash}p{5cm} l}
87 \toprule
88 Type & Description & Compilation \\
89 \midrule
90 \texttt{file} & Generic file, no special processing & None \\
91 \texttt{typst\_document} & Typst source file & PDF + SVG \\
92 \texttt{latex\_document} & LaTeX source file & PDF + HTML + SVG \\
93 \texttt{function} & TypeScript function (esbuild + WfP) & JavaScript bundle \\
94 \texttt{mermaid\_diagram} & Mermaid diagram source & SVG \\
95 \bottomrule
96\end{tabular}
97\end{table}
98
99\end{document}