Re: PStricks in LyX

2013-04-14 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
 but it still does not find it. I have the impression, that texhash is not 
 using my 
 home/texlive/2012/ 

What does
kpsewhich -var-value TEXMFHOME
return?

  sudo texhash
 texhash: Updating /usr/local/share/texmf/ls-R... 
 texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
 texhash: Updating /var/lib/texmf/ls-R-TEXLIVE... 
 texhash: Updating /var/lib/texmf/ls-R... 
 texhash: Done.

Do not run texhash as root/su. The home texmf tree is only updated if you run 
texhash as normal user.

Jürgen


Re: PStricks in LyX

2013-04-14 Thread Wolfgang Engelmann
Am Sonntag, 14. April 2013, 09:28:23 schrieb Jürgen Spitzmüller:
 Wolfgang Engelmann wrote:
  but it still does not find it. I have the impression, that texhash is
  not using my
  home/texlive/2012/ 
 
 What does
 kpsewhich -var-value TEXMFHOME
 return?
 

Hi, Jürgen,

kpsewhich -var-value TEXMFHOME
/home/wolfgang/texmf

and

which tex
/mnt/sda/home/wolfgang/texlive/2012/bin/i386-linux/tex


there is in /wolfgang/texlive/ besides /2012/ also texmf-local

Wolfgang


Re: PStricks in LyX

2013-04-14 Thread Jürgen Spitzmüller
Am Sonntag 14 April 2013, 09:47:20 schrieb Wolfgang Engelmann:
 kpsewhich -var-value TEXMFHOME
 /home/wolfgang/texmf

Good. Now try (as normal user)
texhash

and then
kpsewhich ttctexa.cls

Jürgen


Re: PStricks in LyX

2013-04-14 Thread Wolfgang Engelmann
Am Sonntag, 14. April 2013, 10:02:49 schrieb Jürgen Spitzmüller:
 Am Sonntag 14 April 2013, 09:47:20 schrieb Wolfgang Engelmann:
  kpsewhich -var-value TEXMFHOME
  /home/wolfgang/texmf
 
 Good. Now try (as normal user)
 texhash

texhash: /mnt/sda/home/wolfgang/texlive/2012/texmf/ls-R: no write 
permission, skipping
 
 and then
 kpsewhich ttctexa.cls
wolfgang@wolfgang:/mnt/sda/home/wolfgang$ kpsewhich ttctexa.cls
wolfgang@wolfgang:/mnt/sda/home/wolfgang$

so that is apparently the culprite:
no write permission, skipping

Thanks a lot!

Wolfgang


Re: PStricks in LyX

2013-04-14 Thread Jürgen Spitzmüller
Am Sonntag 14 April 2013, 11:27:48 schrieb Wolfgang Engelmann:
   kpsewhich -var-value TEXMFHOME
   /home/wolfgang/texmf
 
  
 
  Good. Now try (as normal user)
  texhash
 
 texhash: /mnt/sda/home/wolfgang/texlive/2012/texmf/ls-R: no write 
 permission, skipping
 
  
 
  and then
  kpsewhich ttctexa.cls
 
 wolfgang@wolfgang:/mnt/sda/home/wolfgang$ kpsewhich ttctexa.cls
 wolfgang@wolfgang:/mnt/sda/home/wolfgang$
 
 so that is apparently the culprite:
 no write permission, skipping

OK, so change the permissions.

Just to make clear: The .cls file in question needs to go to 
/home/wolfgang/texmf/, not /home/wolfgang/texlive/2012/texmf/

Jürgen



Using German sort order with nomencl

2013-04-14 Thread Thomas Strausz

Hello,

In a German language document I am trying to produce a nomenclature in LyX
using the implemented functions for the nomencl package. Some of the symbols
I use start with a German umlaut, e. g. ÖJZ. These entries are listed at the
beginning of the nomenclature if I code the umlaute as \A, \O, \U and at
the end if I type them in directly as Ä, Ö or Ü. However, I want them to be
listed among the entries starting with A, O or U respectively, so I changed
the nomenclature command in Tools  Preferences  Output  LaTeX to
makeindex -g -s mein_nomencl.ist; -g being the command to tell MakeIndex
to use the German sort order and mein_nomencl.ist being a .ist-file with
the command quote '+'.

LyX compiles the nomenclature without any problems other than the wrong sort
order if I use the standard nomenclature command. However, with my changed
options it will produce a document where everything I wrote besides the
nomenclature is printed, but the nomenclature is completely left out.

Does anybody know an explanation for this behaviour? I would be very
thankful for your help.

Thomas



Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Mark Dalphin

Hi,

I use Lyx for writing reports on data analysis. To incorporate results 
from those analysis, I use Sweave within Lyx. This is all nicely 
integrated in the recent versions of Lyx. There is one major 
inconvenience remaining for me, however, and that is described here.


I usually develop my R-code in Emacs (ESS-mode). This permits me to 
refine my tables and graphs before I incorporate them into Lyx. This is 
much faster as it interactive and avoids the time to run LaTeX (or 
export the R, etc etc). Then I write the text part of my report, and, in 
the Lyx scrap, I paste the required chunks of R-code. Nice and simple 
(thank you!). The problem is that when I paste the R-code from Emacs to 
the Lyx scrap, the End-Of-Line character gets converted into something 
else (a BLANK or some other white space, I guess), which is not 
acceptable to the R-parser when Sweave runs. This means that every paste 
operation is followed by many edit operations to convert the blanks back 
into new-lines.


Is is possible to prevent this mangling of the paste? Or could there be 
a right-click option to paste-retaining-newlines or something such 
item? Or is this a user-error and there is a better way to perform the 
actions I am describing (A wild example that I have not tried: in a 
blank Lyx window, import the Emacs file, then cut-and-paste from one Lyx 
buffer to another).


System: Linux (Kubuntu 8.04)
Lyx: 2.0.5.1, built from source.

Cut-and-paste: Standard Linux/X11, selecting with left-mouse button and 
pasting with center mouse button.


Regards,
Mark

--



   Mark Dalphin Ph.D.

