Hi,

I'm already working on the seminar .layout  for the seminar classe
support in lyx,
but I've got problems with the definition of the label in the slide(*)
style definition and with font in the dvi or ps.

When I begin a new slide I must always type some characters after the
slide label to be able to write the contents of the slide.
Furthermore I've got problems with fonts when I wiew my dvi file, it
doesn't support latin 1 character like � or �
and the semhelv package (from the seminar distribution)doesn't work.

I start from the slides.layout file from John Weiss <[EMAIL PROTECTED]>
I'm a newbie and I unfortunatly don't understand  the meaning of his
first line ine the preamble:

\newif\ifLyXsNoCenter
  \LyXsNoCenterfalse
  \newcommand{\noslidecentering}{
     \LyXsNoCentertrue%
  }
  \newcommand{\slidecentering}{
     \LyXsNoCenterfalse%
  }

Any suggestions will be helpfull.
Regards.
Francois.

I've joigned my seminar.layout file here:

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass{seminar (default)}
# Seminar textclass definition file.
#
# Based on the slides textclass "slides.layout"
#

# General textclass parameters
Columns        1
Sides          1
PageStyle      Plain
MaxCounter     Counter_EnumI

DefaultFont
  Family       Sans
  Series       Medium
  Shape        Up
  Size         Normal
  Color        None
EndFont

ClassOptions
  FontSize
  Pagestyle  plain|headings|empty|fancy
  Other      "dvips"
End


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


Preamble
  \newcounter{slidetype}
  \setcounter{slidetype}{0}
  \newif\ifLyXsNoCenter
  \LyXsNoCenterfalse
  \newcommand{\noslidecentering}{
     \LyXsNoCentertrue%
  }
  \newcommand{\slidecentering}{
     \LyXsNoCenterfalse%
  }
  \newcommand{\lyxendslide}[1]{
     \ifLyXsNoCenter%
          \vfill%
     \fi%
     \ifcase \value{slidetype}%
          \or % no action for 0
          \end{slide} \or%
          \end{slide*} \or%
     \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
#
##############################

# Slide style definition
Style Slide
  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        MMMMxMMMMxxxNewSlide
  LabelString       "_____________________________NewSlide: "

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

  Preamble
  \newcommand{\lyxnewslide}{
     \lyxendslide{.}
     \setcounter{slidetype}{1}
     \begin{slide}
  }
  EndPreamble
End
# Slide* style definition
Style Slide*
  LatexType         Command
  LatexName         lyxnewslidel
  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        MMMMxMMMMxxxNewSlide
  LabelString       "_____________________________NewSlide*: "

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

  Preamble
  \newcommand{\lyxnewslidel}{
     \lyxendslide{.}
     \setcounter{slidetype}{2}
     \begin{slide*}
  }
  EndPreamble
End

# Slideheading style definition
Style Slideheading
  Margin                Dynamic
  LatexType             Command
  LatexName             slideheading
  NeedProtect           1
  NextNoIndent          1
  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
    Series              Bold
    Size                Larger
  EndFont

  Preamble
    \usepackage{slidesec}
  EndPreamble

End

# Slidesubheading style definition
Style Slidesubheading
  Margin                Dynamic
  LatexType             Command
  LatexName             slidesubheading
  NeedProtect           1
  NextNoIndent          1
  LabelSep              xxx
  ParSkip               0.4
  TopSep                1.3
  BottomSep             0.7
  ParSep                0.7
  Align                 Left
  AlignPossible         Left,Center,right
  LabelType             No_Label

  # standard font definition
  Font
    Series              Bold
    Size                Large
  EndFont

  Preamble
    \usepackage{slidesec}
  EndPreamble

End


#####################

Input stdlists.inc
Input stdlayouts.inc
Input lyxmacros.inc


#####################
#
# End  File



--
                              """
                              o o
+-----------------------ooO---(_)---Ooo---------------------------+
|                                                                 |
|                      Fran�ois Beaubert                          |
|                   Ecole des Mines de Nantes                     |
|  4 rue Alfred Kastler BP 20722 44307 Nantes Cedex 3 France      |
| Telephone : (0/33)2.51.85.82.86  Telecopie : (0/33)2.51.85.82.99|
|                   [EMAIL PROTECTED]                      |
+-----------------------------------------------------------------+


Reply via email to