Code: Select all
\RequirePackage[l2tabu,orthodox]{nag}
\documentclass[12pt,letterpaper]{article}
\usepackage{xcolor}
\usepackage{mdframed}
\mdfsetup{}
\begin{document}
Blablabla
\begin{mdframed}[
frametitle={Some funky title},
frametitlealignment=center, % <--- what's wrong here ? \center doesn't fix this.
frametitlefont=\sffamily,
frametitlerule=true,
frametitlebackgroundcolor=gray!20,
linecolor=black,
backgroundcolor=white,
linewidth=0.5pt,
leftmargin=0cm,
rightmargin=0cm,
topline=true,
bottomline=true,
innertopmargin=1ex,
shadow=true,
shadowsize=1.5pt,
shadowcolor=gray!30
]
Some braindead blabla in a cool box.
\end{mdframed}
\end{document}
nag gives an error message about the centering command.
What should be the proper solution to center the title ?