Director of Bioinformatics

mark.dalp...@pacificedge.co.nz mailto:mark.dalp...@pacificedge.co.nz
*Ph:* +64-3-479-5805
*Cell:* +64-21-156-7625
*Skype:* mark.dalphin.pel
http://www.facebook.com/pages/Pacific-Edge/111356775582456 
http://twitter.com/#%21/pacificEdgeLtd 
http://www.youtube.com/PacificEdgeLtd


87 St David St, PO Box 56, Dunedin, New Zealand 9016www.pacificedge.co.nz

attachment: mark_dalphin.vcf

Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Yihui Xie
Short answer: you can use Ctrl+L and Ctrl+Shift+V instead of Scrap and Ctrl+V.

Note Scrap is obsolete now. The new name is Chunk. Some users choose
to use this, but others like me use the ERT (Ctrl+L). It is up to you.

A slightly longer answer: you do not really have to paste code between
Emacs and LyX if you use the knitr module instead of Sweave. See
http://yihui.name/knitr/demo/externalization/ for examples, and
http://yihui.name/knitr/demo/lyx/ for a video demo of knitr in LyX.

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Sun, Apr 14, 2013 at 6:06 PM, Mark Dalphin
mark.dalp...@pacificedge.co.nz wrote:
 Hi,

 I use Lyx for writing reports on data analysis. To incorporate results from
 those analysis, I use Sweave within Lyx. This is all nicely integrated in
 the recent versions of Lyx. There is one major inconvenience remaining for
 me, however, and that is described here.

 I usually develop my R-code in Emacs (ESS-mode). This permits me to refine
 my tables and graphs before I incorporate them into Lyx. This is much faster
 as it interactive and avoids the time to run LaTeX (or export the R, etc
 etc). Then I write the text part of my report, and, in the Lyx scrap, I
 paste the required chunks of R-code. Nice and simple (thank you!). The
 problem is that when I paste the R-code from Emacs to the Lyx scrap, the
 End-Of-Line character gets converted into something else (a BLANK or some
 other white space, I guess), which is not acceptable to the R-parser when
 Sweave runs. This means that every paste operation is followed by many edit
 operations to convert the blanks back into new-lines.

 Is is possible to prevent this mangling of the paste? Or could there be a
 right-click option to paste-retaining-newlines or something such item? Or
 is this a user-error and there is a better way to perform the actions I am
 describing (A wild example that I have not tried: in a blank Lyx window,
 import the Emacs file, then cut-and-paste from one Lyx buffer to another).

 System: Linux (Kubuntu 8.04)
 Lyx: 2.0.5.1, built from source.

 Cut-and-paste: Standard Linux/X11, selecting with left-mouse button and
 pasting with center mouse button.

 Regards,
 Mark

 --



Mark Dalphin Ph.D.

 Director of Bioinformatics

 mark.dalp...@pacificedge.co.nz mailto:mark.dalp...@pacificedge.co.nz
 *Ph:* +64-3-479-5805
 *Cell:* +64-21-156-7625
 *Skype:* mark.dalphin.pel
 http://www.facebook.com/pages/Pacific-Edge/111356775582456
 http://twitter.com/#%21/pacificEdgeLtd
 http://www.youtube.com/PacificEdgeLtd

 87 St David St, PO Box 56, Dunedin, New Zealand 9016www.pacificedge.co.nz



Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Scott Kostyshak
On Sun, Apr 14, 2013 at 7:06 PM, Mark Dalphin
mark.dalp...@pacificedge.co.nz wrote:
 I usually develop my R-code in Emacs (ESS-mode). This permits me to refine
 my tables and graphs before I incorporate them into Lyx. This is much faster
 as it interactive and avoids the time to run LaTeX (or export the R, etc
 etc). Then I write the text part of my report, and, in the Lyx scrap, I
 paste the required chunks of R-code. Nice and simple (thank you!). The
 problem is that when I paste the R-code from Emacs to the Lyx scrap, the
 End-Of-Line character gets converted into something else (a BLANK or some
 other white space, I guess), which is not acceptable to the R-parser when
 Sweave runs. This means that every paste operation is followed by many edit
 operations to convert the blanks back into new-lines.

 Is is possible to prevent this mangling of the paste?

Hi Mark,

Does ctrl+shift+v work for you? Or, Edit  Paste Special  Plain Text ?

Best,

Scott


Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Mark Dalphin
Thanks to both Scott Kostyshak and Yihui Xie (I appreciate Yihui not 
reminding me that he has already suggested I switch to knitr). I 
mis-wrote when I said scrap in my text; it is indeed the chunk into 
which I paste my text from Emacs.


When I use ctrl-shift-v into a chunk that I have pre-filled with 
echo=FALSE,fig=TRUE=\n (where \n means I am on the next line, 
not the literal characters), the first line adds correctly, then there 
is a blank line and change of paragraph type into Standard, with the 
remaining lines in that standard paragraph.


If I change my work order and paste-special into a Standard paragraph, 
it looks alright, but then selection of those lines and conversion to a 
Chunk paragraph yields a similar output: one good, chunk line, a blank 
line plus several lines in the following Standard paragraph.


Trying Yihui's ERT format seemed to paste correctly, however, I am left 
wondering then in what kind of paragraph should the ERT exist. Just as 
a stand-alone Standard paragraph? I can live with that if it leads to 
clean processing of my report. Does anyone have any comments on possible 
side-effects of using the ERT to contain the Sweave material?


Cheers,
Mark

Scott Kostyshak wrote:

On Sun, Apr 14, 2013 at 7:06 PM, Mark Dalphin
mark.dalp...@pacificedge.co.nz wrote:
  

I usually develop my R-code in Emacs (ESS-mode). This permits me to refine
my tables and graphs before I incorporate them into Lyx. This is much faster
as it interactive and avoids the time to run LaTeX (or export the R, etc
etc). Then I write the text part of my report, and, in the Lyx scrap, I
paste the required chunks of R-code. Nice and simple (thank you!). The
problem is that when I paste the R-code from Emacs to the Lyx scrap, the
End-Of-Line character gets converted into something else (a BLANK or some
other white space, I guess), which is not acceptable to the R-parser when
Sweave runs. This means that every paste operation is followed by many edit
operations to convert the blanks back into new-lines.

