feat: fill test coverage gaps + fix \sdcol i18n labels

- examples/subst-chain.tex: substitution walkthrough with \sdbox/\sdsubst/\sdstep
- examples/antipatterns.tex: four compile-clean-but-teach-false figures
- tests/invalid/step-outside-row.tex, empty-row.tex, undeclared-role.tex,
  two-contrast-pkg.tex: negative fixtures for package-level warnings
- test.sh: add tests/invalid/ loop
- build.sh: allow superderive-build: allow directive to suppress
  intentional warnings in antipatterns galleries
- superderive.sty: \sdcol respects [en] option for illegal/legal labels
- references/api.md: complete rewrite, all ~12 macros documented
This commit is contained in:
dela
2026-08-22 10:13:36 +08:00
parent f2ccd6fb08
commit 5b24eba3c8
9 changed files with 206 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
\usepackage[en]{superderive}
\begin{document}\begin{tikzpicture}
\sdrow{R1}
\sdrowend
\end{tikzpicture}\end{document}
+4
View File
@@ -0,0 +1,4 @@
\usepackage[en]{superderive}
\begin{document}\begin{tikzpicture}
\sdstep{s1}{a}{b}
\end{tikzpicture}\end{document}
+7
View File
@@ -0,0 +1,7 @@
\usepackage[en]{superderive}
\begin{document}\begin{tikzpicture}
\sdrow{R1}
\sdcol{c1}{a}{b}
\sdcol{c2}{c}{d}
\sdrowend
\end{tikzpicture}\end{document}
+6
View File
@@ -0,0 +1,6 @@
\usepackage[en]{superderive}
\begin{document}\begin{tikzpicture}
\sdrow{R1}
\sdbox[role=nosuch]{a}{x}
\sdrowend
\end{tikzpicture}\end{document}