rgheck wrote:

> Andrei Lomov wrote:
>> I installed LyX 1.6.2 (debian squeeze)
>> and discover that my custom layout files
>> tuned for LyX 1.5.5 do not work.
>>
>> LyX 1.6.2 reconfigures with no errors,
>> but theorem-like structures defined in my layouts
>> being applied in LyX text lose all headings and nubering,
>> both in LyX and dvi/pdf windows
>>
>>   
> Please post the layouts in question. They should be translated, but
> perhaps there are issues.
> 
> rh
Thank you rh,
the layout is attached

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[report]{report (ru,math)}
# Originates from report.layout
# messed up with ru and math by Андрей Ломов <lo...@math.nsc.ru>
# All non-latin text in this file is supposed to be in utf-8 encoding 

Format 4
Input stdclass.inc
Input numreport.inc
Input amsmaths.inc


Preamble
        \usepackage{amssymb,amsmath,amsthm}
        \numberwithin{equation}{section} %% Comment out for 
sequentially-numbered
        \numberwithin{figure}{section} %% Comment out for sequentially-numbered
        \numberwithin{table}{section} %% Comment out for sequentially-numbered
EndPreamble



Style Part
        TocLevel        -1
        LabelString     "Часть \Roman{part}"
End



Style Chapter
        LabelString             "Глава \arabic{chapter}"
        LabelStringAppendix     "Приложение \Alph{chapter}"
End



# The sequel style is derived from the style Proof of amsdefs.inc 
# (we do not input whole amsdefs.inc 
# because of another definitions of amsdefs.inc conflict with stdclass.inc)

Style Доказательство
        Margin                First_Dynamic
        LatexType             Environment
        LatexName             proof
        NextNoIndent          1
        OptionalArgs          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           "Доказательство."
        EndLabelType          Box
        Font
          Shape               Up
          Size                Normal
        EndFont
        LabelFont
          Shape               Italic
        EndFont
        # We don't want the preamble
        Preamble
        EndPreamble
End



Counter Name    theorem         within section  End 
Counter Name    corollary       within section  End
#Counter        Name    corollary       within theorem  End

Counter Name    lemma           within section  End
Counter Name    proposition     within section  End
Counter Name    claim           within section  End
Counter Name    definition      within section  End
Counter Name    remark          within section  End
Counter Name    example         within section  End
Counter Name    condition       within section  End
Counter Name    notation        within section  End

Counter Name    problem         within chapter  End
Counter Name    conjecture      within chapter  End
Counter Name    algorithm       within chapter  End
Counter Name    axiom           within chapter  End
Counter Name    summary         within chapter  End
Counter Name    conclusion      within chapter  End



Style Теорема
        CopyStyle       Theorem
        LabelCounter    theorem
        LabelString     "Теорема @sect...@.\arabic{theorem}."
        LatexName       thm
        Preamble
          \theoremstyle{plane}
          \newtheorem{thm}{Теорема}[section]
        EndPreamble
End

Style Теорема* 
        CopyStyle       Theorem
        LabelType       Static
        LabelString     "Теорема."
        LatexName       thm*
        Preamble
          \theoremstyle{plane}
          \newtheorem*{thm*}{Теорема}
        EndPreamble
End



Style Следствие
        CopyStyle       Теорема
        LabelCounter    corollary
        LabelString     "Следствие @sect...@.\arabic{corollary}."
        LatexName       cor
        Preamble
          \theoremstyle{plane}
          \newtheorem{cor}{Следствие}[section]
%         \renewcommand{\thecor}{\arabic{cor}} 
        EndPreamble
End

Style Следствие*
        CopyStyle       Следствие
        LabelType       Static
        LabelString     "Следствие."
        LatexName       cor*
        Preamble
          \theoremstyle{plane}
          \newtheorem*{cor*}{Следствие}
        EndPreamble
End



Style Лемма
        CopyStyle       Теорема
        LabelCounter    lemma
        LabelString     "Лемма @sect...@.\arabic{lemma}."
        LatexName       lem
        Preamble
          \theoremstyle{plane}
          \newtheorem{lem}{Лемма}[section]
        EndPreamble
End

Style Лемма*
        CopyStyle       Лемма
        LabelType       Static
        LabelString     "Лемма."
        LatexName       lem*
        Preamble
          \theoremstyle{plane}
          \newtheorem*{lem*}{Лемма}
        EndPreamble
End



Style Утверждение
        CopyStyle       Теорема
        LabelCounter    proposition
        LabelString     "Утверждение @sect...@.\arabic{proposition}."
        LatexName       prop
        Preamble
          \theoremstyle{plain}
          \newtheorem{prop}{Утверждение}[section]
        EndPreamble
End

