Tackling Table Problems in LaTeX

  • LaTeX
  • Thread starter Rajini
  • Start date
  • Tags
    Latex Table
In summary, The conversation discusses a question about tackling table problems in LaTeX. The question specifically relates to how to write text in the blank space on the right side of columns 7, 8, and 9 in the table. The solution suggested is to use the "multicolumn" feature, which can be found online.
  • #1
Rajini
621
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: 442
Physics news on Phys.org
  • #2
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
 

1. How do I create a table in LaTeX?

To create a table in LaTeX, you can use the \begin{table} \end{table} environment. Within this environment, you can use the \begin{tabular} \end{tabular} command to specify the number of columns and their alignment. Then, use the & symbol to separate the content of each cell and \\ to indicate the end of each row.

2. How do I add borders and headers to my table?

To add borders to your table, you can use the \hline command after each row to create a horizontal line. To add headers, you can use the \multicolumn command within the \begin{tabular} environment to specify the number of columns and the alignment for the header cells.

3. How can I adjust the size and alignment of my table?

To adjust the size of your table, you can use the \resizebox command and specify the desired width and height. To change the alignment, you can use the \centering command to center the table, or \raggedright and \raggedleft to align it to the left or right, respectively.

4. Is it possible to add captions and labels to my table?

Yes, you can use the \caption command to add a caption to your table. To label your table, you can use the \label command within the \begin{table} environment. This will allow you to refer to your table throughout your document.

5. How can I merge cells in my table?

To merge cells in a table, you can use the \multicolumn command within the \begin{tabular} environment. Specify the number of columns to be merged and the alignment for the merged cell. You can also use the \cline{start-end} command to create a horizontal line spanning specific columns.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
343
  • Calculus and Beyond Homework Help
Replies
14
Views
722
  • MATLAB, Maple, Mathematica, LaTeX
Replies
7
Views
7K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
5K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
1K
Back
Top