Re: [R] Sweave and accented letters

2011-11-15 Thread Yihui Xie
Yes, that is the point. I would prefer a LyX file instead of text in email, since the encoding can be different. You still did not tell us your R version, or better, sessionInfo(). Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State Univers

Re: [R] Sweave and accented letters

2011-11-15 Thread Duncan Murdoch
On 11-11-15 4:46 AM, Giuseppe wrote: That is exactly what I thought I would do. But the problem persist. In the document below I have added "\inputencoding utf8", yet LyX fails to compile. Yihui is probably right that this is a question about Lyx, not R, but one other thing you can try is to

Re: [R] Sweave and accented letters

2011-11-15 Thread Giuseppe
That is exactly what I thought I would do. But the problem persist. In the document below I have added "\inputencoding utf8", yet LyX fails to compile. #LyX 2.0 created this file. For more info see http://www.lyx.org/ \lyxformat 413 \begin_document \begin_header \textclass article \use_default_

Re: [R] Sweave and accented letters

2011-11-14 Thread Yihui Xie
It might be better to post it to the LyX mailing list (lyx-us...@lists.lyx.org) since you are using LyX. Anyway, the problem came from Sweave: you did not tell us your R version, and I suppose you are using the latest version of R (2.14.0). There are two ways of telling Sweave your UTF8 encoding (s

Re: [R] Sweave and accented letters

2011-11-14 Thread Rolf Turner
On 15/11/11 14:21, Giuseppe wrote: I often use Lyx/Sweave and I typically write in english. Today I had to write a document in Italian and, as many of you know, many italian popular words use è, ù, é. ò, etc. Note that you can render these in LaTex as \`{e}, \`{u}, \'{e}, and \`{o}, respective

[R] Sweave and accented letters

2011-11-14 Thread Giuseppe
I often use Lyx/Sweave and I typically write in english. Today I had to write a document in Italian and, as many of you know, many italian popular words use è, ù, é. ò, etc. I discovered that if I type in Italian (that is there is at least one letter with accent) with the Sweave module selected