search for: morekeywords

Displaying 4 results from an estimated 4 matches for "morekeywords".

2011 Nov 23
1
R-latex syntax highlighting?
...ft, 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. I use Apple's...
2001 May 02
2
rcode and latex
I have discovered the listings package for including code in your latex documents. The default languages do not include R or Splus, but the definition is pretty simple, this is what I did for R: \lst at definelanguage{R}% {morekeywords={TRUE,FALSE,T,F,NA,NULL,Inf,NaN,library,% attach,detach,source,while,for,in,% repeat,switch,break,next,return,stop,function,% if,else,warning,error},% literate={<-}{{$\leftarrow$}}1{<<-}{{$\leftarrow \!\!\!\!\leftarrow$}}1 ,% sensitive=true,% morecomment=[l]\#,% morestring=[d]",...
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