slatex / sTeX

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

merge stexthm.sty with beamerthemesTeX.sty and localize them. #429

Open kohlhase opened 1 month ago

kohlhase commented 1 month ago

We currently have two places where theorem-like environments are defined:

People are now working on German (Kohlhase/Agricola), French (Thierry), Slovenian (Potocnic/Bercic), and Hungarian (Zombori) sTeX content, so we need a solution here relatively soon.

I think we should merge the stuff from beamerthemesTeX.sty into stexthm.sty and load the latter in the first. There must be a way to detect that we are inbeamer to trigger the special treatment of theorems needed by that. Probably by \@ifpackageloaded or so. But note that notesslides.cls/sty only loads beamararticle.sty (not beamer.cls) in notes mode.

And when we should set up the stex-thm.ldf mechanism in stexthm.sty and ask the users to contribute the appropriate language definition files (for general sTeX as well).

kohlhase commented 1 month ago

I have started the process by creating two language definition files sTeX/tex/ldf/stexthm-{english,german}ldf. Then others (e.g. the Slovenians) can contribute others.

I also tried to set up the ldf mechanism in stexthm.sty by copying it from problem.sty, but it does not work so I commented it out.

Generally I have the feeling that the ldf mechanism is quite different over the files, this could be

kohlhase commented 1 month ago

I have also renamed the keyword macros in beamerthemesTeX.sty to be consistent with the new files. This makes the localization part starting at line 39 (almost, i.e. modulo the ldf mechanism) obsolete.