Also notice the use of xtable and > in code chunks to produce formatted tables. Great as long as you don’t print a huge object. The shrink option automatically adjusts R output to the page. The huge payoff in terms of time saved producing slides is made by \begin. Remember to put your own logo in the graphic. Some styles such as Title and Author stop the document compiling, so don’t change the title page much. The easiest way to use beamer for the time being is to adapt my template by cutting and pasting the box of “ERT” for every new slide, changing the R code within them to what you need. I found that not all the beamer features work, but you can still get some nice looking slides. It is admitedly hard to get Sweave/beamer working as this is still quite an experimental concept. You will need to read the sweave manual first (A Google for Sweave will provide other material) If the documents compile then you have everything installed correctly.Īgain there is a bit a sharp curve up to get Lyx and Sweave working. lyx), You’ll need beamer-latex installed to compile it and you will have to provide your own logo picture.Īnd here is an early draft of a course for beginners to R that I am writing in Lyx/Sweave. The source in Lyx that made this is available here (again take of the doc extension and change it to. My directory also has a layout incorporated for making beamer files that I got from here. Then do tools/reconfigure in Lyx and you should be able to use Sweave. You might want to back up your original directory first, but the replacement shouldn’t cause any issues. Remember to use control H to see hidden files. lyx directory you have in your home directory by mine. lyx directory hidden as a zip file with fake doc extension. Once all the Latex extras are installed in Ubuntu following the instructions in “INSTALL” here worked well.Ī faster way of getting to this point would be to download the file below which contains my. I have only recently realised just how cool this can be. This has been made possible by the work of Gregor Gojanc. Most R users will be very interested in the use of Sweave with Lyx. Then follow the examples in the Lyx documentation and allow some time for experimentation. Both are very easy in Lyx once you have found out how, but there is an initial learning curve. My main problems were with positioning figures on the page and producing correctly structured tables of content. Define what was most difficult for you to use in an Office suite and find a consistent way to achieve it in Lyx. The logic of using Lyx is to improve productivity, not make simple tasks much more difficult. I now find Lyx easier to use than any office program for long document. It becomes very difficult to maintain a consistent style. However many of us do have problems writing long documents such as theses or technical reports in Office suites. Experienced Office users can probably replicate everything Lyx or Latex can do. The idea of using Lyx is to save time in the long run. The next step before using Lyx seriously for work is to analyse your own ability with Word or Open Office. You will add about 500 MB to your install in total, but that shouldn’t be a problem. This could give you the feeling that the whole system is more trouble than it is worth. You are likely to get at least a few annoying and incomprehensible error messages when compiling documents. Without all the Tex/Latex stuff installed the Lyx experience can be frustrating. This will mean quite a long initial download but you certainly won’t regret it. I can’t remember offhand all the packages I needed, but do go to Synaptics and look for texlive-full plus anything else remotely related with either tex or latex. This avoids later frustrations with missing sty files etc. So how do you use Lyx? The first important tip is to make sure that you install ABSOLUTELY, BUT ABSOLUTELY, EVERYTHING remotely relevant to TEX and Latex before starting anything with Lyx. No need to learn all the details, it is advertised as a WYSWYM latex typesetting program (What you see is what you mean). However I readily admit that I really couldn’t be bothered to learn latex as such. Personally I think it is worth the effort to look seriously at latex, even if you are a complete newcomer to Linux. However there is no denying that Latex documents look impressively formal. There are certainly some issues with the complexity of Latex. It has even been claimed by Windows users that Latex is a legacy typesetting paradigm! However Latex is fundamentally a *nix thing. Any R user in Windows quickly becomes aware that Latex exists. One of the interesting elements of using Linux is the demystification of many *nix concepts that you might have come into contact previously in a lateral manner.
0 Comments
Leave a Reply. |