Compare commits

..

2 Commits

15 changed files with 1839 additions and 541 deletions

66
espdclass.inc Normal file
View File

@ -0,0 +1,66 @@
Format 66
Columns 1
Sides 1
SecNumDepth 4
TocDepth 4
DefaultStyle Standard
# This is just to show how to declare the default font.
# The defaults are exactly those shown here.
DefaultFont
Family Roman
Series Medium
Shape Up
Size Normal
Color None
EndFont
Style Standard
Category MainText
Margin Static
LatexType Paragraph
LatexName dummy
ParIndent MM
ParSkip 0.4
Align Block
AlignPossible Block, Left, Right, Center
LabelType No_Label
# FIXME This ought to be set dynamically.
HTMLStyle
div.standard {
margin-bottom: 2ex;
}
EndHTMLStyle
Preamble
\usepackage{mathptmx}
\usepackage{ifxetex}
\ifxetex
\ESPDgostFontName{GOST A}
\setsansfont[Mapping=tex-text]{Arial}
\setromanfont[Mapping=tex-text]{Times New Roman}
\setmonofont[Mapping=tex-text]{Pragmata Pro Mono}
\newfontfamily\listingsfont{Pragmata Pro Mono Bold}
\newfontfamily\listingsfontinline{Pragmata Pro Mono Bold}
\else
\usepackage{cmap} % Обязательно в начале (кодировки и поиск в PDF)
\usepackage[defaultroman]{mstimes}
\usepackage[defaultsans]{msarial}
\usepackage[defaultmono]{pragmatapro}
\fi
EndPreamble
End
#Input stdcharstyles.inc
#Input stdcustom.inc
Input espdfloats.inc
Input espdcounters.inc
Input espdinsets.inc
Input espdlists.inc
Input espdsections.inc
Input espdstarsections.inc
Input espdtitle.inc
Input espdstruct.inc
Input espdlayouts.inc
Input espdnum.inc

72
espdcounters.inc Normal file
View File

@ -0,0 +1,72 @@
# Author : Lars Gullik Bjønnes <larsbj@lyx.org>
# This include file contains all the counters that are defined as standard
# in most LyX layouts.
Format 66
Counter appendix
End
Counter section
End
Counter subsection
Within section
End
Counter subsubsection
Within subsection
End
Counter pointII
Within section
End
Counter pointIII
Within subsection
End
Counter pointIV
Within subsubsection
End
Counter subpointIII
Within pointII
End
Counter subpointIV
Within pointIII
End
Counter enumi
LabelString "\arabic{enumi})"
End
Counter enumii
Within enumi
LabelString "\asbuk{enumii})"
End
Counter enumiii
Within enumii
LabelString "\roman{enumiii}."
End
Counter enumiv
Within enumiii
LabelString "\Alph{enumiv}."
End
Counter bibitem
End
Counter listing
End
Counter equation
End
Counter footnote
End

67
espdfloats.inc Normal file
View File

@ -0,0 +1,67 @@
# Author : Lars Gullik Bjønnes <larsbj@lyx.org>
# This include file contains all the floats that are defined as standard
# in most LyX layouts.
Format 66
Float
Type table
GuiName Table
Placement tbp
Extension lot
NumberWithin none
Style plain
ListName "Список таблиц"
IsPredefined true
UsesFloatPkg false
ListCommand listoftables
RefPrefix tab
End
Float
Type figure
GuiName Figure
Placement tbp
Extension lof
NumberWithin none
Style plain
ListName "Список рисунков"
IsPredefined true
UsesFloatPkg false
ListCommand listoffigures
RefPrefix fig
End
Float
Type algorithm
GuiName Algorithm
Placement tbp
Extension loa
NumberWithin none
Style ruled
ListName "Список алгоритмов"
IsPredefined false
UsesFloatPkg true
RefPrefix alg
End
InsetLayout FloatList
HTMLTag h2
HTMLStyle
a.lyxtoc-floats {
text-decoration: none;
color: black;
}
a.lyxtoc-floats:visited { color: black; }
div.lyxtoc-floats {
margin: 0em 0em 0.1em 1em;
font-size: large;
font-weight: normal;
}
EndHTMLStyle
End

699
espdinsets.inc Normal file
View File

