I find that some custom layout files which worked fine under lyx-1.1.5
generate protests and/or break under lyx-1.2.0pre4.  For example, the
layout file included below generates the following error messages:

--------------------[begin errors]--------------------
LyX: Unknown tag `Latex' [around line 32 of file ~/.lyx/layouts/rletter.layout]
LyX: Unknown layout tag `Latex' [around line 33 of file ~/.lyx/layouts/rletter.layout]
Error parsing style `Close'
Error reading `~/.lyx/layouts/rletter.layout'
(Check `rletter')
Check your installation and try Options/Reconfigure...
--------------------[eof]--------------------


and the `close' instead of functioning correctly produces a closing on
the left marging.

I'd welcome specific or generic suggestions on how to convert this
file to work with LyX-1.2.0pre4.  Thanks,

#% Do not delete he line below; configure depends on this
#  \DeclareLaTeXClass{rletter (R letterhead)}
# Letter textclass definition file. 
# Author : [EMAIL PROTECTED], 22 Mar 1998

# Input general definitions
Input stdletter.inc
Input stdlists.inc
Input lyxmacros.inc
Input stdlayouts.inc

# Remove some unwanted styles.
NoStyle         Right_Address
NoStyle         Address

Style Close
  LatexType             Command
  LatexName             close
  LeftMargin            Signature::xx
  LabelSep              xx
  TopSep                0.4
  BottomSep             0.4
  ParSep                0.4
  Align                 Block
  AlignPossible         Block, Left
  LabelType             Static
  LabelString           Close:

  # label font definition
  LabelFont 
    Series              Bold
    Shape               Italic
    Latex               Latex
  EndFont

  # define the environment lyxcode
  Preamble
    \newcommand{\close}[1]{\def\fromaddress{\ }\closing{#1}}
  EndPreamble
End



-- 

Ronald Florence                 www.18james.com

Reply via email to