title: Longtable with multirows and multicolumns in Latex
body: <p>I have this table and I want to create it on Latex. I have tried a lot of table packages but with every package I use, I always get problems like the text exceeding the page width or can't seem to create multirows on the same columns.</p>
  <p>Any suggestions would be helpful.</p>
  <p><a href="https://i.stack.imgur.com/BQzXg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BQzXg.png" alt="enter image description here" /></a></p>
  <blockquote>
  </blockquote>
  <pre><code>\begin{longtabu} to \textwidth {|X|X|X|X|}
      \caption{Data Dictionary}\label{tab:summary}\\ 
      \hline
      \textbf{Tables} &amp;  \textbf{Columns}    &amp;   \textbf{Designation} &amp;   \textbf{Type} \\
      \hline
      \endfirsthead
      \multicolumn{4}{c}%
      {\tablename\ \thetable\ -- \textit{Continued from previous page}} \\
      \hline
      \textbf{Tables} &amp;  \textbf{Columns}    &amp;   \textbf{Designation} &amp;   \textbf{Type} \\
      \hline
      \endhead
      \hline \multicolumn{4}{r}{\textit{Continued on next page}} \\
      \endfoot
      \hline
      \endlastfoot
  
  \textbf{Building} \newline &amp;
  RI Building Ref
  (Primary Key)\newline
  Building Name\newline
  Development Name\newline
  Address\newline
  Submarket\newline
  Latitude\newline
  Longitude &amp;
  The building reference in Realinflo database\newline
  The building name\newline
  The development name to which the building belongs, if any.\newline
  The building street address\newline
  The submarket the building is located at.\newline
  The building latitude\newline
  The building longitude &amp; 
  text\newline
  text\newline
  text\newline
  text\newline
  text\newline
  float\newline
  float\\hline
  
  
  
  \end{longtabu} 
  </code></pre>