Is is possible to prevent this mangling of the paste?



Hi Mark,

Does ctrl+shift+v work for you? Or, Edit  Paste Special  Plain Text ?

Best,

Scott

  


--



   Mark Dalphin Ph.D.

Director of Bioinformatics

mark.dalp...@pacificedge.co.nz mailto:mark.dalp...@pacificedge.co.nz
*Ph:* +64-3-479-5805
*Cell:* +64-21-156-7625
*Skype:* mark.dalphin.pel
http://www.facebook.com/pages/Pacific-Edge/111356775582456 
http://twitter.com/#%21/pacificEdgeLtd 
http://www.youtube.com/PacificEdgeLtd


87 St David St, PO Box 56, Dunedin, New Zealand 9016www.pacificedge.co.nz

attachment: mark_dalphin.vcf

Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Yihui Xie
My suggestion is always ERT for R code chunks, because it is clean and
easier to play with program code.

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Sun, Apr 14, 2013 at 10:30 PM, Mark Dalphin
mark.dalp...@pacificedge.co.nz wrote:
 Thanks to both Scott Kostyshak and Yihui Xie (I appreciate Yihui not
 reminding me that he has already suggested I switch to knitr). I mis-wrote
 when I said scrap in my text; it is indeed the chunk into which I paste
 my text from Emacs.

 When I use ctrl-shift-v into a chunk that I have pre-filled with
 echo=FALSE,fig=TRUE=\n (where \n means I am on the next line, not
 the literal characters), the first line adds correctly, then there is a
 blank line and change of paragraph type into Standard, with the remaining
 lines in that standard paragraph.

 If I change my work order and paste-special into a Standard paragraph, it
 looks alright, but then selection of those lines and conversion to a Chunk
 paragraph yields a similar output: one good, chunk line, a blank line plus
 several lines in the following Standard paragraph.

 Trying Yihui's ERT format seemed to paste correctly, however, I am left
 wondering then in what kind of paragraph should the ERT exist. Just as a
 stand-alone Standard paragraph? I can live with that if it leads to clean
 processing of my report. Does anyone have any comments on possible
 side-effects of using the ERT to contain the Sweave material?

 Cheers,
 Mark


Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Liviu Andronic
On Mon, Apr 15, 2013 at 5:30 AM, Mark Dalphin
mark.dalp...@pacificedge.co.nz wrote:
 If I change my work order and paste-special into a Standard paragraph, it
 looks alright, but then selection of those lines and conversion to a Chunk
 paragraph yields a similar output: one good, chunk line, a blank line plus
 several lines in the following Standard paragraph.

One more reason why Chunk Styles are not suitable for coding.


 Trying Yihui's ERT format seemed to paste correctly, however, I am left
 wondering then in what kind of paragraph should the ERT exist. Just as a

To be safe, 'Plain'. (Or Standard, or whatever the least fancy style
is called.)


 stand-alone Standard paragraph? I can live with that if it leads to clean
 processing of my report. Does anyone have any comments on possible
 side-effects of using the ERT to contain the Sweave material?

It works excellently if you asked me. If you're wondering how the code
ends up in the final document, try to View  Source to check how the
chunks get displayed in the LaTeX markup; this is what R will get when
you start compiling.

Liviu


 Cheers,
 Mark


 Scott Kostyshak wrote:

 On Sun, Apr 14, 2013 at 7:06 PM, Mark Dalphin
 mark.dalp...@pacificedge.co.nz wrote:


 I usually develop my R-code in Emacs (ESS-mode). This permits me to
 refine
 my tables and graphs before I incorporate them into Lyx. This is much
 faster
 as it interactive and avoids the time to run LaTeX (or export the R, etc
 etc). Then I write the text part of my report, and, in the Lyx scrap, I
 paste the required chunks of R-code. Nice and simple (thank you!). The
 problem is that when I paste the R-code from Emacs to the Lyx scrap, the
 End-Of-Line character gets converted into something else (a BLANK or some
 other white space, I guess), which is not acceptable to the R-parser when
 Sweave runs. This means that every paste operation is followed by many
 edit
 operations to convert the blanks back into new-lines.

 Is is possible to prevent this mangling of the paste?



 Hi Mark,

 Does ctrl+shift+v work for you? Or, Edit  Paste Special  Plain Text ?

 Best,

 Scott




 --



Mark Dalphin Ph.D.

 Director of Bioinformatics

 mark.dalp...@pacificedge.co.nz mailto:mark.dalp...@pacificedge.co.nz
 *Ph:* +64-3-479-5805
 *Cell:* +64-21-156-7625
 *Skype:* mark.dalphin.pel
 http://www.facebook.com/pages/Pacific-Edge/111356775582456
 http://twitter.com/#%21/pacificEdgeLtd
 http://www.youtube.com/PacificEdgeLtd

 87 St David St, PO Box 56, Dunedin, New Zealand 9016www.pacificedge.co.nz




-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: PStricks in LyX

2013-04-14 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
 but it still does not find it. I have the impression, that texhash is not 
 using my 
 home/texlive/2012/ 

What does
kpsewhich -var-value TEXMFHOME
return?

  sudo texhash
 texhash: Updating /usr/local/share/texmf/ls-R... 
 texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
 texhash: Updating /var/lib/texmf/ls-R-TEXLIVE... 
 texhash: Updating /var/lib/texmf/ls-R... 
 texhash: Done.

Do not run texhash as root/su. The home texmf tree is only updated if you run 
texhash as normal user.

Jürgen


Re: PStricks in LyX

2013-04-14 Thread Wolfgang Engelmann
Am Sonntag, 14. April 2013, 09:28:23 schrieb Jürgen Spitzmüller:
 Wolfgang Engelmann wrote:
  but it still does not find it. I have the impression, that texhash is
  not using my
  home/texlive/2012/ 
 
 What does
 kpsewhich -var-value TEXMFHOME
 return?
 

