Hey, everybody:

I've been using Lyx in conjunction with noweb and R to make
statistical writeups.  I've boiled this down to a pretty simple thing,
described here:

http://www.ku.edu/~pauljohn/latex/lyxAndSweave.txt

And I've got example lyx documents where you can test this yourself.

http://www.ku.edu/~pauljohn/stats/Distributions/Gamma-02.lyx

http://www.ku.edu/~pauljohn/stats/Distributions/Normal-01.lyx

Those make documents that look nice!

http://www.ku.edu/~pauljohn/stats/Distributions/Gamma-02.pdf

http://www.ku.edu/~pauljohn/stats/Distributions/Normal-01.pdf

In our computer lab, I've already done the basic system settings,
putting Rweave script in /usr/local/bin and making sure noweb stuff is
installed.  The last problem that I've been able to solve is that when
users take a file like Normal-01.lyx, then they can't view or export
it because the converter from Noweb to LaTeX has not been set in their
preferences.  I think the preference dialogue is confusing and hard to
describe to students.

Is there a way I can automate the delivery of the preference

\converter "literate" "latex" "Rweave $$i" ""

with the lyx document itself, to save the users the re-configution problem?

--
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas

Reply via email to