[Tikzdevice-bugs] [R] Computer Modern
Frank E Harrell Jr
f.harrell at vanderbilt.edu
Sun Jul 26 16:06:25 CEST 2009
Thanks for getting back to me Cameron. Here is the information. The
test program is slightly different from the previous one I used. The
version of tikzDevice I'm using is from R-forge yesterday. More
comments below. -Frank
> require(tikzDevice)
Loading required package: tikzDevice
Loading required package: filehash
filehash: Simple key-value database (2.0-1 2008-12-19)
tikzDevice: A Device for R Graphics Output in PGF/TikZ Format (v0.4.5)
Checking for a LaTeX compiler...
pdfTeX using libpoppler 3.141592-1.40.3-2.2 (Web2C 7.5.6)
kpathsea version 3.5.6
Copyright 2007 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Kpathsea is copyright 2007 Karl Berry and Olaf Weber.
There is NO warranty. Redistribution of this software is
covered by the terms of both the pdfTeX using libpoppler copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX using libpoppler source.
Primary author of pdfTeX using libpoppler: Peter Breitenlohner
(eTeX)/Han The Thanh (pdfTeX).
Kpathsea written by Karl Berry, Olaf Weber, and others.
Compiled with libpng 1.2.27; using libpng 1.2.27
Compiled with zlib 1.2.3.3; using zlib 1.2.3.3
Compiled with libpoppler version 0.10.5
A working LaTeX compiler was found in:
The R environment variable R_LATEXCMD
Global option tikzLatex set to:
/usr/bin/latex
sessionInfo()
R version 2.9.0 (2009-04-17)
i486-pc-linux-gnu
locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] tikzDevice_0.4.5 filehash_2.0-1
Code:
require(tikzDevice)
sessionInfo()
tikz('test.tex', standAlone=TRUE)
plot(rnorm(20), main="$\\delta^2$")
dev.off()
The pdf and dvi files are attached along with the generated .tex file.
xdvi, tkdvi, and okular on Ubuntu show distortions: only the x-axis
label is shown but some of the graph is overlaid with the title. When I
remove the preview-related LaTeX code from test.tex the graph is better
but still not right. I also attached test.log from running latex test
where test.tex is the version originally generated by tikz.
I noticed that the .tex file is fairly large when a lot of points are
drawn. Is it possible to define a macro abbreviation that can be used
with LaTeX's tikz package when only the centers of the circles are changing?
Thanks for looking into this,
Frank
Cameron Bracken wrote:
> Frank-
>
> Thanks for checking out tikzDevice, this kind of trial by fire is
> exactly what the package needs to improve.
>
> As for your test file, I am not quite sure what you mean by "distorted."
> The files look the same on my system with both latex and pdflatex. I
> admit, Charlie (the other developer) and I don't use plain latex much so
> there is probably some issues we don't know about. Also unfortunately,
> there font issues related to this package are extremely
> system/distribution specific so there are a lot of slippery little details.
>
> So I can figure this out could you please:
>
> 1. Send me the R commands to generate this file
> 2. Send me the output of the sessionInfo() command
> 3. Send me the output from when when tikzDevice is loaded
> 4. Send me the output pdf/dvi for comparison
> 5. Update to most recent version of tikzDevice (there have been some
> changes lately but I dont think they should affect anything big, mostly
> documentation)
> 6. If you really think this is a bug, please submit it to the
> tracker: http://r-forge.r-project.org/tracker/?group_id=440
>
> Thanks for your patience and for your interest in this project!
> -Cameron
>
>
> On Sat, Jul 25, 2009 at 3:26 PM, Frank E Harrell Jr
> <f.harrell at vanderbilt.edu <mailto:f.harrell at vanderbilt.edu>> wrote:
>
> Cameron - one issue has arisen. When I pdflatex'd my test it worked
> great. When I run latex the dvi file is distorted. I've attached
> the test file. -Frank
>
>
>
> cameron.bracken wrote:
>
>
>
> Mr Derik wrote:
>
> I am trying to use computer modern fonts in postscript files
> for a latex
> document. Ultimately I want to automate this through sweave.
>
>
> Hi There-
> I admit this is shameless self promotion but might I suggest the
> tikzDevice
> package. I am one of the developers and we just pushed up a beta
> version to
> r-forge that is quite usable. It enables graphic output in
> pgf/tikz format
> that can be directly imported into LaTeX. The fonts in your
> graphic will
> implicitly match that of your document. It also works well with
> Sweave, you
> can see examples in the vignette.
> Binary builds may not be available until tomorrow but you can
> install from
> source
> svn checkout svn://svn.r-forge.r-project.org/svnroot/tikzdevice
> <http://svn.r-forge.r-project.org/svnroot/tikzdevice>
> R CMD INSTALL tikzdevice/pkg
>
> then:
> vignette('tikzDevice')
>
>
>
> --
> Frank E Harrell Jr Professor and Chair School of Medicine
> Department of Biostatistics Vanderbilt University
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.dvi
Type: application/x-dvi
Size: 24952 bytes
Desc: not available
Url : http://lists.r-forge.r-project.org/pipermail/tikzdevice-bugs/attachments/20090726/09e07fe1/attachment-0001.dvi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pdf
Type: application/pdf
Size: 14239 bytes
Desc: not available
Url : http://lists.r-forge.r-project.org/pipermail/tikzdevice-bugs/attachments/20090726/09e07fe1/attachment-0001.pdf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tex
Type: text/x-tex
Size: 6383 bytes
Desc: not available
Url : http://lists.r-forge.r-project.org/pipermail/tikzdevice-bugs/attachments/20090726/09e07fe1/attachment-0001.tex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.log
Type: text/x-log
Size: 11641 bytes
Desc: not available
Url : http://lists.r-forge.r-project.org/pipermail/tikzdevice-bugs/attachments/20090726/09e07fe1/attachment-0001.bin
More information about the Tikzdevice-bugs
mailing list