https://github.com/deric/gnuplot-sty
A LaTeX package for including gnuplot into documents
https://github.com/deric/gnuplot-sty
Last synced: 5 months ago
JSON representation
A LaTeX package for including gnuplot into documents
- Host: GitHub
- URL: https://github.com/deric/gnuplot-sty
- Owner: deric
- Created: 2012-03-23T13:35:20.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-03-23T14:46:01.000Z (about 14 years ago)
- Last Synced: 2025-04-04T10:33:23.214Z (about 1 year ago)
- Homepage:
- Size: 109 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Gnuplot-sty
===========
A simple LaTeX package for including gnuplot charts into a document.
Install
-------
Place `gnuplot.sty` either to same folder as your document or (for system wide install) copy the file to TeX distrubution folder.
- on Debian like distros:
sudo mkdir /usr/share/texmf-texlive/tex/latex/gnuplot
sudo cp gnuplot.sty /usr/share/texmf-texlive/tex/latex/gnuplot/gnuplot.sty
sudo texhash
Usage
-----
Insert following into your preamble:
\usepackage[pdftex]{graphicx}
\usepackage{gnuplot}
Test plot:
\begin{gnuplot}[scale=0.9]{test}
test
\end{gnuplot}
By default output format is pdf and it's stored in same folder as your LaTeX document. If you want to change this,
define a directory name (this directory must exists):
\def\gnuplotDir{gnuplot}
Compile
--------
To make it work, you have to add `-shell-escape` option to `pdflatex`
pdflatex -shell-escape *.tex
It allows `pdflatex` to execute bash commands which is generally unsafe option. Make sure that `gnuplot.sty` does not containg any `rm -rf` commands :)