]> 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 03:36:34 +0000 (03:36 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sun, 28 Aug 2011 03:36:34 +0000 (03:36 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39543 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/initials.module

index c40453349017e30f6500af705a0638e179e83a19..81b5e80d8a8fc9e31741f05cc739f3a1cd041ee2 100644 (file)
@@ -7,6 +7,10 @@
 
 Format 35
 
+AddToPreamble
+       \@ifundefined{lettrine}{\usepackage{lettrine}}{}
+EndPreamble
+
 InsetLayout Flex:Initial
        LyxType                 charstyle
        LabelString             "Initial"
@@ -16,9 +20,6 @@ InsetLayout Flex:Initial
          Size                  Large
        EndFont
        Requires                lettrine
-       Preamble
-         \usepackage{lettrine}
-       EndPreamble
 End
 
 Style Initial
@@ -41,8 +42,5 @@ Style Initial
        LabelFont
          Series                Bold
        EndFont
-       Preamble
-         \usepackage{lettrine}
-       EndPreamble
 End