I have some trouble with LyX 1.1.5fix1, or to be exact,
these problems were also present in 1.1.5. 

1) LyX generates \lang american  in the begining of documents.
  This causes DVI update to fail, with error 'No \lang{AMERICAN}
  defined..'
2) LyX generates number 16 after first chaptername, and if it 
   is saved, it will after next opening of document be 1616

I may have affected this by creating a new layout and template,
but if so, could somebody correct me to the right path. The
template and layout are attached. The ohjekirja.cls which is 
missing is standard book.cls, where I will later add some own 
latex formatting...

Also it seems that 1.1.5fix1 starts a ghostscript in a endless loop
on the background, when our document has several EPS pictures..

Any ideas are welcome!

Tommi Rintala

#This file was created by <pit> Mon Nov 24 23:26:21 1997
#LyX 0.11 (C) 1995-1997 Matthias Ettrich and the LyX Team
\lyxformat 2.15
\textclass ohjekirja
\language finnish
\fontscheme times
\graphics default
\paperfontsize default
\spacing single 
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 7
\tocdepth 7
\paragraph_separation indent
\defskip medskip
\papercolumns 1
\paperpagestyle default

\the_end
#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass{ohjekirja}
# Book textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <[EMAIL PROTECTED]>
# Transposed by Pascal André <[EMAIL PROTECTED]>
# Heavily modifed and enhanced by serveral developers.

# Input general definitions

Preamble
  \usepackage{fancyheadings}
  \pagestyle{fancy}

EndPreamble

ClassOptions
  FontSize              12
  Other                 "12pt, final, a4paper"
End



# Standard textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <[EMAIL PROTECTED]>
# Transposed by Pascal André <[EMAIL PROTECTED]>
# Heavily modifed and enhanced by several developers.

# This is a base layout which is designed to be included from other
# ``standard'' layouts, like article and friends.

# General textclass parameters
Columns                 1
SecNumDepth             7
TocDepth                7

# Global parameters.


# This is just to show how to declare the default font.
# The defaults are exactly those shown here.
DefaultFont
  Family                Roman
  Series                Medium
  Shape                 Up
  Size                  Normal
  Color                 None
EndFont

# Standard style definition
Style Standard
  Margin                Static
  LatexType             Paragraph
  LatexName             dummy
  ParIndent             MM
  ParSkip               0.4
  Align                 Block
  AlignPossible         Block, Left, Right, Center
  LabelType             No_Label
End

Style Normaali
  CopyStyle  Standard
End

NoStyle  Standard
#Input stdlists.inc
# Standard textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <[EMAIL PROTECTED]>
# Transposed by Pascal André <[EMAIL PROTECTED]>
# Heavily modifed and enhanced by several developers.

# This include files contains various standard environments for lists.

# Itemize style definition
Style Lista
  Margin                Static
  LatexType             Item_Environment
  LatexName             itemize
  NextNoIndent          1
  LeftMargin            MMN
  LabelSep              xx
  ItemSep               0.2
  TopSep                0.7
  BottomSep             0.7
  ParSep                0.3
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Static
  LabelString           *
End

# Enumerate style definition
Style NumeroituLista
  Margin                Static
  LatexType             Item_Environment
  LatexName             enumerate
  NextNoIndent          1
  LeftMargin            MMN
  LabelSep              xx
  ParSkip               0.0
  ItemSep               0.2
  TopSep                0.7
  BottomSep             0.7
  ParSep                0.3
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Counter_EnumI
End

# Description style definition
Style KuvausLista
  Margin                First_Dynamic
  LatexType             Item_environment
  LatexName             description
  NextNoIndent          1
  LeftMargin            MM
  LabelSep              xxx
  ParSkip               0.4
  ItemSep               0.2
  TopSep                0.7
  BottomSep             0.7
  ParSep                0.3
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Manual
  LabelString           MM

  # label font definition
  LabelFont
    Series              Bold
  EndFont
End

