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

Support expanding custom functions #134

Open
ZibingZhang opened this issue Nov 23, 2022 · 1 comment
Open

Support expanding custom functions #134

ZibingZhang opened this issue Nov 23, 2022 · 1 comment
Assignees
Labels

Comments

@ZibingZhang
Copy link
Contributor

follows #65

Description

We already have a expand_functions: set[str] | None in the config which the user can use to specific a set of predetermined function expansions. It would be nice for users to somehow register their own function expansions.

Ideas of the solution

  • User's function expansions should take priority over default ones, even if both are specified
  • Maybe a register_function_expansions: dict[str, Callable]
@odashi
Copy link
Collaborator

odashi commented Nov 24, 2022

Since the library still has many remaining issues under the hood, this should be a nice-to-have, not urgent feature. But feel free to implement any PoCs for this; I never block any researches using this library.

I think providing a good default behavior is prioritized than providing many user-side control particularly in this kind of library, since I think of users may not want to write any other things than just adding @latexify.function.

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

No branches or pull requests

2 participants