search for: a4pap

Displaying 20 results from an estimated 69 matches for "a4pap".

Did you mean: apap
2008 Feb 27
2
Sweave produces gibberish instead of apostrophe in pdf
.... If I manually replace the apostrophes using the keyboard, I get a different looking apostrophe and the output is correct. I'm using Debian Linux (Lenny) with TexLive, Kile and R 2.6.1. This is a sample, the problem is in the lm output in the "Signif. codes" line: \documentclass[a4paper,10pt]{article} \title{Spam} \author{F. Bar} \begin{document} <<reg>>= n <- 50 x <- seq(1, n) a.true <- 3 b.true <- 1.5 y.true <- a.true + b.true * x s.true <- 17.3 y <- y.true + s.true * rnorm(n) out1 <- lm(y ~ x) summary(out1) @ \end{document} And the result...
2009 Apr 16
2
there are fontencoding problem in Sweave
I want write article by russian language using Sweave. For cyrillic text LaTeX use T2A encoding \usepackage[T2A]{fontenc} But in Sweave.sty we find: \RequirePackage[T1]{fontenc} It is source of critical problem. For example Rnw file $ cat estimation.Rnw \documentclass[A4paper]{article} \usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage[russian,english]{babel} \begin{document} Для начала попытаемся апроксимировать результаты нормативной зависимости. $$ \Delta T_k = 800(C_p + 0.07C_{Cu})F^{1/3} $$ \end{document} will be translate to this estimate.te...
2011 Nov 18
2
xtable and sweave: caption placement problem
Dear All I am running Sweave with xtable and want to put the caption placement on top. But this does not work. Any idea what is going wrong? Here is an example that runs properly with the exception of the caption placement in the pdf-file. \documentclass[11pt,a4paper]{article} \usepackage{Sweave} \begin{document} <<>>= x = runif(100, 1, 10) y = 2 + 3 * x + rnorm(100) @ <<echo=FALSE,results=tex>>= library(xtable) print(xtable(summary(lm(y~x)), align="rcccc", caption="Summary statistics for the regression...
2009 Feb 04
2
Sweave and \Sexpr{}
...create a dynamic latex table using \Sexpr{} but it's not evaluating it. I also tried the example below without Sweave and also fails. I have also copied the Sweave.sty to my working directory but nothing seems to work. Do I need to have certain package in order to run \Sexpr{}? \documentclass[a4paper]{article} \usepackage{C:/R/R-2.8.1/share/texmf/Sweave} \begin{document} <<echo=false,results=hide>>= library(lattice) library(xtable) data(cats, package="MASS") @ \section*{The Cats Data} Consider the \texttt{cats} regression example from Venables \& Ripley (1997). T...
2010 Nov 16
1
Sweave: \Sexpr and variables with special chars
I am using \Sexpr to include a variable in a title of a Sweave document: \documentclass[a4paper]{article} <<echo=false, results=hide>>= #mytitlevar <- "Stuff" # case 1, everything is find mytitlevar <- "Stuff_first" # case 2, f is turned into sub-text @ \title{MyTitle: \\ \Sexpr{mytitlevar} } \begin{document} \maketitle \end{document} When doing this,...
2009 Jan 28
0
Sweave problem with greek text
...ardounis http://www.costis.name PS.: I am having no problem to run Sweave in 100% English texts. I postscript the following files: * unsuccessful.sweave.Rnw * unsuccessful.sweave.tex * successful.greek.tex ######################## unsuccessful.sweave.Rnw ######################## \documentclass[a4paper,12pt]{book} \usepackage[greek]{babel} \usepackage[iso-8859-7]{inputenc} % \usepackage{kerkis} \begin{document} \section{\textlatin{Sweave}} \subsection{\textlatin{in Greek}} ???? ???, ???? ????? ????????. <<>>= data(airquality) library(ctest) kruskal.test(Ozone ~ Month, data = airqua...
2008 Mar 24
2
Newbie help with Sweave
...Zembower Internet Services Group manager Center for Communication Programs Bloomberg School of Public Health Johns Hopkins University 111 Market Place, Suite 310 Baltimore, Maryland 21202 410-659-6139 ============================== sweaveexample.tex: ============================== \documentclass[a4paper]{article} \title{Sweave Example 1} \author{Friedrich Leisch} \usepackage{C:/PROGRA~1/R/R-26~1.2/share/texmf/Sweave} \begin{document} \maketitle In this example we embed parts of the examples from the \texttt{kruskal.test} help page into a \LaTeX{} document: \begin{Schunk} \begin{Sinput} >...
2009 Sep 03
1
Sweavelistingutil: Encoding problems
...0.1 ? ? 1 `---- When comping this I get the following error: ,---- | ERROR: Package inputenc Error: Unicode char | \u8:\lst at FillFixed@\lst at EC not set up `---- There is /no problem/ when I the normal sweave-package. The relevant part of my preamble looks like this: ,---- | \documentclass[a4paper]{scrartcl} | \usepackage{scrpage2} | \usepackage[english,danish]{babel} | \usepackage[T1]{fontenc} | \usepackage[utf8]{inputenc} `---- And the "R-settings" looks like this (basically copied from the viginette): ,---- | %\usepackage[noae]{Sweave} | \SweaveOpts{keep.source=TRUE} | % ---...
2012 Apr 03
3
Sweave xtable
...t;- col(da$score) xtable(da[,c("id","score.string")]) ######################################################################### En este Rnw tengo una t más en \textcolor{blue}{", porque quedaba escrito extcolor ... ##################### Código Rnw ##### \documentclass[a4paper]{article} \begin{document} <<echo=false,results=hide>>= library(lattice) library(xtable) data(cats, package="MASS") @ \section*{The Cats Data ---- Ejemolo que funciana con xtable} Consider the \texttt{cats} regression example from Venables \& Ripley (1997). The data fr...
2008 Jun 17
3
Sweave: problem with usepackage{C:/PROGRA~1/R/R-27~1.0/share/texmf/Sweave}
...) ## enforce par(ask=FALSE) options(device.ask.default=FALSE) ## create a LaTeX file Sweave(testfile) --------------------------------------------------- I get a .tex file: ---------------------------------------------------- % -*- mode: noweb; noweb-default-code-mode: R-mode; -*- \documentclass[a4paper]{article} \title{A Test File} \author{Friedrich Leisch} \usepackage{a4wide} \usepackage{C:/PROGRA~1/R/R-27~1.0/share/texmf/Sweave} \begin{document} \maketitle A simple example that will run in any S engine: The integers from 1 to 10 are \begin{Schunk} \begin{Soutput} [1] 1 2 3 4 5 6...
2006 Feb 13
2
Sweave, mle and curve
I am trying to write a lesson on maximum likelihood with Sweave. I get a surprising result with the following code, lec4.Snw: \documentclass[a4paper,12pt]{article} \usepackage[latin1]{inputenc} \title{Maximum likelihood} \author{G伱伓ran Brostr伱伓m} \begin{document} \maketitle <<fig=TRUE>>= ## Simulate Y: n <- 25 Y <- sum(rpois(n, lambda = 1)) Y ## Define minusloglik: minusloglik <- function(theta) n * theta - Y * log...
2009 Apr 16
0
there are fontencoding problem in Sweave
...ve. For cyrillic text > LaTeX use T2A encoding > > \usepackage[T2A]{fontenc} > > But in Sweave.sty we find: > > \RequirePackage[T1]{fontenc} > > It is source of critical problem. > > For example Rnw file > > $ cat estimation.Rnw > > \documentclass[A4paper]{article} > > \usepackage[T2A]{fontenc} > \usepackage[utf8]{inputenc} > \usepackage[russian,english]{babel} > > \begin{document} > > ?????? ???????????? ???????????????????? ?????????????????????????????? ???????????????????? ?????????????????????? ?????????????????????...
2004 Feb 05
2
Sweave problem
Here is the file minimal.Snw: \documentclass[a4paper]{article} \title{R tips and tricks} \author{Murray Jorgensen} \usepackage{Sweave} \begin{document} \maketitle \section*{Entering data from a single variable} The following data are transformed tensile strength measurements on polyester fibres. They may be found on the file \texttt{TENSILE.DAT}....
2004 Dec 10
1
lattice graphics empty in Sweave
...y workaround I found was to write and read the respective figures explicitely using postscript() and includegraphics{}. Have I missed something to solve this in the canonical way? Thomas P. A minimal example: === lattice.Rnw====================================================== \documentclass[a4paper, dvips]{article} \begin{document} <<fig=TRUE>>= library(lattice) data(iris) xyplot(Sepal.Length~Sepal.Width|Species, data=iris) @ \end{document} ===================================================================== in R: > Stangle("lattice.Rnw") > Sweav...
2005 Jul 11
1
Sweave and complex numbers
Hi When using Sweave, most of my functions get called with complex arguments. They get typeset in with additions that I don't want; "1+1i" appears as "1 + (0 + 1i)" and I would rather have plain old "1+1i". Example follows: \documentclass[a4paper]{article} \title{A Test File} \author{Robin Hankin} \usepackage{a4wide} \begin{document} \maketitle A simple example: <<print=TRUE>>= f <- function(x){ x+c(1,1+1i)} f(6+7i) @ Question: why does \verb=c(1,1+1i)= get printed as \verb=c(1,1 + (0+1i))= ? And how can I stop it?...
2005 Dec 27
2
off topic A4 paper
Dear R People: Please excuse the off topic question. What are the dimensions of A-4 Paper, please? Actually, the question should read, "how do I set up a LaTex file to fix A-4 paper, please?" Thanks much! Sincerely, Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: hodgess at gator.uhd.edu
2008 Jun 27
1
Sweave: controlling pointsize (pdf)
Hello, Is there a way to control pointsize of pdf:s produced by Sweave? I would like to have the same pointsize from (not a working example) pdf(file="C:/temp/example.pdf", width=7, height=7, bg="white", pointsize=10) plot(1:10) etc.. dev.off() as \documentclass[a4paper]{article} \usepackage[latin1]{inputenc} \usepackage[finnish]{babel} \usepackage[T1]{fontenc} \usepackage{C:/progra\string~1/R/R-26\string~1.0/share/texmf/Sweave} <<fig=TRUE, width=7, height=7>>= plot(1:10) etc.. @ \end{document} Regards Lauri
2011 Aug 10
1
xtable - caption missing with float=FALSE
...a very simple Sweave file that produces two tables the first has no caption and the second has a caption (if you want to see it http://www.zevross.com/temp/test.pdf). Does anyone know what I can do to fix this? Zev (I'm using Windows 7, 64 bit, R 2.12.2) % begin Rnw file \documentclass[a4paper]{article} \begin{document} <<results=tex, echo=FALSE>>= library(xtable) atable<-data.frame(a=1:10, b=rnorm(10)) print(xtable(atable, caption="FLOAT"), floating=FALSE) print(xtable(atable, caption="NO FLOAT"), floating=TRUE) @ \end{document} Sweave("te...
2011 Sep 20
1
Displaying str(zoo) in Sweave
Dear R-helpers, Please look at the following minimal code. \documentclass[a4paper]{article} \begin{document} <<>>== library(zoo) a<-zoo(1:4,order.by=Sys.time()+1:4) str(a) @ \end{document} When I do R CMD Sweave,followed by pdflatex ,and view the final pdf, the letter surrounding the phrase zoo, a ***zoo*** series are messed up. They are messed up even insid...
2010 Dec 22
1
Error in generating sweave-tex -> pdf file
...gain> { l.8 \begin{ Schunk} ! Undefined control sequence. l.9 \begin {Sinput} The control sequence at the end of the top line of your error message was never \def'ed. If you have ------------------------ test.Rnw \usepackage{Sweave} \ documentclass [ a4paper ]{ article } \ title { Sweave Example 1} \ begin { document } \ maketitle In this example we embed parts of the examples from the help page into a \ LaTeX {} document : <<a>>= y=2 y = y +1 @ which shows that the location parameter of the Ozone distribution varies significantly from mo...