@ -0,0 +1,699 @@
# Textclass definition file for LaTeX.
# Author : Martin vermeer <martin.vermeer@hut.fi>
# Inset layouts definition
#
# Detailed format description is available in the customization manual
Format 66
Provides stdinsets 1
InsetLayout Marginal
LabelString margin
LatexType command
LatexName marginpar
Font
Size Small
EndFont
LabelFont
Color marginlabel
Size Small
EndFont
MultiPar true
NeedProtect true
HTMLStyle
div.marginal {
border: 2px solid black;
padding: 1ex;
margin: 1ex;
background-color: #F0F0F0;
float:right;
font-size: small;
font-weight: medium;
font-family: serif;
font-variant: normal;
font-style: normal;
}
EndHTMLStyle
End
InsetLayout Foot
LabelString foot
LatexType Command
LatexName footnote
Counter footnote
Font
Size Small
EndFont
LabelFont
Color footlabel
Size Small
EndFont
MultiPar true
RefPrefix fn
HTMLLabel \arabic{footnote}
HTMLInnerTag div
HTMLStyle
span.foot_label {
vertical-align: super;
font-size: smaller;
font-weight: bold;
text-decoration: underline;
}
div.foot {
display: inline;
font-size: small;
font-weight: medium;
font-family: serif;
font-variant: normal;
font-style: normal;
}
div.foot_inner { display: none; }
div.foot:hover div.foot_inner {
display: block;
border: 1px double black;
margin: 0em 1em;
padding: 1em;
}
EndHTMLStyle
End
InsetLayout Foot:InTitle
CopyStyle Foot
LatexName thanks
NeedProtect true
Counter thanks
MultiPar false
HTMLLabel \fnsymbol{thanks}
HTMLInnerTag span
HTMLStyle
span.foot_intitle_label {
vertical-align: super;
font-size: smaller;
font-weight: bold;
text-decoration: underline;
}
span.foot_intitle {
display: inline;
font-size: small;
font-weight: medium;
font-family: serif;
font-variant: normal;
font-style: normal;
}
span.foot_intitle_inner { display: none; }
span.foot_intitle:hover span.foot_intitle_inner {
display: block;
border: 1px double black;
margin: 0em 1em;
padding: 1em;
}
EndHTMLStyle
End
InsetLayout Note:Comment
LabelString Comment
LatexType environment
LatexName comment
BgColor commentbg
LabelFont
Color comment
Size Small
EndFont
MultiPar true
Display false
HTMLTag div
HTMLIsBlock true
HTMLStyle
div.note_comment {
display: none;
}
EndHTMLStyle
End
InsetLayout Note:Note
LabelString Note
LatexType command
LatexName note
BgColor notebg
LabelFont
Color note
Size Small
EndFont
MultiPar true
HTMLIsBlock false
# FIXME HTML Need CSS
End
InsetLayout Note:Greyedout
LabelString Greyedout
LatexType environment
LatexName lyxgreyedout
BgColor greyedoutbg
Font
Color greyedouttext
EndFont
LabelFont
Color greyedout
Size Small
EndFont
MultiPar true
Display false
HTMLInnerTag div
HTMLStyle
div.note_greyedout {
display: inline;
color: #A0A0A0;
padding-left: 1ex;
padding-right: 1ex;
}
EndHTMLStyle
HTMLIsBlock false
End
InsetLayout ERT
LabelString ERT
LatexType none
Decoration minimalistic
Font
Color latex
Family typewriter
EndFont
LabelFont
Color latex
Size Small
EndFont
MultiPar true
CustomPars false
ForcePlain true
PassThru true
ParbreakIsNewline true
KeepEmpty true
FreeSpacing true
ForceLTR true
End
InsetLayout Phantom
Decoration minimalistic
Font
Color phantomtext
EndFont
MultiPar false
CustomPars false
ForcePlain true
End
InsetLayout IPADeco
Decoration minimalistic
Font
Color foreground
EndFont
MultiPar false
CustomPars false
ForcePlain true
End
InsetLayout TOC
HTMLTag h2
HTMLStyle
div.toc {
margin: 2em 0em;
border-style: solid;
border-width: 2px 0px;
padding: 1em 0em;
}
h2.tochead { font-size: x-large; font-weight: bold; }
div.lyxtoc-0 {
margin: 2em 0em 0em 0em;
font-size: xx-large;
font-weight: bold;
}
div.lyxtoc-1 {
margin: 1em 0em 0em 0em;
font-size: x-large;
font-weight: bold;
}
div.lyxtoc-2 {
margin: 0em 0.1em 0em 1em;
font-size: large;
font-weight: normal;
}
div.lyxtoc-3 { margin: 0em 0.1em 0em 0.5em; font-size: medium; }
div.lyxtoc-4 { margin: 0em 0.1em 0em 0.5em; }
div.lyxtoc-5 { margin: 0em 0.1em 0em 0.5em; }
div.lyxtoc-6 { margin: 0em 0.1em 0em 0.5em; }
a.tocentry {
text-decoration: none;
color: black;
}
a.tocentry:visited { color: black; }
EndHTMLStyle
End
InsetLayout TOC:Listings
# We need the [[List of Listings]] context, since "Listings" is also
# the name of the inset and translated differently.
# "Listings[[List of Listings]]" is the name of the "List of listings"
# ("Listings" is the predefined english name) in listings.sty, so it
# must be used here as well.
BabelPreamble
\addto\captions$$lang{\renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}}
EndBabelPreamble
# The command does not need to be defined in LangPreamble, since
# listings.sty does that already. However it needs to be redefined
# in order to be used for non-english single-language documents.
LangPreamble
\renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}
EndLangPreamble
FixedWidthPreambleEncoding true
HTMLTag h2
HTMLStyle
div.lyxtoc-flat {
margin: 0em 0em 0em 1em;
font-size: large;
font-weight: normal;
}
EndHTMLStyle
End
InsetLayout Include:Listings
BabelPreamble
\addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}
EndBabelPreamble
# The command does not need to be defined in LangPreamble, since
# listings.sty does that already. However it needs to be redefined
# in order to be used for non-english single-language documents.
LangPreamble
\renewcommand{\lstlistingname}{_(Listing)}
EndLangPreamble
FixedWidthPreambleEncoding true
End
InsetLayout Listings
CopyStyle Include:Listings
LabelString Listings[[inset]]
LatexType none
Decoration minimalistic
Font
Color foreground
Family typewriter
EndFont
LabelFont
Color foreground
Size Small
EndFont
BgColor listingsbg
MultiPar true
PassThru true
ParbreakIsNewline true
KeepEmpty true
FreeSpacing true
ForceLTR true
RefPrefix lst
HTMLTag pre
End
InsetLayout Branch
Decoration classic
LabelFont
Color branchlabel
Size Small
EndFont
MultiPar true
InToc true
HTMLIsBlock false
End
InsetLayout Index
LabelString Idx
Decoration classic
Font
Size Small
EndFont
LabelFont
Color indexlabel
Size Small
EndFont
MultiPar false
CustomPars false
ForcePlain true
ContentAsLabel true
End
InsetLayout Box
LabelFont
Color foreground
Size Small
EndFont
MultiPar true
End
InsetLayout Box:Frameless
CopyStyle Box
HTMLStyle
div.Frameless { margin: 1em; }
EndHTMLStyle
End
InsetLayout Box:Shaded
CopyStyle Box
BgColor shaded
HTMLStyle
div.Shaded {
background-color: gray;
padding: 0.5ex;
}
EndHTMLStyle
End
InsetLayout Box:Boxed
CopyStyle Box
HTMLStyle
div.Boxed {
border: solid thick black;
padding: 0.5ex;
}
EndHTMLStyle
End
InsetLayout Box:Framed
CopyStyle Box
HTMLStyle
div.Framed {
border: solid thick black;
padding: 0.5ex;
}
EndHTMLStyle
End
InsetLayout Box:ovalbox
CopyStyle Box
HTMLStyle
div.ovalbox {
border: groove medium black;
padding: 0.5ex;
}
EndHTMLStyle
End
InsetLayout Box:Ovalbox
CopyStyle Box
HTMLStyle
div.Ovalbox {
border: ridge thick black;
padding: 0.5ex;
}
EndHTMLStyle
End
InsetLayout Box:Shadowbox
CopyStyle Box
HTMLStyle
div.Shadowbox { border: solid gray medium; border-bottom: solid black 1ex; border-right: solid black 1ex; padding: 0.5ex; }
EndHTMLStyle
End
InsetLayout Box:Doublebox
CopyStyle Box
HTMLStyle
div.Doublebox {
border: double thick black;
padding: 0.5ex;
}
EndHTMLStyle
End
InsetLayout Float
LabelFont
Color collapsible
Size Small
EndFont
MultiPar true
HTMLStyle
div.float {
border: 2px solid black;
text-align: center;
}
EndHTMLStyle
End
InsetLayout Wrap
LabelFont
Color collapsible
Size Small
EndFont
MultiPar true
RefPrefix wrap
HTMLStyle
div.wrap {
float: right;
border: 2px solid black;
padding: 1ex;
margin: 1ex;
}
EndHTMLStyle
End
InsetLayout "Flex:URL"
LyXType standard
Decoration classic
LabelString URL
ContentAsLabel true
LatexName url
LatexType command
Requires url
MultiPar false
CustomPars false
ForcePlain true
PassThru true
FreeSpacing true
ForceLTR true
Font
Family Typewriter
Color urltext
EndFont
LabelFont
Family Typewriter
Color urllabel
Size Small
EndFont
HTMLIsBlock false
End
InsetLayout Argument
LabelString Argument
LabelFont
Color collapsible
Size Small
EndFont
MultiPar false
ForceLocalFontSwitch 1
End
InsetLayout Info
Decoration conglomerate
HTMLStyle
span.info { font-family: sans-serif; }
EndHTMLStyle
HTMLTag span
MultiPar false
End
InsetLayout Info:menu
CopyStyle Info
LatexType command
LatexName menuitem
Preamble
\providecommand{\menuitem}[1]{\textsf{#1}}
EndPreamble
Decoration conglomerate
Font
Family sans
EndFont
HTMLAttr "class='info menu'"
HTMLStyle
span.menu { font-family: sans-serif; }
EndHTMLStyle
End
InsetLayout Info:shortcut
CopyStyle Info
LatexType command
LatexName shortcut
Preamble
\providecommand{\shortcut}[1]{\mbox{\textsf{#1}}}
EndPreamble
Decoration conglomerate
Font
Family sans
EndFont
HTMLAttr "class='info shortcut'"
HTMLStyle
span.shortcut { font-family: sans-serif; }
EndHTMLStyle
End
InsetLayout Info:shortcuts
CopyStyle Info
LatexType command
LatexName shortcut
Preamble
\providecommand{\shortcut}[1]{\textsf{#1}}
EndPreamble
Decoration conglomerate
Font
Family sans
EndFont
HTMLAttr "class='info shortcut'"
HTMLStyle
span.shortcuts { font-family: sans-serif; }
EndHTMLStyle
End
InsetLayout Caption:Standard
LabelString standard
LaTeXType command
LatexName caption
NeedProtect 1
MultiPar false
Argument 1
LabelString "Short Title|S"
Tooltip "The caption as it appears in the list of figures/tables"
InsertCotext 1
EndArgument
HTMLStyle
div.float-caption {
text-align: center;
border: 2px solid black;
padding: 1ex;
margin: 1ex;
}
EndHTMLStyle
HTMLAttr "class='float-caption float-caption-standard'"
End
InsetLayout Caption:Unnumbered
CopyStyle Caption:Standard
LabelString unlabelled
LatexName caption*
ResetArgs 1
End
InsetLayout Preview
LabelString Preview
Decoration minimalistic
MultiPar true
End
InsetLayout Script
LatexType command
MultiPar false
ForcePlain 1
CustomPars 0
InToc 1
HTMLIsBlock 0
End
InsetLayout Script:superscript
CopyStyle Script
LaTeXName textsuperscript
HTMLTag sup
End
InsetLayout Script:subscript
CopyStyle Script
Requires subscript
LaTeXName textsubscript
HTMLTag sub
End
InsetLayout PrintNomencl
HTMLTag h2
End
InsetLayout Flex:TightCentered
LyXType custom
LabelString TightCentered
LatexType environment
LatexName tightcentered
Preamble
\newenvironment{tightcentered}{
\setlength\topsep{0pt}
\setlength\parskip{0pt}
\begin{center}
}{
\end{center}
}
EndPreamble
LabelFont
Color latex
Size Tiny
EndFont
End
InsetLayout Flex:TightLeft
LyXType custom
LabelString TightLeft
LatexType environment
LatexName tightleft
Preamble
\newenvironment{tightleft}{
\setlength\topsep{0pt}
\setlength\parskip{0pt}
\begin{flushleft}
}{
\end{flushleft}
}
EndPreamble
LabelFont
Color latex
Size Tiny
EndFont
End
InsetLayout Flex:Code
LyxType charstyle
LabelString code
LatexType command
LatexName code
Font
Family Typewriter
Size Small
Series Normal
EndFont
Preamble
\newcommand{\code}[1]{\texttt{\small{#1}}}
EndPreamble
InToc true
HTMLTag code
ResetsFont true
End
InsetLayout Flex:Code-Bold
LyxType charstyle
LabelString code-bold
LatexType command
LatexName codebold
Font
Family Typewriter
Size Small
Series Bold
EndFont
Preamble
\newcommand{\codebold}[1]{\texttt{\textbf{\small{}{#1}}}}
EndPreamble
InToc true
HTMLTag code
ResetsFont true
End

121
espdlayouts.inc Normal file
View File

@ -0,0 +1,121 @@
# Standard textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
# Transposed by Pascal André <andre@via.ecp.fr>
# Heavily modifed and enhanced by several developers.
# This include files contains various standard environments for lists,
# quotations and such.
Format 66
Style Quotation
Category MainText
Margin Static
LatexType Environment
LatexName quotation
NextNoIndent 1
ToggleIndent Always
LeftMargin MMM
RightMargin MMM
ParIndent MM
ParSkip 0
ItemSep 0
TopSep 0.5
BottomSep 0.5
ParSep 0
Align Block
AlignPossible Block, Left, Right, Center
HTMLTag blockquote
HTMLItem div
End
Style Quote
Category MainText
Margin Static
LatexType Environment
LatexName quote
NextNoIndent 1
ToggleIndent Never
LeftMargin MMM
RightMargin MMM
TopSep 0.5
ParSep 0.5
BottomSep 0.5
Align Block
AlignPossible Block, Left, Right, Center
LabelType No_Label
HTMLTag blockquote
HTMLItem div
End
Style Verse
# LaTeX type is first dynamic because of LaTeX implementation.
# In LyX this does not make sense.
Category MainText
LatexType Environment
LatexName verse
Margin First_Dynamic
NextNoIndent 1
LeftMargin MMMM
LabelIndent MMMM
ParSkip 0.4
TopSep 0.7
BottomSep 0.7
ParSep 0.5
Align Block
AlignPossible Block, Left
LabelType No_Label
HTMLTag blockquote
HTMLItem p
End
Style Verbatim
Category MainText
LatexType Environment
LatexName verbatim
NextNoIndent 1
ParbreakIsNewline 1
FreeSpacing 1
PassThru 1
KeepEmpty 1
NewLine 0
TopSep 0.7
BottomSep 0.7
Align Block
AlignPossible Block
LabelType No_Label
Font
Family Typewriter
EndFont
HTMLTag pre
HTMLItem p
End
Style Verbatim*
CopyStyle Verbatim
LatexName verbatim*
End
Style --Separator--
Category MainText
KeepEmpty 1
Margin Dynamic
LatexType Paragraph
LatexName dummy
ParIndent MM
Align Block
LabelType Static
LabelString "--- Separate Environment ---"
LabelFont
Family Roman
Series Medium
Size Normal
Color Blue
EndFont
End

125
espdlists.inc Normal file
View File

@ -0,0 +1,125 @@
# Standard textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
# Transposed by Pascal André <andre@via.ecp.fr>
# Heavily modifed and enhanced by several developers.
# This include files contains various standard environments for lists.
Format 66
Input stdlyxlist.inc
Style Itemize
Category List
Margin Static
LatexType Item_Environment
LatexName itemize
NextNoIndent 1
ToggleIndent Never
LeftMargin MMN
LabelSep xx
ItemSep 0.2
TopSep 0.7
BottomSep 0.7
ParSep 0.3
Align Block
AlignPossible Block, Left
LabelType Itemize
LabelString "*"
HTMLTag ul
HTMLItem li
HTMLLabel NONE
Argument item:1
LabelString "Custom Item|s"
Tooltip "A customized item string"
EndArgument
End
Style Enumerate
Category List
Margin Static
LatexType Item_Environment
LatexName enumerate
NextNoIndent 1
ToggleIndent Never
LeftMargin MMN
LabelSep xx
ParSkip 0.0
ItemSep 0.2
TopSep 0.7
BottomSep 0.7
ParSep 0.3
Align Block
AlignPossible Block, Left
LabelType Enumerate
LabelCounter "enum"
HTMLTag ol
HTMLItem li
HTMLLabel NONE
RefPrefix enu
Argument item:1
LabelString "Custom Item|s"
Tooltip "A customized item string"
EndArgument
End
Style Description
Category List
Margin First_Dynamic
LatexType Item_environment
LatexName description
NextNoIndent 1
LeftMargin MM
LabelSep xxx
ParSkip 0.4
ItemSep 0.2
TopSep 0.7
BottomSep 0.7
ParSep 0.3
Align Block
AlignPossible Block, Left
LabelType Manual
LabelString "MM"
LabelFont
Series Bold
EndFont
HTMLTag dl
HTMLAttr class='description'
HTMLItem dd
HTMLLabel dt
HTMLLabelFirst 1
HTMLStyle
dl.description dt { font-weight: bold; }
EndHTMLStyle
End
Style List
Obsoletedby Labeling
End
Style Explanation
Category List
Margin First_Dynamic
LatexType Item_environment
LatexName ESPDexplanation
NextNoIndent 1
LeftMargin MM
LabelSep xxx
ParSkip 0.4
ItemSep 0.2
TopSep 0.7
BottomSep 0.7
ParSep 0.3
Align Block
AlignPossible Block, Left
LabelType Manual
LabelString "MM"
LabelFont
Series Bold
EndFont
End

99
espdmarkup.module Normal file
View File

@ -0,0 +1,99 @@
#\DeclareLyXModule{ESPD Markup}
#DescriptionBegin
#Defines some character styles for logical markup: noun, emph, strong, and code.
#DescriptionEnd
#Category: charstyles
# Author : Martin vermeer <martin.vermeer@hut.fi>
Format 60
InsetLayout Flex:Noun
LyxType charstyle
LabelString noun
LatexType command
LatexName noun
Font
Shape Smallcaps
EndFont
Requires noun
InToc true
HTMLTag span
HTMLAttr class='noun'
HTMLStyle
span.noun {
font-family: sans-serif;
}
EndHTMLStyle
ResetsFont true
End
InsetLayout Flex:Emph
LyxType charstyle
LabelString emph
LatexType command
LatexName emph
Font
Shape Italic
EndFont
InToc true
HTMLTag em
ResetsFont true
End
InsetLayout Flex:Strong
LyxType charstyle
LabelString strong
LatexType command
LatexName strong
Font
Series Bold
EndFont
InToc true
HTMLTag strong
ResetsFont true
End
InsetLayout Flex:Code
LyxType charstyle
LabelString code
LatexType command
LatexName code
Font
Family Typewriter
Size Small
Series Normal
EndFont
Preamble
\newcommand{\code}[1]{\texttt{\small{}#1}}
EndPreamble
InToc true
HTMLTag code
ResetsFont true
Spellcheck false
End
InsetLayout Flex:Code-Bold
LyxType charstyle
LabelString code-bold
LatexType command
LatexName codebold
Font
Family Typewriter
Size Small
Series Bold
EndFont
Preamble
\newcommand{\codebold}[1]{\texttt{\textbf{\small{}{#1}}}}
EndPreamble
InToc true
HTMLTag code
ResetsFont true
Spellcheck false
End

33
espdnum.inc Normal file
View File

@ -0,0 +1,33 @@
Format 60
Counter section
Within ""
LabelString "\arabic{section}"
LabelStringAppendix "\asbuk{section}"
End
Float
Type table
NumberWithin ""
End
Float
Type figure
NumberWithin ""
End
Float
Type algorithm
NumberWithin ""
End
Counter listing
Within ""
End
Counter footnote
Within ""
LabelString "\arabic{footnote}"
End

241
espdsections.inc Normal file
View File

@ -0,0 +1,241 @@
# Standard textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
# Transposed by Pascal André <andre@via.ecp.fr>
# Heavily modifed and enhanced by several developers.
# This include file contains all numbered sectionning-related
# commands that are useful for article-like document classes, but not
# for letters.
Format 66
Style "Раздел"
Category "Раздел"
Margin Dynamic
LabelType Static
LabelCounter section
LabelString \thesection.
TocLevel 1
LatexType Command
LatexName ESPDsection
NeedProtect 1
NextNoIndent 0
ToggleIndent Never
LabelSep xxx
ParSkip 0.4
TopSep 1.3
LeftMargin "MMMMM"
BottomSep 0.7
ParSep 0.7
Align Block
Argument 1
LabelString "Short Title|S"
Tooltip "The section as it appears in the table of contents/running headers"
InsertCotext 1
EndArgument
Font
Series Bold
Size Larger
EndFont
HTMLTag h2
Preamble
\newcommand{\ESPDsection}[1]{
\section{#1}
\setcounter{point}{\value{section}}
\setcounter{subpoint}{0}
}
EndPreamble
End
Style "Подраздел"
CopyStyle "Раздел"
LabelCounter subsection
LabelString \thesubsection.
TocLevel 2
LatexName ESPDsubsection
LeftMargin "MMMMM"
NextNoIndent 0
TopSep 0.9
BottomSep 0.5
ParSep 0.5
Font
Series Bold
Size Large
EndFont
HTMLTag h3
Preamble
\newcommand{\ESPDsubsection}[1]{
\subsection{#1}
\setcounter{point}{\value{subsection}}
\setcounter{subpoint}{0}
}
EndPreamble
End
Style "Подподраздел"
CopyStyle "Подраздел"
LabelCounter subsubsection
LabelString \thesubsubsection.
TocLevel 3
LatexName ESPDsubsubsection
LeftMargin "MMMMM"
NextNoIndent 0
TopSep 0.7
BottomSep 0.4
Font
Series Bold
Size Normal
EndFont
HTMLTag h4
Preamble
\newcommand{\ESPDsubsubsection}[1]{
\subsubsection{#1}
\setcounter{point}{\value{subsubsection}}
\setcounter{subpoint}{0}
}
EndPreamble
End
Style "Пункт 2 уровень"
Category "Пункты после разделов"
Margin First_Dynamic
LabelType Static
LabelCounter pointII
LabelString \thepointII.
KeepEmpty 1
LatexType Command
LatexName pointII
# NeedProtect 0
# NextNoIndent 1
LabelSep xxx
ParSkip 0.4
Align Block
AlignPossible Block, Left, Right, Center
End
Style "Пункт 3 уровень"
Category "Пункты после разделов"
Margin First_Dynamic
LabelType Static
LabelCounter pointIII
LabelString \thepointIII.
KeepEmpty 1
LatexType Command
LatexName pointIII
NeedProtect 0
NextNoIndent 0
LabelSep xxx
ParSkip 0.4
TopSep 0.4
BottomSep 0
End
Style "Пункт 4 уровень"
Category "Пункты после разделов"
Margin First_Dynamic
LabelType Static
LabelCounter pointIV
LabelString \thepointIV.
KeepEmpty 1
LatexType Command
LatexName pointIV
NeedProtect 0
NextNoIndent 0
LabelSep xxx
ParSkip 0.4
TopSep 0.4
BottomSep 0
End
Style "Подпункт 3 уровень"
Category "Подпункты после пунктов"
Margin First_Dynamic
LabelType Static
LabelCounter subpointIII
LabelString \thesubpointIII.
KeepEmpty 1
LatexType Command
LatexName subpointIII
NeedProtect 0
NextNoIndent 0
LabelSep xxx
ParSkip 0.4
TopSep 0.4
BottomSep 0
End
Style "Подпункт 4 уровень"
Category "Подпункты после пунктов"
Margin First_Dynamic
LabelType Static
LabelCounter subpointIV
LabelString \thesubpointIV.
KeepEmpty 1
LatexType Command
LatexName subpointIV
NeedProtect 0
NextNoIndent 0
LabelSep xxx
ParSkip 0.4
TopSep 0.4
BottomSep 0
End
Style "Обязательное"
Category "Приложение"
Margin Dynamic
LabelType Static
LabelString "Прил. Обязат. "
LabelCounter appendix
TocLevel 1
LatexType Command
LatexName ESPDappendixReq
NeedProtect 1
NextNoIndent 1
LabelSep xxx
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Block
AlignPossible Block, Left
Font
Series Bold
Size Larger
EndFont
Preamble
\newcommand{\ESPDappendixReq}[1]{
\ESPDappendix{"Обязательное"}{#1}
}
EndPreamble
End
Style "Справочное"
CopyStyle "Обязательное"
LabelString "Прил. Справоч. "
LatexName ESPDappendixRef
Preamble
\newcommand{\ESPDappendixRef}[1]{
\ESPDappendix{"Справочное"}{#1}
}
EndPreamble
End
Style "Рекомендуемое"
CopyStyle "Обязательное"
LabelString "Прил. Рекоменд. "
LatexName ESPDappendixRec
Preamble
\newcommand{\ESPDappendixRec}[1]{
\ESPDappendix{"Рекомендуемое"}{#1}
}
EndPreamble
End

51
espdstarsections.inc Normal file
View File

@ -0,0 +1,51 @@
# Standard textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
# Transposed by Pascal André <andre@via.ecp.fr>
# Heavily modifed and enhanced by several developers.
# This include files contains all non numbered versions of the
# sectioning-related commands that are useful for article-like
# document classes, but not for letters. It should be Input after
# modifying the style of the regular sectioning layouts.
Format 66
Style "Раздел в содерж. (б/н)"
CopyStyle "Раздел"
Category "Без номера"
Margin Static
LatexName ESPDstarsectiontoc
LabelType No_Label
LabelCounter ""
ResetArgs 1
Preamble
\newcommand{\ESPDstarsectiontoc}[1]{
\section*{#1}
\pdfbookmark[1]{#1}{toc}
\addcontentsline{toc}{section}{#1}
}
EndPreamble
End
Style "Раздел (б/н)"
CopyStyle "Раздел"
Category "Без номера"
Margin Static
LatexName ESPDstarsection
LabelType No_Label
LabelCounter ""
ResetArgs 1
Preamble
\newcommand{\ESPDstarsection}[1]{
\section*{#1}
}
EndPreamble
End

84
espdstruct.inc Normal file
View File

@ -0,0 +1,84 @@
# Standard textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
# Transposed by Pascal André <andre@via.ecp.fr>
# Heavily modifed and enhanced by several developers.
# Title definitions moved to stdtitle.inc by Hartmut Goebel <harmut@noris.net>
# This include files contains all layouts that handle the structure of
# a document, like abstract, bibliography and such.
Format 66
Style Abstract
Margin Static
LatexType Environment
LatexName abstract
Category FrontMatter
NextNoIndent 1
ToggleIndent Always
LeftMargin MMM
RightMargin MMM
ParIndent MM
ItemSep 0
TopSep 0.7
BottomSep 0.7
ParSep 0
Align Block
LabelType Centered
LabelString "Abstract"
LabelBottomSep 0.5
Font
Size Small
EndFont
LabelFont
Series Bold
Size Large
EndFont
HTMLLabelFirst 1
HTMLForceCSS 1
HTMLStyle
div.abstract {
margin: 4ex;
}
div.abstract_item {
font-size: small;
padding-top: 1ex;
}
div.abstract_label {
font-weight: bold;
}
EndHTMLStyle
End
Style Bibliography
Margin First_Dynamic
LatexType Bib_Environment
LatexName thebibliography
Category BackMatter
NextNoIndent 1
ToggleIndent Never
LeftMargin MM
ParSkip 0.4
ItemSep 0
TopSep 0.7
BottomSep 0.7
ParSep 0.5
Align Block
AlignPossible Block, Left
LabelType Bibliography
LabelString "References"
LabelBottomSep 1.2
LabelFont
Series Bold
Size Larger
EndFont
HTMLStyle
div.bibliography {
margin-left: 2em;
text-indent: -2em;
}
span.bibitemlabel:before { content: "["; }
span.bibitemlabel:after { content: "] "; }
EndHTMLStyle
End

16
espdtext.layout Normal file
View File

@ -0,0 +1,16 @@
#% Do not delete the line below; configure depends on this
# \LoadClass{espdtext}
# \DeclareLaTeXClass[espdtext]{espdtext}
# \DeclareCategory{Article}
Format 60
Input espdclass.inc
#Input espdnum.inc
SecNumDepth 4
TocDepth 4
NoStyle Part
NoStyle Chapter
Sides 1

70
espdtitle.inc Normal file
View File

@ -0,0 +1,70 @@
# Standard textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
# Transposed by Pascal André <andre@via.ecp.fr>
# Heavily modifed and enhanced by several developers.
# Split from stdstruct.inc by Hartmut Goebel <hartmut@noris.net>
# This include files contains all layouts that handle the title area
# a document, like title, author and such.
Format 66
Style Title
Margin Static
LatexType Command
Category FrontMatter
InTitle 1
LatexName title
ParSkip 0.4
ItemSep 0
TopSep 0
BottomSep 0.2
ParSep 0.2
Align Center
LabelType No_Label
Font
Size Largest
EndFont
HTMLTag h1
HTMLTitle true
End
Style Author
Margin Static
LatexType Command
Category FrontMatter
InTitle 1
LatexName author
LabelSep xxx
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Center
LabelType No_Label
Font
Size Large
EndFont
End
Style Date
Margin Dynamic
LatexType Command
Category FrontMatter
InTitle 1
LatexName date
LabelSep xxx
ParSkip 0.4
TopSep 0.9
BottomSep 0.5
ParSep 1
Align Center
LabelType No_Label
Font
Size Large
EndFont
End

95
stdsections.inc Normal file
View File

@ -0,0 +1,95 @@
# Standard textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
# Transposed by Pascal André <andre@via.ecp.fr>
# Heavily modifed and enhanced by several developers.
# This include file contains all numbered sectionning-related
# commands that are useful for article-like document classes, but not
# for letters.
Format 66
Style Section
Category Sectioning
Margin Dynamic
LabelType Static
LabelCounter section
TocLevel 1
LatexType Command
LatexName section
NeedProtect 1
NextNoIndent 1
ToggleIndent Never
LabelSep xxx
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Block
Argument 1
LabelString "Short Title|S"
Tooltip "The section as it appears in the table of contents/running headers"
InsertCotext 1
EndArgument
Font
Series Bold
Size Larger
EndFont
HTMLTag h2
End
Style Subsection
CopyStyle Section
LabelCounter subsection
TocLevel 2
LatexName subsection
TopSep 0.9
BottomSep 0.5
ParSep 0.5
Font
Series Bold
Size Large
EndFont
HTMLTag h3
End
Style Subsubsection
CopyStyle Subsection
LabelCounter subsubsection
TocLevel 3
LatexName subsubsection
TopSep 0.7
BottomSep 0.4
Font
Series Bold
Size Normal
EndFont
HTMLTag h4
End
Style Paragraph
CopyStyle Subsubsection
LabelCounter paragraph
TocLevel 4
LatexName paragraph
TopSep 0.4
BottomSep 0
HTMLTag h5
End
Style Subparagraph
CopyStyle Paragraph
LabelCounter subparagraph
TocLevel 5
LatexName subparagraph
NextNoIndent 0
LeftMargin MM
HTMLTag h6
End
Input stdrefprefix.inc
Input numarticle.inc

View File

@ -1,541 +0,0 @@
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[xespdtext,article]{xespdtext}
# \DeclareCategory{Article}
Format 66
Input stdfloats.inc
Input stdinsets.inc
Input stdlists.inc
Input logicalmkup.module
#
# Class
#
Preamble
\usepackage{xespdrtis}
EndPreamble
Columns 1
Sides 1
SecNumDepth 4
TocDepth 4
DefaultStyle Standard
DefaultFont
Family Roman
Series Medium
Shape Up
Size Normal
Color None
EndFont
Style Title
Margin Static
LatexType Command
Category FrontMatter
InTitle 1
LatexName title
ParSkip 0.4
ItemSep 0
TopSep 0
BottomSep 0.2
ParSep 0.2
Align Center
LabelType No_Label
Font
Size Largest
EndFont
HTMLTag h1
HTMLTitle true
End
Style Author
Margin Static
LatexType Command
Category FrontMatter
InTitle 1
LatexName author
LabelSep xxx
ParSkip 0.4
TopSep 1.3
BottomSep 0.7
ParSep 0.7
Align Center
LabelType No_Label
Font
Size Large
EndFont
End
Style Date
Margin Dynamic
LatexType Command
Category FrontMatter
InTitle 1
LatexName date
LabelSep xxx
ParSkip 0.4
TopSep 0.9
BottomSep 0.5
ParSep 1
Align Center
LabelType No_Label
Font
Size Large
EndFont
End
Style Standard
Category MainText
Margin Static
LatexType Paragraph
LatexName dummy
ParIndent "MM"
ParSkip 0.4
Align Block
AlignPossible Block, Left, Right, Center
LabelType No_Label
End
Style Разделитель
Category MainText
KeepEmpty 1
Margin Dynamic
LatexType Paragraph
LatexName dummy
ParIndent MM
Align Center
LabelType Static
LabelString "--- Разделитель ---"
LabelFont
Family Roman
Series Medium
Size Normal
Color Blue
EndFont
End
#
# End Class
#
#
# Counters
#
Counter section
LabelString "\arabic{section}"
LabelStringAppendix "\Asbuk{section}"
End
Counter subsection
Within section
End
Counter subsubsection
Within subsection
End
Counter paragraph
Within subsubsection
End
Counter enumi
LabelString "\arabic{enumi})"
End
Counter enumii
Within enumi
LabelString "\asbuk{enumii})"
End
Counter enumiii
Within enumii
LabelString "\roman{enumiii}."
End
Counter enumiv
Within enumiii
LabelString "\Alph{enumiv}."
End
Counter appendix
End
Counter bibitem
End
Counter listing
End
Counter equation
End
Counter footnote
LabelString "\arabic{footnote}"
End
#
# End Counters
#
#
# Sections
#
Style SectionBase
Category Sectioning
Margin Dynamic
TocLevel 1
LatexType Command
LatexName section*
NeedProtect 1
NextNoIndent 0
ToggleIndent Never
LabelSep xxx
LeftMargin "MMMMM"
ParSkip 0.4
TopSep 1.1
BottomSep 0.6
ParSep 0.6
Align Block
Argument 1
LabelString "Short Title|S"
Tooltip "The section as it appears in the table of contents/running headers"
InsertCotext 1
IsTocCaption 1
EndArgument
Font
Series Bold
Size Larger
EndFont
HTMLTag h2
End
Style Section
CopyStyle SectionBase
Category Sectioning
Margin Dynamic
LabelType Static
LabelCounter section
LabelString "\thesection."
TocLevel 1
LatexType Command
LatexName section
NeedProtect 1
NextNoIndent 0
ToggleIndent Never
LabelSep xxx
LeftMargin "MMMMM"
ParSkip 0.4
TopSep 1.1
BottomSep 0.6
ParSep 0.6
Align Block
Argument 1
LabelString "Short Title|S"
Tooltip "The section as it appears in the table of contents/running headers"
InsertCotext 1
IsTocCaption 1
EndArgument
Font
Series Bold
Size Larger
EndFont
HTMLTag h2
End
Style Subsection
CopyStyle Section
LabelCounter subsection
LabelString "\thesubsection."
TocLevel 2
LatexName subsection
LeftMargin "MMMMM"
TopSep 0.9
BottomSep 0.4
ParSep 0.4
Font
Series Bold
Size Large
EndFont
HTMLTag h3
End
Style Subsubsection
CopyStyle Section
LabelCounter subsubsection
LabelString "\thesubsubsection."
TocLevel 3
LatexName subsubsection
TopSep 0.6
BottomSep 0.2
ParSep 0.2
Font
Series Bold
Size Normal
EndFont
HTMLTag h3
End
Style "Пункт 2 уровня"
Category MainText
Margin First_Dynamic
LabelType Static
LabelCounter subsection
LabelString "\thesubsection."
LatexType Command
LatexName XESPDpointII
NeedProtect 0
NextNoIndent 0
LabelSep xxx
LabelIndent "MM"
ParSkip 0.4
Align Block
AlignPossible Block, Left, Right, Center
Preamble
\newcommand{\XESPDpointII}[1]{
\refstepcounter{subsection}\thesubsection.\quad{}{#1}
}
EndPreamble
End
Style "Пункт 3 уровня"
CopyStyle "Пункт 2 уровня"
LabelCounter subsubsection
LabelString "\thesubsubsection."
LatexName XESPDpointIII
Preamble
\newcommand{\XESPDpointIII}[1]{
\refstepcounter{subsubsection}\thesubsubsection.\quad{}{#1}
}
EndPreamble
End
Style "Пункт 4 уровня"
CopyStyle "Пункт 2 уровня"
LabelCounter paragraph
LabelString "\theparagraph."
LatexName XESPDpointIV
Preamble
\newcommand{\XESPDpointIV}[1]{
\refstepcounter{paragraph}\theparagraph.\quad{}{#1}
}
EndPreamble
End
Style "Аннотация"
CopyStyle SectionBase
Margin Dynamic
KeepEmpty 1
Align Center
LeftMargin ""
LatexName XESPDforeword
LabelType Static
LabelString "Аннотация"
LabelCounter ""
Font
Series Bold
Size Larger
EndFont
End
Style "Перечень сокращений"
CopyStyle Section
Margin Dynamic
KeepEmpty 1
Align Center
LeftMargin ""
LatexName XESPDabbreviationsList
LabelType Static
LabelString "Перечень сокращений"
LabelCounter ""
Font
Series Bold
Size Larger
EndFont
End
#
# End Sections
#
#
# Insets
#
InsetLayout Flex:TightCentered
LyXType Custom
LabelString TightCentered
LatexType Environment
LatexName tightcentered
Preamble
\newenvironment{tightcentered}{
\setlength\topsep{0pt}
\setlength\parskip{0pt}
\begin{center}}
{\end{center}}
EndPreamble
LabelFont
Color Latex
Size Tiny
EndFont
End
InsetLayout Flex:TightLeft
LyXType Custom
LabelString TightLeft
LatexType Environment
LatexName tightleft
Preamble
\newenvironment{tightleft}{
\setlength\topsep{0pt}
\setlength\parskip{0pt}
\begin{flushleft}}
{\end{flushleft}}
EndPreamble
LabelFont
Color Latex
Size Tiny
EndFont
End
InsetLayout Flex:Code
LyxType charstyle
LabelString "код"
LatexType command
LatexName code
Font
Family Typewriter
Size Small
EndFont
Preamble
\providecommand*{\code}[1]{\texttt{\small{#1}}}
EndPreamble
InToc true
HTMLTag code
ResetsFont true
CustomPars false
Spellcheck false
End
InsetLayout "Flex:Программный код"
CopyStyle Flex:Code
LabelString "код"
LatexName codebold
Font
Series Bold
EndFont
Preamble
\newcommand{\codebold}[1]{\texttt{\textbf{\small{#1}}}}
EndPreamble
HTMLTag code
HTMLAttr class='bold'
HTMLStyle
code.bold {
font-weight: bold;
}
EndHTMLStyle
End
InsetLayout "Flex:Имя файла"
CopyStyle Flex:Code
LabelString "имя файла"
LatexName filename
Font
Series Bold
EndFont
Preamble
\newcommand{\filename}[1]{\texttt{\textbf{\small{#1}}}}
EndPreamble
HTMLTag code
HTMLAttr class='bold'
HTMLStyle
code.bold {
font-weight: bold;
}
EndHTMLStyle
End
InsetLayout "Flex:Клавиша"
CopyStyle Flex:Code
LabelString клавиша
LatexName XESPDkey
Font
Series Medium
EndFont
Preamble
\newcommand{\XESPDkey}[1]{<\textrm{#1}>}
EndPreamble
HTMLTag span
HTMLAttr class='key'
HTMLStyle
span.key {
font-weight: bold;
}
EndHTMLStyle
End
InsetLayout "Flex:Кнопка"
CopyStyle Flex:Code
LabelString кнопка
LatexName XESPDbutton
Font
Series Bold
EndFont
Preamble
\newcommand{\XESPDbutton}[1]{\textbf{#1}}
EndPreamble
HTMLTag span
HTMLAttr class='button'
HTMLStyle
span.button {
font-weight: bold;
}
EndHTMLStyle
End
InsetLayout "Flex:Пункт меню"
CopyStyle Flex:Code
LabelString пункт-меню
LatexName XESPDmenuItem
Font
Series Bold
EndFont
Preamble
\newcommand{\XESDPmenuItem}[1]{\textbf{#1}}
EndPreamble
HTMLTag span
HTMLAttr class='menuitem'
HTMLStyle
span.menuitem {
font-weight: bold;
}
EndHTMLStyle
End
#
# End insets
#