I have the code in which an equation environment is in \hbox:
\documentclass{article}
\begin{document}
\hbox{
\begin{equation}
F=ma
\end{equation}
}
\end{document}
But it throws multiple errors. What should I correct?
Edit:
\hbox is used in the code in NewEnviron. When I try to insert an equation environment in \item, the same errors occur.
\hbox? What is it you want to achieve? – Werner Oct 15 '21 at 03:11\hboxin the code:\setbox0=\hbox{...}. – Hermis14 Oct 15 '21 at 03:23\setbox0=\hbox{...}with\setbox0=\vbox{...}? (I will also confess to having no idea what it is that you want to achieve.) – Mico Oct 15 '21 at 03:54hbox. Without seeing context of it use we can only (unsuccessful) guess how to help you. – Zarko Oct 15 '21 at 04:54equationenvironment, which by the way occupies the whole text width (besides being illegal in\hbox). – egreg Oct 15 '21 at 07:22