New framework for declaring generic features in textclasses.

* src/LaTeXFeatures.C (mustProvide): new method; returns true when
	isRequired is true and the feature is not provided by the
	textclass. 
	(getPackages, getLyXSGMLEntities): use mustProvide when relevant.

	* src/bufferparams.C (getEngine):
	* src/buffer.C (validate): adapt to change below.

	* src/lyxtextclass.C (read): replace tags ProvidesNatbib,
	ProvidesMakeidx, ProvidesUrl and ProvidesAmsmath by a generic
	"Provides".
	(provides): take a string as argument.
	
	* lib/scripts/layout2layout.py (convert): convert "ProvidesXxx" tags
	to "Provides xxx".

	* lib/layouts/*: update to format 4.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17740 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2007-04-06 09:02:23 +00:00
parent 10271ff520
commit 04efe3c40a
119 changed files with 206 additions and 224 deletions

View File

@ -14,7 +14,7 @@
# 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 3
Format 4
Style Standard
Margin Static
LatexType Paragraph

View File

@ -11,7 +11,7 @@
# abstract is command
Format 3
Format 4
Columns 2
Sides 2
SecNumDepth 3

View File

@ -5,7 +5,7 @@
# Author: Peter Sütterlin <pit@uni-sw.gwdg.de>
Format 3
Format 4
Style Subtitle
Margin Static
LatexType Command

View File

@ -14,7 +14,7 @@
# and reconfigure LyX (after running texhash, of course).
Format 3
Format 4
Columns 2
Sides 2
SecNumDepth 3

View File

@ -30,15 +30,15 @@
# Version 1.3 5/7/04 - Updated for AASTeX 5.2
Format 3
Format 4
Columns 1
Sides 1
#SecNumDepth 3
TocDepth 0
PageStyle Plain
ProvidesAmsmath 1
ProvidesNatbib 1
ProvidesUrl 1
Provides amsmath 1
Provides natbib 1
Provides url 1
ClassOptions

View File

@ -5,7 +5,7 @@
# Martin Vermeer <martin.vermeer@hut.fi>
Format 3
Format 4
Input agu_stdclass.inc
# Exclude higher, or equal, sections:

View File

@ -6,7 +6,7 @@
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 3
Format 4
OutputType docbook
Columns 1

View File

@ -4,7 +4,7 @@
# This include file contains all the counters that are defined as standard
# in AGU-Article LyX layouts.
Format 3
Format 4
Counter
Name sect1
Within section

View File

@ -6,7 +6,7 @@
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 3
Format 4
Input stdlists.inc

View File

@ -6,7 +6,7 @@
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 3
Format 4
Input stdsections.inc
Style Part

View File

@ -6,7 +6,7 @@
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 3
Format 4
Input stdtitle.inc

View File

@ -4,7 +4,7 @@
# Author: Martin Vermeer <martin.vermeer@hut.fi>
Format 3
Format 4
Input aguplus.inc
ClassOptions

View File

@ -6,7 +6,7 @@
# ftp://ftp.agu.org/journals/latex/journals
Format 3
Format 4
Input stdclass.inc
SecNumDepth 4

View File

@ -8,7 +8,7 @@
# Probably broken by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
# modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
Format 3
Format 4
Input amsart.layout
# Change the definitions of the theorem-like environments to get unnumbered

View File

@ -12,7 +12,7 @@
# Probably broken by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
# modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
Format 3
Format 4
Input amsart.layout
# Change the definitions of the theorem-like environments to get a

View File

@ -7,7 +7,7 @@
# Probably broken by Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
# modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
Format 3
Format 4
Columns 1
Sides 2
PageStyle Headers

View File

@ -8,7 +8,7 @@
# modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
Format 3
Format 4
Columns 1
Sides 2
PageStyle Headers

View File

@ -3,13 +3,13 @@
# modified and modularized by Emmanuel GUREGHIAN <gureghia@boston.bertin.fr>
# Including the maths stuff
Format 3
Format 4
Input amsmaths.inc
# The AMS documentclasses use the package amsmath and provide the
# functionality of makeidx.sty.
ProvidesAmsmath 1
ProvidesMakeidx 1
Provides amsmath 1
Provides makeidx 1
# the environments copied from the old amsart.layout are:

View File

@ -29,7 +29,7 @@
# - Conclusion
Format 3
Format 4
Style Theorem
LatexName thm*
LabelString "Theorem."

View File

@ -28,7 +28,7 @@
# - Conclusion
Format 3
Format 4
Style Theorem
Preamble
\theoremstyle{plain}

View File

@ -47,7 +47,7 @@
# - Fact
# - Fact*
Format 3
Format 4
Preamble
\theoremstyle{plain}
\newtheorem{thm}{Theorem}[section]

View File

@ -2,7 +2,7 @@
# \DeclareLaTeXClass[apa,apacite.sty]{article (APA)}
# Author: Randy Gobbel <gobbel@andrew.cmu.edu>
Format 3
Format 4
Columns 1
Sides 1
PageStyle Headers

View File

@ -3,5 +3,5 @@
# Arabic article textclass definition file.
# Author: Dekel Tsur <dekel@math.tau.ac.il>
Format 3
Format 4
Input article

View File

@ -5,7 +5,7 @@
# Transposed by Pascal André <andre@via.ecp.fr>
# Heavily modifed and enhanced by serveral developers.
Format 3
Format 4
Input stdclass.inc
SecNumDepth 3

View File

@ -5,7 +5,7 @@
# $Header: /cvsroot/latex-beamer/latex-beamer/lyx/layouts/beamer.layout,v 1.16 2004/10/07 20:53:07 tantau Exp $
# Includes
Format 3
Format 4
Input stdcounters.inc
# General textclass parameters

View File

@ -6,7 +6,7 @@
# Heavily modifed and enhanced by serveral developers.
Format 3
Format 4
Input stdclass.inc
Input numreport.inc

View File

@ -3,7 +3,7 @@
# For theater plays
Format 3
Format 4
Columns 1
Sides 1
SecNumDepth 2

View File

@ -16,7 +16,7 @@
# \vspace*{-0.5in})
#
Format 3
Format 4
Preamble
\usepackage[ps,mover]{lyxskak}
%%% initialize board

View File

@ -3,7 +3,7 @@
# Springer's cl2emult textclass definition file.
# Author : André Poenitz
Format 3
Format 4
Columns 1
Sides 1
SecNumDepth 2

View File

@ -4,7 +4,7 @@
# Author : Jean-Marc Lasgouttes (Jean-Marc.Lasgouttes@inria.fr)
Format 3
Format 4
Columns 1
Sides 1
SecNumDepth -1

View File

@ -5,7 +5,7 @@
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 3
Format 4
Input lyxmacros.inc
Style Code

View File

@ -2,7 +2,7 @@
# Author : José Abílio Oliveira Matos <jamatos@lyx.org>
# Character Styles definition
Format 3
Format 4
CharStyle Filename
LatexType Command
LatexName filename

View File

@ -5,7 +5,7 @@
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 3
Format 4
OutputType docbook
Columns 1

View File

@ -4,7 +4,7 @@
# This include file contains all the counters that are defined as standard
# in Docbook LyX layouts.
Format 3
Format 4
Counter
Name sect1
Within chapter

View File

@ -5,7 +5,7 @@
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 3
Format 4
Input stdlayouts.inc
Style Literal

View File

@ -5,7 +5,7 @@
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 3
Format 4
Input stdlists.inc

View File

@ -6,7 +6,7 @@
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 3
Format 4
Input stdsections.inc
Style Part

View File

@ -9,7 +9,7 @@
# modifying the style of the regular sectioning layouts.
Format 3
Format 4
Style Part*
CopyStyle Part
Margin Static

View File

@ -5,7 +5,7 @@
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 3
Format 4
Input stdstruct.inc
Style Abstract

View File

@ -6,7 +6,7 @@
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 3
Format 4
Input stdtitle.inc

View File

@ -6,7 +6,7 @@
# Modifies only some things from letter.layout
Format 3
Format 4
Input letter.layout

View File

@ -4,7 +4,7 @@
# Author : Jose' Matos <jamatos@lyx.org>
# hacked for books: Luc Abom <luc@abom.com>
Format 3
Format 4
Input report
Input db_stdclass.inc

View File

@ -3,7 +3,7 @@
# DocBook textclass definition file.
# Author : Jose' Matos <jamatos@lyx.org>
Format 3
Format 4
Input db_stdclass.inc
Style Title

View File

@ -3,7 +3,7 @@
# DocBook textclass definition file.
# Author : Jose' Matos <jamatos@lyx.org>
Format 3
Format 4
Input db_stdclass.inc
Style Title

View File

@ -3,7 +3,7 @@
# DocBook textclass definition file.
# Author : Jose' Matos <jamatos@lyx.org>
Format 3
Format 4
Input db_stdclass.inc
# Exclude higher, or equal, sections:

View File

@ -6,7 +6,7 @@
# Author : Herbert Voss <voss@lyx.org> 2001/08/13
Format 3
Format 4
Columns 1
Sides 2
SecNumDepth -1 # no counting

View File

@ -8,11 +8,11 @@
# Converted article -> egs Martin Vermeer
Format 3
Format 4
Columns 2
Sides 1
PageStyle Plain
ProvidesNatbib 1
Provides natbib 1
Style Standard

View File

@ -22,7 +22,7 @@
# numbered sections, as does the class file.
Format 3
Format 4
Columns 1
Sides 2
PageStyle headings

View File

@ -3,7 +3,7 @@
# Based on LyX article class; modified to support ENTCS class
# Reuben Thomas (rrt@sc3d.org) 27/5-2/6/01
Format 3
Format 4
Input article.layout
# only font size 11pt is really available

View File

@ -5,7 +5,7 @@
# General textclass parameters
Format 3
Format 4
Columns 1
Sides 1
SecNumDepth -1

View File

@ -2,7 +2,7 @@
# \DeclareLaTeXClass{extarticle}
# Herbert Voss <voss@lyx.org>
Format 3
Format 4
Input article.layout
# change available fontsizes

View File

@ -3,7 +3,7 @@
# Extended book textclass definition file.
# Herbert Voss <voss@lyx.org>
Format 3
Format 4
Input book.layout
# change available fontsizes

View File

@ -3,7 +3,7 @@
# Extended article textclass definition file.
# Herbert Voss <voss@lyx.org>
Format 3
Format 4
Input letter.layout
# change available fontsizes

View File

@ -3,7 +3,7 @@
# Extented report textclass definition file.
# Herbert Voss <voss@lyx.org>
Format 3
Format 4
Input report.layout
# change available fontsizes

View File

@ -6,7 +6,7 @@
# To do: Define class specific options.
Format 3
Format 4
Columns 1
Sides 1

View File

@ -3,7 +3,7 @@
# Letter textclass definition file.
# Author : Thomas Hartkens <thomas@hartkens.de>
Format 3
Format 4
Input stdfloats.inc
Input stdcounters.inc

View File

@ -3,7 +3,7 @@
# Letter textclass definition file.
# Author : Thomas Hartkens <thomas@hartkens.de>
Format 3
Format 4
Input stdfloats.inc
Input stdcounters.inc

View File

@ -10,7 +10,7 @@
# General textclass parameters
Format 3
Format 4
Columns 1
Sides 1
PageStyle Empty

View File

@ -4,7 +4,7 @@
# Author: Dekel Tsur <dekel@math.tau.ac.il>
# Few changes by Baruch Even <baruch.even@writeme.com>
Format 3
Format 4
Input article
Preamble

View File

@ -3,7 +3,7 @@
# Hebrew letter textclass definition file.
# Author: Dekel Tsur <dekel@math.tau.ac.il>
Format 3
Format 4
Input letter

View File

@ -15,7 +15,7 @@
# Based on course given by Lars Davidson
Format 3
Format 4
Columns 1
Sides 1
SecNumDepth 2

View File

@ -9,7 +9,7 @@
#
# Version 1 2006-04-09 - First version, for LyX 1.4.0.
Format 3
Format 4
Input stdclass.inc
Input numarticle.inc

View File

@ -12,7 +12,7 @@
# Version 3 2006-04-09 - Updated for LyX 1.4.0; all environments defined by
# ijmpd are now supported by LyX.
Format 3
Format 4
Input stdclass.inc
Input numarticle.inc

View File

@ -8,7 +8,7 @@
# Heavily modifed and enhanced by serveral developers.
# Input general definitions
Format 3
Format 4
Input stdclass.inc
Sides 2
Columns 2

View File

@ -3,7 +3,7 @@
# AGUplus JGR textclass definition file.
# Author: Martin Vermeer <martin.vermeer@hut.fi>
Format 3
Format 4
Input aguplus.inc
ClassOptions

View File

@ -14,7 +14,7 @@
# 2003-03-03 Updated for lyx 1.3.0.
Format 3
Format 4
Columns 1
Sides 2
SecNumDepth 4

View File

@ -3,7 +3,7 @@
# Latex8 textclass definition file.
# Author : Allan Rae <rae@elec.uq.edu.au>
Format 3
Format 4
Preamble
\usepackage{latex8}
\usepackage{times}

View File

@ -4,7 +4,7 @@
# Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
# Heavily modifed and enhanced by serveral developers.
Format 3
Format 4
Input stdletter.inc
Input stdlists.inc
Input lyxmacros.inc

View File

@ -3,7 +3,7 @@
# literate-article textclass definition file.
# Author : Edmar Wienskoski Jr. <edmar-w-jr@technologist.com>
Format 3
Format 4
Preamble
\usepackage{noweb}
EndPreamble

View File

@ -3,7 +3,7 @@
# literate-book textclass definition file.
# Author : Edmar Wienskoski Jr. <edmar-w-jr@technologist.com>
Format 3
Format 4
Preamble
\usepackage{noweb}
EndPreamble

View File

@ -3,7 +3,7 @@
# literate-report textclass definition file.
# Author : Edmar Wienskoski Jr. <edmar-w-jr@technologist.com>
Format 3
Format 4
Preamble
\usepackage{noweb}
EndPreamble

View File

@ -6,7 +6,7 @@
# resembles more closely the produced paper doc (more WYSIWYG)
#
Format 3
Format 4
OutputType literate
Style Scrap

View File

@ -14,7 +14,7 @@
# Modified for LyX 12 by Jean-Marc Lasgouttes and MV.
Format 3
Format 4
Columns 1
Sides 1
PageStyle Plain

View File

@ -5,7 +5,7 @@
# Author : Herbert Voss <voss@perce.de> 2001/08/13
Format 3
Format 4
Columns 2
Sides 2
#SecNumDepth # no counting

View File

@ -8,7 +8,7 @@
# be removed later.
Format 3
Format 4
Style LyX-Code
Margin Static
LatexType Environment

View File

@ -4,7 +4,7 @@
# Author : José Matos <jamatos@novalis.fc.up.pt>
Format 3
Format 4
Columns 1
Sides 1
PageStyle Plain

View File

@ -6,14 +6,14 @@
# feel free to contribute missing features!
Format 3
Format 4
Columns 1
Sides 2
SecNumDepth 2
TocDepth 2
DefaultStyle Standard
PageStyle Headings
ProvidesMakeidx 1
Provides makeidx 1
ClassOptions

View File

@ -5,7 +5,7 @@
# General textclass parameters
Format 3
Format 4
Columns 1
Sides 1
SecNumDepth -1

View File

@ -5,7 +5,7 @@
# Transposed by Tomasz £uczak <tlu@technodat.com.pl>
# Heavily modifed and enhanced by several developers.
Format 3
Format 4
Input stdclass.inc
NoStyle Chapter

View File

@ -5,7 +5,7 @@
# Transposed by Tomasz £uczak <tlu@technodat.com.pl>
# Heavily modifed and enhanced by serveral developers.
Format 3
Format 4
Input stdclass.inc
Sides 2

View File

@ -5,7 +5,7 @@
# Transposed by Tomasz £uczak <tlu@technodat.com.pl>
# Heavily modifed and enhanced by serveral developers.
Format 3
Format 4
Input stdclass.inc

View File

@ -1,7 +1,7 @@
# Author : André Pönitz
# This include file contains label definitions for an article-like numbering.
Format 3
Format 4
Style Part
LabelType Counter
LabelCounter part

View File

@ -1,7 +1,7 @@
# Author : André Pönitz
# This include file contains label definitions for a report-like numbering.
Format 3
Format 4
Input numarticle.inc
Style Part

View File

@ -2,7 +2,7 @@
# This include files contains label definitions for a article-like numbering.
Format 3
Format 4
Style Section
LabelType Counter
LabelCounter section

View File

@ -4,7 +4,7 @@
# Created by Jean-Marc Lasgouttes (Jean-Marc.Lasgouttes@inria.fr)
Format 3
Format 4
Columns 1
Sides 1
SecNumDepth 3

View File

@ -5,7 +5,7 @@
# Transposed by Pascal André <andre@via.ecp.fr>
# Heavily modifed and enhanced by serveral developers.
Format 3
Format 4
Input stdclass.inc
Input numreport.inc

View File

@ -9,7 +9,7 @@
# Amir Karger (LyX v11.34 style modifications - using changes
# made by Jean-Marc Lasgouttes to amsart.layout)
Format 3
Format 4
Columns 1
Sides 1
PageStyle Headers

View File

@ -10,12 +10,12 @@
# Amir Karger (RevTeX 4 beta) 9/1999, 7/2000
Format 3
Format 4
Columns 1
Sides 1
PageStyle Headers
ProvidesNatbib 1
ProvidesUrl 1
Provides natbib 1
Provides url 1
# Default textclass options. The user may need to modify this.
ClassOptions

View File

@ -3,7 +3,7 @@
# KOMA scrartcl textclass definition file.
# Bernd Rellermeyer <100.41728@germanynet.de>, 1998/7/11.
Format 3
Format 4
Input scrclass.inc
SecNumDepth 3

View File

@ -3,7 +3,7 @@
# KOMA scrbook textclass definition file.
# Bernd Rellermeyer <100.41728@germanynet.de>, 1998/7/11.
Format 3
Format 4
Input scrclass.inc
Input numreport.inc

View File

@ -7,7 +7,7 @@
# Guenter Milde <g.milde web.de>
Format 3
Format 4
SecNumDepth 2
TocDepth 2
DefaultStyle Standard

View File

@ -3,7 +3,7 @@
# KOMA scrlettr textclass definition file.
# Bernd Rellermeyer <100.41728@germanynet.de>, 1999/2/17.
Format 3
Format 4
Style Standard
LatexName dummy
ParSep 0.4

View File

@ -3,7 +3,7 @@
# KOMA scrlettr2 textclass definition file.
# Juergen Spitzmueller <j.spitzmueller@gmx.de>, 2003/2/17.
Format 3
Format 4
Style Standard
LatexName dummy
ParSep 0.4

View File

@ -3,7 +3,7 @@
# KOMA scrreprt textclass definition file.
# Bernd Rellermeyer <100.41728@germanynet.de>, 1998/7/11.
Format 3
Format 4
Input scrclass.inc
Input numreport.inc

View File

@ -3,7 +3,7 @@
# Initial attemt at makeing a LyX layout file for the seminar class.
# Author : Lars Gullik Bjønnes <larsbj@lyx.org>
Format 3
Format 4
Input stdclass.inc
NoStyle Chapter

View File

@ -4,7 +4,7 @@
# Cut & paste from various LyX layouts plus some minor modifications
# Author : Kornelia Pietsch <pietsch@mathematik.tu-chemnitz.de>
Format 3
Format 4
Columns 1
Sides 1
SecNumDepth 2

View File

@ -7,7 +7,7 @@
#
Format 3
Format 4
Columns 1
Sides 1
PageStyle Plain

View File

@ -5,7 +5,7 @@
# to be used with the spie.cls LaTex-style available at
# http://public.lanl.gov/kmh/spie/
Format 3
Format 4
Input stdclass.inc
NoStyle Chapter

View File

@ -7,7 +7,7 @@
# ``standard'' layouts, like article and friends.
Format 3
Format 4
Columns 1
Sides 1
SecNumDepth 2

View File

@ -4,7 +4,7 @@
# in most LyX layouts.
Format 3
Format 4
Counter
Name part
End

Some files were not shown because too many files have changed in this diff Show More