Hello.
I'm having a problem with previewing the postscript or exporting to latex and 
running latex on the file.

The problem is that in the latex code I get: \end{sol}\end{ug} at the end of 
the line and it seems to ignore the \end{ug} part and thus fail.

I'm only getting the \end{sol}\end{ug} stuff at some of the places and not 
all, elsewhere I get
 \end{sol}
\end{ug}

I attach an example lyx file. 
The problem occurs with the environment called GGGUG and seems to vanish if I 
change the part of the environment GGGSats to something else.
I've attached the nessecery module.

Have I gotten some of my environments  wrong or is LyX doing something wrong?

Any help on this matter is very much appreciated.

Attachment: b.lyx
Description: application/lyx

#\DeclareLyXModule{Gunnar}
#DescriptionBegin 
#Gunnars modul
#DescriptionEnd 

Style GGGExample
  LatexType             Environment
  LatexName             EE

  ParSkip               0.4
  ParSep                1
  TopSep                0.4
  Align                 Left
  AlignPossible         Left
  LabelType            Top_Environment
  LabelString    "Exempel #."
  OptionalArgs          1

  # label font definition
  LabelFont 
    Series              Bold
  EndFont
End


# Sats style definition
Style GGGSats
  LatexType             Environment
  LatexName             Ss

#  ParSkip               0.4
#  ParSep               1
#  TopSep                0.4
  Align                 Left
  AlignPossible         Left
  LabelType            Top_Environment
  LabelString    "Sats #."
  OptionalArgs          1

  # label font definition
  LabelFont 
    Series              Bold
  EndFont
End


# Definition style definition
Style GGGDefinition
  LatexType             Environment
  LatexName             DD

  ParSkip               0.4
  ParSep                                0.4
  TopSep                0.4
  Align                 Left
  AlignPossible         Left
  LabelType            Top_Environment
  LabelString    "Definition #."
  OptionalArgs          1

  # label font definition
  LabelFont 
    Series              Bold
  EndFont
End


# Definition style definition
Style GGGDefinitionEnv
  LatexType             Environment
  LatexName             DDe

  ParSkip               0.4
  ParSep                                0.4
  TopSep                0.4
  Align                 Left
  AlignPossible         Left
  LabelType            Top_Environment
  LabelString    "Definition #."
  OptionalArgs          1

  # label font definition
  LabelFont 
    Series              Bold
  EndFont
End



# Bevis style definition
Style GGGBevis
  LatexType             Environment
  LatexName             BB

  ParSkip               0.4
  ParSep                                0.4
  TopSep                0.4
  Align                 Left
  AlignPossible         Left
  LabelType            Top_Environment
  LabelString    "Bevis #."
  OptionalArgs          1

  # label font definition
  LabelFont 
    Series              Bold
  EndFont
End


# Uppgift style definition
Style GGGUG
  LatexType             Environment
  LatexName             ug

  ParSkip               0.4
  ParSep                                0.4
  TopSep                0.4
  Align                 Left
  AlignPossible         Left
  LabelType            Top_Environment
  LabelString    "Uppgift "
  OptionalArgs          1

  # label font definition
  LabelFont 
    Series              Bold
  EndFont
End

Reply via email to