I am trying to learn Latex and it is really driving me nuts...
I would like to remove any unecessary whitespace when using multicolumn (whitespace before, and the heading which i don't need in this case) Here is an example :
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
\textsc{Hi}
\begin{table}[ht]
\begin{tabular}{ccc}
\hline
\multicolumn{2}{c}{}\\% i removed the heading but it creates unecessary whitespace
X&X&X\\
X&X&X\\
\hline
\end{tabular}
\label{tab:multicol}
\end{table}
\end{document}
How to make the "Hi"as close as possible to the row with the X's? I am having a very hard time figuring it out..Please help! Thanks a lot!!


% \multicolumn{...}. But I have tested it, and it doesn't work as expected. – logo_writer Aug 23 '17 at 23:33\vspace*{-\baselineskip}before the\begin{table}, as per this answer. If it works for you, I can put it as an answer. – logo_writer Aug 23 '17 at 23:40\multicolumn{2}{c}{} &. since this row is empty, just remove it. – Zarko Aug 23 '17 at 23:43tablealways (deliberately) add some vertical space before and after float content. remove this space is against nice typography provided bylatex(ii) have a label in float withoutcaptionis nonsense, since label not referee float but caption (which is missing), (iii) it is not clear what you mean withheading. if you mean caption of table? then put\caption{ ... table title ...}beforetabular, (iv) etc. you should clarify what is your problem. – Zarko Aug 23 '17 at 23:53\parskipfor global settings of vertical space between paragraphs,\vspacemostly for defining vertical spaces at defining of new environments and rarely for what you insinuate). if the context of your problem be clear to me, i would glad to help you. caption: it is nonsense has label in float without caption. you can have table without caption, but what you will do if the table will float on the next page? As novice i suggest to read some introduction information aboutlatex, for example https://tobi.oetiker.ch/lshort/lshort.pdf. – Zarko Aug 24 '17 at 00:32