# List style definition
Style Listaus
  Margin                Manual
  LatexType             List_Environment
  LatexName             lyxlist
  NextNoindent          1
  LabelSep              xxx
  ParSkip               0.4
  TopSep                0.7
  BottomSep             0.7
  ParSep                0.5
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Manual
  LabelString           00.00.0000

  #define the environment lyxlist
  Preamble
  \newenvironment{lyxlist}[1]
    {\begin{list}{}
      {\settowidth{\labelwidth}{#1}
       \setlength{\leftmargin}{\labelwidth}
       \addtolength{\leftmargin}{\labelsep}
       \renewcommand{\makelabel}[1]{##1\hfil}}}
    {\end{list}}
  EndPreamble

End
#Input stdsections.inc
# Standard textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <[EMAIL PROTECTED]>
# Transposed by Pascal André <[EMAIL PROTECTED]>
# Heavily modifed and enhanced by several developers.

# This include files contains all numbered sectionning-related
# commands that are useful for article-like document classes, but not
# for letters.

# Part style definition
Style Osa
  Margin                Dynamic
  LatexType             Command
  LatexName             part
  NeedProtect           1
  NextNoIndent          1
  Labelsep              xxx
  ParSkip               0.4
  TopSep                4
  BottomSep             4
  ParSep                0.8
  Align                 Center
  Alignpossible         Center
  LabelType             Static
  LabelString           "Osa: "

  # standard font definition
  Font
    Series              Bold
    Size                Huge
  EndFont

End


# Chapter style definition
Style Kappale
  Margin                Static
  LatexType             Command
  LatexName             chapter
  NeedProtect           1
  NextNoIndent          1
  ParSkip               0.4
  TopSep                4
  BottomSep             0.8
  ParSep                0.8
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Counter_Chapter
  LabelString           "Kappale "
  LabelStringAppendix   "Liite "

  # standard font definition
  Font
    Series              Bold
    Size                Huge
  EndFont

End

# Section style definition
Style 2Otsikko
  Margin                Dynamic
  LatexType             Command
  LatexName             section
  NeedProtect           1
  NextNoIndent          1
  LabelSep              xxx
  ParSkip               0.4
  TopSep                1.3
  BottomSep             0.7
  ParSep                0.7
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Counter_Section

  # standard font definition
  Font
    Series              Bold
    Size                Larger
  EndFont

End

# Subsection style definition
Style 3Otsikko
  Margin                Dynamic
  LatexType             Command
  LatexName             subsection
  NeedProtect           1
  NextNoIndent          1
  LabelSep              xxx
  ParSkip               0.4
  TopSep                0.9
  BottomSep             0.5
  ParSep                0.5
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Counter_Subsection

  # standard font definition
  Font
    Series              Bold
    Size                Large
  EndFont

End

# Subsubsection style definition
Style 4Otsikko
  Margin                Dynamic
  LatexType             Command
  LatexName             subsubsection
  NeedProtect           1
  NextNoIndent          1
  LabelSep              xxx
  ParSkip               0.4
  TopSep                0.7
  BottomSep             0.4
  ParSep                0.4
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Counter_SubSubSection

  # standard font definition
  Font
    Series              Bold
    Size                Normal
  EndFont

End

# Paragraph style definition
Style 5Otsikko
  Margin                Dynamic
  LatexType             Command
  LatexName             paragraph
  NeedProtect           1
  NextNoIndent          1
  LabelSep              xxx
  ParSkip               0.4
  TopSep                0.4
  BottomSep             0
  ParSep                0.4
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Counter_Paragraph

  # standard font definition
  Font
    Series              Bold
    Size                Normal
  EndFont

End

# Subparagraph style definition
Style 6Otsikko
  Margin                Dynamic
  LatexType             Command
  LatexName             subparagraph
  NeedProtect           1
  NextNoIndent          0
  LeftMargin            MM
  LabelSep              xxx
  ParSkip               0.4
  TopSep                0.4
  BottomSep             0
  ParSep                0.4
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Counter_SubParagraph

  # standard font definition
  Font
    Series              Bold
    Size                Normal
  EndFont

End
#Input stdstarsections.inc
# Standard textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <[EMAIL PROTECTED]>
# Transposed by Pascal André <[EMAIL PROTECTED]>
# Heavily modifed and enhanced by several developers.

# This include files contains all non numbered versions of the
# sectionning-related commands that are useful for article-like
# document classes, but not for letters. It should be Input after
# modying the style of the regular sectionning layouts.

# Part* style definition
Style Osa*
  CopyStyle             Osa
  Margin                Static
  LatexName             part*
  LabelType             No_Label
End

# Chapter* style definition
Style Kappale*
  CopyStyle             Kappale
  Margin                Static
  LatexName             chapter*
  LabelType             No_Label
End

# Section* style definition
Style 2Otsikko*
  CopyStyle             2Otsikko
  Margin                Static
  LatexName             section*
  LabelType             No_Label
End

# Subsection* style definition
Style 3Otsikko*
  CopyStyle             3Otsikko
  Margin                Static
  LatexName             subsection*
  LabelType             No_Label
End

# Subsubsection* style definition
Style 4Otsikko*
  CopyStyle             4Otsikko
  Margin                Static
  LatexName             subsubsection*
  LabelType             No_Label
End

# Paragraph* style definition
Style 5Otsikko*
  CopyStyle             5Otsikko
  Margin                Static
  LatexName             paragraph*
  LabelType             No_Label
End

# Subparagraph* style definition
Style 6Otsikko*
  CopyStyle             6Otsikko
  Margin                Static
  LatexName             subparagraph*
  LabelType             No_Label
End

#Input stdtitle.inc
# Standard textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <[EMAIL PROTECTED]>
# Transposed by Pascal André <[EMAIL PROTECTED]>
# Heavily modifed and enhanced by several developers.
# Split from stdstruct.inc by Hartmut Goebel <[EMAIL PROTECTED]>

# This include files contains all layouts that handle the title area
# a document, like title, author and such.

# Title style definition
Style Pääotsikko
  Margin                Static
  LatexType             Command
  InTitle               1
  LatexName             title
  ParSkip               0.4
  ItemSep               0
  TopSep                0
  BottomSep             1
  ParSep                1
  Align                 Center
  AlignPossible         Center
  LabelType             No_Label

  # standard font definition
  Font
    Size                Largest
  EndFont

End

# Author style definition
Style Kirjoittaja
  Margin                Static
  LatexType             Command
  InTitle               1
  LatexName             author
  LabelSep              xxx
  ParSkip               0.4
  TopSep                1.3
  BottomSep             0.7
  ParSep                0.7
  Align                 Center
  AlignPossible         Center
  LabelType             No_Label

  # standard font definition
  Font
    Size                Large
  EndFont

End

# Date style definition
Style Päiväys
  Margin                Dynamic
  LatexType             Command
  InTitle               1
  LatexName             date
  LabelSep              xxx
  ParSkip               0.4
  TopSep                0.9
  BottomSep             0.5
  ParSep                1
  Align                 Center
  AlignPossible         Center
  LabelType             No_Label


  # standard font definition
  Font
    Size                Large
  EndFont

End
#Input stdstruct.inc
# Standard textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <[EMAIL PROTECTED]>
# Transposed by Pascal André <[EMAIL PROTECTED]>
# Heavily modifed and enhanced by several developers.
# Title definitions moved to stdtitle.inc by HArtmut Goebel <[EMAIL PROTECTED]>

# This include files contains all layouts that handle the structure of
# a document, like abstract, bibliography and such.


# Abstract style definition
Style Abstract
  Margin                Static
  LatexType             Environment
  LatexName             abstract
  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           Abstract
  LabelBottomSep    0.5

  # standard font definition
  Font
    Size                Small
  EndFont

  # label font definition
  LabelFont
    Series              Bold
    Size                Large
  EndFont
End

# Bibliography style definition
Style Bibliography
  Margin                First_Dynamic
  LatexType             Item_Environment
  LatexName             thebibliography
  NextNoIndent          1
  LeftMargin            MM
  ParSkip               0.4
  ItemSep               0
  TopSep                0.7
  BottomSep             0.7
  ParSep                0.5
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Bibliography
  LabelString           References
  LabelBottomSep    0.7

  # label font definition
  LabelFont
    Series              Bold
    Size                Larger
  EndFont
End
#
Input lyxmacros.inc
#
#Input stdlayouts.inc
# Standard textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <[EMAIL PROTECTED]>
# Transposed by Pascal André <[EMAIL PROTECTED]>
# Heavily modifed and enhanced by several developers.

# This include files contains various standard environments for lists,
# quotations and such.

# LaTeX style definition
Style LaTeX
  Margin                Static
  LatexType             Paragraph
  LatexName             dummy
  NewLine               0
  ParIndent             MM
  ParSkip               0.4
  ParSep                0.5
  Align                 Block
  AlignPossible         Block, Left, Right, Center
  LabelType             No_Label
  FreeSpacing           1

  # standard font definition
  Font
    Latex               Latex
  EndFont

End

# Quotation style definition
Style Lainaus
  Margin                Static
  LatexType             Environment
  LatexName             quotation
  NextNoIndent          1
  LeftMargin            MMM
  RightMargin           MMM
  ParIndent             MM
  ParSkip               0
  ItemSep               0
  TopSep                0.5
  BottomSep             0.5
  ParSep                0
  Align                 Block
  AlignPossible         Block, Left, Right, Center
End

# Quote style definition
Style LyhytLainaus
  Margin                Static
  LatexType             Environment
  LatexName             quote
  NextNoIndent          1
  LeftMargin            MMM
  RightMargin           MMM
  TopSep                0.5
  ParSep                0.5
  BottomSep             0.5
  Align                 Block
  AlignPossible         Block, Left, Right, Center
  LabelType             No_Label
End

# Verse style definition
Style Säkeistö
# LaTeX type is first dynamic because of LaTeX implementation.
# In LyX this does not make sense.
  LatexType             Environment
  LatexName             verse
  Margin                First_Dynamic
  NextNoIndent          1
  LeftMargin            MMMM
  LabelIndent           MMMM
  ParSkip               0.4
  TopSep                0.7
  BottomSep             0.7
  ParSep                0.5
  Align                 Block
  AlignPossible         Block, Left
  LabelType             No_Label
End

# Caption style definition
Style Caption
  Margin                First_Dynamic
  LatexType             Command
  LatexName             caption
  NeedProtect           1
  LabelSep              xx
  ParSkip               0.4
  TopSep                0.5
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Sensitive
  LabelString           Caption

  # label font definition
  LabelFont
    Series              Bold
  EndFont
End



# There is no abstract environment in book.cls
NoStyle Abstract

# a few changes to the bibliography
Style Bibliography
  TopSep                4
  LabelString           Lähteet
  # label font definition
  LabelFont
    Series              Bold
    Size                Huge
  EndFont
End

#Input obsolete.inc
#Input starsoft.inc
Style ItalicKappale
  LatexType             Command
  LatexName             valikkopolku
  LabelType             No_Label

  Preamble
  \newcommand{\valikkopolku}[1]{
    {\sl\ss
      #1
    }
  }
  EndPreamble
  Font
    Family              Sans
    Shape               Slanted
    Latex               Latex
  EndFont
End

Reply via email to