Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose subgroup to thm-styling to allow styling theorems, proofs etc. differently #31

Open
luewolf opened this issue Aug 22, 2024 · 1 comment

Comments

@luewolf
Copy link

luewolf commented Aug 22, 2024

default-theorems(thm-styling: ...) expects a function that allows overriding the layout of theorems, proofs and so on. The function has the signature (thm-type, name, number, body) => content. It would be great if using this function would allow us to pick different layouts and styles depending on whether it is applied to a theorem, an example, a lemma and so on. Unfortunately, thm-type contains the localized name of the subgroup, making comparisons that work independently of language difficult. Thus, the function signature should be extended to also include the non-localized theorem type (aka subgroup).

@Marmare314
Copy link
Owner

The way I intended for this to work is to provide different stylings to each group. But this is of course more work than just checking the thm-type parameter, since they have to be created manually. So maybe thm-type should be provided non-localized and can then be localized in the styling function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants