I'm new at LaTeX and I'm trying to Excel2Latex my table.
This is my latex document:
\documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{multirow} \usepackage{float} \usepackage{tabularx} \begin{document} \begin{table}[htbp] \centering \caption{Add caption} \begin{tabularx}{\textwidth}{lrrr} \hline Use Case \# & \multicolumn{1}{l}{Name} & & \\ \hline Goal in Contect & \multicolumn{1}{l}{Obiettivo} & & \\ \hline Preconditions & \multicolumn{1}{l}{ok} & & \\ \hline Success End Conditions & \multicolumn{1}{l}{ok} & & \\ \hline Failed End Conditions & \multicolumn{1}{l}{ok} & & \\ \hline Primary Actor & \multicolumn{1}{l}{ok} & & \\ \hline Trigger & \multicolumn{1}{l}{ok} & & \\ \hline Descriptions & \multicolumn{1}{l}{Step} & \multicolumn{1}{l}{User Acton} & \multicolumn{1}{l}{System} \\ \hline & \multicolumn{1}{l}{\#1} & \multicolumn{1}{p{25.355em}}{Lorem ipsum dolor sit amet, consectetur adipiscing elit.\newline{}Mauris posuere nisl et risus viverra sagittis ut et est. Morbi nec nunc imperdiet, pulvinar quam sed, lobortis arcu. Nulla sagittis tortor ac eros tincidunt lacinia. Cras ut venenatis ante, eu condimentum arcu. Ut luctus rutrum fermentum. Mauris aliquam magna ex, vel.} & \\ \hline Extensions & \multicolumn{1}{l}{Step} & \multicolumn{1}{l}{User Action} & \multicolumn{1}{l}{System} \\ \hline & & & \\ \hline Subvariations & \multicolumn{1}{l}{Step} & \multicolumn{1}{l}{User Action} & \multicolumn{1}{l}{System} \\ \hline & & & \\ \hline Notes & & & \\ \hline \end{tabularx}% \label{tab:addlabel}% \end{table}% \end{document} but unfortunately this goes out of the right margin of the page, as you can see 
- How can I fix?

