Feature Requests
Search the entire project
This project's trackers
This project's news
Projects
People
Documents
Advanced search
Log In
|
New Account
Home
My Page
Projects
TikZ Device
Summary
Tracker
Lists
News
SCM
R Packages
[#527] Have R run bzip2 on the result to reduce file size of tikz()
View Trackers
Feature Requests
Export CSV
Date:
2009-07-31 16:33
Priority:
3
State:
Open
Submitted by:
Cameron Bracken (
cameronbracken
)
Assigned to:
Nobody (None)
Product:
None
Operating System:
None
Component:
None
Summary:
Have R run bzip2 on the result to reduce file size of tikz()
Detailed description
One possibility for greatly compressing the huge output of tikz() is to have R run bzip2 on the result (or the user compress an entire graphics folder after R finishes) and then use the style below for \bzinput{base file name}. However it does require the use of latex --shell-escape or pdflatex --shell-escape.
-Frank
%Usage: \bzinput{foo} % bunzip2 foo.tex.bz2 and inputs foo.tex
% Run latex with latex --shell-escape myfile (same for pdflatex)
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{bzinput}[2009/07/31 LaTeX package bzinput]
\newcommand{\bzinput}[1]{%
\immediate\write18{bzcat #1.tex.bz2 > /tmp/_bzinput.tmp}%
\input{/tmp/_bzinput.tmp}%
}
\endinput
Comments:
No Comments Have Been Posted
Attached Files:
Changes
No Changes Have Been Made to This Item
Thanks to: