TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on a document with a two column structure, Currently my right side column is empty and the table on my left column is spilling to the right column. How can I restrict table to be on the left side column.

\begin{table}[h]
\centering

\begin{tabular}{l*{3}{c}r}
Algorithm              & Experts(RMSLE) & Benchmark(RMSLE) \\
\hline
Random Forest & 3.013653 & 3.056084 \\
GBM            & 2.888076 & 2.081570 \\
SVM(SVR)           & 2.979915 & 3.056084 \\
\end{tabular}

\caption{Experts and Non-expert Prediction}
\label{tab:expert_table}
\end{table}
share|improve this question
up vote 2 down vote accepted

After setting small font size for table and removing/adjusting table column separation:

Code:

\documentclass[twocolumn]{article}
\usepackage{lipsum}
\begin{document}
\lipsum[1-2]
\begin{table}[h]
\setlength{\tabcolsep}{2pt} %% <---------adjust the value here
\small
\centering

\begin{tabular}{@{}lcr@{}}
Algorithm              & Experts(RMSLE) & Benchmark(RMSLE) \\
\hline
Random Forest & 3.013653 & 3.056084 \\
GBM            & 2.888076 & 2.081570 \\
SVM(SVR)           & 2.979915 & 3.056084 \\
\end{tabular}

\caption{Experts and Non-expert Prediction}
\label{tab:expert_table}
\end{table}
\lipsum
\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.