Style Утверждение*
        CopyStyle       Утверждение
        LabelType       Static
        LabelString     "Утверждение."
        LatexName       prop*
        Preamble
          \theoremstyle{plain}
          \newtheorem*{prop*}{Утверждение}
        EndPreamble
End



Style Предложение
        CopyStyle       Теорема
        LabelCounter    claim
        LabelString     "Предложение @sect...@.\arabic{claim}."
        LatexName       cla
        Preamble
          \theoremstyle{plain}
          \newtheorem{cla}{Предложение}[section]
        EndPreamble
End

Style Предложение*
        CopyStyle       Предложение
        LabelType       Static
        LabelString     "Предложение."
        LatexName       cla*
        Preamble
          \theoremstyle{plain}
          \newtheorem*{cla*}{Предложение}
        EndPreamble
End



Style Определение
        CopyStyle       Теорема
        LabelCounter    definition
        LabelString     "Определение @sect...@.\arabic{definition}."
        Font
          Shape               Up
        EndFont
        LabelFont
          Shape               Up
          Series              Bold
        EndFont
        LatexName       defn
        Preamble
          \theoremstyle{definition}
          \newtheorem{defn}{Определение}[section]
        EndPreamble
End

Style Определение*
        CopyStyle       Определение
        LabelType       Static
        LabelString     "Определение."
        LatexName       defn*
        Preamble
          \theoremstyle{definition}
          \newtheorem*{defn*}{Определение}
        EndPreamble
End



Style Замечание
        CopyStyle       Теорема
        LabelCounter    remark
        LabelString     "Замечание @sect...@.\arabic{remark}."
        Font
          Shape               Up
          Size                Normal
        EndFont
        LabelFont
          Series              Medium
          Shape               Italic
        EndFont
        LatexName             rem
        Preamble
          \theoremstyle{remark}
          \newtheorem{rem}{Замечание}[section]
        EndPreamble
End

Style Замечание* 
        CopyStyle       Замечание
        LabelType       Static
        LabelString     "Замечание."
        LatexName       rem*
        Preamble
          \theoremstyle{remark}
          \newtheorem*{rem*}{Замечание}
        EndPreamble
End



Style Пример
        CopyStyle       Определение
        LabelCounter    example
        LabelString     "Пример @sect...@.\arabic{example}."
        LatexName       exa
        Preamble
          \theoremstyle{definition}
          \newtheorem{exa}{Пример}[section]
        EndPreamble
End

Style Пример*
        CopyStyle       Пример
        LabelType       Static
        LabelString     "Пример."
        LatexName       exa*
        Preamble
          \theoremstyle{definition}
          \newtheorem*{exa*}{Пример}
        EndPreamble
End



Style Условие
        CopyStyle       Определение
        LabelCounter    condition
        LabelString     "Условие @sect...@.\arabic{condition}."
        LatexName       cond
        Preamble
          \theoremstyle{definition}
          \newtheorem{cond}{Условие}[section]
        EndPreamble
End

Style Условие*
        CopyStyle       Условие
        LabelType       Static
        LabelString     "Условие."
        LatexName       cond*
        Preamble
          \theoremstyle{definition}
          \newtheorem*{cond*}{Условие}
        EndPreamble
End



Style Обозначение
        CopyStyle       Замечание
        LabelCounter    notation
        LabelString     "Обозначение @sect...@.\arabic{notation}."
        LatexName       nota
        Preamble
          \theoremstyle{remark}
          \newtheorem{nota}{Обозначение}[section]
        EndPreamble
End

Style Обозначение* 
        CopyStyle       Обозначение
        LabelType       Static
        LabelString     "Обозначение."
        LatexName       nota*
        Preamble
          \theoremstyle{remark}
          \newtheorem*{nota*}{Обозначение}
        EndPreamble
End



Style Задача
        CopyStyle       Определение
        LabelCounter    problem
        LabelString     "Задача \arabic{problem}."
        LatexName       prob
        Preamble
          \theoremstyle{definition}
          \newtheorem{prob}{Задача}[chapter]
          \renewcommand{\theprob}{\arabic{prob}} 
        EndPreamble
End

Style Задача*
        CopyStyle       Задача
        LabelType       Static
        LabelString     "Задача."
        LatexName       prob*
        Preamble
          \theoremstyle{definition}
          \newtheorem*{prob*}{Задача}
        EndPreamble
End



Style Предположение
        CopyStyle       Теорема
        LabelCounter    conjecture
        LabelString     "Предположение \arabic{conjecture}."
        LatexName       conj
        Preamble
          \theoremstyle{plain}
          \newtheorem{conjecture}{Предположение}[chapter]
          \renewcommand{\theconj}{\arabic{conj}} 
        EndPreamble
