Skip to content

R-Logo in \LaTeX (Mag. Ferri Leberl)

5 messages · Jean lobry, Gábor Csárdi, AA

#
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{Introduction to \Rlogo:}
This is about the \Rlogo~sofware suite\footnote{
\Rlogo~is available at...}.
% include source in final document
\myinput{tex.tex}
\end{document}
----------------------------------------------------------

with:
unix$ pdflatex tex.tex
this is what I get:
http://pbil.univ-lyon1.fr/members/lobry/tmp/tex.pdf

The PDF version of the R-Logo I'm using is here:
http://pbil.univ-lyon1.fr/members/lobry/tmp/Rlogo.pdf

HTH,

Jean
#
Jean,

this is nice, but 1) the logo is a bitmap, it is ugly if you 
resize it, 2) you don't need a pdf version for pdflatex, it 
handles jpg (and maybe also png as well), so you can 
just use the logos at the R developer site. 

It would be really nice to have a non-bitmap version, though.
If it exists.

Gabor
On Fri, Mar 07, 2008 at 04:08:21PM +0100, Jean lobry wrote:

  
    
#
Gabor,
Sure, it's a bitmap, but the naked eye resolution is only
100 $\mu$m so that a vectorized solution is overkilling
in most common situations IMHO. I have to zoom by a factor
1200% to see some pixellization problems on my screen,
but my eyes are admitedly getting older and older, one more
instance of fortune(75) issue I guess :-(
Not so sure, I had to convert it a long time ago into a PDF
format for a reason I don't remember. I'm sharing my *.rnw
on a CVS with colleages working under Linux, Unix, Mac and
Windows, so the reason could be that there was a problem
in a given platform. The PDF choice is defensive in the sense
that we are Sweaving with \SweaveOpts{pdf = T, eps = F},
so that including PDF is a pre-condition.
There was a not so-old thread about this on R-devel:
http://finzi.psych.upenn.edu/R/R-devel/archive/19448.html

Best,

Jean
#
Jean,
On Fri, Mar 07, 2008 at 06:09:35PM +0100, Jean lobry wrote:
a vectorized solution can be rendered smoothly at any 
desired size. Furthermore, it can be easily edited and the 
size of the file is (usually) much smaller than the bitmap 
version. No overkill at all, as it is SIMPLER to use the 
vector version.
Hmmm, i've downloaded your pdf, and it is clearly ugly at 400%.
I'm talking about the Rlogo.pdf file. E.g. i'm not sure that 
it would look good on an A0 poster.
Maybe this is different if you use Sweave. pdflatex itself 
handles jpg without problems.
Of which the conclusion is that there is no vector version.

Best,
Gabor

  
    
2 days later
AA
#
Jean,
Thanks for this piece of Latex code. I did not have a pdf Rlogo and the tex 
command.
AA.
----- Original Message ----- 
From: "Jean lobry" <lobry at biomserv.univ-lyon1.fr>
To: <r-help at r-project.org>
Sent: Friday, March 07, 2008 11:08 AM
Subject: Re: [R] R-Logo in \LaTeX (Mag. Ferri Leberl)