slatex / sTeX

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

Better notations for structure instances #330

Open Jazzpirate opened 2 years ago

Jazzpirate commented 2 years ago

i.e. given an instance \inst, we want \inst! (or something like it) to produce e.g. \mathstruct{\inst{universe},\inst{op},...} directly. This should also a) skip all fields corresponding to axioms/theorems b) be customizable with respect to which fields are shown (e.g. only universe and op for a group, if the unit and inverse operation are clear anyway) c) ... maybe be distinct from the instances notation? Occasionally one still wants to refer to the instance as e.g. \mathcal G instead of the list of all fields...