[Tex/LaTex] How to insert a framed box inside a table

diagramsframedtables

I'm trying to accomplish the result in shown in following picture.

enter image description here

So far I have tried :

\begin{tabular}[h]{cm{5cm}m{5cm}c}
  fingerprint & Signature1 & \rule{5cm}{.5pt}  & fingerprint \\
  & & & \\
  \fbox{  \vspace{5cm} \rule{2cm}{0pt} }  & Signature2 & \rule{5cm}{.5pt} &  \fbox{ \vspace{5cm} \rule{2cm}{0pt} } \\
\end{tabular}

But the resulting fbox are really small, I thought about creating an image of the desired size and including, but I believe LaTeX has the tools needed to accomplish the task without external files. What I am surely missing is creating a simple framed box of a given size though, and I am not sure about being able to insert in a tabular environment.

Best Answer

  1. The optional argument of \tabular or array isn't a placement option. The optional argument set the vertical alignment of tabular. Working parameters are b, t and c.
  2. fbox works like a hbox and you can use vertical space inside a single hbox. You can combine two rules for specifying the width and height.

    \fbox{\rule{2cm}{0pt}\rule{0pt}{5cm}}
    

    You can also set a single minipage inside fbox with a width and length.

Here is one possibility:

\documentclass{scrartcl}
\usepackage{array}
\begin{document}
\begin{tabular}{cm{5cm}m{5cm}c}
  fingerprint &  &  & fingerprint \\
  \smash{\fbox{\rule{2cm}{0pt}\rule[-3cm]{0pt}{3cm}}} & Signature 1 & \rule{5cm}{.5pt} &  \smash{\fbox{\rule{2cm}{0pt}\rule[-3cm]{0pt}{3cm}}}  \\[1cm]
  & Signature2 & \rule{5cm}{.5pt} &   \\
\end{tabular}
\end{document}