I want to create the following table header. And for that I have something like this, but it is not quite the same:
\documentclass{article}
\begin{document}
\begin{table}[h]
\begin{center}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}
\hline
Work & Prime (bits) & \# FFs & \# LUTs & \# Slices & \# DSPs & \# BRAMs & Freq. (MHz) & Latency (cc $\times 10^6$) & Total time (ms) \\
\hline \hline
\end{tabular}
\end{center}
\end{table}
\end{document}
First of all, as can be seen in the picture that I have linked there are two column cells that are divided into two segments, how can I achieve that? Also, you can see that in the columns that include #
, the hashtag symbol is written above and the text below, how can I also achieve that?
Best Answer
The
makecell
package allows linebreaks in standard cells. Unrelated: don't use thecenter
environment withintable
: it adds a supplementary, unwanted, vertical space. Add\centering
instead.