[Tex/LaTex] Units, in brackets, right aligned in align environment

alignunits

I need to supply the unit of the formulas I use, in square brackets, right aligned. I use the align environment. I have tried several things, like manually changing the style of the equation numbering to include the units, but I need to be able to toggle the units.

Any ideas on how to do this? Example of how I would like this feature to work:

\begin{align}
 \CL(s) &= \frac{\OL(s)}{1 + \OL(s)}
    \unit{kg}
\end{align}

Best Answer

Remarks

You didn't provide \CL nor \OL, so I defined my own. You can use && to skip to a new column in align.

Implementation

\documentclass{article}
\pagestyle{empty} %for cropping
\usepackage{amsmath,units}
\newcommand{\CL}{CL} % You didn't provide \CL
\newcommand{\OL}{OL} % You didn't provide \OL
\begin{document}
\begin{align}
    \CL(s) &= \frac{\OL(s)}{1 + \OL(s)} && [\CL] = \unit{kg}
\end{align}
\end{document}

Output

enter image description here