Code: Select all
\documentclass[a4paper,twoside,11pt,final,dvips]{book}
\usepackage[includemp=true,margin=3cm]{geometry}
\usepackage{array,longtable,lipsum,xcolor}
%------------------------- MARKER ------------------------
\newcommand*{\MARKER}%
{%
\par\noindent\strut\vrule\hrulefill~{\color{red} text area}~\hrulefill\vrule%
\marginpar{\strut\vrule\hrulefill~{\color{red} margin area}~\hrulefill\vrule}\par%
}
\begin{document}
\MARKER
\begin{longtable}{|m{0.5\textwidth}|m{0.5\textwidth}|}\hline
\lipsum[1]&\lipsum[3]\\\hline
\end{longtable}
\pagebreak
\MARKER
\begin{longtable}{|m{0.5\textwidth}|m{0.5\textwidth}|}\hline
\lipsum[1]&\lipsum[3]\\\hline
\end{longtable}
\end{document}
How to prevent the table from crossing the margin?
thank you in advance.
regards,
Yuko