Hi, Jürgen,

kpsewhich -var-value TEXMFHOME
/home/wolfgang/texmf

and

which tex
/mnt/sda/home/wolfgang/texlive/2012/bin/i386-linux/tex


there is in /wolfgang/texlive/ besides /2012/ also texmf-local

Wolfgang


Re: PStricks in LyX

2013-04-14 Thread Jürgen Spitzmüller
Am Sonntag 14 April 2013, 09:47:20 schrieb Wolfgang Engelmann:
 kpsewhich -var-value TEXMFHOME
 /home/wolfgang/texmf

Good. Now try (as normal user)
texhash

and then
kpsewhich ttctexa.cls

Jürgen


Re: PStricks in LyX

2013-04-14 Thread Wolfgang Engelmann
Am Sonntag, 14. April 2013, 10:02:49 schrieb Jürgen Spitzmüller:
 Am Sonntag 14 April 2013, 09:47:20 schrieb Wolfgang Engelmann:
  kpsewhich -var-value TEXMFHOME
  /home/wolfgang/texmf
 
 Good. Now try (as normal user)
 texhash

texhash: /mnt/sda/home/wolfgang/texlive/2012/texmf/ls-R: no write 
permission, skipping
 
 and then
 kpsewhich ttctexa.cls
wolfgang@wolfgang:/mnt/sda/home/wolfgang$ kpsewhich ttctexa.cls
wolfgang@wolfgang:/mnt/sda/home/wolfgang$

so that is apparently the culprite:
no write permission, skipping

Thanks a lot!

Wolfgang


Re: PStricks in LyX

2013-04-14 Thread Jürgen Spitzmüller
Am Sonntag 14 April 2013, 11:27:48 schrieb Wolfgang Engelmann:
   kpsewhich -var-value TEXMFHOME
   /home/wolfgang/texmf
 
  
 
  Good. Now try (as normal user)
  texhash
 
 texhash: /mnt/sda/home/wolfgang/texlive/2012/texmf/ls-R: no write 
 permission, skipping
 
  
 
  and then
  kpsewhich ttctexa.cls
 
 wolfgang@wolfgang:/mnt/sda/home/wolfgang$ kpsewhich ttctexa.cls
 wolfgang@wolfgang:/mnt/sda/home/wolfgang$
 
 so that is apparently the culprite:
 no write permission, skipping

OK, so change the permissions.

Just to make clear: The .cls file in question needs to go to 
/home/wolfgang/texmf/, not /home/wolfgang/texlive/2012/texmf/

Jürgen



Using German sort order with nomencl

2013-04-14 Thread Thomas Strausz

Hello,

In a German language document I am trying to produce a nomenclature in LyX
using the implemented functions for the nomencl package. Some of the symbols
I use start with a German umlaut, e. g. ÖJZ. These entries are listed at the
beginning of the nomenclature if I code the umlaute as \A, \O, \U and at
the end if I type them in directly as Ä, Ö or Ü. However, I want them to be
listed among the entries starting with A, O or U respectively, so I changed
the nomenclature command in Tools  Preferences  Output  LaTeX to
makeindex -g -s mein_nomencl.ist; -g being the command to tell MakeIndex
to use the German sort order and mein_nomencl.ist being a .ist-file with
the command quote '+'.

LyX compiles the nomenclature without any problems other than the wrong sort
order if I use the standard nomenclature command. However, with my changed
options it will produce a document where everything I wrote besides the
nomenclature is printed, but the nomenclature is completely left out.

Does anybody know an explanation for this behaviour? I would be very
thankful for your help.

Thomas



Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Mark Dalphin

Hi,

I use Lyx for writing reports on data analysis. To incorporate results 
from those analysis, I use Sweave within Lyx. This is all nicely 
integrated in the recent versions of Lyx. There is one major 
inconvenience remaining for me, however, and that is described here.


I usually develop my R-code in Emacs (ESS-mode). This permits me to 
refine my tables and graphs before I incorporate them into Lyx. This is 
much faster as it interactive and avoids the time to run LaTeX (or 
export the R, etc etc). Then I write the text part of my report, and, in 
the Lyx scrap, I paste the required chunks of R-code. Nice and simple 
(thank you!). The problem is that when I paste the R-code from Emacs to 
the Lyx scrap, the End-Of-Line character gets converted into something 
else (a BLANK or some other white space, I guess), which is not 
acceptable to the R-parser when Sweave runs. This means that every paste 
operation is followed by many edit operations to convert the blanks back 
into new-lines.


Is is possible to prevent this mangling of the paste? Or could there be 
a right-click option to paste-retaining-newlines or something such 
item? Or is this a user-error and there is a better way to perform the 
actions I am describing (A wild example that I have not tried: in a 
blank Lyx window, import the Emacs file, then cut-and-paste from one Lyx 
buffer to another).


System: Linux (Kubuntu 8.04)
Lyx: 2.0.5.1, built from source.

Cut-and-paste: Standard Linux/X11, selecting with left-mouse button and 
pasting with center mouse button.


Regards,
Mark

--



   Mark Dalphin Ph.D.

Director of Bioinformatics

mark.dalp...@pacificedge.co.nz mailto:mark.dalp...@pacificedge.co.nz
*Ph:* +64-3-479-5805
*Cell:* +64-21-156-7625
*Skype:* mark.dalphin.pel
http://www.facebook.com/pages/Pacific-Edge/111356775582456 
http://twitter.com/#%21/pacificEdgeLtd 
http://www.youtube.com/PacificEdgeLtd


87 St David St, PO Box 56, Dunedin, New Zealand 9016www.pacificedge.co.nz

attachment: mark_dalphin.vcf

Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Yihui Xie
Short answer: you can use Ctrl+L and Ctrl+Shift+V instead of Scrap and Ctrl+V.

Note Scrap is obsolete now. The new name is Chunk. Some users choose
to use this, but others like me use the ERT (Ctrl+L). It is up to you.

