2

I want to write just one equation from left in a beamer documentclass, but it seems that \begin{flalign} doesn't work, and everything that I write will be centered. I don't want to use \usepackage[fleqn]{beamer} as it will make all the equations to start from left. This is my code:

\documentclass{beamer}
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and
\usepackage{dsfont}
\usepackage{amsmath}
\begin{document}
\begin{frame}
\begin{flalign}
&\min\hspace{0.5cm}\sigma_{ASE}^2x^{-1}+\zeta_1x^2+\zeta_2z &&\\
&\text{s.t.}\hspace{0.5cm}&\mathds{1}^Tp=1 &&\\
& p\geq 0 &&\\
& a^Tp\leq P_t &&\\
& a^T p=x &&\\
& b^T p=z &&
\end{flalign}
\end{frame}
\end{document}

and this is my output:

There is a similar post here, but it does not give me any solution. Any help?

David Carlisle
  • 757,742
CLAUDE
  • 268

1 Answers1

2

Like all the ams alignments it isn't really designed for single line equations (and isn't designed to make flush left at all) but....

enter image description here

\documentclass{beamer}
\usepackage{amsmath}
\usepackage{dsfont}
\begin{document}
\begin{frame}
\begin{flalign*}
&5+6=11&&
\end{flalign*}
\end{frame}
\end{document}

enter image description here

\documentclass{beamer}
\usepackage{amsmath}
\usepackage{dsfont}
\begin{document}
\begin{frame}
\begin{flalign*}
\min\hspace{0.5cm}&\sigma_{ASE}^2x^{-1}+\zeta_1x^2+\zeta_2z &\\
\text{s.t.}\hspace{0.5cm}&\mathds{1}^Tp=1&\\
& p\geq 0 &\\
& a^Tp\leq P_t &\\
& a^T p=x &\\
& b^T p=z &
\end{flalign*}
\end{frame}
\end{document}
David Carlisle
  • 757,742