# the author information area. There is a LaTeX 2.09 IEEEtran.sty available
# also but LyX doesn't support 2.09 stuff so don't get that one.
-Format 6
+Format 7
Style Standard
Margin Static
LatexType Paragraph
# abstract is command
-Format 6
+Format 7
Columns 2
Sides 2
SecNumDepth 3
# Author: Peter Sütterlin <pit@uni-sw.gwdg.de>
-Format 6
+Format 7
Style Subtitle
Margin Static
LatexType Command
# and reconfigure LyX (after running texhash, of course).
-Format 6
+Format 7
Columns 2
Sides 2
SecNumDepth 3
# Version 1.3 5/7/04 - Updated for AASTeX 5.2
-Format 6
+Format 7
Columns 1
Sides 1
#SecNumDepth 3
# Martin Vermeer <martin.vermeer@hut.fi>
-Format 6
+Format 7
Input agu_stdclass.inc
# Exclude higher, or equal, sections:
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
-Format 6
+Format 7
OutputType docbook
Columns 1
# This include file contains all the counters that are defined as standard
# in AGU-Article LyX layouts.
-Format 6
+Format 7
Counter
Name sect1
Within section
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
-Format 6
+Format 7
Input stdlists.inc
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
-Format 6
+Format 7
Input stdsections.inc
Style Part
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
-Format 6
+Format 7
Input stdtitle.inc
# Author: Martin Vermeer <martin.vermeer@hut.fi>
-Format 6
+Format 7
Input aguplus.inc
ClassOptions
# ftp://ftp.agu.org/journals/latex/journals
-Format 6
+Format 7
Input stdclass.inc
SecNumDepth 4
# Tinkered with Sep. '07 by Paul Rubin <rubin@msu.edu>
# Modularized Jan '08 by Richard Heck <rgheck@brown.edu>
-Format 6
+Format 7
Columns 1
Sides 2
PageStyle Headers
# Modularized Jan '08 by Richard Heck <rgheck@brown.edu>
-Format 6
+Format 7
Columns 1
Sides 2
PageStyle Headers
# Modularized Jan '08 by Richard Heck <rgheck@brown.edu>
# Including the maths stuff
-Format 6
+Format 7
# The AMS documentclasses use the package amsmath and provide the
# functionality of makeidx.sty.
# \DeclareLaTeXClass[apa,apacite.sty]{article (APA)}
# Author: Randy Gobbel <gobbel@andrew.cmu.edu>
-Format 6
+Format 7
Columns 1
Sides 1
PageStyle Headers
# Arabic article textclass definition file.
# Author: Dekel Tsur <dekel@math.tau.ac.il>
-Format 6
+Format 7
Input article
# Arabic article textclass definition file.
# Author: Uwe Stöhr (uwestoehr@web.de)
-Format 6
+Format 7
Input article
Style LatinOn
# Transposed by Pascal André <andre@via.ecp.fr>
# Heavily modifed and enhanced by serveral developers.
-Format 6
+Format 7
Input stdclass.inc
SecNumDepth 3
# $Header: /cvsroot/latex-beamer/latex-beamer/lyx/layouts/beamer.layout,v 1.16 2004/10/07 20:53:07 tantau Exp $
# Includes
-Format 6
+Format 7
Input stdcounters.inc
Input stdinsets.inc
# Heavily modifed and enhanced by serveral developers.
-Format 6
+Format 7
Input stdclass.inc
Input numreport.inc
#DescriptionEnd
# Author: Uwe Stöhr <uwestoehr@web.de>
-Format 6
+Format 7
-Preamble
+AddToPreamble
\usepackage{braille}
\newcommand{\braillenormal}[1]
{\setlength{\brailleunit}{2.4mm}\braille{#1}}
# For theater plays
-Format 6
+Format 7
Columns 1
Sides 1
SecNumDepth 2
# \vspace*{-0.5in})
#
-Format 6
+Format 7
Requires chess
# Springer's cl2emult textclass definition file.
# Author : André Poenitz
-Format 6
+Format 7
Columns 1
Sides 1
SecNumDepth 2
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
-Format 6
+Format 7
Input lyxmacros.inc
Style Code
# Author : José Abílio Oliveira Matos <jamatos@lyx.org>
# Character Styles definition
-Format 6
+Format 7
InsetLayout Element:Filename
LyXType element
LabelString Filename
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
-Format 6
+Format 7
OutputType docbook
Columns 1
# This include file contains all the counters that are defined as standard
# in Docbook LyX layouts.
-Format 6
+Format 7
Counter
Name sect1
Within chapter
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
-Format 6
+Format 7
Input stdlayouts.inc
Style Literal
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
-Format 6
+Format 7
Input stdlists.inc
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
-Format 6
+Format 7
Input stdsections.inc
Style Part
# modifying the style of the regular sectioning layouts.
-Format 6
+Format 7
Style Part*
CopyStyle Part
Margin Static
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
-Format 6
+Format 7
Input stdstruct.inc
Style Abstract
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
-Format 6
+Format 7
Input stdtitle.inc
# Modifies only some things from letter.layout
-Format 6
+Format 7
Input letter.layout
# Author : Jose' Matos <jamatos@lyx.org>
# hacked for books: Luc Abom <luc@abom.com>
-Format 6
+Format 7
Input report
Input db_stdclass.inc
# DocBook textclass definition file.
# Author : Jose' Matos <jamatos@lyx.org>
-Format 6
+Format 7
Input db_stdclass.inc
Style Title
# DocBook textclass definition file.
# Author : Jose' Matos <jamatos@lyx.org>
-Format 6
+Format 7
Input db_stdclass.inc
Style Title
# DocBook textclass definition file.
# Author : Jose' Matos <jamatos@lyx.org>
-Format 6
+Format 7
Input db_stdclass.inc
# Exclude higher, or equal, sections:
# Author : Herbert Voss <voss@lyx.org> 2001/08/13
-Format 6
+Format 7
Columns 1
Sides 2
SecNumDepth -1 # no counting
# Converted article -> egs Martin Vermeer
-Format 6
+Format 7
Columns 2
Sides 1
PageStyle Plain
# numbered sections, as does the class file.
-Format 6
+Format 7
Columns 1
Sides 2
PageStyle headings
#\theendnotes in ERT where you want the endnotes to appear.
#DescriptionEnd
-Format 6
+Format 7
InsetLayout Custom:Endnote
LyXType custom
# Based on LyX article class; modified to support ENTCS class
# Reuben Thomas (rrt@sc3d.org) 27/5-2/6/01
-Format 6
+Format 7
Input article.layout
# only font size 11pt is really available
# General textclass parameters
-Format 6
+Format 7
Columns 1
Sides 1
SecNumDepth -1
# \DeclareLaTeXClass[extarticle]{article (more font sizes)}
# Herbert Voss <voss@lyx.org>
-Format 6
+Format 7
Input article.layout
# change available fontsizes
# Extended book textclass definition file.
# Herbert Voss <voss@lyx.org>
-Format 6
+Format 7
Input book.layout
# change available fontsizes
# Extended article textclass definition file.
# Herbert Voss <voss@lyx.org>
-Format 6
+Format 7
Input letter.layout
# change available fontsizes
# Extented report textclass definition file.
# Herbert Voss <voss@lyx.org>
-Format 6
+Format 7
Input report.layout
# change available fontsizes
# To do: Define class specific options.
-Format 6
+Format 7
Columns 1
Sides 1
#in ERT where you want the endnotes to appear.
#DescriptionEnd
-Format 6
+Format 7
Requires endnotes
-Preamble
+AddToPreamble
\let\footnote=\endnote
EndPreamble
# Letter textclass definition file.
# Author : Thomas Hartkens <thomas@hartkens.de>
-Format 6
+Format 7
Input stdinsets.inc
Input stdfloats.inc
Input stdcounters.inc
# Letter textclass definition file.
# Author : Thomas Hartkens <thomas@hartkens.de>
-Format 6
+Format 7
Input stdinsets.inc
Input stdfloats.inc
Input stdcounters.inc
Input stdinsets.inc
# General textclass parameters
-Format 6
+Format 7
Columns 1
Sides 1
PageStyle Empty
#Copyright Peter R. Wilson.
#Released under the LaTeX Project Public License.
-Format 6
+Format 7
Style Hanging
LatexType Environment
# Author: Dekel Tsur <dekel@math.tau.ac.il>
# Few changes by Baruch Even <baruch.even@writeme.com>
-Format 6
+Format 7
Input article
Preamble
# Hebrew letter textclass definition file.
# Author: Dekel Tsur <dekel@math.tau.ac.il>
-Format 6
+Format 7
Input letter
# Based on course given by Lars Davidson
-Format 6
+Format 7
Columns 1
Sides 1
SecNumDepth 2
#
# Version 1 2006-04-09 - First version, for LyX 1.4.0.
-Format 6
+Format 7
Input stdclass.inc
Input numarticle.inc
# Version 3 2006-04-09 - Updated for LyX 1.4.0; all environments defined by
# ijmpd are now supported by LyX.
-Format 6
+Format 7
Input stdclass.inc
Input numarticle.inc
# IOP article textclass definition file.
# Author: Uwe Stöhr (uwestoehr@web.de)
-Format 6
+Format 7
Columns 1
Sides 1
# Heavily modifed and enhanced by serveral developers.
# Input general definitions
-Format 6
+Format 7
Input stdclass.inc
Sides 2
Columns 2
# AGUplus JGR textclass definition file.
# Author: Martin Vermeer <martin.vermeer@hut.fi>
-Format 6
+Format 7
Input aguplus.inc
ClassOptions
# 2003-03-03 Updated for lyx 1.3.0.
-Format 6
+Format 7
Columns 1
Sides 2
SecNumDepth 4
# Latex8 textclass definition file.
# Author : Allan Rae <rae@elec.uq.edu.au>
-Format 6
+Format 7
Preamble
\usepackage{latex8}
\usepackage{times}
# Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
# Heavily modifed and enhanced by serveral developers.
-Format 6
+Format 7
Input stdinsets.inc
Input stdletter.inc
Input stdlists.inc
# Author: Jürgen Spitzmüller <spitz@lyx.org>
-Format 6
+Format 7
# single numbered example with covington.sty
Style Numbered_Example_(multiline)
# literate-article textclass definition file.
# Author : Edmar Wienskoski Jr. <edmar-w-jr@technologist.com>
-Format 6
+Format 7
Preamble
\usepackage{noweb}
EndPreamble
# literate-book textclass definition file.
# Author : Edmar Wienskoski Jr. <edmar-w-jr@technologist.com>
-Format 6
+Format 7
Preamble
\usepackage{noweb}
EndPreamble
# literate-report textclass definition file.
# Author : Edmar Wienskoski Jr. <edmar-w-jr@technologist.com>
-Format 6
+Format 7
Preamble
\usepackage{noweb}
EndPreamble
# resembles more closely the produced paper doc (more WYSIWYG)
#
-Format 6
+Format 7
OutputType literate
Style Scrap
# Modified for LyX 12 by Jean-Marc Lasgouttes and MV.
-Format 6
+Format 7
Columns 1
Sides 1
PageStyle Plain
# Author : Martin vermeer <martin.vermeer@hut.fi>
-Format 6
+Format 7
InsetLayout CharStyle:Noun
LyxType charstyle
# Author : Herbert Voss <voss@perce.de> 2001/08/13
-Format 6
+Format 7
Columns 2
Sides 2
#SecNumDepth # no counting
# be removed later.
-Format 6
+Format 7
Style LyX-Code
Category MainText
Margin Static
# Author : José Matos <jamatos@novalis.fc.up.pt>
-Format 6
+Format 7
Columns 1
Sides 1
PageStyle Plain
# feel free to contribute missing features!
-Format 6
+Format 7
Columns 1
Sides 2
SecNumDepth 2
# Redefines several insets as being Minimalistic, for use by old-timers.
#DescriptionEnd
-Format 6
+Format 7
InsetLayout Index
Decoration minimalistic
# General textclass parameters
-Format 6
+Format 7
Columns 1
Sides 1
SecNumDepth -1
# Transposed by Tomasz Łuczak <tlu@technodat.com.pl>
# Heavily modifed and enhanced by several developers.
-Format 6
+Format 7
Input stdclass.inc
NoStyle Chapter
# Transposed by Tomasz Łuczak <tlu@technodat.com.pl>
# Heavily modifed and enhanced by serveral developers.
-Format 6
+Format 7
Input stdclass.inc
Input numreport.inc
# Transposed by Tomasz Łuczak <tlu@technodat.com.pl>
# Heavily modifed and enhanced by serveral developers.
-Format 6
+Format 7
Input stdclass.inc
Input numreport.inc
# Author : André Pönitz
# This include file contains label definitions for an article-like numbering.
-Format 6
+Format 7
# appendix applies to sections.
Counter
# Author : André Pönitz
# This include file contains label definitions for a report-like numbering.
-Format 6
+Format 7
Style Part
TocLevel -1
# This include files contains label definitions for a article-like numbering.
-Format 6
+Format 7
Style Section
LabelType Counter
LabelCounter section
# Created by Jean-Marc Lasgouttes (Jean-Marc.Lasgouttes@inria.fr)
-Format 6
+Format 7
Columns 1
Sides 1
SecNumDepth 3
###
# General textclass parameters
###
-Format 6
+Format 7
Columns 1
Sides 1
Provides url 1
# Transposed by Pascal André <andre@via.ecp.fr>
# Heavily modifed and enhanced by serveral developers.
-Format 6
+Format 7
Input stdclass.inc
Input numreport.inc
# Amir Karger (LyX v11.34 style modifications - using changes
# made by Jean-Marc Lasgouttes to amsart.layout)
-Format 6
+Format 7
Columns 1
Sides 1
PageStyle Headers
# Amir Karger (RevTeX 4 beta) 9/1999, 7/2000
-Format 6
+Format 7
Columns 1
Sides 1
PageStyle Headers
# KOMA scrartcl textclass definition file.
# Bernd Rellermeyer <100.41728@germanynet.de>, 1998/7/11.
-Format 6
+Format 7
Input scrclass.inc
SecNumDepth 3
# KOMA scrbook textclass definition file.
# Bernd Rellermeyer <100.41728@germanynet.de>, 1998/7/11.
-Format 6
+Format 7
Input scrclass.inc
Input numreport.inc
# Guenter Milde <g.milde web.de>
-Format 6
+Format 7
SecNumDepth 2
TocDepth 2
DefaultStyle Standard
# KOMA scrlettr textclass definition file.
# Bernd Rellermeyer <100.41728@germanynet.de>, 1999/2/17.
-Format 6
+Format 7
Style Standard
LatexName dummy
ParSep 0.4
# Juergen Spitzmueller <j.spitzmueller@gmx.de>, 2003/2/17.
# Uwe Stöhr <uwestoehr@web.de>, 2008/2/03.
-Format 6
+Format 7
Style Standard
LatexName dummy
ParSep 0.4
# KOMA scrreprt textclass definition file.
# Bernd Rellermeyer <100.41728@germanynet.de>, 1998/7/11.
-Format 6
+Format 7
Input scrclass.inc
Input numreport.inc
# Initial attemt at makeing a LyX layout file for the seminar class.
# Author : Lars Gullik Bjønnes <larsbj@lyx.org>
-Format 6
+Format 7
Input stdclass.inc
NoStyle Chapter
# Cut & paste from various LyX layouts plus some minor modifications
# Author : Kornelia Pietsch <pietsch@mathematik.tu-chemnitz.de>
-Format 6
+Format 7
Columns 1
Sides 1
SecNumDepth 2
# Author : Jean-Marc Lasgouttes (Jean-Marc.Lasgouttes@inria.fr)
-Format 6
+Format 7
Columns 1
Sides 1
SecNumDepth -1
#
-Format 6
+Format 7
Columns 1
Sides 1
PageStyle Plain
# to be used with the spie.cls LaTex-style available at
# http://public.lanl.gov/kmh/spie/
-Format 6
+Format 7
Input stdclass.inc
NoStyle Chapter
# Author : Martin vermeer <martin.vermeer@hut.fi>
# Character Styles definition
-Format 6
+Format 7
# Error fallback:
InsetLayout CharStyle
# ``standard'' layouts, like article and friends.
-Format 6
+Format 7
Columns 1
Sides 1
SecNumDepth 2
# in most LyX layouts.
-Format 6
+Format 7
Counter
Name part
LabelString "\Roman{part}"
# Author : Martin vermeer <martin.vermeer@tkk.fi>
# Custom Inset layouts definition
-Format 6
+Format 7
# Error fallback:
InsetLayout Custom
# in most LyX layouts.
-Format 6
+Format 7
Float
Type table
GuiName Table
# be comma-separated.
#End
-Format 6
+Format 7
Provides stdinsets 1
# quotations and such.
-Format 6
+Format 7
Style Quotation
Category MainText
Margin Static
# Heavily modifed and enhanced by several developers.
-Format 6
+Format 7
Columns 1
Sides 1
PageStyle Empty
# This include files contains various standard environments for lists.
-Format 6
+Format 7
Style Itemize
Category List
Margin Static
# commands that are useful for article-like document classes, but not
# for letters.
-Format 6
+Format 7
Style Part
Category Section
Margin Dynamic
# modifying the style of the regular sectioning layouts.
-Format 6
+Format 7
Style Part*
CopyStyle Part
Category Unnumbered
# a document, like abstract, bibliography and such.
-Format 6
+Format 7
Style Abstract
Margin Static
LatexType Environment
# a document, like title, author and such.
-Format 6
+Format 7
Style Title
Margin Static
LatexType Command
# see www.springer.de/author/tex/help-journals.html for class files
#
# The standard Springer Journal sections
-Format 6
+Format 7
Input svjour.inc
ClassOptions
# see www.springer.de/author/tex/help-journals.html for class files
-Format 6
+Format 7
Input svjour.inc
# see www.springer.de/author/tex/help-journals.html for class files
-Format 6
+Format 7
Columns 2
Sides 1
PageStyle Plain
# see www.springer.de/author/tex/help-journals.html for class files
-Format 6
+Format 7
Input svjour.inc
ClassOptions
# Tinkered with Sep. '07 by Paul Rubin <rubin@msu.edu>
# Modularized Jan 08 by Richard Heck <rgheck@comcast.net>
-Format 6
+Format 7
Requires amsmath
# - Proof
# - Case (regular only -- defined as an enumeration)
-Format 6
+Format 7
Style Theorem
Category Theorem
# Tinkered with Sep. '07 by Paul Rubin <rubin@msu.edu>
# Modularized Jan 08 by Richard Heck <rgheck@comcast.net>
-Format 6
+Format 7
Requires amsmath,amsthm
Name theorem
End
-Preamble
+AddToPreamble
\theoremstyle{plain}
EndPreamble
# Author: Richard Heck <rgheck@comcast.net>
-Format 6
+Format 7
Counter
Name theorem
# Sets the order of the main theorem environments
# Author: Richard Heck
-Format 6
+Format 7
#Get the order right
Style Theorem
# Tinkered with Sep. '07 by Paul Rubin <rubin@msu.edu>
# Modularized Jan 08 by Richard Heck <rgheck@comcast.net>
-Format 6
+Format 7
Style Proof
Category Theorem
# Author: Richard Heck <rgheck@comcast.net>
-Format 6
+Format 7
Counter
Name theorem
# Sets the order of the main theorem environments
# Author: Richard Heck
-Format 6
+Format 7
Style Theorem
CopyStyle Theorem*
# - Claim
# - Proof
-Format 6
+Format 7
Style Theorem*
Category Theorem
# Author: Richard Heck <rgheck@comcast.net>
-Format 6
+Format 7
Input theorems-order.inc
Input theorems-starred.inc
# Author: Richard Heck <rgheck@comcast.net>
-Format 6
+Format 7
Counter
Name theorem
# - Proof
# - Case (regular only -- defined as an enumeration)
-Format 6
+Format 7
Style Theorem
Category Theorem
import os, re, string, sys
-currentFormat = 6
+# incremented 24 March 2008 by rgh
+# AddToPreamble tag added to layout files
+currentFormat = 7
def usage(prog_name):
i += 1
continue
+ if format == 6:
+ i += 1
+ continue
+
if format == 5:
i += 1
continue
};
-int const FORMAT = 6;
+int const FORMAT = 7;
bool layout2layout(FileName const & filename, FileName const & tempfile)
TC_NOFLOAT,
TC_TITLELATEXNAME,
TC_TITLELATEXTYPE,
- TC_FORMAT
+ TC_FORMAT,
+ TC_ADDTOPREAMBLE
};
namespace {
keyword_item textClassTags[] = {
+ { "addtopreamble", TC_ADDTOPREAMBLE },
{ "classoptions", TC_CLASSOPTIONS },
{ "columns", TC_COLUMNS },
{ "counter", TC_COUNTER },
preamble_ = from_utf8(lexrc.getLongString("EndPreamble"));
break;
+ case TC_ADDTOPREAMBLE:
+ preamble_ += from_utf8(lexrc.getLongString("EndPreamble"));
+ break;
+
case TC_PROVIDES: {
lexrc.next();
string const feature = lexrc.getString();