I want to move my source outside the box, so that it is next to the equation number.
\documentclass[a4paper,12pt,headsepline]{scrreprt}
\usepackage{amsmath} % Mathe
\usepackage{mathtools}
\usepackage{empheq}
\bibliographystyle{unsrt} % Zitierweise %quotestyle
\begin{document}
\begin{empheq}[box=\fbox]{align}
\rho\cdot \left(\dfrac{\partial w}{\partial t} + u\cdot \dfrac{\partial w}{\partial x} + v\cdot \dfrac{\partial w}{\partial y} + w\cdot \dfrac{\partial w}{\partial z}\right) =
A_{z}} - \dfrac{\partial p}{\partial z} + & \nonumber
\\
\dfrac{\partial}{\partial x} \left[\mu \cdot \left(\dfrac{\partial w}{\partial x} + \dfrac{\partial u}{\partial z}\right)\right] + & \cite[S.25]{Quelle}
\\
\dfrac{\partial}{\partial y} \left[\mu\cdot \left(\dfrac{\partial v}{\partial z} + \dfrac{\partial w}{\partial y}\right)\right] + \dfrac{\partial}{\partial z}\left[\mu\cdot \left( 2\cdot \dfrac{\partial w}{\partial z} - \dfrac{2}{3}\cdot (\nabla\cdot \overrightarrow{c})\right)\right] & \nonumber \label{eqn:Gleichung}
\end{empheq}
\end{document}
Best Answer
You just need
\boxed
together withaligned
: