I would like to define
$$$ \zeta(s) = \dfrac1{1^s} + \dfrac1{2^s} + \cdots $$$
as a short hand for
\begin{align}
\zeta(s) = \dfrac1{1^s} + \dfrac1{2^s} + \cdots
\end{align}`
How should I go about doing this?
PS: I am aware of using newcommand to define something like
\newcommand{\ba}[1]{\begin{align}#1 \end{align}}
Best Answer
You can. But I strongly discourage you to use the following code that implements your idea. The resulting document code is obscure and error prone. If you forget a
$
somewhere, you'll probably get weird error messages when TeX is very far from the point where the missing$
should be.Disclaimer. Using this code can cause kittens die; it can also cause the computer to rebel against you and create a computer domination over the world. You've been advised.
For example, forgetting the
$
afterabc
, you get an error at line 34, which readsTry it. Then forget about this idea. Using
\newcommand{\ba}[1]{\begin{align}#1\end{align}}
is even worse.