From 4bfb78676c32940dafb6fadb8a3f59dffdc43545 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Fri, 15 Feb 2013 19:26:47 +0400 Subject: [PATCH] Added classes and styles from http://habrahabr.ru/post/116517/ --- eskdclass.inc | 52 ++++++++ eskdcounters.inc | 64 ++++++++++ eskdfloats.inc | 41 ++++++ eskdinsets.inc | 293 +++++++++++++++++++++++++++++++++++++++++++ eskdlayouts.inc | 83 ++++++++++++ eskdlists.inc | 166 ++++++++++++++++++++++++ eskdsections.inc | 268 +++++++++++++++++++++++++++++++++++++++ eskdstarsections.inc | 94 ++++++++++++++ eskdstruct.inc | 60 +++++++++ eskdtextnew.layout | 23 ++++ eskdtitle.inc | 66 ++++++++++ 11 files changed, 1210 insertions(+) create mode 100644 eskdclass.inc create mode 100644 eskdcounters.inc create mode 100644 eskdfloats.inc create mode 100644 eskdinsets.inc create mode 100644 eskdlayouts.inc create mode 100644 eskdlists.inc create mode 100644 eskdsections.inc create mode 100644 eskdstarsections.inc create mode 100644 eskdstruct.inc create mode 100644 eskdtextnew.layout create mode 100644 eskdtitle.inc diff --git a/eskdclass.inc b/eskdclass.inc new file mode 100644 index 0000000..475b21e --- /dev/null +++ b/eskdclass.inc @@ -0,0 +1,52 @@ +# Standard textclass definition file. Taken from initial LyX source code +# Author : Matthias Ettrich +# Transposed by Pascal André +# Heavily modifed and enhanced by several developers. + +# This is a base layout which is designed to be included from other +# ``standard'' layouts, like article and friends. + + +Format 11 +Columns 1 +Sides 1 +SecNumDepth 5 +TocDepth 5 +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 +End + +#Input stdcharstyles.inc +#Input stdcustom.inc +Input stdfloats.inc +Input eskdcounters.inc +Input stdinsets.inc +Input eskdlists.inc +Input eskdsections.inc +Input eskdstarsections.inc +Input stdtitle.inc +Input stdstruct.inc +Input lyxmacros.inc +Input stdlayouts.inc + diff --git a/eskdcounters.inc b/eskdcounters.inc new file mode 100644 index 0000000..a504fe1 --- /dev/null +++ b/eskdcounters.inc @@ -0,0 +1,64 @@ +# Author : Lars Gullik Bjønnes + +# This include file contains all the counters that are defined as standard +# in most LyX layouts. + + +Format 11 +#Counter part +# LabelString "\Roman{part}" +#End + +#Counter chapter +#End + +Counter section +# Within chapter +End + +Counter appendix + Within chapter +End + +Counter subsection + Within section +End + +Counter point + Within subsection +End + +Counter subpoint + Within point +End + +Counter subsubpoint + Within subpoint +End + +Counter enumi +End + +Counter enumii + Within enumi +End + +Counter enumiii + Within enumii +End + +Counter enumiv + Within enumiii +End + +Counter bibitem +End + +Counter listing +End + +Counter equation +End + +Counter footnote +End diff --git a/eskdfloats.inc b/eskdfloats.inc new file mode 100644 index 0000000..98e838c --- /dev/null +++ b/eskdfloats.inc @@ -0,0 +1,41 @@ +# Author : Lars Gullik Bjønnes + +# This include file contains all the floats that are defined as standard +# in most LyX layouts. + + +Format 4 +Float + Type table + GuiName Table + Placement tbp + Extension lot + NumberWithin none + Style plain + ListName "Список таблиц" + LaTeXBuiltin true +End + + +Float + Type figure + GuiName Figure + Placement tbp + Extension lof + NumberWithin none + Style plain + ListName "Список рисунков" + LaTeXBuiltin true +End + + +Float + Type algorithm + GuiName Algorithm + Placement tbp + Extension loa + NumberWithin none + Style ruled + ListName "Список алгоритмов" + LaTeXBuiltin false +End diff --git a/eskdinsets.inc b/eskdinsets.inc new file mode 100644 index 0000000..706351d --- /dev/null +++ b/eskdinsets.inc @@ -0,0 +1,293 @@ +# Textclass definition file for LaTeX. +# Author : Martin vermeer +# Inset layouts definition +# +# More detailled format description is available in the customization manual +# FIXME: create the contents in the manual and put the link here. +# +#InsetLayout +# LabelString used for the inset decoration (either the inset button +# or the text underneath the inset). +# LatexType associated LateX type: command, environment, or none. +# LatexName associated LateX command. +# BgColor Color of the inset background within LyX. +# FIXME: link to a doc file describing the different +# color codes as defined in 'ColorCode.h' +# Font Nothing to put here, below are descriptions of the different +# allowable adjustments for the font used to draw the text +# appearing within the inset text. All these items are optional. +# Color Color of text +# Size Font size of the textallowed value: Small, Smaller, ... +# FIXME defined in FontSize in FontEnums.h +# Family FIXME defined in FontFamily in FontEnums.h +# Shape FIXME defined in FontShape in FontEnums.h +# Series FIXME defined in FontSeries in FontEnums.h +# Misc FIXME defined in FontMisc in FontEnums.h +# EndFont Nothing to put here, it's just a markup to indicate that we are +# finished with the Font definition. +# LabelFont Nothing to put here, below are descriptions of the different +# allowable adjustments for the font used to draw the text +# appearing within the inset decoration. All these items are +# optional. +# Color see definition above (in the Font node). +# Size see definition above (in the Font node). +# +# EndFont Nothing to put here, it's just a markup to indicate that we are +# finished with the LabelFont definition. +# MultiPar Indicates that multiple paragraphs are allowed within the inset +# or not. Defaults to false. Sets CustomPars, as well, to the same +# value, and sets ForcePlain to the opposite value. If you want +# those to be different, then, you must set them after you set +# MultiPar. +# CustomPars Whether to allow the use of the Paragraph Settings dialog. Default is +# false. +# ForcePlain Whether to force the PlainLayout. Default is true. +# Decoration: Classic, Minimalistic, Conglomerate. Decoration styles +# PassThru Do not do various LaTeX conversions, like the phrases +# LaTeX, LyX, quote commands, etc. +# KeepEmpty Do not delete empty paragraphs (?) +# FreeSpacing Preserve multiple spaces etc. +# ForceLTR Force the "latex" language, leading to Left-to-Right +# (latin) output, e.g., in ERT or URL. A kludge. +# Requires Require a given (supported) feature. Multiple features must +# be comma-separated. +#End + +Format 11 + +Provides stdinsets 1 + +InsetLayout Marginal + LabelString margin + LatexType command + LatexName marginpar + Font + Size Small + EndFont + LabelFont + Color marginlabel + Size Small + EndFont + MultiPar true +End + +InsetLayout Foot + LabelString foot + LatexType command + LatexName footnote + Font + Size Small + EndFont + LabelFont + Color footlabel + Size Small + EndFont + MultiPar true +End + +InsetLayout Note:Comment + LabelString comment + LatexType environment + LatexName comment + BgColor commentbg + LabelFont + Color comment + Size Small + EndFont + MultiPar true +End + + +InsetLayout Note:Note + LabelString note + LatexType command + LatexName note + BgColor notebg + LabelFont + Color note + Size Small + EndFont + MultiPar true +End + +InsetLayout Note:Greyedout + LabelString greyedout + LatexType environment + LatexName lyxgreyedout + BgColor greyedoutbg + LabelFont + Color greyedout + Size Small + EndFont + MultiPar true +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 + KeepEmpty true + FreeSpacing true + ForceLTR true +End + +InsetLayout Listings + LabelString Listings + LatexType none + Decoration minimalistic + Font + Color foreground + Family typewriter + EndFont + LabelFont + Color foreground + Size Small + EndFont + BgColor listingsbg + MultiPar true + PassThru true + KeepEmpty true + FreeSpacing true + ForceLTR true +End + +InsetLayout Branch + Decoration classic + LabelFont + Color branchlabel + Size Small + EndFont + MultiPar true +End + +InsetLayout Index + LabelString Idx + LatexType command + LatexName index + Decoration classic + Font + Size Small + EndFont + LabelFont + Color indexlabel + Size Small + EndFont + MultiPar false + CustomPars false + ForcePlain true + NeedProtect true +End + +InsetLayout Box + LabelFont + Color foreground + Size Small + EndFont + MultiPar true +End + +InsetLayout Box:Shaded + BgColor shaded + LabelFont + Color foreground + Size Small + EndFont + MultiPar true +End + +InsetLayout Float + LabelFont + Color collapsable + Size Small + EndFont + MultiPar true +End + +InsetLayout Wrap + LabelFont + Color collapsable + Size Small + EndFont + MultiPar true +End + +InsetLayout URL + LyXType standard + LatexName url + LatexType command + Decoration classic + LabelString URL + PassThru true + ForceLTR true + Font + Family Typewriter + Color urltext + EndFont + LabelFont + Family Typewriter + Color urllabel + Size Small + EndFont + Requires url +End + +InsetLayout OptArg + LabelString opt + LabelFont + Color collapsable + Size Small + EndFont + MultiPar false +End + +InsetLayout Info + Decoration conglomerate +End + +InsetLayout Info:menu + LatexType command + LatexName menuitem + Preamble + \providecommand{\menuitem}[1]{\textsf{#1}} + EndPreamble + Decoration conglomerate + Font + Family sans + EndFont +End + +InsetLayout Info:shortcut + LatexType command + LatexName shortcut + Preamble + \providecommand{\shortcut}[1]{\mbox{\textsf{#1}}} + EndPreamble + Decoration conglomerate + Font + Family sans + EndFont +End + +InsetLayout Info:shortcuts + LatexType command + LatexName shortcut + Preamble + \providecommand{\shortcut}[1]{\textsf{#1}} + EndPreamble + Decoration conglomerate + Font + Family sans + EndFont +End diff --git a/eskdlayouts.inc b/eskdlayouts.inc new file mode 100644 index 0000000..3811021 --- /dev/null +++ b/eskdlayouts.inc @@ -0,0 +1,83 @@ +# Standard textclass definition file. Taken from initial LyX source code +# Author : Matthias Ettrich +# Transposed by Pascal André +# Heavily modifed and enhanced by several developers. + +# This include files contains various standard environments for lists, +# quotations and such. + + +Format 11 +Style Quotation + Category MainText + Margin Static + LatexType Environment + LatexName quotation + NextNoIndent 1 + 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 +End + + +Style Quote + Category MainText + Margin Static + LatexType Environment + LatexName quote + NextNoIndent 1 + LeftMargin MMM + RightMargin MMM + TopSep 0.5 + ParSep 0.5 + BottomSep 0.5 + Align Block + AlignPossible Block, Left, Right, Center + LabelType No_Label +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 +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 diff --git a/eskdlists.inc b/eskdlists.inc new file mode 100644 index 0000000..6232137 --- /dev/null +++ b/eskdlists.inc @@ -0,0 +1,166 @@ + +# Standard textclass definition file. Taken from initial LyX source code +# Author : Matthias Ettrich +# Transposed by Pascal André +# Heavily modifed and enhanced by several developers. + +# This include files contains various standard environments for lists. + + +Format 11 +Style Itemize + Category List + Margin Static + LatexType Item_Environment + LatexName itemize + NextNoIndent 1 + LeftMargin MMN + LabelSep xx + ItemSep 0.2 + TopSep 0.7 + BottomSep 0.7 + ParSep 0.3 + Align Block + AlignPossible Block, Left + LabelType Itemize + LabelString "*" +End + + +Style Enumerate + Category List + Margin Static + LatexType Item_Environment + LatexName enumerate + NextNoIndent 1 + 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 +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 +End + + +Style List + Category List + Margin Manual + LatexType Environment + LatexName lyxlist + NextNoindent 1 + LabelSep xxx + ParSkip 0.4 + TopSep 0.7 + BottomSep 0.7 + ParSep 0.5 + Align Block + AlignPossible Block, Left + LabelType Manual + LabelString "00.00.0000" + + #define the environment lyxlist + Preamble + \newenvironment{lyxlist}[1] + {\begin{list}{} + {\settowidth{\labelwidth}{#1} + \setlength{\leftmargin}{\labelwidth} + \addtolength{\leftmargin}{\labelsep} + \renewcommand{\makelabel}[1]{##1\hfil}}} + {\end{list}} + EndPreamble +End + +# Новое окружение для составления листа регистрации изменений. +# Тут считаю необходимым переопределить item, с команды без параметров в команду с одним параметром. +# Буду передавать в \item{} строку и парсить её, используя пакет stringstrings. +# Лист регистрации изменений есть таблица, состаящая из десяти колонок. +# Необходимо отделять содержимое колонок друг от друга. В качество разделителя будем использоваться +# символ "\&". +# Алгоритм следующий: +# 1) Выхватить первое слово из строки, используя \getaword{} +# 2) Получить индекс символа \&, используя \whereischar{} - пусть это будем число i +# 3) Удалить первые i символов строки, используя \gobblechars{} +# Повторить с пункта 1 для оставшихся девяти слов. +# Поскольку некоторые колонки могут быть пустыми предлагаю использовать специальное слово для +# пустых колонок - nop. использовать \if и если слово - nop, заменять его пустым словом (пробелом) + +Style ESCList + Category List + Margin Manual + LatexType List_Environment + LatexName ecslist + NextNoindent 1 + LabelSep xxx + ParSkip 0.4 + TopSep 0.7 + BottomSep 0.7 + ParSep 0.5 + Align Block + AlignPossible Block, Left + LabelType Static + + #define the environment ecslist + Preamble + \newenvironment{ecslist}% + {% + \newcounter{ecscounter}% + \setcounter{ecscounter}{1}% + \let\olditem\item% + \renewcommand{\item}[9]{% + \arabic{ecscounter} & ##1 & ##2 & ##3 & ##4 & ##5 & ##6 & ##7 & ##8 & ##9 \\% + \addtocounter{ecscounter}{1}} + \begin{ESKDchangeSheet}% + }% + {\end{ESKDchangeSheet}} + EndPreamble +End + + +Style Explanation + Category List + Margin First_Dynamic + LatexType Item_environment + LatexName ESKDexplanation + 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 diff --git a/eskdsections.inc b/eskdsections.inc new file mode 100644 index 0000000..fa4e37f --- /dev/null +++ b/eskdsections.inc @@ -0,0 +1,268 @@ +# Standard textclass definition file. Taken from initial LyX source code +# Author : Matthias Ettrich +# Transposed by Pascal André +# Heavily modifed and enhanced by several developers. + +# This include files contains all numbered sectionning-related +# commands that are useful for article-like document classes, but not +# for letters. + +Format 11 +#Style Part +# Category Section +# Margin Dynamic +# LabelString "Part \thepart" +# LabelType Counter +# TocLevel 0 +# LabelCounter part +# LatexType Command +# LatexName part +# NeedProtect 1 +# NextNoIndent 1 +# Labelsep xxx +# ParSkip 0.4 +# TopSep 4 +# BottomSep 4 +# ParSep 0.8 +# Align Center +# Alignpossible Center +# Font +# Series Bold +# Size Huge +# EndFont +#End + +#Style Chapter +# Margin Static +# Category Section +# LabelString "Chapter \thechapter" +# LabelStringAppendix "Appendix \thechapter" +# LabelType Counter +# LabelCounter chapter +# TocLevel 0 +# LatexType Command +# LatexName chapter +# NeedProtect 1 +# NextNoIndent 1 +# ParSkip 0.4 +# TopSep 4 +# BottomSep 0.8 +# ParSep 0.8 +# Align Block +# OptionalArgs 1 +# Font +# Series Bold +# Size Huge +# EndFont +#End + + +Style "Раздел" + Category "Раздел" + Margin Dynamic + LabelType Counter + LabelCounter section + TocLevel 1 + LatexType Command + LatexName section + NeedProtect 1 + NextNoIndent 1 + LabelSep xxx + ParSkip 0.4 + TopSep 1.3 + BottomSep 0.7 + ParSep 0.7 + Align Block + AlignPossible Block, Left + OptionalArgs 1 + Font + Series Bold + Size Larger + EndFont +End + + +Style "Подраздел" + CopyStyle "Раздел" + LabelCounter subsection + TocLevel 2 + LatexName ESKDsubsection + TopSep 0.9 + BottomSep 0.5 + ParSep 0.5 + Font + Series Bold + Size Large + EndFont + + Preamble + \newcommand{\ESKDsubsection}[1]{ + \subsection{#1} + \setcounter{point}{\value{subsection}} + \setcounter{subpoint}{0} + } + EndPreamble + +End + +# Поскольку в ЕСКД могут быть документы как с подразделами, так и без подразделов +# считаю логичным ввести 2 типа пунктов/подпунктов: +# 1) Для документов БЕЗ подразделов - начинаются префиксом woss(without subsections) +# (wossPoint, wossSubPoint) +# 2) Для документов ИМЕЮЩИХ подраздела - начинаются прфексом wss(with subsections) +# (wssPoint, wssSubPoint) +# так же необходимо разнести и в разные категории, чтобы в UI Lyx можно было выбрать их +# без лишней путаницы. +# Для woss - "Без подразделов" +# Для wss - "С подразделами" +# Само собой они будут использоваться разные счетчики: +# 1) 2 и 3 уровня для wss - subsection и point +# 2) 3 и 4 уровня для woss - point и subpoint +# Так же необходимо выделять заголовки для SubSection и не выбелять для point и subpoint, +# но выводить нумерацию. + +Style "Пункт1" + Category "С подразделами" + Margin Dynamic + LabelType Counter + LabelCounter point + KeepEmpty 1 + TocLevel 3 + LatexType Command + LatexName subpoint +# LatexParam 1 + NeedProtect 0 + NextNoIndent 0 + LabelSep xxx + ParSkip 0.4 + TopSep 0.4 + BottomSep 0 +End + + +Style "Подпункт1" + Category "С подразделами" + Margin Dynamic + LabelType Counter + LabelCounter subpoint + KeepEmpty 1 + TocLevel 3 + LatexType Command + LatexName subsubpoint +# LatexParam 1 + NeedProtect 0 + NextNoIndent 0 + LabelSep xxx + ParSkip 0.4 + TopSep 0.4 + BottomSep 0 +End + +Style "Пункт2" + Category "Без подразделов" + Margin Dynamic + LabelType Counter + LabelCounter subsection + KeepEmpty 1 + TocLevel 3 + LatexType Command + LatexName point + NeedProtect 0 + NextNoIndent 0 + LabelSep xxx + ParSkip 0.4 + TopSep 0.4 + BottomSep 0 +End + +Style "Подпункт2" + Category "Без подразделов" + Margin Dynamic + LabelType Counter + LabelCounter point + KeepEmpty 1 + TocLevel 3 + LatexType Command + LatexName subpoint + NeedProtect 0 + NextNoIndent 0 + LabelSep xxx + ParSkip 0.4 + TopSep 0.4 + BottomSep 0 +End + +# Поскольку команда ESKDappendix содержит 2 параметра, а передать в команду через Lyx +# мы можем только один документ, то необходимо применить одну старую рыбацкую хитрость, +# которую практиковал мой дедушка. +# Объявим в преамбуле новую команду ESKDappendixOP и будем передавать в неё строку следующего +# вида: +# "{обязательное|рекомендуемое|справочное} Заголовок приложения" +# Используем пакет stringstrings. +# 1) Используя макрос \getaword выхватим первое слово из входящей строки будем использовать его как +# первый параметр для функции ESKDappendix. +# 2) Потом удалить из входящей строки первое слово (которое уже извлечено ранее) и остатки строки +# использовать как второй аргумент ESKDappendix. +# Вот такой я умник. + +#% Category Section +#% Margin Dynamic +#% LabelType Counter +#% LabelCounter section + +Style "Обязательное" + Category "Приложение" + Margin Dynamic + LabelType Static + LabelString "Прил. Обязат. " + LabelCounter appendix + TocLevel 1 + LatexType Command + LatexName ESKDappendixReq + NeedProtect 1 + NextNoIndent 1 + LabelSep xxx + ParSkip 0.4 + TopSep 1.3 + BottomSep 0.7 + ParSep 0.7 + Align Block + AlignPossible Block, Left + OptionalArgs 2 + Font + Series Bold + Size Larger + EndFont + + Preamble + \newcommand{\ESKDappendixReq}[1]{ + \ESKDappendix{"Обязательное"}{#1} + } + EndPreamble +End + +Style "Справочное" + CopyStyle "Обязательное" + LabelString "Прил. Справоч. " + LatexName ESKDappendixRef + + Preamble + \newcommand{\ESKDappendixRef}[1]{ + \ESKDappendix{"Справочное"}{#1} + } + EndPreamble +End + +Style "Рекомендуемое" + CopyStyle "Обязательное" + LabelString "Прил. Рекоменд. " + LatexName ESKDappendixRec + Preamble + \newcommand{\ESKDappendixRec}[1]{ + \ESKDappendix{"Рекомендуемое"}{#1} + } + EndPreamble +End + + +Input numarticle.inc diff --git a/eskdstarsections.inc b/eskdstarsections.inc new file mode 100644 index 0000000..abcca56 --- /dev/null +++ b/eskdstarsections.inc @@ -0,0 +1,94 @@ +# Standard textclass definition file. Taken from initial LyX source code +# Author : Matthias Ettrich +# Transposed by Pascal André +# 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 11 +#Style Part* +# CopyStyle Part +# Category Unnumbered +# Margin Static +# LatexName part* +# LabelType No_Label +# LabelCounter "" +#End + + +#Style Chapter* +# CopyStyle Chapter +# Category Unnumbered +# Margin Static +# LatexName chapter* +# LabelType No_Label +# LabelCounter "" +#End + + +Style Section* + CopyStyle "Раздел" + Category Unnumbered + Margin Static + LatexName ESKDstarsection + LabelType No_Label + LabelCounter "" + OptionalArgs 0 + OptionalArgs 0 + + Preamble + \newcommand{\ESKDstarsection}[1]{ + \addcontentsline{toc}{section}{#1} + \section*{#1} + } + EndPreamble + +End + + +#Style Subsection* +# CopyStyle Subsection +# Category Unnumbered +# Margin Static +# LatexName subsection* +# LabelType No_Label +# LabelCounter "" +# OptionalArgs 0 +#End + + +#Style Subsubsection* +# CopyStyle Subsubsection +# Category Unnumbered +# Margin Static +# LatexName subsubsection* +# LabelType No_Label +# LabelCounter "" +# OptionalArgs 0 +#End + + +#Style Paragraph* +# CopyStyle Paragraph +# Category Unnumbered +# Margin Static +# LatexName paragraph* +# LabelType No_Label +# LabelCounter "" +# OptionalArgs 0 +#End + + +#Style Subparagraph* +# CopyStyle Subparagraph +# Category Unnumbered +# Margin Static +# LatexName subparagraph* +# LabelType No_Label +# LabelCounter "" +# OptionalArgs 0 +#End diff --git a/eskdstruct.inc b/eskdstruct.inc new file mode 100644 index 0000000..2819776 --- /dev/null +++ b/eskdstruct.inc @@ -0,0 +1,60 @@ +# Standard textclass definition file. Taken from initial LyX source code +# Author : Matthias Ettrich +# Transposed by Pascal André +# Heavily modifed and enhanced by several developers. +# Title definitions moved to stdtitle.inc by Hartmut Goebel + +# This include files contains all layouts that handle the structure of +# a document, like abstract, bibliography and such. + + +Format 11 +Style Abstract + Margin Static + LatexType Environment + LatexName abstract + Category FrontMatter + NextNoIndent 1 + LeftMargin MMM + RightMargin MMM + ParIndent MM + ItemSep 0 + TopSep 0.7 + BottomSep 0.7 + ParSep 0 + Align Block + LabelType Centered_Top_Environment + LabelString "Abstract" + LabelBottomSep 0.5 + Font + Size Small + EndFont + LabelFont + Series Bold + Size Large + EndFont +End + + +Style Bibliography + Margin First_Dynamic + LatexType Bib_Environment + LatexName thebibliography + Category BackMatter + NextNoIndent 1 + 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 +End diff --git a/eskdtextnew.layout b/eskdtextnew.layout new file mode 100644 index 0000000..ed5d36a --- /dev/null +++ b/eskdtextnew.layout @@ -0,0 +1,23 @@ +#% Do not delete the line below; configure depends on this +# \LoadClass{eskdtext} +# \DeclareLaTeXClass[eskdtext]{eskdtext(new)} +# eskd textclass definition file. + +Format 11 +Input eskdclass.inc + +SecNumDepth 5 +TocDepth 5 + +NoStyle Chapter + + +Style Part + Align Left + AlignPossible Left + TopSep 2 + BottomSep 1.5 + Font + Size Larger + EndFont +End diff --git a/eskdtitle.inc b/eskdtitle.inc new file mode 100644 index 0000000..ee92a41 --- /dev/null +++ b/eskdtitle.inc @@ -0,0 +1,66 @@ +# Standard textclass definition file. Taken from initial LyX source code +# Author : Matthias Ettrich +# Transposed by Pascal André +# Heavily modifed and enhanced by several developers. +# Split from stdstruct.inc by Hartmut Goebel + +# This include files contains all layouts that handle the title area +# a document, like title, author and such. + + +Format 11 +Style Title + Margin Static + LatexType Command + Category FrontMatter + InTitle 1 + LatexName title + ParSkip 0.4 + ItemSep 0 + TopSep 0 + BottomSep 1 + ParSep 1 + Align Center + LabelType No_Label + Font + Size Largest + EndFont +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