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

add "\lceil: \rceil" and "\lfloor: \rfloor" to auto enlarge brackets #226

Merged
merged 1 commit into from
Nov 26, 2023
Merged

add "\lceil: \rceil" and "\lfloor: \rfloor" to auto enlarge brackets #226

merged 1 commit into from
Nov 26, 2023

Conversation

m4rch3n1ng
Copy link
Contributor

i also thought about adding a snippet similar to the "norm" snippet for both of them, but while "floor" as a trigger would work, "ceil" would clash with the chemistry "ce" snippet, so i didn't. if you want i can add them later.

@m4rch3n1ng m4rch3n1ng changed the title add "\lceil\rceil" and "\lfloor\rfloor" to auto enlarge brackets add "\lceil: \rceil" and "\lfloor: \rfloor" to auto enlarge brackets Nov 26, 2023
@artisticat1 artisticat1 merged commit e1be9ec into artisticat1:main Nov 26, 2023
@artisticat1
Copy link
Owner

Thanks!

i also thought about adding a snippet similar to the "norm" snippet for both of them, but while "floor" as a trigger would work, "ceil" would clash with the chemistry "ce" snippet, so i didn't. if you want i can add them later.

Good idea. Perhaps the trigger of the "ce" snippet could be changed? I'm not sure what we'd change it to though.

@m4rch3n1ng
Copy link
Contributor Author

Good idea. Perhaps the trigger of the "ce" snippet could be changed? I'm not sure what we'd change it to though.

you could do something similar to the "inn" => "\\in" snippet with "cee" => "\\ce ... "

@m4rch3n1ng m4rch3n1ng deleted the enlarge_ceil_floor branch November 26, 2023 15:47
@artisticat1
Copy link
Owner

artisticat1 commented Nov 27, 2023

Sounds good, I'd be happy to accept a PR adding default snippets for "floor", "ceil" and "cee".

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

Successfully merging this pull request may close these issues.

2 participants