Re: error in LyX with Turkish language using knitr
30/08/2013 18:26, Yihui Xie: I can reproduce the problem after I enable babel in the document. Normally I disable it because it often causes me trouble for unknown reasons. To disable it globally: Preferences-->Language Settings-->Language package-->None. Or disable it only for this document: Document-->Settings-->Language-->Language package-->None. Without babel, it compiles fine. From the top of my head, problems with turkish include 1/ in Turkish locale, `I' is not the uppercase of `i', because dotted and dotless versions of this letter exist. 2/ there is a common problem with babel due to the fact that the = character is made active. This breaks in particular the keyval package. See bug 2005 for background. http://www.lyx.org/trac/ticket/2005 JMarc
Re: error in LyX with Turkish language using knitr
I can reproduce the problem after I enable babel in the document. Normally I disable it because it often causes me trouble for unknown reasons. To disable it globally: Preferences-->Language Settings-->Language package-->None. Or disable it only for this document: Document-->Settings-->Language-->Language package-->None. Without babel, it compiles fine. Regards, Yihui -- Yihui Xie Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Fri, Aug 30, 2013 at 2:07 AM, Kizilkaya, Kadir [AN S] wrote: > Hi Scott, > > I attached the lyx file, I hope it is the correct one. > > Kadir > > From: skost...@lyx.org [skost...@lyx.org] on behalf of Scott Kostyshak > [skost...@princeton.edu] > Sent: Friday, August 30, 2013 1:24 AM > To: Kizilkaya, Kadir [AN S] > Cc: lyx-users > Subject: Re: error in LyX with Turkish language using knitr > > On Fri, Aug 30, 2013 at 2:06 AM, Kizilkaya, Kadir [AN S] > wrote: >> Tex file from LyX and Session info in R are below. > > Hi Kadir, > > Can you please send the .lyx file (the file that created the LaTeX file)? > > Thanks, > > Scott
Re: error in LyX with Turkish language using knitr
On Fri, Aug 30, 2013 at 3:07 AM, Kizilkaya, Kadir [AN S] wrote: > Hi Scott, > > I attached the lyx file, I hope it is the correct one. > > Kadir Hi Kadir, Thank you for sending the .lyx file. I can reproduce your error. This looks like a babel bug to me. However, I'm not experienced with such issues. Let's see if someone else has an idea. Scott
RE: error in LyX with Turkish language using knitr
Hi Scott, I attached the lyx file, I hope it is the correct one. Kadir From: skost...@lyx.org [skost...@lyx.org] on behalf of Scott Kostyshak [skost...@princeton.edu] Sent: Friday, August 30, 2013 1:24 AM To: Kizilkaya, Kadir [AN S] Cc: lyx-users Subject: Re: error in LyX with Turkish language using knitr On Fri, Aug 30, 2013 at 2:06 AM, Kizilkaya, Kadir [AN S] wrote: > Tex file from LyX and Session info in R are below. Hi Kadir, Can you please send the .lyx file (the file that created the LaTeX file)? Thanks, Scott newfile2.lyx Description: newfile2.lyx
Re: error in LyX with Turkish language using knitr
On Fri, Aug 30, 2013 at 2:06 AM, Kizilkaya, Kadir [AN S] wrote: > Tex file from LyX and Session info in R are below. Hi Kadir, Can you please send the .lyx file (the file that created the LaTeX file)? Thanks, Scott
RE: error in LyX with Turkish language using knitr
Tex file from LyX and Session info in R are below. Kadir % Preview source code %% LyX 2.0.5 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[turkish]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{luainputenc} \usepackage{setspace} \doublespacing \usepackage{babel} \usepackage{xkeyval} \begin{document} \title{rrr} \maketitle \tableofcontents{} \chapter{} sss s <<>>= plot(rnorm(100)) @ s \end{document} > library(knitr) > sessionInfo() R version 2.15.0 (2012-03-30) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] knitr_1.1 loaded via a namespace (and not attached): [1] digest_0.6.3 evaluate_0.4.3 formatR_0.7stringr_0.6.2 tools_2.15.0 > system('pdflatex --version') pdfTeX 3.1415926-1.40.11-2.2 (TeX Live 2010) kpathsea version 6.0.0 Copyright 2010 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). There is NO warranty. Redistribution of this software is covered by the terms of both the pdfTeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the pdfTeX source. Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX). Compiled with libpng 1.2.40; using libpng 1.2.40 Compiled with zlib 1.2.3; using zlib 1.2.3 Compiled with xpdf version 3.02pl4 From: xieyi...@gmail.com [xieyi...@gmail.com] on behalf of Yihui Xie [x...@yihui.name] Sent: Thursday, August 29, 2013 5:17 PM To: lyx-users Cc: Kizilkaya, Kadir [AN S] Subject: Re: error in LyX with Turkish language using knitr and also your session info in R: library(knitr) sessionInfo() system('pdflatex --version') Regards, Yihui -- Yihui Xie Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Aug 29, 2013 at 4:34 PM, Scott Kostyshak wrote: > On Thu, Aug 29, 2013 at 4:19 PM, Kizilkaya, Kadir [AN S] > wrote: >> Dear LyX users, >> >> I am a LyX user and I would like to prepare a document in Turkish language >> by using Rnw (knitr) in modules. My sample source code is below and > > Hi Kadir, > > Can you please send the .lyx file the produced that .tex file? > > Scott
Re: error in LyX with Turkish language using knitr
and also your session info in R: library(knitr) sessionInfo() system('pdflatex --version') Regards, Yihui -- Yihui Xie Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, Aug 29, 2013 at 4:34 PM, Scott Kostyshak wrote: > On Thu, Aug 29, 2013 at 4:19 PM, Kizilkaya, Kadir [AN S] > wrote: >> Dear LyX users, >> >> I am a LyX user and I would like to prepare a document in Turkish language >> by using Rnw (knitr) in modules. My sample source code is below and > > Hi Kadir, > > Can you please send the .lyx file the produced that .tex file? > > Scott
Re: error in LyX with Turkish language using knitr
On Thu, Aug 29, 2013 at 4:19 PM, Kizilkaya, Kadir [AN S] wrote: > Dear LyX users, > > I am a LyX user and I would like to prepare a document in Turkish language > by using Rnw (knitr) in modules. My sample source code is below and Hi Kadir, Can you please send the .lyx file the produced that .tex file? Scott
error in LyX with Turkish language using knitr
Dear LyX users, I am a LyX user and I would like to prepare a document in Turkish language by using Rnw (knitr) in modules. My sample source code is below and Regards Kadir SAMPLE SOURCE CODE = % Preview source code %% LyX 2.0.5 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[turkish]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{luainputenc} \usepackage{setspace} \doublespacing \usepackage{babel} \usepackage{xkeyval} \begin{document} \title{rrr} \maketitle \tableofcontents{} \chapter{} sss s s s s s <<>>= plot(rnorm(100)) @ s \end{document} ERROR MESSAGE = B\"ol\"um 1. Package color Info: Redefining color shadecolor on input line 91. LaTeX Font Info: Try loading font information for T1+cmtt on input line 92. (/usr/local/texlive/2010/texmf-dist/tex/latex/base/t1cmtt.fd File: t1cmtt.fd 1999/05/25 v2.5h Standard LaTeX font definitions ) LaTeX Font Info: Font shape `T1/cmtt/bx/n' in size <10> not available (Font) Font shape `T1/cmtt/m/n' tried instead on input line 93. ! Missing number, treated as zero. \endgroup l.96 ...s[width=\maxwidth]{figure/unnamed-chunk-1} A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) ! Illegal unit of measure (pt inserted). \endgroup l.96 ...s[width=\maxwidth]{figure/unnamed-chunk-1} Dimensions can be in units of em, ex, in, pt, pc, cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one! I'll assume that you meant to say pt, for printer's points. To recover gracefully from this error, it's best to delete the erroneous units; e.g., type `2' to delete two letters. (See Chapter 27 of The TeXbook.) [5] (./newfile2.aux) )