Re: [R] [Sweave] doesn't accept unicode?

2014-10-22 Thread moonkid
Maybe your answers are solutions, but not in my case. As I indicated with my code-sample I don't have a complete tex-file (with usepackage, document-env, etc). I only generate a piece of a tex file to \input it later in my puplication tex-file. So there is no way to specifiy an encoding with a

Re: [R] [Sweave] doesn't accept unicode?

2014-10-21 Thread Yihui Xie
That blog post is not entirely correct about UTF-8: if you use pdflatex, you have to declare the font encoding \usepackage[T1]{fontenc} when you save the document with UTF-8, e.g. the following minimal example should work with pdflatex + knitr in RStudio with UTF-8: \documentclass{article} \usepac

Re: [R] [Sweave] doesn't accept unicode?

2014-10-21 Thread Marc Girondot
Look at here for an example using an encoding in knitr: http://max2.ese.u-psud.fr/epc/conservation/Girondot/Publications/Blog_r/Entrees/2014/9/4_symbol_in_knitr.html Sincerely Marc Le 22/10/2014 02:45, moon...@posteo.org a écrit : Of course I manage and write my tex-files in unicode (utf-8) (r

[R] [Sweave] doesn't accept unicode?

2014-10-21 Thread moonkid
Of course I manage and write my tex-files in unicode (utf-8) (running XeTeX). That is why my R-output need to be in unicode, too. But Sweave doesn't accept unicode files. [R] Sweave("analy.Snw") Fehler: ‘analy.Snw’ is not ASCII and does not declare an encoding [/R] [analy.Snw] <<>>= x <- ü