I have a multilined equation which is aligned as follows: (schematically)
\documentclass[english]{article}
\usepackage{amsmath}
\usepackage{babel}
\begin{document}
\begin{align}
\text{Equ} &\equiv \text{first line of RHS} \;+\nonumber \\
& \phantom{=}+\;\text{second line of RHS}\nonumber \\
& =\text{third line of RHS} \; +\nonumber \\
& \phantom{=} +\; \text{fourth line of RHS}
\end{align}
\end{document}
What I'd like to achieve is a multiline box over only the third and fourth lines as follows:
I have tried using the \boxed{} function but this wouldn't work over multiple lines. Note: I would prefer not to box the entire four lines in this case.
Is this possible and, if so, how is it done?
Edit: (subsequent to answer by Bernard) I am having 2 difficulties implementing the pstricks solution: 1) The numbering seems to start over outside the postscript environment. 2) Equation references \eqref{} don't seem to work with \label{} inside the postscript. See output and MWE below:
\documentclass[english, svgnames]{article}
\usepackage{mathtools}
\usepackage{babel}
\usepackage{pst-node}
\usepackage{auto-pst-pdf}
\begin{document}
\begin{postscript}
\begin{align}
\text{Equ} & \equiv \text{first line of RHS} +{} \\
& =+\;\text{second line of RHS} \\
\pnode[-0.6em, 2.5ex]{A} & =\text{third line of RHS} + {} \\
& = +\; \text{fourth line of RHS} \pnode[0.8em, -1.5ex]{B} \label{Equ1}
\end{align}
\psframe[linejoin=1, linecolor=black](A)(B)
\end{postscript}
\begin{align}
\text{Equ2} &= \text{first line of RHS}\\
&= \text {second line of RHS}\label{Equ2}
\end{align}
Reference to Equ1: \eqref{Equ1}. Reference to Equ2: \eqref{Equ2}.
\end{document}





\--enable-write18\switch for MiKTeX ? 2) Is it possible to get equation numbering and use the\label{}function with this? i.e., Can one get an equation number and label the fourth line? – user143410 Jul 16 '17 at 19:11--enable-wite18, go toEdit -> Preferences-> Typesetting tab. In theProcessing toolswindow, selectpdflatexto openTool Configurationand add the switch to theArgumentswindow. – Bernard Jul 16 '17 at 19:30postscript(see edits to question). – user143410 Jul 16 '17 at 20:07LaTeX Warning: ReferenceEqu1' on page 1 undefined on input line 49.LaTeX Warning: ReferenceEqu2' on page 1 undefined on input line 49.However my editor sees them. – Bernard Jul 16 '17 at 20:50