[Tex/LaTex] \framed and \itemize with custom item labels

boxesframeditemizelists

This question is a slight extension of this previous post and in particular the answer by @knut. Unlike the situation in that post, I also have my own custom labels for each item, i.e. my code looks as follows:

\begin{framed}
\begin{itemize}
  \item[(BulletLine1)]  In the \textit{first step}, circularly polarized X-rays generate photoelectrons with a spin and/or orbital momentum from a localized atomic inner shell.
  \item[(BulletLine2)] In the \textit{second step}, the 3d shell serves as the detector of the spin or orbital momentum of the photoelectron. For maximum effect, the photon spin needs to be aligned with the magnetization direction.
\end{itemize}
\end{framed}

The result looks as follows:
framed with items

How can I get the custom labels to also be inside the box?

Best Answer

With the enumitem package, you can specify various lengths associated with the itemization, including, as below, the itemindent.

\documentclass{scrartcl} 
\usepackage{framed,enumitem} 
\begin{document}
\begin{framed}
The \textit{two-step} model of XMCD:
\begin{itemize}[itemindent=4em]
  \item[(BulletLine1)]  In the \textit{first step}, circularly polarized X-rays generate photoelectrons with a spin and/or orbital momentum from a localized atomic inner shell.
  \item[(BulletLine2)] In the \textit{second step}, the 3d shell serves as the detector of the spin or orbital momentum of the photoelectron. For maximum effect, the photon spin needs to be aligned with the magnetization direction.
\end{itemize}
\end{framed}
\end{document}

enter image description here

Alternately, the leftmargin may be the way you prefer:

\documentclass{scrartcl} 
\usepackage{framed,enumitem} 
\begin{document}
\begin{framed}
The \textit{two-step} model of XMCD:
\begin{itemize}[leftmargin=6em]
  \item[(BulletLine1)]  In the \textit{first step}, circularly polarized X-rays generate photoelectrons with a spin and/or orbital momentum from a localized atomic inner shell.
  \item[(BulletLine2)] In the \textit{second step}, the 3d shell serves as the detector of the spin or orbital momentum of the photoelectron. For maximum effect, the photon spin needs to be aligned with the magnetization direction.
\end{itemize}
\end{framed}
\end{document}

enter image description here

Related Question