X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fnoweb.module;h=6ae382e0b81e411d31688f804479adf98ac56940;hb=69a6c41b9417c0f069f4eeae2b0f2e932ee39be4;hp=4a42e4e82c3dd4d66e8e1f5268020a111abc542e;hpb=3b716ae11e5f55cf0544521ebd345a341707744e;p=lyx.git diff --git a/lib/layouts/noweb.module b/lib/layouts/noweb.module index 4a42e4e82c..6ae382e0b8 100644 --- a/lib/layouts/noweb.module +++ b/lib/layouts/noweb.module @@ -1,42 +1,13 @@ -#\DeclareLyXModule[literate->latex,noweb.sty]{Noweb literate programming} +#\DeclareLyXModule[literate->latex,noweb.sty]{Noweb} +#\DeclareCategory{Literate Programming} #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 28 +Format 96 +Input litinsets.inc OutputType literate -# FIXME: Use the Chunk layout from the sweave module? -Style Scrap - 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 - FreeSpacing 1 - PassThru 1 - ParbreakIsNewline 1 - LabelType Static - LabelFont - Color magenta - EndFont - TextFont - Color latex - Family Typewriter - EndFont -End +AddToPreamble + \usepackage{noweb} +EndPreamble