Debian Codegraph @

texmf-dist/tex/plain/plain-grid/plaingridX.tex

raw
1 % This file is part of the CTAN package named plain-grid.
2 %
3 % plaingridX.tex: check requirements for the other files
4 % Version 1.0, 05.05.2026
5 %
6 % Copyright (C) 2026 Udo Wermuth (author)
7 %
8 % This program is free software: you can redistribute it and/or modify
9 % it under the terms of the GNU General Public License as published by
10 % the Free Software Foundation, either version 3 of the License, or
11 % (at your option) any later version.
12 %
13 % This program is distributed in the hope that it will be useful,
14 % but WITHOUT ANY WARRANTY; without even the implied warranty of
15 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 % GNU General Public License for more details.
17 %
18 % You should have received a copy of the GNU General Public License
19 % along with this program. If not, see <http://www.gnu.org/licenses/>.
20 %
21 \GRIDdim=\ht\GRIDsbox \advance\GRIDdim by \dp\GRIDsbox
22 \ifdim\GRIDdim=\GRIDgrid \else
23 \edef\GRIDtmp{\baselineskip= \the\baselineskip,
24 \strutbox = \the\ht\strutbox+\the\dp\strutbox\space= \the\GRIDdim.}%
25 \errhelp\expandafter{\GRIDtmp}%
26 \errmessage{Violated: natural width of \string\baselineskip\space
27 equals height + depth of \string\strutbox}\fi
28 \ifdim\maxdepth<\dp\GRIDsbox
29 \edef\GRIDtmp{\maxdepth= \the\maxdepth, depth \strutbox= \the\dp\strutbox.}%
30 \errhelp\expandafter{\GRIDtmp}%
31 \errmessage{Violated: \string\maxdepth\space equals or
32 is larger than \string\dp\string\strutbox}\fi
33 \ifdim\boxmaxdepth<\dp\GRIDsbox
34 \edef\GRIDtmp{\boxmaxdepth= \the\boxmaxdepth, depth \strutbox= \the\dp\strutbox.}%
35 \errhelp\expandafter{\GRIDtmp}%
36 \errmessage{Violated: \string\boxmaxdepth\space equals or
37 is larger than \string\dp\string\strutbox}\fi