I'm writing the manuscript of my paper and I have to write partial derivatives in a table. While doing so, there is a problem when I use \begin{equation}...\end{equation}
in table. For simplicity, I write a part of table as follows:
\begin{tabular}{ccc}
\toprule
Boundary & Flow \\
\midrule
Inlet &
\[ \textit {u=U_0, v=0}\]\\
Outlet &
\[ {\frac{\partial u}{\partial y}=\frac{\partial v}{\partial x}=0}\]\\
\bottomrule
\end{tabular}
I would be grateful if someone give me a help with this issue. I have to mention that when I use the same equation NOT in table, the code is applied well:
\begin{equation}
{\frac{\partial u}{\partial y}=\frac{\partial v}{\partial x}=0}
\end{equation}
\[...\]
in a tabular (there are other problems as well). And don't ignore errors when compiling. And this has nothing to do with Overleaf.p{...}
, then the content is put in a parbox (paragraph box), so if you want a displayed math there, you can have it.c
,l
, etc. are set in horizontal mode, that is, like a line of text (no paragraphs), so displayed math doesn't work.