summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/gnuplottex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/gnuplottex')
-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'.