Graphics, Figures & TablesProblem with frame in table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
dagna
Posts: 16
Joined: Wed Mar 03, 2010 7:28 pm

Problem with frame in table

Post by dagna »

Hi!

I have got table:

Code: Select all

\begin{table}
  \begin{center}
  {\footnotesize
      \begin{tabular}{|c|c|c|c|c|} \hline
        \multicolumn{2}{|c|}{\textbf{\textsc{SI}}} & \multicolumn{2}{c|}{\textbf{\textsc{IEC}}} & \multicolumn{1}{c|}{\multirow{2}{*}{Value}}  \\ \cline{1-4}
        \textbf{Nazwa} & \textbf{Symbol} & \textbf{Nazwa} & \textbf{Symbol}  \\ \hline
        \textit{kilo}   & K & \textit{kibi}  & Ki & $2^{10} = 1024^1$ \\ \hline
        \textit{mega}   & M & \textit{mebi}  & Mi & $2^{20} = 1024^2$ \\ \hline
        \textit{giga}   & G & \textit{gibi}  & Gi & $2^{30} = 1024^3$ \\ \hline
        \textit{tera}   & T & \textit{tebi}  & Ti & $2^{40} = 1024^4$ \\ \hline
        \textit{peta}   & P & \textit{pebi}  & Pi & $2^{50} = 1024^5$ \\ \hline
        \textit{eksa}   & E & \textit{eksbi} & Ei & $2^{60} = 1024^6$ \\ \hline
        \textit{zetta}  & Z & \textit{zebi}  & Zi & $2^{70} = 1024^7$\\ \hline   
        \textit{jotta}  & Y & \textit{jobi}  & Yi & $2^{80} = 1024^8$\\ \hline 
     \end{tabular}
  }
  \end{center}
\end{table}
Afrer "Value" in one place I haven't frame. multicol{1}... doesn't help. What can I do here?

Regards!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with frame in table

Post by localghost »

The second line of your table needs one more column.

Code: Select all

\textbf{Nazwa} & \textbf{Symbol} & \textbf{Nazwa} & \textbf{Symbol} & \\ \hline
For improvement of legibility it is recommendable to omit vertical lines in tables.


Best regards
Thorsten
dagna
Posts: 16
Joined: Wed Mar 03, 2010 7:28 pm

Problem with frame in table

Post by dagna »

localghost wrote:The second line of your table needs one more column.

Code: Select all

\textbf{Nazwa} & \textbf{Symbol} & \textbf{Nazwa} & \textbf{Symbol} & \\ \hline
For improvement of legibility it is recommendable to omit vertical lines in tables.


Best regards
Thorsten
Thank you a lot for help!

Best regards,
Dagna
Post Reply