Jean-Marc Lasgouttes wrote:
> 
> >>>>> "Peter" == Peter Harkins <[EMAIL PROTECTED]> writes:
> 
> Peter>  I made an environment (gameoutput) in a new style (attached).
> Peter> If you make a document with text in a gameoutput environment,
> Peter> the first character is always deleted. If you make the text
> Peter> "foo", the output is a shaded box with "oo" in it. I'm at my
> Peter> wit's end trying to track this down, please help.
> 
> Peter>   Preamble
> Peter>   \newenvironment{gameoutput}[1]%
> 
> Remove the [1] here. It means that you want gameoutput to be used as
> \begin{gameoutput}{arg}
> ...
> \end{gameoutput}
> 
> Since LyX does not provide such an argument, the first character of
> the contents is taken as argument.
> 
> JMarc

Lyx can provide arguments if necessary.  

Style something
  LatexType     Environment
  LatexName     gameoutput
  LatexParam    {argument}%
  .
  .
  .
End

Of course every use of this style creates an environment with
exactly the same hardcoded argument.  That is still somewhat useful
as several different styles can use the same environment
with different parameter(s).
Multiple parameters and optional parameters works too, i.e.
  LatexParam  [optional]{required}%

Helge Hafting

Reply via email to