A slightly longer answer: you do not really have to paste code between
Emacs and LyX if you use the knitr module instead of Sweave. See
http://yihui.name/knitr/demo/externalization/ for examples, and
http://yihui.name/knitr/demo/lyx/ for a video demo of knitr in LyX.

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Sun, Apr 14, 2013 at 6:06 PM, Mark Dalphin
mark.dalp...@pacificedge.co.nz wrote:
 Hi,

 I use Lyx for writing reports on data analysis. To incorporate results from
 those analysis, I use Sweave within Lyx. This is all nicely integrated in
 the recent versions of Lyx. There is one major inconvenience remaining for
 me, however, and that is described here.

 I usually develop my R-code in Emacs (ESS-mode). This permits me to refine
 my tables and graphs before I incorporate them into Lyx. This is much faster
 as it interactive and avoids the time to run LaTeX (or export the R, etc
 etc). Then I write the text part of my report, and, in the Lyx scrap, I
 paste the required chunks of R-code. Nice and simple (thank you!). The
 problem is that when I paste the R-code from Emacs to the Lyx scrap, the
 End-Of-Line character gets converted into something else (a BLANK or some
 other white space, I guess), which is not acceptable to the R-parser when
 Sweave runs. This means that every paste operation is followed by many edit
 operations to convert the blanks back into new-lines.

 Is is possible to prevent this mangling of the paste? Or could there be a
 right-click option to paste-retaining-newlines or something such item? Or
 is this a user-error and there is a better way to perform the actions I am
 describing (A wild example that I have not tried: in a blank Lyx window,
 import the Emacs file, then cut-and-paste from one Lyx buffer to another).

 System: Linux (Kubuntu 8.04)
 Lyx: 2.0.5.1, built from source.

 Cut-and-paste: Standard Linux/X11, selecting with left-mouse button and
 pasting with center mouse button.

 Regards,
 Mark

 --



Mark Dalphin Ph.D.

 Director of Bioinformatics

 mark.dalp...@pacificedge.co.nz mailto:mark.dalp...@pacificedge.co.nz
 *Ph:* +64-3-479-5805
 *Cell:* +64-21-156-7625
 *Skype:* mark.dalphin.pel
 http://www.facebook.com/pages/Pacific-Edge/111356775582456
 http://twitter.com/#%21/pacificEdgeLtd
 http://www.youtube.com/PacificEdgeLtd

 87 St David St, PO Box 56, Dunedin, New Zealand 9016www.pacificedge.co.nz



Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Scott Kostyshak
On Sun, Apr 14, 2013 at 7:06 PM, Mark Dalphin
mark.dalp...@pacificedge.co.nz wrote:
 I usually develop my R-code in Emacs (ESS-mode). This permits me to refine
 my tables and graphs before I incorporate them into Lyx. This is much faster
 as it interactive and avoids the time to run LaTeX (or export the R, etc
 etc). Then I write the text part of my report, and, in the Lyx scrap, I
 paste the required chunks of R-code. Nice and simple (thank you!). The
 problem is that when I paste the R-code from Emacs to the Lyx scrap, the
 End-Of-Line character gets converted into something else (a BLANK or some
 other white space, I guess), which is not acceptable to the R-parser when
 Sweave runs. This means that every paste operation is followed by many edit
 operations to convert the blanks back into new-lines.

 Is is possible to prevent this mangling of the paste?

Hi Mark,

Does ctrl+shift+v work for you? Or, Edit  Paste Special  Plain Text ?

Best,

Scott


Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Mark Dalphin
Thanks to both Scott Kostyshak and Yihui Xie (I appreciate Yihui not 
reminding me that he has already suggested I switch to knitr). I 
mis-wrote when I said scrap in my text; it is indeed the chunk into 
which I paste my text from Emacs.


When I use ctrl-shift-v into a chunk that I have pre-filled with 
echo=FALSE,fig=TRUE=\n (where \n means I am on the next line, 
not the literal characters), the first line adds correctly, then there 
is a blank line and change of paragraph type into Standard, with the 
remaining lines in that standard paragraph.


If I change my work order and paste-special into a Standard paragraph, 
it looks alright, but then selection of those lines and conversion to a 
Chunk paragraph yields a similar output: one good, chunk line, a blank 
line plus several lines in the following Standard paragraph.


Trying Yihui's ERT format seemed to paste correctly, however, I am left 
wondering then in what kind of paragraph should the ERT exist. Just as 
a stand-alone Standard paragraph? I can live with that if it leads to 
clean processing of my report. Does anyone have any comments on possible 
side-effects of using the ERT to contain the Sweave material?


Cheers,
Mark

Scott Kostyshak wrote:

On Sun, Apr 14, 2013 at 7:06 PM, Mark Dalphin
mark.dalp...@pacificedge.co.nz wrote:
  

I usually develop my R-code in Emacs (ESS-mode). This permits me to refine
my tables and graphs before I incorporate them into Lyx. This is much faster
as it interactive and avoids the time to run LaTeX (or export the R, etc
etc). Then I write the text part of my report, and, in the Lyx scrap, I
paste the required chunks of R-code. Nice and simple (thank you!). The
problem is that when I paste the R-code from Emacs to the Lyx scrap, the
End-Of-Line character gets converted into something else (a BLANK or some
other white space, I guess), which is not acceptable to the R-parser when
Sweave runs. This means that every paste operation is followed by many edit
operations to convert the blanks back into new-lines.

Is is possible to prevent this mangling of the paste?



Hi Mark,

Does ctrl+shift+v work for you? Or, Edit  Paste Special  Plain Text ?

Best,

Scott

  


--



   Mark Dalphin Ph.D.

Director of Bioinformatics

mark.dalp...@pacificedge.co.nz mailto:mark.dalp...@pacificedge.co.nz
*Ph:* +64-3-479-5805
*Cell:* +64-21-156-7625
*Skype:* mark.dalphin.pel
http://www.facebook.com/pages/Pacific-Edge/111356775582456 
http://twitter.com/#%21/pacificEdgeLtd 
http://www.youtube.com/PacificEdgeLtd


