Le mercredi 27 septembre 2006 à 09:23 +0200, Georg Baum a écrit : > nicolas roy wrote: > > > Well, i indeed have the script and i runned it. It did change a few > > things in the files, but they don't work better. > > That is no surprise, since LyX runs that script automatically for old layout > files. > Please tell us what goes wrong. Do you see any error messages in the console > when you open a document using an old layout? If not, please send one of > the layout files so that I can have a look. > layout2layout can not translate all layout files correctly, since the > internal include structure has changed. Usually the remaining errors can be > fixed easily by changing some lines, so don't worry, your documents can be > used on 1.4.x, too. Hi.
Sorry for the delay. I attached the three files which are necessary (i think) for my layout to work : thmamsarten.layout thmamsdefsen.inc thmarten.layout When i try to load an old document, (which contains with "\textclass thmarten"), i obtain the following in the console : *********************************** LyX: Error reading inputfile: [around line 6 of file ~/.lyx/layouts/thmamsdefsen.inc] Cannot read layout file `'. LyX: Error reading inputfile: [around line 7 of file /tmp/lyx_tmpdir5160jy2Jjm/5160mq64aU] LyX: Error reading inputfile: /home/roy/.lyx/layouts/thmamsdefsen.inc [around line 51 of file /tmp/lyx_tmpdir5160jy2Jjm/5160bgFga3] LyX: Error reading inputfile: /home/roy/.lyx/layouts/thmamsarten.layout [around line 7 of file ~/.lyx/layouts/thmarten.layout] Cannot read layout file `'. LyX: Error reading inputfile: [around line 6 of file ~/.lyx/layouts/thmamsdefsen.inc] Cannot read layout file `'. LyX: Error reading inputfile: [around line 7 of file /tmp/lyx_tmpdir5160jy2Jjm/5160It0q2t] LyX: Error reading inputfile: /home/roy/.lyx/layouts/thmamsdefsen.inc [around line 51 of file /tmp/lyx_tmpdir5160jy2Jjm/51607UeECC] LyX: Error reading inputfile: /home/roy/.lyx/layouts/thmamsarten.layout [around line 8 of file /tmp/lyx_tmpdir5160jy2Jjm/5160qkcTkL] Error reading `~/.lyx/layouts/thmarten.layout' (Check `thmarten') Check your installation and try Options/Reconfigure... ************************************** By the way, David L. Johnson gave me a tip to bypass the problem : i should replace "\textclass thmarten" by "\textclass amsart", and using therefore the "AMS article" style provided by Lyx. This works (mainly all the maths environment, like Lemmas, Theorems...), but the format of several things is deffirent (e.g. the sections Titles are written with small capitals...), and i would prefer the format of the attached layout files. Thanks in advance, nicolas > > > Georg -- Dr Nicolas Roy Geometric Analysis Group Institut für Mathematik Humboldt Universität Rudower Chaussee 25 Berlin D-12489 Tel: +49 (30) 20932358 Fax: +49 (30) 20932727 [EMAIL PROTECTED] http://www.math.hu-berlin.de/~roy/ icq : 86185073
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass{article (AMS)}
# AMS-Article textclass definition file. Taken from initial LyX source code
# and from the Article textclass definition file, following the AMS sample
# paper "testmath.tex" of January, 1995
# Author : David L. Johnson <[EMAIL PROTECTED]>
# Probably broken by Jean-Marc Lasgouttes <[EMAIL PROTECTED]>
# modified and modularized by Emmanuel GUREGHIAN <[EMAIL PROTECTED]>
# General textclass parameters
# Description "article (AMS)"
Columns 1
Sides 2
PageStyle Headers
MaxCounter Counter_Section
ClassOptions
FontSize 8|9|10|11|12
End
# 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
############### Sections.
# First the standard numbered definitions
Input stdsections.inc
# then define the unumbered sections, based on the numbered ones.
Input stdstarsections.inc
# remove the layouts that we do not need.
NoStyle Chapter
NoStyle Paragraph
NoStyle Subparagraph
NoStyle Chapter*
#NoStyle Paragraph*
#NoStyle Subparagraph*
Input thmamsdefsen.inc
Input stdlayouts.inc
NoStyle Verse # Although mathematicians tend to be poets at times,
# we don't need this.
Input stdlists.inc
### Finally a few obsolete definitions for compatibility
Input obsolete.inc
# Author : David L. Johnson <[EMAIL PROTECTED]>
# Probably broken by Jean-Marc Lasgouttes <[EMAIL PROTECTED]>
# modified and modularized by Emmanuel GUREGHIAN <[EMAIL PROTECTED]>
# Including the maths stuff
Input amsmatheng.inc
# the environnements copied from the old amsart.layout are :
# - Proof,
# - Bibliography
# - Title
# - Author
# - Date
# - Abstract (This is a title component for this style.)
# - Address
# - Email
# - Keywords
# - Subjectclass
# Proof style declaration
Style Proof
Margin First_Dynamic
LatexType Environment
LatexName proof
NextNoIndent 1
LabelSep xx
ParIndent MMM
ParSkip 0.4
ItemSep 0.2
TopSep 0.7
BottomSep 0.7
ParSep 0.3
Align Block
AlignPossible Block, Left
LabelType Static
LabelString "Proof."
# standard font definition
Font
Shape Up
Size Normal
EndFont
# label font definition
LabelFont
Shape Italic
EndFont
# We don't want the preamble from Theorem
Preamble
EndPreamble
End
### Now the title stuff. We copy do not use stdstruct.inc to keep
### things in the right order
# Address style definition
Style Address
Margin Dynamic
LatexType Command
InTitle 1
LatexName address
ParSkip 0.4
BottomSep 1.5
ParSep 1.5
Align Left
AlignPossible Block, Left, Right, Center
LabelType Static
LabelString "Adress: "
# label font definition
LabelFont
Shape Italic
EndFont
End
# Current Address style definition
Style Current_Address
Margin Dynamic
LatexType Command
InTitle 1
LatexName curraddr
ParSkip 0.4
BottomSep 1.5
ParSep 1.5
Align Left
AlignPossible Block, Left, Right, Center
LabelType Static
LabelString "Current Adress: "
# label font definition
LabelFont
Shape Italic
EndFont
End
# Email style definition
Style Email
Margin First_Dynamic
LatexType Command
InTitle 1
LatexName email
ParSkip 0.4
BottomSep 1.5
ParSep 1.5
Align Left
AlignPossible Block, Left, Right, Center
LabelType Static
labelString "E-mail Adress: "
LabelFont
Shape Italic
EndFont
End
# URL style definition
Style URL
Margin First_Dynamic
LatexType Command
InTitle 1
LatexName urladdr
ParSkip 0.4
BottomSep 1.5
ParSep 1.5
Align Left
AlignPossible Block, Left, Right, Center
LabelType Static
labelString "URL: "
LabelFont
Shape Italic
EndFont
End
# Keywords style definition
Style Keywords
Margin Dynamic
LatexType Command
InTitle 1
LatexName keywords
ParSkip 0.4
BottomSep 1.5
ParSep 1.5
Align Left
AlignPossible Block, Left, Right, Center
LabelType Static
LabelString "Key Words: "
# label font definition
LabelFont
Shape Italic
EndFont
End
# Thanks style definition
Style Thanks
Margin Dynamic
LatexType Command
InTitle 1
LatexName thanks
ParSkip 0.4
BottomSep 1.5
ParSep 1.5
Align Left
AlignPossible Block, Left, Right, Center
LabelType Static
LabelString "Acknowledgment: "
# label font definition
LabelFont
Shape Italic
EndFont
End
# Dedicatory style definition
Style Dedicatory
Margin Dynamic
LatexType Command
InTitle 1
LatexName dedicatory
ParSkip 0.4
BottomSep 1.5
ParSep 1.5
Align Left
AlignPossible Block, Left, Right, Center
LabelType Static
LabelString "Dedicatory: "
# label font definition
LabelFont
Shape Italic
EndFont
End
# Translator style definition
Style Translator
Margin Dynamic
LatexType Command
InTitle 1
LatexName translator
ParSkip 0.4
BottomSep 1.5
ParSep 1.5
Align Left
AlignPossible Block, Left, Right, Center
LabelType Static
LabelString "Translator: "
# label font definition
LabelFont
Shape Italic
EndFont
End
# Subjectclass style definition
Style Subjectclass
Margin Dynamic
LatexType Command
InTitle 1
LatexName subjclass
ParSkip 0.4
BottomSep 1.5
ParSep 1.5
Align Left
AlignPossible Block, Left, Right, Center
LabelType Static
LabelString "1991 Mathematics Subject Classification: "
# label font definition
LabelFont
Shape Italic
EndFont
End
thmarten.layout
Description: Binary data
