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

Parentheses with \left and \right #38

Open
Francesco-FL opened this issue Aug 15, 2022 · 2 comments · May be fixed by #59
Open

Parentheses with \left and \right #38

Francesco-FL opened this issue Aug 15, 2022 · 2 comments · May be fixed by #59
Labels
bug Something isn't working

Comments

@Francesco-FL
Copy link

When I was writing, using normal parentheses, if I entered internal fractions, the parenthesis was visibly small and not beautiful.

Immagine 2022-08-15 055735

So I tried to change the normal parenthesis to \left or \right, but each needs the other, and when the user writes the expression starting with opening the parenthesis '\left(' the system fails because it does not find the \right.

So I tried to create a button for myself, in order to create both the \left (and the \right) and let the user type in between. However, I'm not sure how to set it up, I've tried several cases but I don't understand how to do it or if it's possible.

Immagine 2022-08-15 060122
Immagine 2022-08-15 060207

@Francesco-FL Francesco-FL added the bug Something isn't working label Aug 15, 2022
@github-actions
Copy link
Contributor

Hi 👋🏽 Thank you for opening your first issue with simpleclub/math_keyboard ❤

You can expect triage from us soon 🙂
In the meantime, you can try to search for similar issues in our issue database.

@Sub6Resources Sub6Resources linked a pull request Aug 8, 2023 that will close this issue
5 tasks
@Sub6Resources
Copy link

If #59 gets merged, you should be able to do this with

const BasicKeyboardButtonConfig(
  label: r'\left(\Box\right)',
  value: r'',
  args: [TeXArg.parentheses_lr],
  asTex: true,
  keyboardCharacters: ['(', ')'],
),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging a pull request may close this issue.

2 participants