87 St David St, PO Box 56, Dunedin, New Zealand 9016www.pacificedge.co.nz

attachment: mark_dalphin.vcf

Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Yihui Xie
My suggestion is always ERT for R code chunks, because it is clean and
easier to play with program code.

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Sun, Apr 14, 2013 at 10:30 PM, Mark Dalphin
mark.dalp...@pacificedge.co.nz wrote:
 Thanks to both Scott Kostyshak and Yihui Xie (I appreciate Yihui not
 reminding me that he has already suggested I switch to knitr). I mis-wrote
 when I said scrap in my text; it is indeed the chunk into which I paste
 my text from Emacs.

 When I use ctrl-shift-v into a chunk that I have pre-filled with
 echo=FALSE,fig=TRUE=\n (where \n means I am on the next line, not
 the literal characters), the first line adds correctly, then there is a
 blank line and change of paragraph type into Standard, with the remaining
 lines in that standard paragraph.

 If I change my work order and paste-special into a Standard paragraph, it
 looks alright, but then selection of those lines and conversion to a Chunk
 paragraph yields a similar output: one good, chunk line, a blank line plus
 several lines in the following Standard paragraph.

 Trying Yihui's ERT format seemed to paste correctly, however, I am left
 wondering then in what kind of paragraph should the ERT exist. Just as a
 stand-alone Standard paragraph? I can live with that if it leads to clean
 processing of my report. Does anyone have any comments on possible
 side-effects of using the ERT to contain the Sweave material?

 Cheers,
 Mark


Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Liviu Andronic
On Mon, Apr 15, 2013 at 5:30 AM, Mark Dalphin
mark.dalp...@pacificedge.co.nz wrote:
 If I change my work order and paste-special into a Standard paragraph, it
 looks alright, but then selection of those lines and conversion to a Chunk
 paragraph yields a similar output: one good, chunk line, a blank line plus
 several lines in the following Standard paragraph.

One more reason why Chunk Styles are not suitable for coding.


 Trying Yihui's ERT format seemed to paste correctly, however, I am left
 wondering then in what kind of paragraph should the ERT exist. Just as a

To be safe, 'Plain'. (Or Standard, or whatever the least fancy style
is called.)


 stand-alone Standard paragraph? I can live with that if it leads to clean
 processing of my report. Does anyone have any comments on possible
 side-effects of using the ERT to contain the Sweave material?

It works excellently if you asked me. If you're wondering how the code
ends up in the final document, try to View  Source to check how the
chunks get displayed in the LaTeX markup; this is what R will get when
you start compiling.

Liviu


 Cheers,
 Mark


 Scott Kostyshak wrote:

 On Sun, Apr 14, 2013 at 7:06 PM, Mark Dalphin
 mark.dalp...@pacificedge.co.nz wrote:


 I usually develop my R-code in Emacs (ESS-mode). This permits me to
 refine
 my tables and graphs before I incorporate them into Lyx. This is much
 faster
 as it interactive and avoids the time to run LaTeX (or export the R, etc
 etc). Then I write the text part of my report, and, in the Lyx scrap, I
 paste the required chunks of R-code. Nice and simple (thank you!). The
 problem is that when I paste the R-code from Emacs to the Lyx scrap, the
 End-Of-Line character gets converted into something else (a BLANK or some
 other white space, I guess), which is not acceptable to the R-parser when
 Sweave runs. This means that every paste operation is followed by many
 edit
 operations to convert the blanks back into new-lines.

 Is is possible to prevent this mangling of the paste?



 Hi Mark,

 Does ctrl+shift+v work for you? Or, Edit  Paste Special  Plain Text ?

 Best,

 Scott




 --



Mark Dalphin Ph.D.

 Director of Bioinformatics

 mark.dalp...@pacificedge.co.nz mailto:mark.dalp...@pacificedge.co.nz
 *Ph:* +64-3-479-5805
 *Cell:* +64-21-156-7625
 *Skype:* mark.dalphin.pel
 http://www.facebook.com/pages/Pacific-Edge/111356775582456
 http://twitter.com/#%21/pacificEdgeLtd
 http://www.youtube.com/PacificEdgeLtd

 87 St David St, PO Box 56, Dunedin, New Zealand 9016www.pacificedge.co.nz




-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: PStricks in LyX

2013-04-14 Thread Jürgen Spitzmüller
Wolfgang Engelmann wrote:
> but it still does not find it. I have the impression, that texhash is not 
> using my 
> home/texlive/2012/ 

What does
kpsewhich -var-value TEXMFHOME
return?

>  sudo texhash
> texhash: Updating /usr/local/share/texmf/ls-R... 
> texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN... 
> texhash: Updating /var/lib/texmf/ls-R-TEXLIVE... 
> texhash: Updating /var/lib/texmf/ls-R... 
> texhash: Done.

Do not run texhash as root/su. The home texmf tree is only updated if you run 
texhash as normal user.

Jürgen


Re: PStricks in LyX

2013-04-14 Thread Wolfgang Engelmann
Am Sonntag, 14. April 2013, 09:28:23 schrieb Jürgen Spitzmüller:
> Wolfgang Engelmann wrote:
> > but it still does not find it. I have the impression, that texhash is
> > not using my
> > home/texlive/2012/ 
> 
> What does
> kpsewhich -var-value TEXMFHOME
> return?
> 

Hi, Jürgen,

kpsewhich -var-value TEXMFHOME
/home/wolfgang/texmf

and

which tex
/mnt/sda/home/wolfgang/texlive/2012/bin/i386-linux/tex


there is in /wolfgang/texlive/ besides /2012/ also texmf-local

Wolfgang


Re: PStricks in LyX

2013-04-14 Thread Jürgen Spitzmüller
Am Sonntag 14 April 2013, 09:47:20 schrieb Wolfgang Engelmann:
> kpsewhich -var-value TEXMFHOME
> /home/wolfgang/texmf

Good. Now try (as normal user)
texhash

and then
kpsewhich ttctexa.cls

Jürgen


Re: PStricks in LyX

