I put some texts enclosed within tabbing, embedded in fbox and minipage:
\fbox{%
\begin{minipage}[t]{0.48\linewidth}%
\begin{tabbing}
\quad \= \quad \= \quad \= \quad \= \quad \= \hspace{5cm} \= \\[-\baselineskip]\kill
...
...
\end{tabbing}
\end{minipage}}\hfill
The question is... if I want to put a caption for the whole text, just under and outside the frame, and make it a reference. Do where should I put this \caption{acap} and \reference{aref}?
Could anyone help? Thank you very much!
Edit1: Following the second proposition of @Stefan Kottwitz, I have the following code, which prints the two minipages on the same height. The problem now is that, before adding the outer minipage of the first minipage, there was space between two sides, and their positions were all right. But now, the right minipage has moved a little bit to the left, so that the space has disappeared... Could anyone help? Thank you!
\begin{minipage}[t]{0.48\linewidth}%
\centering
\fbox{
\begin{minipage}[t]{0.48\linewidth}%
\begin{tabbing}
\quad \= \quad \= \quad \= \quad \= \quad \= \hspace{5cm} \= \\[-\baselineskip]\kill
...
\end{tabbing}
\end{minipage}}\hfill
\captionof{table}{A Testbox}\label{testbox}
\end{minipage}
\begin{minipage}[t]{0.48\linewidth}
...
\end{minipage}
