Take the 2-minute tour ×
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.

I'm using the semantic package to write inference rules and I have trouble with the following:

\usepackage[inference]{semantic}
\usepackage{amsmath}


\begin{equation}
  \inference{ expr }{ \begin{aligned} long_expr1 \\ long_expr2 \end{aligned} }
\end{equation}

In this code, I want long_expr1 and long_expr2 to be centered. However, the aligned environment aligns them on the right. How can I fix this?

share|improve this question

1 Answer 1

Answering my own question, the problem is solved with the gathered environment.

share|improve this answer

Your Answer

 
discard

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.