search for: fancyvrb

Displaying 20 results from an estimated 28 matches for "fancyvrb".

2009 Jun 26
0
Modifying Sweave.sty to allow escapes with fancyvrb package in LaTeX
Dear Colleagues: In an attempt to have things like # See page \pageref{this} inside comments in R code chunks I have modified Sweave.sty as below. I have followed fancyvrb's manual with regard to the use of the commandchars argument. But when compiling with LaTeX (using attached test file) I get a LaTeX error (/usr/share/texmf-texlive/tex/latex/ae/t1aett.fd) ! Missing \endcsname inserted. <to be read again> \global l.25 } else y &lt...
2009 Mar 17
1
Combining Sweave and fancyvrb
I find Sweave very useful and I was trying to combine it with the latex package fancyvrb. I was trying to get line numbering and labels in order to reference the lines where particular commands occur. Unfortunately, I haven't been able to figure out how to do it. Maybe somebody can help me. The following is a sample Rnw file: the first part shows what I would like to get, the se...
2012 Nov 01
1
How to nicely display R code with the LaTeX package 'listings'?
...Tex-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,% comment style numbers=left,% display line numbers on the left side numberstyle=\scriptsize...
2009 Apr 16
2
there are fontencoding problem in Sweave
...e/texmf-texlive/tex/latex/graphics/keyval.sty) (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty (/usr/share/texmf-texlive/tex/latex/graphics/trig.sty) (/etc/texmf/tex/latex/config/graphics.cfg) (/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def))) (/usr/share/texmf-texlive/tex/latex/fancyvrb/fancyvrb.sty Style option: `fancyvrb' v2.6, with DG/SPQR fixes <1998/07/17> (tvz) No file fancyvrb.cfg. ) (/usr/share/texmf/tex/latex/R/upquote.sty (/usr/share/texmf-texlive/tex/latex/base/textcomp.sty (/usr/share/texmf-texlive/tex/latex/base/ts1enc.def (/usr/share/texmf-texlive/tex/latex...
2013 Jan 29
1
Sweave files generating miktex errors
...hics.sty (c:\miktex2.9.4757\tex\latex\graphics\trig.sty) (c:\miktex2.9.4757\tex\latex\00miktex\graphics.cfg) (c:\miktex2.9.4757\tex\latex\pdftex-def\pdftex.def (c:\miktex2.9.4757\tex\generic\oberdiek\infwarerr.sty) (c:\miktex2.9.4757\tex\generic\oberdiek\ltxcmds.sty)))) (c:\miktex2.9.4757\tex\latex\fancyvrb\fancyvrb.sty Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix <2008/02/07> (tvz)) (c:\miktex2.9.4757\tex\latex\upquote\upquote.sty) (c:\miktex2.9.4757\tex\latex\base\fontenc.sty (c:\miktex2.9.4757\tex\latex\base\t1enc.def)) (c:\miktex2.9.4757\tex\latex\ae\ae....
2009 Apr 16
0
there are fontencoding problem in Sweave
.../graphics/keyval.sty) > (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty > (/usr/share/texmf-texlive/tex/latex/graphics/trig.sty) > (/etc/texmf/tex/latex/config/graphics.cfg) > (/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def))) > (/usr/share/texmf-texlive/tex/latex/fancyvrb/fancyvrb.sty > Style option: `fancyvrb' v2.6, with DG/SPQR fixes <1998/07/17> (tvz) > No file fancyvrb.cfg. > ) (/usr/share/texmf/tex/latex/R/upquote.sty > (/usr/share/texmf-texlive/tex/latex/base/textcomp.sty > (/usr/share/texmf-texlive/tex/latex/base/ts1enc.def > (/usr...
2005 Jun 16
1
Sweave and sideways
...f 2004/02/22 v1.99f Standard LaTeX file LaTeX Font Info: Redeclaring font encoding T1 on input line 43. ) LaTeX Font Info: Try loading font information for T1+aer on input line 100. (C:\texmf\tex\latex\ae\t1aer.fd File: t1aer.fd 1997/11/16 Font definitions for T1/aer. ))) (C:\texmf\tex\latex\fancyvrb\fancyvrb.sty Package: fancyvrb 1998/07/17 Style option: `fancyvrb' v2.6, with DG/SPQR fixes <1998/07/17> (tvz) \FV at CodeLineNo=\count87 \FV at InFile=\read1 \FV at TabBox=\box26 \c at FancyVerbLine=\count88 \FV at StepNumber=\count89 \FV at OutFile=\write3 No file fancyvrb.cfg. ) (C:\...
2008 Mar 07
3
R-Logo in \LaTeX (Mag. Ferri Leberl)
Dear Mag. Ferri Leberl, I'm using something like: ----------------------- tex.tex --------------------------- \documentclass{article} \usepackage{graphicx} \usepackage{fancyvrb} \newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.pdf}} \newcommand{\myinput}[1] {\begin{scriptsize} \VerbatimInput[frame=single,label=#1]{#1} \end{scriptsize}} \title{The R logo, \Rlogo, in \LaTeX} \author{J.R. Lobry} \begin{document} \maketitle \section{Intr...
2008 Mar 07
3
R-Logo in \LaTeX (Mag. Ferri Leberl)
Dear Mag. Ferri Leberl, I'm using something like: ----------------------- tex.tex --------------------------- \documentclass{article} \usepackage{graphicx} \usepackage{fancyvrb} \newcommand{\Rlogo}{\protect\includegraphics[height=1.8ex,keepaspectratio]{Rlogo.pdf}} \newcommand{\myinput}[1] {\begin{scriptsize} \VerbatimInput[frame=single,label=#1]{#1} \end{scriptsize}} \title{The R logo, \Rlogo, in \LaTeX} \author{J.R. Lobry} \begin{document} \maketitle \section{Intr...
2009 Jul 13
3
SweaveListingUtils question
...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) SweaveListi...
2009 Apr 19
2
Sweave: Changing the background color, adding a border
Hi all, I am using Sweave to produce a document. Unfortunately, I have to print several copies and I can't print them in color. So I would like to change the way of printing the code. I would like to print the code in a box with a black borderline and a grey background (quite classic). Is it possible to do it by changing some Schunk options? Christophe
2012 Apr 04
3
Rgui maintains open file handles after Sweave error
...newboolean{Sweave at gin} \setboolean{Sweave at gin}{true} \newboolean{Sweave at ae} \setboolean{Sweave at ae}{true} \DeclareOption{nogin}{\setboolean{Sweave at gin}{false}} \DeclareOption{noae}{\setboolean{Sweave at ae}{false}} \ProcessOptions \RequirePackage{graphicx,fancyvrb} \IfFileExists{upquote.sty}{\RequirePackage{upquote}}{} \ifthenelse{\boolean{Sweave at gin}}{\setkeys{Gin}{width=0.8\textwidth}}{}% \ifthenelse{\boolean{Sweave at ae}}{% \RequirePackage[T1]{fontenc} \RequirePackage{ae} }{}% \DefineVerbatimEnvironment{Sinput}{Verbat...
2008 Apr 06
3
[OT] Typesetting / highlighting R code in Latex
Using Latex and the beamer class, I would like to highlight code snippets. Does anybody know a suitable 'preprocessor' or 'filter' for R (and/or C/C++) code ? I have been including it in simple \begin{verbatim} ... \end{verbatim} and I know there is a better way -- in fact I saw it used a while back in some package I looked at. And I didn't write that down... What I am
2004 Feb 19
1
latex problem with Sweave output file under Debian
...ges (log file pasted below) that result from the command latex include: kpathsea: Running mktexmf ecrm1000 ! I can't find file `ecrm1000'. ! Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not found. ! LaTeX Error: File `ae.sty' not found. ! LaTeX Error: File `fancyvrb.sty' not found. ! LaTeX Error: Missing \begin{document}. I downloaded the missing files and tried (I had no idea) putting them in /usr/share/texmf/tex/latex/graphics/ and /usr/lib/R/share/texmf/ with no apparent effect. I am using R Version 1.8.1 under Debian linux, with the tetex Debian-stab...
2007 Jun 21
2
Need Help: User Defined R Functions in Sweave/Latex
...xmf-tetex/tex/latex/graphics/keyval.sty) (/usr/share/texmf-tetex/tex/latex/graphics/graphics.sty (/usr/share/texmf-tetex/tex/latex/graphics/trig.sty) (/usr/share/texmf-tetex/tex/latex/graphics/graphics.cfg) (/usr/share/texmf-tetex/tex/latex/graphics/pdftex.def))) (/usr/share/texmf-texlive/tex/latex/fancyvrb/fancyvrb.sty Style option: `fancyvrb' v2.6, with DG/SPQR fixes <1998/07/17> (tvz) No file fancyvrb.cfg. ) (/usr/share/texmf/tex/latex/R/upquote.sty (/usr/share/texmf-tetex/tex/latex/base/textcomp.sty (/usr/share/texmf-tetex/tex/latex/base/ts1enc.def))) (/usr/share/texmf-tetex/tex/latex/ba...
2010 Aug 10
1
Sweave with dev.new()
...plotting functions in the Sweave document, and I suspect it must have something to do with the command 'dev.new()' in my code. Here is a basic example of a Sweave file which can hopefully illustrate the problem: \documentclass[a4paper]{article} \usepackage{Sweave} \RequirePackage{graphicx,fancyvrb} \title{Sweavetest} \begin{document} \section{Plotting} <<label=testfig,include=FALSE,echo=TRUE>>= dev.new(width=7,height=6,record=TRUE) plot(1:10,col="red") @ \begin{figure}[ht] \begin{center} <<label=fig,fig=TRUE,echo=FALSE>>= <<testfig>> @ \end{...
2005 Mar 18
4
Sweave/margin
Hi! I am currently using Sweave for writing my bachelor thesis - and I have a problem: I am using a LaTeX style (report) with quite big margin spaces. The Sweave generated LaTeX code "floats" into the margin - and it looks ugly. The text is blocked and fine... then there comes some flattering code running over the margin... and blocked text again. Considering the LaTeX output, I guess
2009 Dec 22
1
Sweave: font problems with Signif. codes lines
...ere is no ? in font cmtt10! There seems to be a font problem somewhere, but I don't know how to track it down. In my preamble, I am loading the following packages: \documentclass[12pt]{article} \usepackage{float} \usepackage{amssymb, amsmath, amsfonts} \usepackage[noae]{Sweave} % \usepackage{fancyvrb} % loaded by Sweave \usepackage{color} \usepackage{url} \usepackage[round]{natbib} \usepackage{bm} Does this ring a bell for anyone? thanks, -Michael -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 73...
2009 Sep 03
1
Sweavelistingutil: Encoding problems
...E) | setToBeDefinedPkgs(pkgs = c("SweaveListingUtils","distr"), | keywordstyles = c("\\bf\\color{blue}","\\bf\\color{red}")) | @ | % ------------------------------------------------------------------------------- | \lstdefinestyle{TeXstyle}{fancyvrb=true,escapechar=`,language=[LaTeX]TeX,% | basicstyle={\color{black}\small},% | keywordstyle={\bf\color{black}},% | commentstyle={\color{Rcommentcolor}\ttfamily\itshape},% | literate={<-}{<-}2{<<-}{<<-}2} `----...
2008 Jul 27
2
Colors in Sweave
Hi list, I was using Sweave and was wondering if anyone has had any luck changing the font colors of the code chunks. For instance, in my .Rnw preample I tried including: === \usepackage[usenames]{colors} \definecolor{darkred}{rgb}{0.545,0,0} \definecolor{midnightblue}{rgb}{0.098,0.098,0.439} \DefineVerbatimEnvironment{Sinput}{Verbatim}{fontshape=sl,formatcom={\color{midnightblue}}}