[Tex/LaTex] Suggestions on how to place a sentence of text inside a box with a border around it

boxesframed

I have an "XYZ's Law" quote that I'd like to show somewhere on a page vertically centered in a box with some form of simple border around it. Basically I'm trying to achieve the LaTeX equivalent of how Norvig's Law is shown at http://norvig.com/norvigs-law.html where there's some text centred and placed inside a bordered box on the page. Can anyone begin to make suggestions on how I'd go about creating something of such an appearance?

enter image description here

I apologize if my use of the term box here overlaps with another use of the term that is specific to LaTeX. I've seen the term box come up a number of times in LaTeX, so I don't know whether it has special meaning within the realms of LaTeX that I've gone and unintentionally overlapped here.

Best Answer

To get you started, and following Jan's suggestion of using fancybox, you could define an environment such as

\usepackage{fancybox}

\newenvironment{boxedlaw}[1]
  {\begin{Sbox}\begin{minipage}{#1}\centering}
  {\end{minipage}\end{Sbox}\begin{center}\shadowbox{\TheSbox}\end{center}}

...

\begin{boxedlaw}{5cm}
XYZ's Law
\end{boxedlaw}

And really have a look at the documentation from this package for further suggestions as well as other styles of boxes.