I'm now using mdframed
, and I found that the indentation within mdframed
environment is weird. For example, when outside that environment, if we use \hspace*{2em}
in the second line, the number 1
in the second line is almost directly under the number 5 and 6 in the first line. However, if these two lines are placed in a mdframed
, then this time the 1 is right under 5. Why?
\documentclass{article}
\parindent = 0pt
\usepackage{mdframed}
\mdfsetup{everyline=true,splittopskip=15pt,innerleftmargin=2em,linewidth=1.3pt}
\begin{document}
12345678
\par \hspace*{2em} 12345678
\begin{mdframed}
12345678
\par\hangindent=2em\hangafter=0 12345678
\end{mdframed}
\end{document}