]> git.lyx.org Git - features.git/commitdiff
initials.module: safer preamble call, no string changed, necessary to be able to...
authorUwe Stöhr <uwestoehr@web.de>
Sun, 28 Aug 2011 02:34:50 +0000 (02:34 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sun, 28 Aug 2011 02:34:50 +0000 (02:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39540 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/initials.module

index 22a6678ec4d77fcebea487bcc9ce155100292a5c..6a82e5795a579390e12ba5ac39bd8c2a195a97b4 100644 (file)
@@ -8,6 +8,10 @@
 
 Format 35
 
+AddToPreamble
+       \@ifundefined{lettrine}{\usepackage{lettrine}}{}
+EndPreamble
+
 InsetLayout Flex:Initial
        LyxType                 charstyle
        LabelString             "Initial"
@@ -17,9 +21,6 @@ InsetLayout Flex:Initial
          Size                  Large
        EndFont
        Requires                lettrine
-       Preamble
-               \usepackage{lettrine}
-       EndPreamble
 End
 
 Style Initial
@@ -42,8 +43,5 @@ Style Initial
        LabelFont
          Series                Bold
        EndFont
-       Preamble
-         \usepackage{lettrine}
-       EndPreamble
 End