I have an equation and i want to right align it:
\documentclass{report}
\usepackage{amsmath,amsfonts,amsthm,bm} %math
%----------------------------------------
%Align Equations to LEFT MARGIN (use \mathleft then \mathcenter)
\makeatletter
\newcommand{\mathleft}{\@fleqntrue\@mathmargin0pt}
\newcommand{\mathcenter}{\@fleqnfalse}
\makeatother
%----------------------------------------
\begin{document}
\begin{align}
center
\end{align}
\mathleft
\begin{align}
left
\end{align}
\end{document}
I have an awesome piece of code that allows me to leftalign with \mathleft
, is it possible to have one that right align?
Best Answer
Of course you can, though not without reading the TeXbook (Exercise 19.8). Look at the final example, though, which could be what you're looking for.