lyx_mirror/lib/layouts/g-brief2.layout
Jean-Marc Lasgouttes 04efe3c40a 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
2007-04-06 09:02:23 +00:00

929 lines
16 KiB
Plaintext

#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[g-brief2]{letter (g-brief2)}
# Letter textclass definition file.
# Author : Felix Kurth <lyx@fkurth.de> based on work from
# Thomas Hartkens <thomas@hartkens.de>
# Input general definitions
# Input stdletter.inc
# General textclass parameters
Format 4
Columns 1
Sides 1
PageStyle Empty
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
# Standard style definition
Style Standard
LatexName dummy
ParIndent MM
ParSkip 0.4
AlignPossible Block, Left, Right, Center
END
# Brieftext style definition
Style Letter
Margin Static
LatexType Environment
LatexName g-brief
TopSep 1
ParSkip 0.4
KeepEmpty 1
Align Block
AlignPossible Block, Left, Right, Center
LabelType Top_Environment
LabelString Letter:
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
End
# Name und Titel des Absenders
Style Name
Margin Static
LatexType Command
LatexName Name
LeftMargin TelephoneRowA:xx
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString Name:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
End
# Name und Spruch in der Fusszeile
Style NameRowA
Margin Dynamic
LatexType Command
LatexName NameZeileA
LabelSep xx
TopSep 1.5
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString NameRowA:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style NameRowB
Margin Dynamic
LatexType Command
LatexName NameZeileB
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString NameRowB:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style NameRowC
Margin Dynamic
LatexType Command
LatexName NameZeileC
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString NameRowC:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style NameRowD
Margin Dynamic
LatexType Command
LatexName NameZeileD
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString NameRowD:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style NameRowE
Margin Dynamic
LatexType Command
LatexName NameZeileE
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString NameRowE:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style NameRowF
Margin Dynamic
LatexType Command
LatexName NameZeileF
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString NameRowF:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style NameRowG
Margin Dynamic
LatexType Command
LatexName NameZeileG
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString NameRowG:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style AdressRowA
Margin Dynamic
LatexType Command
LatexName AdressZeileA
TopSep 1
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString AdressRowA:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style AdressRowB
Margin Dynamic
LatexType Command
LatexName AdressZeileB
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString AdressRowB:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style AdressRowC
Margin Dynamic
LatexType Command
LatexName AdressZeileC
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString AdressRowC:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style AdressRowD
Margin Dynamic
LatexType Command
LatexName AdressZeileD
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString AdressRowD:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style AdressRowE
Margin Dynamic
LatexType Command
LatexName AdressZeileE
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString AdressRowE:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style AdressRowF
Margin Dynamic
LatexType Command
LatexName AdressZeileF
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString AdressRowF:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style TelephoneRowA
Margin Dynamic
LatexType Command
LatexName TelefonZeileA
TopSep 1
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString TelephoneRowA:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style TelephoneRowB
Margin Dynamic
LatexType Command
LatexName TelefonZeileB
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString TelephoneRowB:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style TelephoneRowC
Margin Dynamic
LatexType Command
LatexName TelefonZeileC
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString TelephoneRowC:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style TelephoneRowD
Margin Dynamic
LatexType Command
LatexName TelefonZeileD
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString TelephoneRowD:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style TelephoneRowE
Margin Dynamic
LatexType Command
LatexName TelefonZeileE
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString TelephoneRowE:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style TelephoneRowF
Margin Dynamic
LatexType Command
LatexName TelefonZeileF
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString TelephoneRowF:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style InternetRowA
Margin Dynamic
LatexType Command
LatexName InternetZeileA
TopSep 1
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString InternetRowA:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style InternetRowB
Margin Dynamic
LatexType Command
LatexName InternetZeileB
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString InternetRowB:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style InternetRowC
Margin Dynamic
LatexType Command
LatexName InternetZeileC
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString InternetRowC:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style InternetRowD
Margin Dynamic
LatexType Command
LatexName InternetZeileD
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString InternetRowD:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style InternetRowE
Margin Dynamic
LatexType Command
LatexName InternetZeileE
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString InternetRowE:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style InternetRowF
Margin Dynamic
LatexType Command
LatexName InternetZeileF
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString InternetRowF:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style BankRowA
Margin Dynamic
LatexType Command
LatexName BankZeileA
TopSep 1
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString BankRowA:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style BankRowB
Margin Dynamic
LatexType Command
LatexName BankZeileB
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString BankRowB:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style BankRowC
Margin Dynamic
LatexType Command
LatexName BankZeileC
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString BankRowC:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style BankRowD
Margin Dynamic
LatexType Command
LatexName BankZeileD
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString BankRowD:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style BankRowE
Margin Dynamic
LatexType Command
LatexName BankZeileE
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString BankRowE:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
Style BankRowF
Margin Dynamic
LatexType Command
LatexName BankZeileF
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString BankRowF:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Green
EndFont
End
# RetourAdresse
Style ReturnAddress
Margin Dynamic
LatexType Command
LatexName RetourAdresse
TopSep 1.5
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString ReturnAddress:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
End
# Postvermerk
Style PostalComment
Margin Dynamic
LatexType Command
LatexName Postvermerk
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString PostalComment:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
End
# Adresse
Style Address
Margin Static
LatexType Command
LatexName Adresse
LeftMargin TelephoneRowA:xx
LabelSep xx
TopSep 1
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString Address:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
End
# MeinZeichen
Style MyRef
Margin Static
LatexType Command
LatexName MeinZeichen
LeftMargin TelephoneRowA:xx
LabelSep xx
TopSep 1
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString MyRef:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
End
# IhrZeichen
Style YourRef
Margin Static
LatexType Command
LatexName IhrZeichen
LeftMargin TelephoneRowA:xx
LabelSep xx
KeepEmpty 1
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString YourRef:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
End
# IhrSchreiben
Style YourMail
Margin Static
LatexType Command
LatexName IhrSchreiben
LeftMargin TelephoneRowA:xx
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString YourMail:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
End
# Data style definition
Style Date
Margin Static
LatexType Command
LatexName Datum
LeftMargin TelephoneRowA:xx
LabelSep xx
KeepEmpty 1
Align Left
AlignPossible Block, Left
LabelType Static
LabelString Date:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
End
# Oggetto style definition
Style Reference
Margin Static
LatexType Command
LatexName Betreff
LeftMargin TelephoneRowA:xx
LabelSep xx
TopSep 1
ParSep 0.4
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString Reference:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
End
# Opening style definition
Style Opening
Margin Static
LatexType Command
LatexName Anrede
KeepEmpty 1
LeftMargin TelephoneRowA:xx
LabelSep xx
TopSep 1
ParSep 0.4
Align Block
AlignPossible Block, Left
LabelType Static
LabelString Opening:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
End
# Gruss style definition
Style Closing
Margin Static
LatexType Command
LatexName LyxGruss
LeftMargin xxxxxxxxxxxx::xx
LabelSep xx
ParSep 0.4
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString Closing:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
#define the environment lyxGruss
Preamble
\newcommand{\LyxGruss}[1]
{ \Gruss{#1}{0.5cm} }
EndPreamble
End
# Unterschrift des Absenders
Style Signature
Margin Static
LatexType Command
LatexName Unterschrift
LeftMargin xxxxxxxxxxxx::xx
LabelSep xx
KeepEmpty 1
Align Block
AlignPossible Block, Left
LabelType Static
LabelString Signature:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
End
# Anlagen style definition
Style Encl.
Margin Static
LatexType Command
LatexName Anlagen
KeepEmpty 1
LeftMargin xxxxxxxxxxxx::xx
LabelSep xx
ParSep 0.4
Align Block
AlignPossible Block, Left
LabelType Static
LabelString Encl.:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
End
# Verteiler style definition
Style cc
Margin Static
LatexType Command
LatexName Verteiler
KeepEmpty 1
LeftMargin xxxxxxxxxxxx::xx
LabelSep xx
ParSep 0.4
Align Block
AlignPossible Block, Left
LabelType Static
LabelString cc:
# label font definition
LabelFont
Series Bold
Shape Italic
Color Blue
EndFont
End
Input stdfloats.inc
Input stdcounters.inc
# Input lyxmacros.inc
# Remove some unwanted styles.
# NoStyle Right_Address
# NoStyle Address