2013-04-14 Thread Wolfgang Engelmann
Am Sonntag, 14. April 2013, 10:02:49 schrieb Jürgen Spitzmüller:
> Am Sonntag 14 April 2013, 09:47:20 schrieb Wolfgang Engelmann:
> > kpsewhich -var-value TEXMFHOME
> > /home/wolfgang/texmf
> 
> Good. Now try (as normal user)
> texhash

texhash: /mnt/sda/home/wolfgang/texlive/2012/texmf/ls-R: no write 
permission, skipping
> 
> and then
> kpsewhich ttctexa.cls
wolfgang@wolfgang:/mnt/sda/home/wolfgang$ kpsewhich ttctexa.cls
wolfgang@wolfgang:/mnt/sda/home/wolfgang$

so that is apparently the culprite:
no write permission, skipping

Thanks a lot!

Wolfgang


Re: PStricks in LyX

2013-04-14 Thread Jürgen Spitzmüller
Am Sonntag 14 April 2013, 11:27:48 schrieb Wolfgang Engelmann:
> > > kpsewhich -var-value TEXMFHOME
> > > /home/wolfgang/texmf
> >
> > 
> >
> > Good. Now try (as normal user)
> > texhash
> 
> texhash: /mnt/sda/home/wolfgang/texlive/2012/texmf/ls-R: no write 
> permission, skipping
> 
> > 
> >
> > and then
> > kpsewhich ttctexa.cls
> 
> wolfgang@wolfgang:/mnt/sda/home/wolfgang$ kpsewhich ttctexa.cls
> wolfgang@wolfgang:/mnt/sda/home/wolfgang$
> 
> so that is apparently the culprite:
> no write permission, skipping

OK, so change the permissions.

Just to make clear: The .cls file in question needs to go to 
/home/wolfgang/texmf/, not /home/wolfgang/texlive/2012/texmf/

Jürgen



Using German sort order with nomencl

2013-04-14 Thread Thomas Strausz

Hello,

In a German language document I am trying to produce a nomenclature in LyX
using the implemented functions for the nomencl package. Some of the symbols
I use start with a German umlaut, e. g. ÖJZ. These entries are listed at the
beginning of the nomenclature if I code the umlaute as \"A, \"O, \"U and at
the end if I type them in directly as Ä, Ö or Ü. However, I want them to be
listed among the entries starting with A, O or U respectively, so I changed
the nomenclature command in Tools > Preferences > Output > LaTeX to
"makeindex -g -s mein_nomencl.ist"; "-g" being the command to tell MakeIndex
to use the German sort order and "mein_nomencl.ist" being a .ist-file with
the command "quote '+'".

LyX compiles the nomenclature without any problems other than the wrong sort
order if I use the standard nomenclature command. However, with my changed
options it will produce a document where everything I wrote besides the
nomenclature is printed, but the nomenclature is completely left out.

Does anybody know an explanation for this behaviour? I would be very
thankful for your help.

Thomas



Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Mark Dalphin

Hi,

I use Lyx for writing reports on data analysis. To incorporate results 
from those analysis, I use Sweave within Lyx. This is all nicely 
integrated in the recent versions of Lyx. There is one major 
inconvenience remaining for me, however, and that is described here.


I usually develop my R-code in Emacs (ESS-mode). This permits me to 
refine my tables and graphs before I incorporate them into Lyx. This is 
much faster as it interactive and avoids the time to run LaTeX (or 
export the R, etc etc). Then I write the text part of my report, and, in 
the Lyx scrap, I paste the required chunks of R-code. Nice and simple 
(thank you!). The problem is that when I paste the R-code from Emacs to 
the Lyx scrap, the End-Of-Line character gets converted into something 
else (a BLANK or some other white space, I guess), which is not 
acceptable to the R-parser when Sweave runs. This means that every paste 
operation is followed by many edit operations to convert the blanks back 
into new-lines.


Is is possible to prevent this mangling of the paste? Or could there be 
a right-click option to "paste-retaining-newlines" or something such 
item? Or is this a user-error and there is a better way to perform the 
actions I am describing (A wild example that I have not tried: in a 
blank Lyx window, import the Emacs file, then cut-and-paste from one Lyx 
buffer to another).


System: Linux (Kubuntu 8.04)
Lyx: 2.0.5.1, built from source.

Cut-and-paste: Standard Linux/X11, selecting with left-mouse button and 
pasting with center mouse button.


Regards,
Mark

--



   Mark Dalphin Ph.D.

Director of Bioinformatics

mark.dalp...@pacificedge.co.nz 
*Ph:* +64-3-479-5805
*Cell:* +64-21-156-7625
*Skype:* mark.dalphin.pel
 
 



87 St David St, PO Box 56, Dunedin, New Zealand 9016www.pacificedge.co.nz

<>

Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Yihui Xie
Short answer: you can use Ctrl+L and Ctrl+Shift+V instead of Scrap and Ctrl+V.

Note Scrap is obsolete now. The new name is Chunk. Some users choose
to use this, but others like me use the ERT (Ctrl+L). It is up to you.

A slightly longer answer: you do not really have to paste code between
Emacs and LyX if you use the knitr module instead of Sweave. See
http://yihui.name/knitr/demo/externalization/ for examples, and
http://yihui.name/knitr/demo/lyx/ for a video demo of knitr in LyX.

Regards,
Yihui
--
Yihui Xie 
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Sun, Apr 14, 2013 at 6:06 PM, Mark Dalphin
 wrote:
