I have a custom environment that I use as follows:
\documentclass[12pt,draft]{memoir}
\usepackage[dvipsnames,usenames]{color}
\definecolor{shadecolor}{gray}{0.85}
\newenvironment{Myenv}
{\begin{adjustwidth}{1in}{1in}\indent\begin{qshade}}
{\end{qshade}\end{adjustwidth}}
\begin{document}
TESTTESTTESTTEST. MORE TEXT.
\begin{Myenv}
Lots and lots of text \par
Including multiple lines and paragraphs.
\end{Myenv}
\end{document}
With this definition I DO get my first paragraph inside the shaded square indented. HOWEVER, I seem to get some extra 'ghost' space, so that the first paragraph in the text is subtly extra indented. AND in addition \indent seems to also add an extra blank line right before the shaded environment.
Any ideas on how to fix the environment?
P.S. I am deliberately NOT using the minipage environment because it doesn't break across pages. qshade from the memoir package DOES break across pages.
UPDATE
Thanks to John Kormylo below for the code that replaces \indent: namely, replacing the first line of my environment definition by
{\begin{adjustwidth}{1in}{1in}\begin{qshade}\hspace{\parindent}}.
Thank you everyone else that advised me not to use \indent.
The new code gets rid of the extra blank line that \indent was fabricating. HOWEVER, the small extra space at the beginning of the first paragraph still shows up. Obviously \indent is not the culprit of that subtle extra indentation.


qshadeis defined etc. – cfr Dec 01 '15 at 05:05\indentor\noindentin an environment definition but the exact interaction of course depends on the definition of the environments that you have not shown. You could avoid the space by using\ignorespacesbut not using\indentis almost always better, – David Carlisle Dec 01 '15 at 08:02