slatex / sTeX

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

realizations missing fields #365

Open kohlhase opened 1 year ago

kohlhase commented 1 year ago

In smglom/linear-algebra/source/mod/vector-space.en.tex I have

Screenshot 2022-09-30 at 15 01 10

and indeed there are some fields missing, but in this case, I do not want to do all the (trivial) assignments. Is there a way to be more convenient here?

Jazzpirate commented 1 year ago

well, the actual targets of the assignments are only checked by MMT, so from the point of view of sTeX you can easily do \assign{foo}{I have a marvelous proof which this .tex file is too narrow to contain} - but a realization requires assigning all fields in principle, so I think it useful to have latex insist on it and have MMT complain ;)

Jazzpirate commented 1 year ago

Ah, for the special case where you want to assign the identity on a whole module/mathstructure, there is the abbreviation \donotcopy{module-name}, which automatically assign everything in module-name to itself, so modularity helps/is encouraged

kohlhase commented 1 year ago

Ah, that is what I was hoping for, does that take a CSL as the argument?

Jazzpirate commented 1 year ago

No, but I'd be surprised if the situation occurs too often that you have several (>2) modules you want to assign to the identity...