I had some problems with the gbrief2.layout, which is in the CVS folder /lib/layouts/.
To fix them, I changed the following:
- If one uses ERT, the 'letter'-environment is always used. Because this is the default. To avoid this, I added a dummy environment 'Standard' and set this as default. (All other layouts have this.)
- Long environment names like 'TelephoneRowA' protrudes over the left border, because the labels are static. Therefore I set the labels dynamic and added some label space to the short labels, which I leaved static.
- I rearranged the the label order to make it more logic.
The fixed version of gbrief2.layout could be found here: http://fkurth.de/uwest/LyX/g-brief2.layout
I also prepared an example file for the new gbrief2 layout, that could be added to CVS:
http://fkurth.de/uwest/LyX/g-brief2.lyx
I forgot to attach the diff file against g-brief2.layout from CVS, see attached.
Sorry.
regards Uwe
--- g-brief2CVS.layout Mon Mar 15 01:52:17 2004 +++ g-brief2.layout Wed Mar 24 19:37:12 2004 @@ -15,7 +13,7 @@ Columns 1 Sides 1 PageStyle Empty -DefaultStyle Letter +DefaultStyle Standard # This is just to show how to declare the default font. # The defaults are exactly those shown here. @@ -27,13 +25,20 @@ 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 @@ -73,10 +74,9 @@ # Name und Spruch in der Fusszeile Style NameRowA - Margin Static + Margin Dynamic LatexType Command LatexName NameZeileA - LeftMargin xxxxxxxxxx::xx LabelSep xx TopSep 1.5 KeepEmpty 1 @@ -93,10 +93,9 @@ End Style NameRowB - Margin Static + Margin Dynamic LatexType Command LatexName NameZeileB - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -112,10 +111,9 @@ End Style NameRowC - Margin Static + Margin Dynamic LatexType Command LatexName NameZeileC - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -131,10 +129,9 @@ End Style NameRowD - Margin Static + Margin Dynamic LatexType Command LatexName NameZeileD - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -150,10 +147,9 @@ End Style NameRowE - Margin Static + Margin Dynamic LatexType Command LatexName NameZeileE - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -169,10 +165,9 @@ End Style NameRowF - Margin Static + Margin Dynamic LatexType Command LatexName NameZeileF - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -188,10 +183,9 @@ End Style NameRowG - Margin Static + Margin Dynamic LatexType Command LatexName NameZeileG - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -207,38 +201,17 @@ End -# Unterschrift des Absenders -Style Signature - Margin Static - LatexType Command - LatexName Unterschrift - LeftMargin xxxxxxxxxx::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 - -Style AddressRowA - Margin Static +Style AdressRowA + Margin Dynamic LatexType Command LatexName AdressZeileA - LeftMargin xxxxxxxxxx::xx - TopSep 1.5 + TopSep 1 LabelSep xx KeepEmpty 1 Align Block AlignPossible Block, Left LabelType Static - LabelString AddressRowA: + LabelString AdressRowA: # label font definition LabelFont Series Bold @@ -247,17 +220,16 @@ EndFont End -Style AddressRowB - Margin Static +Style AdressRowB + Margin Dynamic LatexType Command LatexName AdressZeileB - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block AlignPossible Block, Left LabelType Static - LabelString AddressRowB: + LabelString AdressRowB: # label font definition LabelFont Series Bold @@ -266,17 +238,16 @@ EndFont End -Style AddressRowC - Margin Static +Style AdressRowC + Margin Dynamic LatexType Command LatexName AdressZeileC - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block AlignPossible Block, Left LabelType Static - LabelString AddressRowC: + LabelString AdressRowC: # label font definition LabelFont Series Bold @@ -285,17 +256,16 @@ EndFont End -Style AddressRowD - Margin Static +Style AdressRowD + Margin Dynamic LatexType Command LatexName AdressZeileD - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block AlignPossible Block, Left LabelType Static - LabelString AddressRowD: + LabelString AdressRowD: # label font definition LabelFont Series Bold @@ -304,17 +274,16 @@ EndFont End -Style AddressRowE - Margin Static +Style AdressRowE + Margin Dynamic LatexType Command LatexName AdressZeileE - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block AlignPossible Block, Left LabelType Static - LabelString AddressRowE: + LabelString AdressRowE: # label font definition LabelFont Series Bold @@ -323,17 +292,16 @@ EndFont End -Style AddressRowF - Margin Static +Style AdressRowF + Margin Dynamic LatexType Command LatexName AdressZeileF - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block AlignPossible Block, Left LabelType Static - LabelString AddressRowF: + LabelString AdressRowF: # label font definition LabelFont Series Bold @@ -343,11 +311,10 @@ End Style TelephoneRowA - Margin Static + Margin Dynamic LatexType Command LatexName TelefonZeileA - LeftMargin xxxxxxxxxx::xx - TopSep 1.5 + TopSep 1 LabelSep xx KeepEmpty 1 Align Block @@ -363,10 +330,9 @@ End Style TelephoneRowB - Margin Static + Margin Dynamic LatexType Command LatexName TelefonZeileB - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -382,10 +348,9 @@ End Style TelephoneRowC - Margin Static + Margin Dynamic LatexType Command LatexName TelefonZeileC - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -401,10 +366,9 @@ End Style TelephoneRowD - Margin Static + Margin Dynamic LatexType Command LatexName TelefonZeileD - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -420,10 +384,9 @@ End Style TelephoneRowE - Margin Static + Margin Dynamic LatexType Command LatexName TelefonZeileE - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -439,10 +402,9 @@ End Style TelephoneRowF - Margin Static + Margin Dynamic LatexType Command LatexName TelefonZeileF - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -458,11 +420,10 @@ End Style InternetRowA - Margin Static + Margin Dynamic LatexType Command LatexName InternetZeileA - LeftMargin xxxxxxxxxx::xx - TopSep 1.5 + TopSep 1 LabelSep xx KeepEmpty 1 Align Block @@ -478,10 +439,9 @@ End Style InternetRowB - Margin Static + Margin Dynamic LatexType Command LatexName InternetZeileB - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -495,12 +455,10 @@ Color Green EndFont End - Style InternetRowC - Margin Static + Margin Dynamic LatexType Command LatexName InternetZeileC - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -514,12 +472,10 @@ Color Green EndFont End - Style InternetRowD - Margin Static + Margin Dynamic LatexType Command LatexName InternetZeileD - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -533,12 +489,10 @@ Color Green EndFont End - Style InternetRowE - Margin Static + Margin Dynamic LatexType Command LatexName InternetZeileE - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -552,12 +506,10 @@ Color Green EndFont End - Style InternetRowF - Margin Static + Margin Dynamic LatexType Command LatexName InternetZeileF - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -573,11 +525,10 @@ End Style BankRowA - Margin Static + Margin Dynamic LatexType Command LatexName BankZeileA - LeftMargin xxxxxxxxxx::xx - TopSep 1.5 + TopSep 1 LabelSep xx KeepEmpty 1 Align Block @@ -593,10 +544,9 @@ End Style BankRowB - Margin Static + Margin Dynamic LatexType Command LatexName BankZeileB - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -612,10 +562,9 @@ End Style BankRowC - Margin Static + Margin Dynamic LatexType Command LatexName BankZeileC - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -631,10 +580,9 @@ End Style BankRowD - Margin Static + Margin Dynamic LatexType Command LatexName BankZeileD - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -650,10 +598,9 @@ End Style BankRowE - Margin Static + Margin Dynamic LatexType Command LatexName BankZeileE - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -669,10 +616,9 @@ End Style BankRowF - Margin Static + Margin Dynamic LatexType Command LatexName BankZeileF - LeftMargin xxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Block @@ -688,13 +634,12 @@ End - # RetourAdresse Style ReturnAddress - Margin Static + Margin Dynamic LatexType Command LatexName RetourAdresse - LeftMargin xxxxxxxxxx::xx + TopSep 1.5 LabelSep xx KeepEmpty 1 Align Block @@ -709,19 +654,17 @@ EndFont End - -# MeinZeichen -Style MyRef - Margin Static +# Postvermerk +Style PostalComment + Margin Dynamic LatexType Command - LatexName MeinZeichen - LeftMargin xxxxxxxxxx::xx + LatexName Postvermerk LabelSep xx KeepEmpty 1 Align Block AlignPossible Block, Left LabelType Static - LabelString MyRef: + LabelString PostalComment: # label font definition LabelFont Series Bold @@ -730,19 +673,19 @@ EndFont End -# IhrZeichen -Style YourRef +# Adresse +Style Address Margin Static LatexType Command - LatexName IhrZeichen - LeftMargin xxxxxxxxxx::xx + LatexName Adresse + LeftMargin xxxxxxxxxxxx::xx LabelSep xx - KeepEmpty 1 + TopSep 1 KeepEmpty 1 Align Block AlignPossible Block, Left LabelType Static - LabelString YourRef: + LabelString Address: # label font definition LabelFont Series Bold @@ -751,19 +694,19 @@ EndFont End - -# IhrSchreiben -Style YourMail +# MeinZeichen +Style MyRef Margin Static LatexType Command - LatexName IhrSchreiben - LeftMargin xxxxxxxxxx::xx + LatexName MeinZeichen + LeftMargin xxxxxxxxxxxx::xx LabelSep xx + TopSep 1 KeepEmpty 1 Align Block AlignPossible Block, Left LabelType Static - LabelString YourMail: + LabelString MyRef: # label font definition LabelFont Series Bold @@ -772,19 +715,19 @@ EndFont End - -# Postvermerk -Style PostalComment +# IhrZeichen +Style YourRef Margin Static LatexType Command - LatexName Postvermerk - LeftMargin xxxxxxxxxx::xx + LatexName IhrZeichen + LeftMargin xxxxxxxxxxxx::xx LabelSep xx KeepEmpty 1 + KeepEmpty 1 Align Block AlignPossible Block, Left LabelType Static - LabelString PostalComment: + LabelString YourRef: # label font definition LabelFont Series Bold @@ -794,19 +737,18 @@ End -# Adresse -Style Address +# IhrSchreiben +Style YourMail Margin Static LatexType Command - LatexName Adresse - LeftMargin xxxxxxxxxx::xx + LatexName IhrSchreiben + LeftMargin xxxxxxxxxxxx::xx LabelSep xx - TopSep 1.5 KeepEmpty 1 Align Block AlignPossible Block, Left LabelType Static - LabelString Address: + LabelString YourMail: # label font definition LabelFont Series Bold @@ -821,7 +763,7 @@ Margin Static LatexType Command LatexName Datum - LeftMargin xxxxxxxxxx::xx + LeftMargin xxxxxxxxxxxx::xx LabelSep xx KeepEmpty 1 Align Left @@ -841,9 +783,9 @@ Margin Static LatexType Command LatexName Betreff - LeftMargin xxxxxxxxxx::xx + LeftMargin xxxxxxxxxxxx::xx LabelSep xx - TopSep 1.5 + TopSep 1 ParSep 0.4 KeepEmpty 1 Align Block @@ -865,9 +807,9 @@ LatexType Command LatexName Anrede KeepEmpty 1 - LeftMargin xxxxxxxxxx::xx + LeftMargin xxxxxxxxxxxx::xx LabelSep xx - TopSep 1.5 + TopSep 1 ParSep 0.4 Align Block AlignPossible Block, Left @@ -882,22 +823,44 @@ EndFont End - - -# Anlagen style definition -Style Encl. +# Gruss style definition +Style Closing Margin Static LatexType Command - LatexName Anlagen - KeepEmpty 1 - LeftMargin xxxxxxxxxx::xx + LatexName LyxGruss + LeftMargin xxxxxxxxxxxx::xx LabelSep xx ParSep 0.4 + KeepEmpty 1 Align Block AlignPossible Block, Left LabelType Static - LabelString Encl.: + 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 @@ -907,20 +870,19 @@ End -# Verteiler style definition -Style cc +# Anlagen style definition +Style Encl. Margin Static LatexType Command - LatexName Verteiler + LatexName Anlagen KeepEmpty 1 - LeftMargin xxxxxxxxxx::xx + LeftMargin xxxxxxxxxxxx::xx LabelSep xx ParSep 0.4 Align Block AlignPossible Block, Left LabelType Static - LabelString cc: - + LabelString Encl.: # label font definition LabelFont Series Bold @@ -929,35 +891,26 @@ EndFont End -# Gruss style definition -Style Closing + +# Verteiler style definition +Style cc Margin Static LatexType Command - LatexName LyxGruss - LeftMargin xxxxxxxxxx::xx + LatexName Verteiler + KeepEmpty 1 + LeftMargin xxxxxxxxxxxx::xx LabelSep xx - BottomSep 1.5 ParSep 0.4 - KeepEmpty 1 Align Block AlignPossible Block, Left LabelType Static - LabelString Closing: - + LabelString cc: # 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