Tackling Table Problems in LaTeX

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

The discussion focuses on resolving table formatting issues in LaTeX, specifically using the multicolumn feature to fill empty spaces in table cells. The user provided a sample table code and expressed the need to utilize a single box for certain rows (7, 8, and 9) to eliminate blank spaces. The solution involves implementing the multicolumn command to merge cells effectively. This approach enhances the visual presentation of data in LaTeX tables.

PREREQUISITES
  • Basic understanding of LaTeX syntax and structure
  • Familiarity with LaTeX table environments
  • Knowledge of the multicolumn command in LaTeX
  • Experience with LaTeX packages for table formatting (e.g., array or booktabs)
NEXT STEPS
  • Research the multicolumn command in LaTeX for merging table cells
  • Explore advanced table formatting techniques in LaTeX
  • Learn about the array package for enhanced table control
  • Investigate the booktabs package for professional-quality tables
USEFUL FOR

LaTeX users, researchers, and academics who need to create well-structured tables in their documents, particularly those looking to improve the presentation of data in scientific papers or reports.

Rajini
Messages
619
Reaction score
4
Dear all,
Is there a trick to tackle table problems in latex..
For example the code below give a table (see picture file attached)
Code:
\begin{table}[b!]
\caption{Numbering scheme.}\label{tab:sam}
\vspace{3mm}
\centering
\begin{tabular}[width=1\textwidth]{l|p{59mm}|p{65mm}}
\hline\hline
Sample & Compounds & Remarks \\
No.\ & &\\
\hline
1   & some thing  & solid/powder      \\
2   & sample~1    & prepared in open  \\
3   & sample~2    & prepared in frozen\\
\hline
7   & 1~min       &                   \\
8   & 5~min       &                   \\
9   & 30~min      &                   \\
\hline\hline
\end{tabular}
\end{table}
If you see 7, 8, 9..i left some blank space on the right side..Now i want to write some text in that space...how to do it?? i.e., for 7, 8 and 9 i need only one column and one row-..(something similar to a single box)
thanks
 

Attachments

  • Unbenannt.jpg
    Unbenannt.jpg
    9.5 KB · Views: 537
Physics news on Phys.org
your table format is nt prper...
so
\begin{table}[b!]
\caption{Numbering scheme.}\label{tab:sam}
\vspace{3mm}
\centering
\begin{tabular}[width=1\textwidth]{l|p{59mm}|p{65mm}}
then after u have to used
" multicolumn{}"
so find on net how to do multi column in table
 

Similar threads

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