End

Style Предположение*
        CopyStyle       Предположение
        LabelType       Static
        LabelString     "Предположение."
        LatexName       conj*
        Preamble
          \theoremstyle{plain}
          \newtheorem*{conj*}{Предположение}
        EndPreamble
End



Style Алгоритм
        CopyStyle       Теорема
        LabelCounter    algorithm
        LabelString     "Алгоритм \arabic{algorithm}."
        LatexName       alg
        Preamble
          \theoremstyle{plain}
          \newtheorem{alg}{Алгоритм}[chapter]
          \renewcommand{\thealg}{\arabic{alg}} 
        EndPreamble
End

Style Алгоритм*
        CopyStyle       Алгоритм
        LabelType       Static
        LabelString     "Алгоритм."
        LatexName       alg*
        Preamble
          \theoremstyle{plain}
          \newtheorem*{alg*}{Алгоритм}
        EndPreamble
End



Style Аксиома
        CopyStyle       Теорема
        LabelCounter    axiom
        LabelString     "Аксиома \arabic{axiom}."
        LatexName       ax
        Preamble
          \theoremstyle{plain}
          \newtheorem{ax}{Аксиома}[chapter]
          \renewcommand{\theax}{\arabic{ax}} 
        EndPreamble
End

Style Аксиома*
        CopyStyle       Аксиома
        LabelType       Static
        LabelString     "Аксиома."
        LatexName       ax*
        Preamble
          \theoremstyle{plain}
          \newtheorem*{ax*}{Аксиома}
        EndPreamble
End



Style Резюме
        CopyStyle       Замечание
        LabelCounter    summary
        LabelString     "Резюме \arabic{summary}."
        LatexName       sum
        Preamble
          \theoremstyle{remark}
          \newtheorem{sum}{Резюме}[chapter]
          \renewcommand{\thesum}{\arabic{sum}} 
        EndPreamble
End

Style Резюме*
        CopyStyle       Резюме
        LabelType       Static
        LabelString     "Резюме."
        LatexName       sum*
        Preamble
          \theoremstyle{remark}
          \newtheorem*{sum*}{Резюме}
        EndPreamble
End



Style Вывод
        CopyStyle       Замечание
        LabelCounter    conclusion
        LabelString     "Вывод \arabic{conclusion}."
        LatexName       conc
        Preamble
          \theoremstyle{remark}
          \newtheorem{conc}{Вывод}[chapter]
          \renewcommand{\theconc}{\arabic{conc}} 
        EndPreamble
End

Style Вывод* 
        CopyStyle       Вывод
        LabelType       Static
        LabelString     "Вывод."
        LatexName       conc*
        Preamble
          \theoremstyle{remark}
          \newtheorem*{conc*}{Вывод}
        EndPreamble
End



Style Литература
        CopyStyle       Bibliography
        LabelString     "Литература"
End


# clearing unwanted fragments of above inputs:

NoStyle                 Theorem
NoStyle                 Theorem*
NoStyle                 Proof
NoStyle                 Corollary
NoStyle                 Corollary*
NoStyle                 Lemma
NoStyle                 Lemma*
NoStyle                 Proposition
NoStyle                 Proposition*
NoStyle                 Claim
NoStyle                 Claim*
NoStyle                 Definition
NoStyle                 Definition*
NoStyle                 Problem
NoStyle                 Problem*
NoStyle                 Example
NoStyle                 Example*
NoStyle                 Remark
NoStyle                 Remark*
NoStyle                 Note
NoStyle                 Note*   
NoStyle                 Notation
NoStyle                 Notation*
NoStyle                 Conjecture
NoStyle                 Conjecture*
NoStyle                 Criterion
NoStyle                 Criterion*
NoStyle                 Algorithm
NoStyle                 Algorithm*
NoStyle                 Fact
NoStyle                 Fact*
NoStyle                 Axiom
NoStyle                 Axiom*
NoStyle                 Assumption
NoStyle                 Assumption*
NoStyle                 Condition
NoStyle                 Condition*
NoStyle                 Exercise
NoStyle                 Exercise*
NoStyle                 Summary
NoStyle                 Summary*
NoStyle                 Acknowledgement
NoStyle                 Acknowledgement*
NoStyle                 Case
NoStyle                 Case*
NoStyle                 Conclusion
NoStyle                 Conclusion*
NoStyle                 Date
NoStyle                 "Right Address"
NoStyle                 Subjectclass
NoStyle                 Address
NoStyle                 Current_Address
NoStyle                 Email
NoStyle                 Keywords
NoStyle                 Thanks
NoStyle                 Dedicatory
NoStyle                 Translator
NoStyle                 Bibliography

Reply via email to