The current layout file for the seminar class is very awkward to use:
1. A comment paragraph is needed between every two slides
2. It is hard to put slide headings (they need to be nested)

I've tried to make a better layout file by using the same hack used in
slides.layout. However, the new layout is incompatible with the old one,
but I don't think this should be a great problem because I conjecture that
not many people have used the old layout.

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass{seminar}
# Author : Lars Gullik Bj&resh;nnes <[EMAIL PROTECTED]>
# Heavily modified by Dekel Tsur <[EMAIL PROTECTED]>

# General textclass parameters

Sides   1
Columns 1

ClassOptions
        FontSize 8|9|10|11|12|14|17
        Other slidesec
End

####################################
#
#  Layout-specific preamble
#
#####################################


Preamble
  \noxcomment
  \newcounter{slidetype}
  \setcounter{slidetype}{0}
  \newcommand{\lyxendslide}{
     \ifcase \value{slidetype}%
          \or % no action for 0
          \end{slide} \or%
          \end{slide*} \or%
          \end{note}
     \fi%
     \setcounter{slidetype}{0}
  }
  \AtEndDocument{\lyxendslide}
EndPreamble


############################
#
# Standard style definition
# Always comes first.
#
############################

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

##############################
#
# New Definitions for Slides
#
##############################

Style LandscapeSlide
  LatexType         Command
  LatexName         lyxnewslide
  KeepEmpty         1
  Margin            Static
  NextNoIndent      1
  ParSkip           0.4
  TopSep            1.0
  BottomSep         1.0
  ParSep            0.5
  Align             Left
  AlignPossible     Left
  LabelType         Static
  LabelBottomSep    0.5
  LeftMargin        "MMMMMMMMMMLandscape Slide"
  LabelString       "__________Landscape Slide: "

  Font 
    Family          Typewriter
    Series          Bold
    Size            Large
    Color           Blue
  EndFont
  LabelFont 
    Family          Typewriter
    Size            Large
    Color           Blue
  EndFont

  Preamble
  \newcommand{\lyxnewslide}[1]{
     \lyxendslide
     \setcounter{slidetype}{1}
     \begin{slide}
  }
  EndPreamble
End

Style PortraitSlide
  LatexType         Command
  LatexName         lyxnewportraitslide
  KeepEmpty         1
  Margin            Static
  NextNoIndent      1
  ParSkip           0.4
  TopSep            1.0
  BottomSep         1.0
  ParSep            0.5
  Align             Left
  AlignPossible     Left
  LabelType         Static
  LabelBottomSep    0.5
  LeftMargin        "MMMMMMMMMMPortrait Slide"
  LabelString       "__________Portrait Slide: "

  Font 
    Family          Typewriter
    Series          Bold
    Size            Large
    Color           Blue
  EndFont
  LabelFont 
    Family          Typewriter
    Size            Large
    Color           Blue
  EndFont

  Preamble
  \newcommand{\lyxnewportraitslide}[1]{
     \lyxendslide
     \setcounter{slidetype}{2}
     \begin{slide*}
  }
  EndPreamble
End

Style Note
  LatexType         Command
  LatexName         lyxnewnote
  KeepEmpty         1
  Margin            Static
  NextNoIndent      1
  ParSkip           0.4
  TopSep            1.0
  BottomSep         1.0
  ParSep            0.5
  Align             Left
  AlignPossible     Left
  LabelType         Static
  LabelBottomSep    0.5
  LeftMargin        MMMMMMMMMMNote
  LabelString       "..........Note: "

  Font 
    Family          Typewriter
    Series          Bold
    Size            Large
    Shape                       Italic
    Color           Magenta
  EndFont
  LabelFont 
    Family          Typewriter
    Series          Bold
    Size            Large
    Shape                       Italic
    Color           Magenta
  EndFont

  Preamble
  \newcommand{\lyxnewnote}[1]{
     \lyxendslide
     \setcounter{slidetype}{3}
     \begin{note}
  }
  EndPreamble
End

Style SlideHeading
  Margin                Dynamic
  LatexType             Command
  LatexName             slideheading
  NeedProtect           1
  NextNoIndent          1
  ParSkip               0.4
  TopSep                1.3
  BottomSep             0.7
  ParSep                0.7
  Align                 Center
  AlignPossible         Block, Center, Left
  LabelType             No_Label
  Font
    Series              Bold
    Size                Larger
  EndFont
End

Style SlideSubHeading
  Margin                Dynamic
  LatexType             Command
  LatexName             slidesubheading
  NeedProtect           1
  NextNoIndent          1
  ParSkip               0.4
  TopSep                0.9
  BottomSep             0.5
  ParSep                0.5
  Align                 Center
  AlignPossible         Block, Center, Left
  LabelType             No_Label
  Font
    Series              Bold
    Size                Large
  EndFont
End

Style ListOfSlides
        KeepEmpty       1
        Align           Center
        LatexType       Command
        LatexName       listofslides
        Labeltype       Static
        LabelString     "List Of Slides"
End

Style SlideContents
        KeepEmpty       1
        Align           Center
        LatexType       Command
        LatexName       slidecontents
        Labeltype       Static
        LabelString     "Slidecontents"
End

Style ProgressContents
        KeepEmpty       1
        Align           Center
        LatexType       Command
        LatexName       Slidecontents
        Labeltype       Static
        LabelString     "Progress Contents"
End

Style Slide
        Obsoletedby     LandscapeSlide
End

Style Slide*
        Obsoletedby     PortraitSlide
End


Input stdclass.inc

# There are no chapters in an article.
NoStyle Chapter
NoStyle Chapter*

MaxCounter              Counter_Section
SecNumDepth             3
TocDepth                3

# Change a bit Part and Part*
Style Part
  Align                 Left
  AlignPossible         Left
  TopSep                2
  BottomSep             1.5

  Font
    Size                Larger
  EndFont
End

Style Part*
  Align                 Left
  AlignPossible         Left
  TopSep                2
  BottomSep             1.5

  Font
    Size                Larger
  EndFont
End

Reply via email to