> Hi,
>
> I use Lyx for writing reports on data analysis. To incorporate results from
> those analysis, I use Sweave within Lyx. This is all nicely integrated in
> the recent versions of Lyx. There is one major inconvenience remaining for
> me, however, and that is described here.
>
> I usually develop my R-code in Emacs (ESS-mode). This permits me to refine
> my tables and graphs before I incorporate them into Lyx. This is much faster
> as it interactive and avoids the time to run LaTeX (or export the R, etc
> etc). Then I write the text part of my report, and, in the Lyx scrap, I
> paste the required chunks of R-code. Nice and simple (thank you!). The
> problem is that when I paste the R-code from Emacs to the Lyx scrap, the
> End-Of-Line character gets converted into something else (a BLANK or some
> other white space, I guess), which is not acceptable to the R-parser when
> Sweave runs. This means that every paste operation is followed by many edit
> operations to convert the blanks back into new-lines.
>
> Is is possible to prevent this mangling of the paste? Or could there be a
> right-click option to "paste-retaining-newlines" or something such item? Or
> is this a user-error and there is a better way to perform the actions I am
> describing (A wild example that I have not tried: in a blank Lyx window,
> import the Emacs file, then cut-and-paste from one Lyx buffer to another).
>
> System: Linux (Kubuntu 8.04)
> Lyx: 2.0.5.1, built from source.
>
> Cut-and-paste: Standard Linux/X11, selecting with left-mouse button and
> pasting with center mouse button.
>
> Regards,
> Mark
>
> --
>
>
>
>Mark Dalphin Ph.D.
>
> Director of Bioinformatics
>
> mark.dalp...@pacificedge.co.nz 
> *Ph:* +64-3-479-5805
> *Cell:* +64-21-156-7625
> *Skype:* mark.dalphin.pel
> 
> 
> 
>
> 87 St David St, PO Box 56, Dunedin, New Zealand 9016www.pacificedge.co.nz
>


Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Scott Kostyshak
On Sun, Apr 14, 2013 at 7:06 PM, Mark Dalphin
 wrote:
> I usually develop my R-code in Emacs (ESS-mode). This permits me to refine
> my tables and graphs before I incorporate them into Lyx. This is much faster
> as it interactive and avoids the time to run LaTeX (or export the R, etc
> etc). Then I write the text part of my report, and, in the Lyx scrap, I
> paste the required chunks of R-code. Nice and simple (thank you!). The
> problem is that when I paste the R-code from Emacs to the Lyx scrap, the
> End-Of-Line character gets converted into something else (a BLANK or some
> other white space, I guess), which is not acceptable to the R-parser when
> Sweave runs. This means that every paste operation is followed by many edit
> operations to convert the blanks back into new-lines.
>
> Is is possible to prevent this mangling of the paste?

Hi Mark,

Does ctrl+shift+v work for you? Or, Edit > Paste Special > Plain Text ?

Best,

Scott


Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Mark Dalphin
Thanks to both Scott Kostyshak and Yihui Xie (I appreciate Yihui not 
reminding me that he has already suggested I switch to knitr). I 
mis-wrote when I said "scrap" in my text; it is indeed the "chunk" into 
which I paste my text from Emacs.


When I use "ctrl-shift-v" into a chunk that I have pre-filled with 

Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Yihui Xie
My suggestion is always ERT for R code chunks, because it is clean and
easier to play with program code.

Regards,
Yihui
--
Yihui Xie 
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA


On Sun, Apr 14, 2013 at 10:30 PM, Mark Dalphin
 wrote:
> Thanks to both Scott Kostyshak and Yihui Xie (I appreciate Yihui not
> reminding me that he has already suggested I switch to knitr). I mis-wrote
> when I said "scrap" in my text; it is indeed the "chunk" into which I paste
> my text from Emacs.
>
> When I use "ctrl-shift-v" into a chunk that I have pre-filled with
> 

Re: Working with Lyx and Sweave; pasting R-code from Emacs into Lyx seems awkward. Any suggestions?

2013-04-14 Thread Liviu Andronic
On Mon, Apr 15, 2013 at 5:30 AM, Mark Dalphin
 wrote:
> If I change my work order and paste-special into a "Standard" paragraph, it
> looks alright, but then selection of those lines and conversion to a "Chunk"
> paragraph yields a similar output: one good, chunk line, a blank line plus
> several lines in the following "Standard" paragraph.
>
One more reason why Chunk Styles are not suitable for coding.


> Trying Yihui's ERT format seemed to paste correctly, however, I am left
> wondering then "in what kind of paragraph" should the ERT exist. Just as a
>
To be safe, 'Plain'. (Or Standard, or whatever the least fancy style
is called.)


> stand-alone "Standard" paragraph? I can live with that if it leads to clean
> processing of my report. Does anyone have any comments on possible
> side-effects of using the ERT to contain the Sweave material?
>
It works excellently if you asked me. If you're wondering how the code
ends up in the final document, try to View > Source to check how the
chunks get displayed in the LaTeX markup; this is what R will get when
you start compiling.

Liviu


> Cheers,
> Mark
>
>
> Scott Kostyshak wrote:
>>
>> On Sun, Apr 14, 2013 at 7:06 PM, Mark Dalphin
>>  wrote:
>>
>>>
>>> I usually develop my R-code in Emacs (ESS-mode). This permits me to
>>> refine
>>> my tables and graphs before I incorporate them into Lyx. This is much
>>> faster
>>> as it interactive and avoids the time to run LaTeX (or export the R, etc
>>> etc). Then I write the text part of my report, and, in the Lyx scrap, I
>>> paste the required chunks of R-code. Nice and simple (thank you!). The
>>> problem is that when I paste the R-code from Emacs to the Lyx scrap, the
>>> End-Of-Line character gets converted into something else (a BLANK or some
>>> other white space, I guess), which is not acceptable to the R-parser when
>>> Sweave runs. This means that every paste operation is followed by many
>>> edit
>>> operations to convert the blanks back into new-lines.
>>>
>>> Is is possible to prevent this mangling of the paste?
>>>
>>
>>
>> Hi Mark,
>>
>> Does ctrl+shift+v work for you? Or, Edit > Paste Special > Plain Text ?
>>
>> Best,
>>
>> Scott
>>
>>
>
>
> --
>
>
>
>Mark Dalphin Ph.D.
>
> Director of Bioinformatics
>
> mark.dalp...@pacificedge.co.nz 
> *Ph:* +64-3-479-5805
> *Cell:* +64-21-156-7625
> *Skype:* mark.dalphin.pel
> 
> 
> 
>
> 87 St David St, PO Box 56, Dunedin, New Zealand 9016www.pacificedge.co.nz
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail