Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to move the following remark environment, which nicely splits over pages :), towards the left so that it is not centered anymore. I have been unsuccessfully trying for a while: would you please have suggestions? Thanks. I was thinking of embedding it in a second environment with the required properties?

\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}
share|improve this question
    
I can't see anything obvious from looking through the package source. I suggest asking on c.t.t.; Donald Arseneau often answers questions there and he's the best person to ask. –  Will Robertson Oct 3 '10 at 6:50
    
ok. thanks for the suggestion –  pluton Oct 3 '10 at 7:05

1 Answer 1

up vote 2 down vote accepted

Would

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

not do it?

share|improve this answer
    
correct. Very nice ! –  pluton Oct 3 '10 at 15:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.