Skip to content

Parity between TeX sum and prod snippets #1540

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

Open
kiritofeng opened this issue Apr 3, 2025 · 0 comments
Open

Parity between TeX sum and prod snippets #1540

kiritofeng opened this issue Apr 3, 2025 · 0 comments

Comments

@kiritofeng
Copy link

I've noticed that the snippet for sum is

snippet sum "sum" w
\sum_{n=${1:1}}^{${2:\infty}} ${3:a_n z^n}
endsnippet

while the snippet for product is

snippet prod "product" w
\prod_{${1:n=${2:1}}}^{${3:\infty}} ${4:${VISUAL}} $0
endsnippet

Would it be possible to get parity between the two, so the new sum snippet reads either

snippet sum "sum" w
\sum_{${1:n=${2:1}}^{${3:\infty}} ${4:${VISUAL}} $0
endsnippet

or (less preferably)

snippet sum "sum" w
\sum_{${1:n=${2:1}}^{${3:\infty}} ${4:a_n z^n} $0
endsnippet

should you want to keep a_n z^n as the default?
In particular, this also has the side benefit of making it easier to change the iteration variables for a sum.

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

1 participant