]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/lettre.layout
Convert layout files to current format
[lyx.git] / lib / layouts / lettre.layout
index 3404672553833e946bc81186b67e2a14efecb2a2..b0cc7748179b1d2cee21c01b1c5fea4054d3c1cc 100644 (file)
@@ -1,5 +1,6 @@
 #% Do not delete the line below; configure depends on this
-#    \DeclareLaTeXClass{letter (lettre)}
+#  \DeclareLaTeXClass{French Letter (lettre)}
+#  \DeclareCategory{Letters}
 # French Letter textclass definition file. 
 # Author : Alain Castera <castera@in2p3.fr>
 # Modifies only some things from letter.layout
@@ -24,7 +25,7 @@
 #  - ordering control left at the beginning (any other way ?)
 
 
-Format 30
+Format 54
 
 #(pre)declarations (just to impose some order on the menus)
 Style Standard
@@ -126,15 +127,17 @@ Preamble
     \fi                % if needSendFax
   }    %findemessage
 
-% to get the specified pagesize (workaround for a lettre problem)
-\input pdftexconfig.tex
+% to get the specified pagesize 
+% (workaround for an a4paper/lettre problem in pdf mode)
+\@ifpackageloaded{ifpdf}{}{\usepackage{ifpdf}}
+\ifpdf\input pdftexconfig.tex\fi
 
 EndPreamble
 
 # My Address style used to specify sender name and coordinates
 Style My_Address
   CopyStyle     My_Address
-  Category      Headings
+  Category      "Postal Data"
   Margin        Static
   LatexType     Command
   LatexName     MyAddress