% This file is part of the CTAN package named plain-grid.
% 
%   plaingridX.tex: check requirements for the other files
%   Version 1.0, 05.05.2026
%
%   Copyright (C) 2026  Udo Wermuth (author)
%
%   This program is free software: you can redistribute it and/or modify
%   it under the terms of the GNU General Public License as published by
%   the Free Software Foundation, either version 3 of the License, or
%   (at your option) any later version.
%
%   This program is distributed in the hope that it will be useful,
%   but WITHOUT ANY WARRANTY; without even the implied warranty of
%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%   GNU General Public License for more details.
%
%   You should have received a copy of the GNU General Public License
%   along with this program.  If not, see <http://www.gnu.org/licenses/>.
%
\GRIDdim=\ht\GRIDsbox \advance\GRIDdim by \dp\GRIDsbox
\ifdim\GRIDdim=\GRIDgrid \else
 \edef\GRIDtmp{\baselineskip= \the\baselineskip,
  \strutbox = \the\ht\strutbox+\the\dp\strutbox\space= \the\GRIDdim.}%
 \errhelp\expandafter{\GRIDtmp}%
 \errmessage{Violated: natural width of \string\baselineskip\space
  equals height + depth of \string\strutbox}\fi
\ifdim\maxdepth<\dp\GRIDsbox
 \edef\GRIDtmp{\maxdepth= \the\maxdepth, depth \strutbox= \the\dp\strutbox.}%
 \errhelp\expandafter{\GRIDtmp}%
 \errmessage{Violated: \string\maxdepth\space equals or
  is larger than \string\dp\string\strutbox}\fi
\ifdim\boxmaxdepth<\dp\GRIDsbox
 \edef\GRIDtmp{\boxmaxdepth= \the\boxmaxdepth, depth \strutbox= \the\dp\strutbox.}%
 \errhelp\expandafter{\GRIDtmp}%
 \errmessage{Violated: \string\boxmaxdepth\space equals or
  is larger than \string\dp\string\strutbox}\fi
