I made an environment (gameoutput) in a new style (attached). If you
make a document with text in a gameoutput environment, the first character
is always deleted. If you make the text "foo", the output is a shaded box
with "oo" in it. I'm at my wit's end trying to track this down, please help.
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[article]{WR Documentation}
Input stdclass.inc
Preamble
\usepackage{color,calc,ifthen}
\definecolor{shade}{gray}{0.8}
\providecommand{\textcolor}[2]{#2}
\renewcommand{\textcolor}[2]{%
\ifthenelse% % game commands in text
{\equal{#1}{blue}}{{\ttfamily{{#2}}}}{}%
\ifthenelse% % game commands in output
{\equal{#1}{red}}{{\textit{{#2}}}}{}%
\ifthenelse{\equal{#1}{red}\or\equal{#1}{blue}}{}{#2}%
}
EndPreamble
# %%% Note Environment
Style GameOutput
LatexType Environment
LatexName gameoutput
LeftMargin MMM
RightMargin MMM
ParIndent MM
Align Left
AlignPossible Left
FreeSpacing 1
PassThru 0
NextNoIndent 1
TopSep 0.5
BottomSep 0.5
LabelType No_Label
Font
Family Typewriter
Series Medium
Size Normal
EndFont
Preamble
\newenvironment{gameoutput}[1]%
{
\setlength{\fboxsep}{6pt}
\footnotesize\normalfont\ttfamily\raggedright
\setlength{\rightmargin}{\leftmargin}
\setlength{\itemsep}{-12pt}
\setlength{\parsep}{20pt}
\begin{lrbox}{\@tempboxa}
\begin{minipage}{\linewidth-2\fboxsep}
%\begin{list}{}{\item[]}
}%
{
%\end{list}
\end{minipage}%
\end{lrbox}%
\fcolorbox{black}{shade}{\usebox{\@tempboxa}}\newline\newline
}%
EndPreamble
End