summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-06-29 15:38:44 +0000
committerKarl Berry <karl@freefriends.org>2013-06-29 15:38:44 +0000
commit7c5a8e92c1da86e6be7d70415a93a1fd582afe63 (patch)
tree99c70542e6baa8f8b99991748103e87828fa61b3 /Master/texmf-dist/tex/latex
parentfa15421ac0e309a735fac98e1e6ca4432c0d031e (diff)
gnuplottex (3jun13)
git-svn-id: svn://tug.org/texlive/trunk@31039 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty22
1 files changed, 21 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty b/Master/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty
index b79bb17cdca..31a27de5f2c 100644
--- a/Master/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty
+++ b/Master/texmf-dist/tex/latex/gnuplottex/gnuplottex.sty
@@ -41,7 +41,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{gnuplottex}
- [2013/04/14 v0.4.6 gnuplot graphs in LaTeX]
+ [2013/06/03 v0.5 gnuplot graphs in LaTeX]
\RequirePackage{latexsym,graphicx,moreverb,keyval,ifthen}
\newif\ifShellEscape
\newif\ifmiktex \miktexfalse
@@ -154,6 +154,26 @@
{\PackageWarningNoLine{gnuplottex}
{Please convert \figname.gnuplot manually}}
}
+\newcommand{\gnuplotloadfilewrite}[2]{%
+ \immediate\openout \verbatim@out #1%
+ \message{Opening gnuplot stream #1}%
+ \immediate\write\verbatim@out{\string set terminal \gnuplotterminal \gnuplotterminaloptions}%
+ \immediate\write\verbatim@out{\string set output '\figname.\gnuplottexextension{\gnuplotterminal}'}%
+ \immediate\write\verbatim@out{\string load '#2'}%
+ \immediate\closeout\verbatim@out%
+ }
+
+ \newcommand{\gnuplotloadfile}[2][]{
+ \stepcounter{fignum}%
+ \def\gnuplotterminal{latex}
+ \def\gnuplotterminaloptions{}
+ \def\gnuplotscale{1}
+ \setkeys{pic}{#1}
+ \xdef\gnuplotCutFile{\figname.gnuplot}
+ \gnuplotloadfilewrite{\gnuplotCutFile}{#2}
+ \gnuplotgraphicsprocess%
+ \gnuplotgraphicsinclude
+ }
\endinput
%%
%% End of file `gnuplottex.sty'.