I have looked at all related questions and not able to find solution.
I have to use aligned
and since aligned
does not support tag
, how would one add an explicit equation number?
Here is MWE
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{adjustbox}
\begin{document}
\begin{equation*}
\adjustbox{max width=\textwidth}{%
$
\begin{aligned}
x &= y \sin(x) \\
&= \cos(x) %How to number this line? \tag{3} does not work
\end{aligned}
$}
\end{equation*}
\end{document}
I do not want an automatic equation number on the equation
itself. But I want to add a specific equation number on one of the equations inside aligned
itself.
I tried to do it by hand, but I do not know the amount of hspace
to add to make the equation number show up at the right edge of the page as what happens automatically when using tag
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{adjustbox}
\begin{document}
\begin{equation*}
\adjustbox{max width=\textwidth}{%
$
\begin{aligned}
x &= y \sin(x) \\
&= \cos(x) \hspace*{20pt} \text{(3)} %how to know how much space?
\end{aligned}
$}
\end{equation*}
\end{document}
Thanks for any suggestions how to do the above.
aligned
cannot be numbered. Numbered can be environment in whole, i.e. equation. However, use ofalign
which enable desired numbering of equation, doesn't work with\adjustbox
.adjustbox
. That is why I had to usealigned
. But I also want to add an equation number. Do you know how to usehspace
to add correct amount of space to end of\textwidth
? If so I can do it by hand as above., But do not know how much space to add to do it manually.\adjustbox
. It is (i) typographically very fragile (ii) you have only problems with hackering of its contents, by which you like to restore basic features ofalign
environment.align
notaligned
just put it in a\parbox
to get back to vertical mode