Hello world,
This may not be proper style, but I would find it very convenient to
\renewcommand{\[}{\begin{align*}}
\renewcommand{\]}{\end{align*}}
While this works,
\[5\]
produces the error "Paragraph ended before \align* was complete".
Does anyone have any ideas for making this work? I'm using MiKTeX and TeXnicCenter.
Thanks in advance,
-Anton
Document Classes ⇒ Redefining \[ to \begin{align*}
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Redefining \[ to \begin{align*}
Hi Anton,
welcome to the board!
This approach should work:
Stefan
welcome to the board!
This approach should work:
Code: Select all
\def\[#1\]{\begin{align*}#1\end{align*}}
LaTeX.org admin
Re: Redefining \[ to \begin{align*}
Thanks Stefan, that works great!
-Anton
-Anton
Redefining \[ to \begin{align*}
Not, of course, even, IMHO, bad style, since you are changing completely the function of one basic LaTeX environment. I figure out that you pretend to always use your new \[...\] environment both for single and for multiline formulas. In such a case, please note that, for single formulas, the align* environment (implicitly used) is not equivalent to the default \[...\]. I conjecture that you will get many formulas with bad vertical space around, if not any other problems.alukyane wrote: This may not be proper style,...
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Redefining \[ to \begin{align*}
I agree, it's bad style.
On the other hand, the previous solution gave me an idea:
This works like a charm, and finally allows me to write
On the other hand, the previous solution gave me an idea:
Code: Select all
\def\bal#1\eal{\begin{align*}#1\end{align*}}
\bal \eal
instead of \begin{align} \end{align}
.