mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 05:12:40 +00:00
6d08a75d62
These modules allow to use Sweave or Noweb with any LyX textclass. They will eventually allow to get rid of literate-* classes. The sweave modules will benefit in trunk from a forthcoming patch which allows to select the output format for a literate OutputType. This will allow to support Sweave out-of-the-box. For branch, this pair of modules is IMO a candidate for LyX 1.6.4 (no need to hurry). Thanks to Gregor Gorjanc for his work on this subject. There is undoubtlessly some additional work that has to be done here. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29657 a592a061-630c-0410-9148-cb99ea01b6c8
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
#\DeclareLyXModule[noweb.sty]{Noweb literate programming}
|
|
#DescriptionBegin
|
|
#Allows to use Noweb as a literate programming tool.
|
|
#DescriptionEnd
|
|
|
|
# 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 11
|
|
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
|
|
LabelType Static
|
|
LabelFont
|
|
Color magenta
|
|
EndFont
|
|
TextFont
|
|
Color latex
|
|
Family Typewriter
|
|
EndFont
|
|
End
|