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 ÐндÑей Ðомов <[email protected]>
# 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