On Sat, 14 Aug 2010 00:55:53 -0400
Jack Tanner <[email protected]> wrote:
> Hello all. Just getting started with LyX after putting it off for a
> long time, and it looks really fantastic. Kudos.
> 
Nice to hear this. 


> I've been pasting source code (say, in R) into LyX notes (with 
> Ctrl+Shift+V), and then formatting the notes as LyX-code. This lets
> me keep tabs on what code was used to produce what figure. 
> 
From what you write, it seems that you are generating the graphs with
R, saving them and then insert them as graphics in LyX. This is fine,
but you might want to look into using LyX with Sweave. This way you
inset your graph-creating code within ERT insets (thus keeping track of
the code) and let Sweave and LyX worry about inserting the graphs into
the final document. Should this be an issue, learning Sweave is easy;
configuring it for LyX might be more difficult, though. 

I am not sure that thus you will avoid the issues
that you had when copying the code from the Notes. 

Hope this helps
Liviu


> But then
> when I want to copy the R code out from the LyX note, it gains all
> these line breaks that it didn't used to have. There's no "plain text
> copy" like there is "plain text paste". How does one get the note
> contents without line breaks? Using LyX 1.6.7.
> 

Reply via email to