Displaying 20 results from an estimated 270 matches for "usepackag".
Did you mean:
usepackage
2009 Jan 27
2
using Sweave with a master file that has several iputted .tex files
Suppose I have a Master.Rnw file that looks something like this:
\documentclass[12pt]{mypaper}
\usepackage[margin=1in]{geometry}
\usepackage{setspace}
\usepackage{url}
\usepackage{indentfirst}
\usepackage{fancyhdr}
\usepackage{Sweave}
\pagestyle{fancy}
\lhead{sonographic rectal diameter and ADHD}
\rhead{ }
\usepackage{abbrevs}
%\usepackage{natbib}
%\usepackage{apacite}
\bibliographystyle{StandardMedica...
2009 Dec 22
1
Sweave: font problems with Signif. codes lines
...s in the
generated .tex file:
\begin{Soutput}
Type III MANOVA Tests: Pillai test statistic
Df test stat approx F num Df den Df Pr(>F)
(Intercept) 1 0.86 90.38 4 60 <2e-16 ***
---
Signif. codes: 0 ?***? 0.001 ?**? 0.01 ?*? 0.05 ?.? 0.1 ? ? 1
\end{Soutput}
When processed with pdfLaTeX, using
\usepackage{Sweave}
the Signif. codes lines appears as
Signif. codes: 0 S***S 0.001 S**S 0.01 S*S 0.05 S.S 0.1 S S 1
except that the Ss have funny accents. If I try again, using the noae option
\usepackage[noae]{Sweave}
the funny S characters disappear (are blank), but I get messages in the log:
Missing c...
2007 Oct 07
5
how to use \Sexpr{} with sweave
I'm trying to learn Sweave. So far things are going well with the chunks of code identified by << >>=
But I'm having trouble with the in-line text use of \Sexpr.
Here is a short example .Rnw file:
\documentclass[12pt]{article}
\usepackage[margin=1.25in]{geometry}
\usepackage{graphicx}
\usepackage{Sweave}
\begin{document}
<<test>>=
pnorm(1)
@
\Sexpr{2+6}
\end{document}
The .tex file that it yields contains
\Sexpr{2+6} as its next-to-last line. \usepackage{Sweave} is in its preamble.
When I pdflatex that file, t...
2012 Nov 01
1
How to nicely display R code with the LaTeX package 'listings'?
...ackage
SweaveListingUtils and
http://r.789695.n4.nabble.com/R-How-to-format-R-code-in-LaTex-documents-td816055.html
Any suggestions, comments, or improvements are welcome.
Cheers,
Marius
### Version 1 ##################################################################
\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[american]{babel}
\usepackage{graphicx}
\usepackage{fancyvrb}
\usepackage{listings}
\lstset{% setup listings
language=R,% set programming language
basicstyle=\small,% basic font style
keywordstyle=\bfseries,% keyword style
commentstyle=\ttfamily\itshape,% comme...
2005 Oct 31
2
Sweave (R?) font encoding problems
...=pt_PT.utf-8;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C"
R> localeToCharset()
[1] "ISO8859-1"
Here is a small example trying to replicate my problems:
File:exp.Rnw
================================
\documentclass[10pt,twoside]{article}
\usepackage[dvips]{graphicx}
\usepackage[portuges]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\section{Introdu????o}
Isto ?? uma experi??ncia.
\begin{figure}[b]
\centering
<<echo=false,fig=true,width=10,height=10>>=
barras(1)
@
\caption{Distribui????o dos va...
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}
Для...
2004 Dec 20
3
Sweave and LaTeX beamer class
Hi,
has anyonne experienced problems between the LaTeX beamer class and
Sweave? The following code does not work properly:
#################################
\documentclass{beamer}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ngerman}
\begin{document}
\frame{
\frametitle{test}
test
<<>>=
1+1
@
}
\end{document}
#################################
Below is the error code:
#################################
loading : Context Support Macros / PDF (2004.1...
2009 Sep 03
1
Sweavelistingutil: Encoding problems
...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 Feb 01
2
Problem with xtable- rescaling a table
...###########
I was wondering if it is possible to rescale in Latex when the code was
generated through xtable. Indeed, when I run the latex table obtained from
xtable, and use scale box, it does not work (and the problem comes from
scalebox, which works otherwise).
\documentclass[11pt]{report}
\usepackage{rotating}
%\usepackage[counterclockwise]{rotating}
\usepackage{graphics}
\usepackage{float}
\pagestyle{empty}
\begin{document}
\scalebox{0.70} { %resize
% latex table generated in R 2.13.1 by xtable 1.6-0 package
% Tue Jan 31 23:26:10 2012
\begin{sidewaystable}[ht]
\begin{center}
\b...
2006 Nov 08
2
Sweave and font problems
Dear All,
Having now successfully started using Sweave, I have just noticed an odd
side effect with fonts.
Using plain LaTeX, I have had no problems using \usepackage{palatino} or
\usepackage{times} and the font correctly changes.
However, once I convert the tex document into Snw, and run it through R
CMD SWEAVE, LaTeX seems to ignore this package directive. The LaTeX log
suggests the font package is successfully loaded.
In fact, invetigating the problem in m...
2011 Sep 30
2
Understanding the workflow between sweave, R and Latex
Let's say I have written the following tiny .Rnw file:
_________________________________________
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{Sweave}
\usepackage{tikz}
\usepackage{pgf}
\begin{document}
<<>>=
sessionInfo()
@
\end{document}
_________________________________________
I then can go to R and use sweave to translate the .Rnw file into a .tex
file
Once this is done the latex int...
2010 Aug 19
1
texi2dvi: option "clean" also deletes the generated pdf file
...cleaning, texi2dvi also deletes the generated .pdf file.
Is there a solution?
Cheers,
Marius
## Example 1: texi2dvi cleans fine, without deleting the generated .pdf
require(tools)
sink(file="myLaTeXFile1.tex")
cat("\\documentclass{article}\n")
cat("\\usepackage[T1]{fontenc}\n")
cat("\\usepackage[english]{babel}\n")
cat("\\usepackage{blindtext}\n")
cat("\\begin{document}\n")
cat("\\blindtext[10]\n")
cat("\\end{document}\n")
sink()
texi2dvi("myLaTe...
2008 Jun 17
3
Sweave: problem with usepackage{C:/PROGRA~1/R/R-27~1.0/share/texmf/Sweave}
...reate 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 7 8 9 10
\end{Soutput}
\end{Schunk}
We can also emulate a simple cal...
2012 Aug 08
2
sweave problem with special danish characters
...;s whenever my text contains special Danish characters like ø, ø and å. I have upgraded R from 2.13 to 2.15 and the scripts worked fine under R 2.13.
Sweave("Test.Rnw", encoding = "utf8")
texi2dvi("Test.tex", pdf = TRUE)
%"Test.Rnw"
\documentclass{article}
\usepackage [danish]{babel}
\usepackage[utf8]{inputenc}
\begin{document}
This is a test that works
\end{document}
%"Test.Rnw"
\documentclass{article}
\usepackage [danish]{babel}
\usepackage[utf8]{inputenc}
\begin{document}
This doesn't æ ø å and pdf document only contains NA
\end{document}
Any...
2010 Dec 23
1
Running sweave automatically using cygwin
...Quiting.
=========================================
I don't know what is the problem. Could you please help me? Below you
find my Rnw code and the data for running sweave.
Best regards,
Raquel
========================================
Rnw file
\documentclass[12pt,oneside,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage[brazil]{babel}
\usepackage{amsthm,amsfonts,bm}
\usepackage{graphicx}
\usepackage[T1]{fontenc}
\usepackage{ae}
\usepackage[alf,bibjustif,recuo=1cm]{abntcite} %bibliografia da ABNT
\usepackage{setspace}
\usepackage[charter]{mathdesign}
\usepackage{graphicx}
\usepackage{...
2009 Jul 13
3
SweaveListingUtils question
...this line, it works.
What can I do about this?
I am using the \begin{Scode} notation instead of Rnw files. May this be the
problem? For some technical reason, I would like to stick on this notation.
Any help appreciated,
kind regards,
Karsten.
%%%% begin example
\documentclass[9pt]{beamer}
\usepackage{fancyvrb}
\usepackage{listings}
% choose language and char set
\usepackage[ngerman]{babel}
\usepackage[ansinew]{inputenc}
%
\SweaveOpts{prefix.string=Routput/parcel, keep.source=TRUE}
\begin{Scode}{results=tex, echo=FALSE}
require(SweaveListingUtils)
SweaveListingoptions(intermediate = FALSE)
S...
2009 Jan 28
0
Sweave problem with greek text
...ostis.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 = airquality)
@
\subsection{\tex...
2010 Jul 13
1
latex table question
...to move my figures horizontally to the left margin of the page but the table
below doesn't move at all,
but instead it gets sideways. Not sure if \begin{landscape} has something to do
with it or is just me.
I? hope someone could lend some help on this matter.
\documentclass[11pt]{article}
\usepackage{longtable,verbatim}
\usepackage{longtable,pdflscape,graphicx}
\usepackage{fmtcount,hyperref} % displaying latex counters
?%\usepackage[top=0.2inch, bottom=0.2inch, left=2cm, right=2cm]{geometry}
\usepackage{fullpage}
\usepackage{ctable}
\title{United States Department of the Interior}
\begin{docu...
2009 Jan 10
1
Hmisc-xtable label
...but if I would create the bottom table first using xtable and then create the longtable using Hmisc then the hyperlink works OK on the longtable but not on the other one. Thanks
I'am using Sweave and Miktex, windows XP,R-2.8.1 to generate the document below:
\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{floatflt,graphicx,times}
\usepackage[usenames,dvipsnames]{color}
\usepackage{longtable,pdflscape}
\usepackage{rotating}
\usepackage{verbatim}
\usepackage[ps2pdf,
bookmarks=true,
bookmarksnumbered=false,
bookmarksopen=false,
colorlinks=true,
linkcolor=webblue]{hyperref}
\d...
2009 Apr 16
0
there are fontencoding problem in Sweave
On 4/16/2009 10:29 AM, ?????? n/a wrote:
> 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...