]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/noweb.module
RJournal template and layout: move ERTs to layout
[lyx.git] / lib / layouts / noweb.module
index 4e4bf8c4e248cbaa9a0cc58a6ee5ae6c78f59212..fc105fd051ac7dc93beb507b98345dad3e763db8 100644 (file)
@@ -1,35 +1,28 @@
-#\DeclareLyXModule[literate->latex,noweb.sty]{Noweb literate programming}
+#\DeclareLyXModule[literate->latex,noweb.sty]{Noweb}
 #DescriptionBegin
 #Allows to use Noweb as a literate programming tool.
 #DescriptionEnd
 #Category: literate
 
-# Suggested style to write your code:
-# Within same scrap, lines are separated by newlines (Ctrl-Return), use:
-#  ItemSep               0.4
-#    . disavantage: must type ctrl-return every single line
-#    . advantage:   looks better (IMHO)
-#                   resembles more closely the produced paper doc (more WYSIWYG)
-#
-
-Format 24
+Format 45
 OutputType              literate
 
-# FIXME: Use the Chunk layout from the sweave module? 
-Style Scrap
+AddToPreamble
+       \usepackage{noweb}
+EndPreamble
+
+Style Chunk
        Margin                First_Dynamic
        LatexType             Paragraph
        LatexName             dummy
-       NewLine               0
        LeftMargin            MMM
-       ParSep                0.4
-       TopSep                0.4
-       BottomSep             0.4
-       ItemSep               0.4
        Align                 Left
        AlignPossible         Block,Left
+       NewLine               0
        FreeSpacing           1
        PassThru              1
+       ParbreakIsNewline     1
+       Spellcheck            0
        LabelType             Static
        LabelFont
          Color               magenta