Re: LyX and Sweave: reading data files
Hi Jean-Marc, Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > I am trying to use Sweave and LyX for a project of my own, and have the > following problem: my R code reads some data > somevars<-read.table("somevars.dat") > and this data file is not available when Sweave is ran from the /tmp > directory. > > I guess this problem is quite common... How do people solve it in > general? I do not want to use an absolute path, since it makes the file > non portable... I am afraid there is no help here unless you are wiling to use the absolute path. I agree that this is far from optimal, but it is still tolerable. Afterall one probably does not switch computers/setups as often as underwear ;) P.S. Did you see my post about use of SageTeX? http://article.gmane.org/gmane.editors.lyx.devel/111574/match=sweave gg
Re: Inline graphics with Rweave/Sweave, OS X
Kevin Middleton <[EMAIL PROTECTED]> writes: > This may be more of an R question than a LyX question, but I thought > I would try lyx-users first. I think this is the right place. > Following the instructions on the wiki (http://wiki.lyx.org/LyX/ > LyxWithRThroughSweave), I successfully setup Rweave (with an small OS > X caveat, see below). Including R graphics as floats works fine, but > I can't figure out how to get graphics included inline. I don't even > know if this is possible. Using the Insert -> Graphics dropdown > brings up a dialog box -- so nowhere to put the Rweave code. > > I also tried putting \includegraphics in an ERT box with the sweave > code inside the {}, but it goes looking for a file called > <>=plot(1:10) . Is there some way to wrap > the Rweave code? Hmm, good catch. I might be wrong, but as far as I can tell this is not possible. By definition, noweb file must have << in the first column of the file. Therefore you could only use inline graphics as the very first thing in a paragraph. But this will work only with ERT and not with scrap style, since that produces its own paragraph. > On a separate note, I'm running LyX 1.4.4 in OS X. Starting LyX from > the LyX.app bundle and then trying to view PDF generates the > following error: "an error occurred whilst running Rweave > 'testfile.nw'". However, if LyX is started from the command line with > "/Applications/LyX.app/Contents/MacOS/lyx", then Rweave works fine. I > was going to add this to the LyxWithRThroughSweave wiki page as a > note. But could another OS X user confirm this behavior for me? I am not an OS X user, but I imagine that Rweave cries due to path problems. Gregor
Re: character styles in LyX 1.5.0?
Stacia Hartleben <[EMAIL PROTECTED]> writes: > basis - is there any chance that in LyX 1.5.0 we will have a menu and > a GUI to add more character styles? You can customise layout files. Gregor
Re: Import noweb file into LyX - bug under Debian/GNU Linux?
Georg Baum <[EMAIL PROTECTED]> writes: > Am Sonntag, 26. November 2006 14:54 schrieb Gregor Gorjanc: > > Is it possible that this bug is still present under Linux (only > Debian/GNU). > > Unlikely. I fixed that bug, and I use Debian, so if there is a bug it is > probably platform independant. ... > I could reproduce the problem. Please file a bug report at bugzilla.lyx.org > and attach a LyX test file. Just did that. This is also present in LyX devel i.e. 1.5. I think that this must be platform *dependent* as I did not encounter problems with 1.4.3-5 under Windows. Thank you! Gregor
Re: Import noweb file into LyX - bug under Debian/GNU Linux?
Gregor Gorjanc <[EMAIL PROTECTED]> writes: > Is anyone able to import the following noweb file into LyX? It was generated > with LyX export function to Noweb from article noweb type. In my case LyX > imports the file, but the text is mangled (bla bla \nwfilename{noweb.nw} > \nwbegincode{1} ...). I have LyX 1.4.2. on Debian. I got offline report that LyX 1.4.3 on Mac properly imports noweb file. I also tried with 1.4.3 (1.4.3-2 version of debian package) under Debian and I again got mangled lyx file. Bellow is the content fo that file. I have searched a bit and found at http://www.lyx.org/announce/1_4_3.txt the following line - Reenable import of noweb files (bug 2289). Is it possible that this bug is still present under Linux (only Debian/GNU). Can anyone please try the following: 1. create new article(Noweb) file in lyx with at least on scrap environment or look at previous post 2. export that file to noweb file or look at previous 3. import noweb file to LyX Thank you! Gregor And mangled LyX file after import from simple noweb file that was created via above described route: #LyX file created by tex2lyx 0.1.2 \lyxformat 245 \begin_document \begin_header \textclass article \begin_preamble %% LyX 1.4.2 created this file. For more info, see http://www.lyx.org/.% ===> this file was generated automatically by noweave --- better not edit it %% Do not edit unless you really know what you are doing. \makeatletter %% Textclass specific LaTeX commands. \usepackage{noweb} \makeatother \end_preamble \language english \inputencoding latin1 \fontscheme default \graphics default \paperfontsize default \spacing single \papersize default \use_geometry false \use_amsmath 0 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \end_header \begin_body \begin_layout Standard bla bla \end_layout \begin_layout Standard \begin_inset ERT status collapsed \begin_layout Standard \backslash nwfilename \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard { \end_layout \end_inset noweb.nw \begin_inset ERT status collapsed \begin_layout Standard } \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard \backslash nwbegincode \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard { \end_layout \end_inset 1 \begin_inset ERT status collapsed \begin_layout Standard } \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard \backslash sublabel \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard { \end_layout \end_inset NW32PBe0-3FFRQf-1 \begin_inset ERT status collapsed \begin_layout Standard } \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard \backslash nwmargintag \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard { \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard { \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard \backslash nwtagstyle \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard {} \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard \backslash subpageref \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard { \end_layout \end_inset NW32PBe0-3FFRQf-1 \begin_inset ERT status collapsed \begin_layout Standard } \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard } \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard } \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard \backslash moddef \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard { \end_layout \end_inset chunk1\InsetSpace ~ \begin_inset ERT status collapsed \begin_layout Standard { \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard \backslash nwtagstyle \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard {} \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard \backslash subpageref \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard { \end_layout \end_inset NW32PBe0-3FFRQf-1 \begin_inset ERT status collapsed \begin_layout Standard } \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard } \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard } \end_layout \end_inset \begin_inset ERT status collapsed \begin_layout Standard \backslash endmoddef \e
Import noweb file into LyX
Hello! Is anyone able to import the following noweb file into LyX? It was generated with LyX export function to Noweb from article noweb type. In my case LyX imports the file, but the text is mangled (bla bla \nwfilename{noweb.nw} \nwbegincode{1} ...). I have LyX 1.4.2. on Debian. Thanks! Gregor %% LyX 1.4.2 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \makeatletter %% Textclass specific LaTeX commands. \usepackage{noweb} \usepackage{babel} \makeatother \begin{document} bla bla <>= 1+1 @ end \end{document}
Command for PDF generation
Hi! Does anyone knows what LyX lunches to produce PDF? I want to know the exact procedure. Why? I have an LyX document with EPS figure. When I export it to PS and then create a PDF with ps2pdf picture gets ugly when previewing PDF in acrobat. On the other hand picture is nice if PDF is exported directly from LyX. -- Lep pozdrav / With regards Gregor