Here is an example of what I want to achieve. I have tried below but the equations won't center automatically.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{gather*}
\begin{rcases}
p \\
p \rightarrow r \\
q \rightarrow \neg r
\end{rcases}
\end{gather*}
\end{document}
I want automatic centering.
Best Answer
The use of the
array
environment in your equation or inline math would be the easiest solution I suppose. It also doesn't really require agather*
orgathered
environment: