I tried to make a table like the one shown below but when I include multirow
it gives me normal type of tables yet. I mean in the last row, the horizontal line appears while it is merged.
\documentclass[10pt]{article}
\usepackage{textcomp}
\usepackage[utf8]{inputenc}
\usepackage[british]{babel}
\usepackage{float}
\usepackage{gensymb}
\usepackage{multirow}
\begin{document}
\begin{flushleft}
\begin{tabular*}{1\textwidth}{|p{2cm}|p{1.5cm}|p{1cm}|p{3.5cm}|}
\hline
\textbf{Type} & \textbf{Max} & \textbf{Unit} & \textbf{Notes} \\
\hline
- & 10 & V & \multirow{2}{*}{Note 1} \\
\hline
- & & V & \\
\hline
- & - & V & \multirow{2}{*}{Note 2} \\
\hline
- & & V & \\
\hline
- & - & V & \multirow{2}{*}{Note 3} \\
\hline
- & 12 & V & \\
\hline
& & & & & & \multirow{2}{*}{}\\
\hline
& & & & & & \\
\hline
2.2 & - & pF & \\
\hline
$\pm$1 & 10 & $\mu$A & Note4 \\
\hline
\end{tabular*}
\captionof{table}{Characteristics}
\end{flushleft}
\end{document}
Best Answer
It's just a problem of using
\cline
instead of\hline
, and them
specifier instead ofp
. Once again I suggest you use thesiunitx
package to typeμA
, because the micro symbol isupright
μ. I suppressed the invocation of tabularx since you have noX
column, and loadingtextcomp
which is harmful with fontspec. Theflushleft
environment is useless here: just usetable
with theH
option, and it won't float.Finally I thought the table would be better looking if the caption were also flushleft. If you want it centred flushright with respect to the table, you can use the
threeparttable
environment. I give an example of caption at the bottom left and right corners of the table.