3

I am trying to align some text left to an equation which has to be aligned in the center. For now I have tried this, but now my equation is aligned to the right. How do I solve this?

\begin{flalign*}
(EFQ) && A \wedge \neg A \rightarrow B, 
\end{flalign*}
1

1 Answer 1

2

If the equation needs to be centered you need to add further && on the right and introduce an amount of space equivalent to the text you are writing on the left

\documentclass{article}

\usepackage{amsmath}

\begin{document}

Two \verb+&&+ without horizontal space correction
\begin{flalign*}
(EFQ)&& A \wedge \neg A \rightarrow B, &&
\end{flalign*}
Two \verb+&&+ with \verb+\hphantom+
\begin{flalign*}
(EFQ)&& A \wedge \neg A \rightarrow B, && \hphantom{(EFQ)}
\end{flalign*}
Check with the centred equation
\[
A \wedge \neg A \rightarrow B,
\]

\end{document}

enter image description here

Unrelated, but I believe that (EFQ) should rather be in text mode (\text{(EFQ)}.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .