将框架环境向左移动

将框架环境向左移动

我想将以下注释环境(可以很好地跨页面拆分 :))移到左侧,这样它就不再居中了。我尝试了一段时间都没有成功:您能给我一些建议吗?谢谢。我在考虑将它嵌入到具有所需属性的第二个环境中吗?

\documentclass[fleqn,10pt]{book}
\usepackage{kpfonts}
\usepackage{xcolor}
\usepackage[top=7cm,left=5cm,right=5cm,bottom=7cm,a4paper]{geometry}
\usepackage{lipsum}
\usepackage{framed}
\renewcommand*\FrameCommand{\fcolorbox{red!10}{red!10}}%
\newenvironment{rem}[1][]{%
\MakeFramed{\advance\hsize-10em \FrameRestore}%
\noindent\textsc{#1}%
\small%
  \begin{list}{}{%
    \setlength{\leftmargin}{0.04\textwidth}%
    \setlength{\rightmargin}{0.01\textwidth}%
  }%
    \item[]%
    }{%
    \hfill$\square$%
  \end{list}\endMakeFramed}
\begin{document}
\lipsum[4]
\lipsum[4]
\lipsum[4]
\lipsum[5]
\begin{rem}[Latin]
some random text some random text some random text some random text some random 
text some random text some random text some random text some random text some 
random text some random text some random text some random text some random text some   
random text some random 
\end{rem}
\lipsum[4]
\end{document}

答案1

\renewcommand*\FrameCommand{\hskip-2cm\fcolorbox{red!10}{red!10}}%

不做吗?

相关内容