I get the following error in my .dtx file:
) (./test.dtx
! Undefined control sequence.
l.35 % \rowcolors
{1}{colorrow}{colorbody}
which I do not understand since xcolor and colortbl are loaded and all other xcolor commands work.
This is the code of the .dtx file for testing:
% \iffalse
%<*driver>
\ProvidesFile{test.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{test}
%
%<*driver>
\documentclass{ltxdoc}
\usepackage{test}
\EnableCrossrefs
\CodelineIndex
\RecordChanges
%
\RequirePackage{colortbl}
\RequirePackage{xcolor}
%
\listfiles
\begin{document}
\DocInput{test.dtx}
\PrintChanges
\PrintIndex
\end{document}
%</driver>
% \fi
%
% \GetFileInfo{test.dtx}
%
% \colorlet{colorbody}{white!100}
% \colorlet{colorsubhead}{gray!30}
% \colorlet{colorhead}{gray!25}
% \colorlet{colorrow}{gray!15.0}
%
% \rowcolors{1}{colorrow}{colorbody}
% \begin{tabular}{*{2}{p{0.45\textwidth}}}
% content & content \tabularnewline
% content & content \tabularnewline
% content & content \tabularnewline
% \end{tabular}
%
% \StopEventually{}
% \clearpage
% \section{Implementation}
%
% \iffalse
%<*test.sty>
% \fi
%
% \subsection{Setup and packages}
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesPackage{test}
% \end{macrocode}
%
% \begin{macrocode}
\RequirePackage{array}
\RequirePackage{colortbl}
\RequirePackage{xcolor}
% \end{macrocode}
%
% \iffalse
%</test.sty>
% \fi
%
% \Finale
\endinput