3

I am looking a package to create an empty framebox of 2.7 cm height and 15.97 cm lenght. I am using \framebox but I am able only to set the size.

\framebox[15.97cm][l]{}
3

For example:

\documentclass[a4paper]{article}
\begin{document}

\noindent
\frame{\rule{0pt}{2.7cm}\rule{15.97cm}{0pt}}

\end{document} 
2

If you're using \fbox or \framebox, you need to remember that it adds a gap and rule around it's contents. Remove this from your construction to ensure that the width/height is exactly what you're looking for:

enter image description here

\documentclass{article}

\newcommand{\exactframe}[2]{%
  \fbox{%
    \rule{\dimexpr15.97cm-2\fboxsep-2\fboxrule}{0pt}% width
    \rule{0pt}{\dimexpr2.7cm-2\fboxsep-2\fboxrule}% height
  }%
}

\begin{document}

\noindent \rule{15.97cm}{2.7cm}

\noindent \exactframe{15.97cm}{2.7cm}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.