slatex / sTeX

A semantic Extension of TeX/LaTeX
49 stars 9 forks source link

master: \trefi[foo]{bar} with CD errors should still print "bar". #281

Closed kohlhase closed 3 years ago

kohlhase commented 3 years ago

Currently a test file

\documentclass[minimal]{omdoc}
\usepackage{statements}
\begin{document}
testing: \trefi[foo]{bar}
\end{document}

gives the errors


./test.tex:4: Package statements Error: Module foo not loaded.

See the statements package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.4 testing: \trefi[foo]{bar}

./test.tex:4: Package modules Error: `\termref' with unidentified cd "foo".

See the modules package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.4 testing: \trefi[foo]{bar}

(as it should), but does not format the string bar into the PDF, which is a missed opportunity, since the user explicitly specified {bar}.

I tried to do this in statements.dtx but this did not work yet.

kohlhase commented 3 years ago

fixed