Alejandro Fernandez a écrit :

> Hi,
>
> I'm using lyx to write a project report, using the report style. I'd
> like to add an acknowledgements page, after the title page, but I don't
> have much time to spend on it. I've tried adding this stile:
>
> Style Acknowledgement
>   Margin                Static
>   LatexType             Environment
>   LatexName             ack
>   NextNoIndent          1
>   LeftMargin            MMM
>   RightMargin           MMM
>   ParIndent             MM
>   ItemSep               0
>   TopSep                0.7
>   BottomSep             0.7
>   ParSep                0
>   Align                 Block
>   AlignPossible         Block
>   LabelType             Centered_Top_Environment
>   LabelString           Acknowledgements
>   LabelBottomSep    0.5
>
>   # standard font definition
>   Font
>     Size                Small
>   EndFont
>
>   # label font definition
>   LabelFont
>     Series              Bold
>     Size                Large
>   EndFont
> End
>
> I added it to lyx/layouts/report.layout
>
> I have no idea what I'm doing, of course, except that I just copied the
> "abstract" style, since that's mostly what I need, but when I try to
> print, it gives the error:
>
> "environment ack undefined"
>
> Where do I define it? Can I just leave the environment as "abstract" Or
> am I doing this wrong?

You must define the ack environment. You should have something like this:

Style Acknowledgement
  CopyStyle             abstract
  LatexType             Environment
  LatexName             ack

  # define the ack environment
  Preamble
  % Define completely your environment here
  \newenvironment{ack}{ ... }{ ... }
  % Or include the package that defines this environment
  % \usepackage{..}
  EndPreamble
End

BG

Reply via email to