Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

StatWeaveIntegration

Categories: Tools
<< | Page list | >>

Goal

To integrate StatWeave into LyX so that you don't have to use raw TeX code. This allows the blending of programming code (such as Stata, Matlab, etc.) and expository text.

Solution

  • Create a document module and some settings additions.

Files

Installation

  1. Copy statweave.module to you your LyX 2.0/Resources/layouts program folder.
  2. Open LyX and go to Tools→Reconfigure.
  3. Restart LyX and go to Tools→Preferences.
  4. On the left choose File Handling→File Formats.
  5. Click the New... button and then fill in "Format: StatWeave", check "Document format", "Short Name: statweave", "Extension: swv". Then "Apply".
  6. On the left choose File Handling→Converters.
  7. Create a new one from "StatWeave" to "LaTeX (pdflatex)" with the command "statweave --target tex $$i" (make the changes and then click "Add" in the upper right). Then Save.

Usage

  • You now can insert custom insets! The Enter key doesn't seem to work in insets, but you can paste them in.

Example

History

  • Version 0.1

Comments, Bugs

Leave this field for future bugs or comments for your script

Contributors

Copyright

CC BY-SA

Tools

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2013-03-08 00:43 UTC