Let's say I want to write the following sum in a more compact way
$$a=z_1+z_2+\dots +z_{n/2}-z_{n/2+1}-z_{n/2+2}-\dots -z_{n}$$
Is there some kind of syntax to write that in a more compact way... Something like $$a=\sum _i ^{n}z_i$$ but with some operator that would change sign from + to - at $i=n/2$ ?
The clearest would in my opinion be $$ a = \sum_{i=1}^{n/2} z_i - \sum_{i=n/2+1}^n z_i $$
But if you insist on using only one summation sign, you can employ the Iverson bracket: $$ a = \sum_{i=1}^n (-1)^{[i>n/2]}z_i $$
This is not quite so standard notation that you can expect random readers to understand it without you explaining it before you use it, though.
You can also use something like the signum function $$ a = \sum_{i=1}^n \operatorname{sgn}(\tfrac n2+\tfrac12-i)z_i $$ though that gets closer to the realm of obfuscation in my opinion.