I would like to put a enumerate environment (customized with the enumitem
package) inside of a shadowbox
created from the Fancybox package. Here's my MWE:
\documentclass[letterpaper,10pt,american]{article}
\usepackage[left=1 in, right=1 in, top=1 in, bottom=1 in]{geometry}
\usepackage{amsmath,amsfonts,amssymb,amsthm,color,hyperref,enumitem}
\usepackage{setspace}
\usepackage{caption}
\usepackage{pgf,tikz}
\usetikzlibrary{automata,arrows,positioning,calc,decorations.pathreplacing}
\usepackage{fancybox}
\begin{document}
\shadowbox{
\begin{enumerate}[before=\itshape,font=\normalfont,label=\textbf{ABC.\arabic*}]
\item Item 1
\item Item 2
\item Item 3
\end{enumerate}}
\end{document}
However, the customization of my enumerate environment doesn't show up: only numbers 1., 2., 3. are displayed, rather than ABC.1, ABC.2, ABC.3. Am I doing something wrong? What's causing enumitem
customization not to work inside fancybox
?
EDIT: We've almost solved the issue! But there's still one small obstacle remaining to fix: When you have ten or more items in the list, then ABC.10, ABC.11, ABC.12, etc. will leak outside of the box.