[Tex/LaTex] Stop table going off page

lyxtables

I'm aware that my table is too wide as it keeps going off the page on the right.

Is there a way to fix this?

I'm using lyx as I am a learner.

Best Answer

\noindent\resizebox{\textwidth}{!}{%
... your tabular ...
}

In LyX insert the two lines in ERT (Evil Red Text) mode (Ctrl-L) just before and after your tabular. In the documents preamble add \usepackage{graphicx} if not already present.

This is how you add a new package: Use custom latex package in LyX

Related Question