Changes
Page history
Create Stylized Tables
authored
Mar 28, 2022
by
Leonard Fisser
Show whitespace changes
Inline
Side-by-side
Stylized-Tables.md
0 → 100644
View page @
769ca7fc
Tables in TUHH-style can be created using provided utility macros.
A standard table is created using the code block:
```
latex
\begin{table}
\begin{tuhhtabular}
{
|l|l|
}
\tuhhHead
{
Column 1
}
&
\tuhhHead
{
Column 2
}
\\
Entry 1
&
1
\\
\hline
\end{tuhhtabular}
\end{table}
```
This will create a two-column table with white text on solid teal background headers as well as the necessary ruler lines.
Notice the
`\tuhhHead`
command wrapping the header cell text.
Multi-column tables with merged header cells can be create using the
`multicolumn`
environment:
```
\begin{table}[h!!]
\begin{tuhhtabular}{|l|l|}
\multicolumn{2}{c}{\tuhhHead{TU Table for Presentations}} \\
Entry 1 & 1 \\
\hline
\end{tuhhtabular}
\end{table}
```
\ No newline at end of file