%تعریف محیط جدید برای ایجاد جداول مناسب
\newenvironment{mytable}[2]%
{
%تعیین رنگ سطرهای مختلف برای پکیج xcolor
\rowcolors{3}{}{gray!35}
\begin{longtable}{|m{.75\textwidth}>{\centering \arraybackslash} m{.25\textwidth}|}
\caption{\cellcolor{white}\textbf{#1}}\label{#2}\\
\hline
\endfirsthead
\caption*{\cellcolor{white}\textbf{#1 (ادامه)}}\\
\hline
\endhead
\hline
\multicolumn{2}{l}{\cellcolor{white}\textbf{ادامه جدول در صفحه بعد}}
\endfoot
\bottomrule\bottomrule
\endlastfoot
}
{\end{longtable}}