Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question is closely related to this one: Using the displaymath shorthand \[ \] for equation or align instead. I use Multimarkdown (MMD) to generate my LaTeX documents. MMD uses the escape character set \\[ and \\] to create displaymath shorthand \[ and \] in LaTeX. I'd like to re-assign \[ and \] to \begin{align} and \end{align}. The previous question had a solution for other environments (e.g., equation), but I would like to use the align environment. According to the amsmath technical notes, it's impossible to create abbreviations for its math environments. Does anyone know a work-around? I have tried


but this doesn't seem to work.

share|improve this question
Hi Noam, welcome to I've formatted the link to the other question: You can just insert the full link in your question, it will automatically be formatted to use the question title as the link text. No need for URL shorteners. Also, I've formatted your code snippets by enclosing them in backticks (you could also just select them and press the {} key), and I've removed the "Thanks!", because that's just the custom here =) – Jake Oct 24 '11 at 3:56
Strictly speaking, it's impossible. However, you can do \def\[#1\]{\begin{align}#1\end{align}}. A better route may be to configure MMD to directly produce the \begin{align} and \end{align}, if that's possible. – Bruno Le Floch Oct 24 '11 at 5:08
\renewenvironment{displaymath}{\align}{\endalign} does work for me. Did you load amsmath? Please provide a minimal working example. – Leo Liu Oct 24 '11 at 5:53

1 Answer 1

You can use TeX's \def command for redefining \[...\]:


Minimal working example:

   ax + b &= 0 \\
   ab &= 1

align redefinition test output

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.