Im wondering if I can do some kind of table in LaTeX in order to show my C array nicely in text? I did something like this in KolourPaint:
Tried to do the same with LaTeX tables, but with no success … Is it even possible?
I have only something like this so far (not very impressive, I know):
\documentclass[11pt]{article}
\begin{document}
\begin{table}[ht]
\begin{center}
\begin{tabular}{|c|c|}
\multicolumn{2}{c}{tab[0] tab[1]}\\ \hline
123 & 23 \\ \hline
\end{tabular}
\end{center}
\label{tab:multicol}
\end{table}
\end{document}
Best Answer
This is far from okey. But it works. I hope someone comes with a more automatized version (I would even prefer TikZ for this over my solution). EDIT I was silly enough to make first and last line with
\multicolumn
while it's easier to use it just in the middle row. I keep this unchanged, since I'm not fond (:P) of this solution.And here goes something to play with
tap
, which can break some things as it mixes Plain Tex with Latex, but… I like the output (I also used it here).