search for: keywordstyl

Displaying 6 results from an estimated 6 matches for "keywordstyl".

Did you mean: keywordstyle
2009 Sep 03
1
Sweavelistingutil: Encoding problems
...----------- | <<SweaveListingsPreparations, results=tex, echo=FALSE>>= | require(SweaveListingUtils) | SweaveListingoptions(intermediate = FALSE) | SweaveListingPreparations(ae = FALSE) | setToBeDefinedPkgs(pkgs = c("SweaveListingUtils","distr"), | keywordstyles = c("\\bf\\color{blue}","\\bf\\color{red}")) | @Hello, I am not sure whether this is a bug or lack of R experience. However, I am using your Sweavelistingsutil package, which is very nice. Obviously I use it to create LaTeX files. These are encoded in utf8. However, when I...
2012 Nov 01
1
How to nicely display R code with the LaTeX package 'listings'?
...############################################### \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,% use small line numbers numbersep=10pt,% space between line numbers and code tabsize=3,% sizes of tabs showstringspaces=false,% do not...
2008 Oct 17
1
R-code in Latex --- $ sign causes error
hi, here's what i have: \lstset{ basicstyle=\ttfamily, keywordstyle=\bfseries, showstringspaces=false, columns = fullflexible, mathescape = true, language=R } \begin{lstlisting} lst$val<-val \end{lstlisting} ./software.tex:16:Extra }, or forgotten \endgroup. lst$ the culprit here is the $ sign. thanks. ps: i'm posting here rather than Latex is...
2011 Nov 23
1
R-latex syntax highlighting?
...gray}, numbers=left, numberstyle=\ttfamily\color{red}\footnotesize, stepnumber=1, numbersep=5pt, backgroundcolor=\color{white}, showspaces=false, showstringspaces=false, showtabs=false, frame=single, tabsize=2, captionpos=b, breaklines=true, breakatwhitespace=false, title=\lstname, escapeinside={}, keywordstyle={}, morekeywords={} } But I know that using the color latex package it can look a lot nicer and I guess some people might have configured that before and are willing to share it? I'm also interested in the a similar problem best way to put R code with syntax highlighting into a presentation....
2006 Sep 25
3
Best use of LaTeX listings package for pretty printing R code
This is what I have been using. Does anyone have a better way? In particular I would like to see letters in comment strings not stretched so much. Thanks -Frank \documentclass{article} \usepackage{listings,relsize} \lstloadlanguages{R} \newcommand{\lil}[1]{\lstinline|#1|} \begin{document} \lstset{language=R,basicstyle=\smaller,commentstyle=\rmfamily\smaller, showstringspaces=false,%
2007 Jan 15
4
How to format R code in LaTex documents
Hi, I am planning on putting some R script in an appendix of a LaTex document. Can anyone recommend me a way of how to format it? Is there a way to keep all line breaks without having to insert \\ in every single line? Thank you! Benjamin