With my FMBmatter.inc I can handle the
\frontmatter - \mainmatter - \backmatter
in a lyx-ful way without ert

If it makes sense we can keep it into the layout dir and
put a "Input FMBmatter.inc" into some book layouts.

http://www.perce.de/lyx/FMBmatter.gif

Herbert


-- 
http://www.lyx.org/help/

# Book textclass definition file for use of
# \frontmatter  pagecounting like i,ii,...
# \mainmatter   standard counting
# \backmatter   appendix handling
# 
# Herbert Voss <[EMAIL PROTECTED]> 2002-04-04
#

# the new layouts for the control of 
# \frontmatter
# \mainmatter
# \backmatter
#
Style StartFrontmatter
  Margin                Static
  LatexType             command
  LatexName             frontmatter
  LeftMargin            xxxxxxxxxxxxxx::xx
  LabelSep              xx
  KeepEmpty             1  
  Align                 Left
  LabelType             Static
  LabelString           "Begin frontmatter!"
  # label font definition
  LabelFont 
    Series              Bold
    Shape               Italic
    Color               Red
  EndFont
End

Style StartMainmatter
  Margin                Static
  LatexType             command
  LatexName             mainmatter
  LeftMargin            xxxxxxxxxxxxxx::xx
  LabelSep              xx
  KeepEmpty             1  
  Align                 Left
  LabelType             Static
  LabelString           "Begin mainmatter!"
  # label font definition
  LabelFont 
    Series              Bold
    Shape               Italic
    Color               Red
  EndFont
End

Style StartBackmatter
  Margin                Static
  LatexType             command
  LatexName             backmatter
  LeftMargin            xxxxxxxxxxxxxx::xx
  LabelSep              xx
  KeepEmpty             1  
  Align                 Left
  LabelType             Static
  LabelString           "Begin backmatter!"
  # label font definition
  LabelFont 
    Series              Bold
    Shape               Italic
    Color               Red
  EndFont
End
#
# it is possible to create lyx_???matter to prevent
# the user from writing anything in such layout lines.
# with
# \newcommand\lyx_frontmatter{%
#       \frontmatter\kill%
# }
# it's possible to ignore all the rest of the line
#

Reply via email to