Creating Table with Different Last 3 Rows

  • Context: LaTeX 
  • Thread starter Thread starter Rajini
  • Start date Start date
  • Tags Tags
    Table
Click For Summary
SUMMARY

The discussion focuses on modifying a LaTeX table to create a unique structure for the last three rows, specifically by reducing the number of columns from six to four and merging the fourth column across these rows. The user seeks to implement a common text in the merged fourth column while ensuring that the first row remains unaffected. The solution involves using the \multirow command effectively to achieve the desired layout without altering the existing table structure.

PREREQUISITES
  • Familiarity with LaTeX table syntax
  • Understanding of the \multirow command in LaTeX
  • Basic knowledge of LaTeX document preparation
  • Experience with table formatting in LaTeX
NEXT STEPS
  • Research how to use the \multirow command in LaTeX for merging cells
  • Explore advanced table formatting techniques in LaTeX
  • Learn about the parbox command in LaTeX for text formatting
  • Investigate other LaTeX packages that enhance table capabilities, such as booktabs
USEFUL FOR

This discussion is beneficial for LaTeX users, particularly those involved in academic writing, researchers needing to format complex tables, and anyone looking to enhance their LaTeX table skills.

Rajini
Messages
619
Reaction score
4
hello all,
in the following code you can create a 6 column table. But i want to make the last 3 rows a bit different. How to make the last 3 rows to have only 4 columns and the 4th column to have some text, which is common for all the last 3 rows.
thanks
Code:
\begin{table}[!t]
\caption{Assignments of DFT calculated wavenumbers.}\label{tab:1stas}
\vspace{3mm}
\centering
\begin{tabular}[width=1\linewidth]{lccccl}
\hline\hline
Experimental & FC from     & $e_j^2$ & DFT calculated & FC from      & Mode description\\[0ex]
wavenumber   & NIS         &         & wavenumber     & DFT          & \\[0ex]
[cm$^{-1}$]  &[N~m$^{-1}$] &         & [cm$^{-1}$]    & [N~m$^{-1}$] & \\[0ex]
\hline
\multirow{3}{*}{390.9} & \multirow{3}{*}{79.08}& \multirow{3}{*}{0.45} & 394.5 & 68.97 & Breathing mode, $A_1^{\prime}$\\
& &                                                                    & 400.1 & 82.27 & Breathing mode, $A_1^{\prime}$\\
& &                                                                    & 410.6 & 90.86 & $A_2^{\prime\prime}$\\
\hline
446.8 & 27.27 & 0.10 &&&\\
538.4 & 3.29  & 0.01 &&&\\
595.7 & 43.99 & 0.13 &&&\\
\hline\hline
\end{tabular}
\end{table}
 
Physics news on Phys.org
Hi las3rjock,
But nothing on parbox is given in that link. It doesn't help me in anyway. For i want to span the 4th column of the last 3 rows as single. That means 4th column and 3, 4, and 5 row should be as a single cell. And this should not affect 1st row.
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 9 ·
Replies
9
Views
7K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 4 ·
Replies
4
Views
5K