memoir/pages/latex/tables.md

35 lines
944 B
Markdown
Raw Normal View History

2023-04-04 11:12:59 +00:00
# Tables
```latex
\begin{tabular}{ l|r }
\label{item:dtn-simulators-chosen}
Name & Language \\
\hline
The One \cite{sim-theone} & \verb|Java| \\
OPS \cite{sim-ops} & \verb|C++| \\
ns3-dtn-bit \cite{sim-ns3} & \verb|C++| \\
dtnsim \cite{sim-dtnsim} & \verb|Python| \\
DTN \cite{sim-dtn} & \verb|C#| \\
\end{tabular}
```
```latex
begin{table}[h!]
\centering
\begin{tabular}{|c c c c|}
\hline
Col1 & Col2 & Col2 & Col3 \\
\hline\hline
1 & 6 & 87837 & 787 \\
2 & 7 & 78 & 5415 \\
3 & 545 & 778 & 7507 \\
4 & 545 & 18744 & 7560 \\
5 & 88 & 788 & 6344 \\
\hline
\end{tabular}
\caption{Table to test captions and labels.}
\label{table:1}
\end{table}
```
[https://www.overleaf.com/learn/latex/Tables#Tables_with_fixed_length](https://www.overleaf.com/learn/latex/Tables#Tables_with_fixed_length)