I have a longtable and it doesn't fit the page size. How to fix it?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel} % Включаем пакет для поддержки русского
\usepackage{multirow,tabularx}
\usepackage{tabu}
\usepackage{longtable}
\usepackage[a4paper, portrait, margin=1in, hmargin=2cm, top=4cm, bottom=4cm, headheight=3cm, footskip=2.5cm]{geometry}
\begin{document}
\begin{longtable}{|l|l|l|l|l|l|}
%\begin{longtable}{@{\extracolsep{\fill}}|l|l|l|l|l|l|@{}}
\hline
№& Описание отклонения & Департамент & Идентифицированный риск & \multicolumn{2}{l|}{Не идентифицированный риск 1} \\
\hline
1 & ОТКЛОНЕНИЕ 1 & Департамент 1 & Риск 1 & Описание не идентифицированного риска & НИ Риск \\
\cline{5-6}
& & & & Объект / процесс, в которос появился этот риск & Объект 1 \\
\hline
\end{longtable}
\end{document}
I also tryed to use this code from the documentation but it still results in a table that is wider than the text width:
\setlength\LTleft{0pt}
\setlength\LTright{0pt}
\begin{longtable}{@{\extracolsep{\fill}}|l|l|l|l|l|l|@{}}
\newcolumntype
command from thearray
package (and reading it's documenation) once (as a comment to another question where this wrapping was missing too) ;-)