2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 14:28:05 +02:00

minor changes

This commit is contained in:
Martin Thoma 2012-10-28 12:10:05 +01:00
parent a0402e59e7
commit c654ee54ee
4 changed files with 9 additions and 5 deletions

View file

@ -5,7 +5,7 @@ WIDTH = 500
make: make:
gnuplot plot.gnuplot gnuplot plot.gnuplot
pdflatex -shell-escape $(SOURCE).tex -output-format=pdf pdflatex $(SOURCE).tex -output-format=pdf
make clean make clean
clean: clean:

View file

@ -2,12 +2,16 @@ Use gnuplot within latex
======================== ========================
First make sure that you can use gnuplot: First make sure that you can use gnuplot:
* Execute "gnuplot" in your command line * Execute "gnuplot" in your command line
** Doesn't work: Look up where the binary is located (e.g. `C:\Programs\gnuplot\bin\gnuplot.exe`) and add it to your path (Windows + Pause -> System variables -> Path). Then try executing "gnuplot" in terminal again * Doesn't work: Look up where the binary is located (e.g. `C:\Programs\gnuplot\bin\gnuplot.exe`) and add it to your path (Windows + Pause -> System variables -> Path). Then try executing "gnuplot" in terminal again
** remember: You have to use `-shell-escape`
It is a good idea to separate gnuplot-code from LaTeX-code! (see plot.gnuplot)
`-shell-escape` or `enable-write18` is NOT needed for this solution!
GnuPlot Terminal types GnuPlot Terminal types
---------------------- ----------------------
Available terminal types: Available terminal types:
aed512 AED 512 Terminal aed512 AED 512 Terminal
aed767 AED 767 Terminal aed767 AED 767 Terminal
aifm Adobe Illustrator 3.0 Format aifm Adobe Illustrator 3.0 Format
@ -29,7 +33,6 @@ Available terminal types:
hp2623A HP2623A and maybe others hp2623A HP2623A and maybe others
hp2648 HP2648 and HP2647 hp2648 HP2648 and HP2647
hp500c HP DeskJet 500c, [75 100 150 300] [rle tiff] hp500c HP DeskJet 500c, [75 100 150 300] [rle tiff]
hpdj HP DeskJet 500, [75 100 150 300] hpdj HP DeskJet 500, [75 100 150 300]
hpgl HP7475 and relatives [number of pens] [eject] hpgl HP7475 and relatives [number of pens] [eject]
hpljii HP Laserjet series II, [75 100 150 300] hpljii HP Laserjet series II, [75 100 150 300]
@ -71,6 +74,7 @@ Available terminal types:
xterm Xterm Tektronix 4014 Mode xterm Xterm Tektronix 4014 Mode
The following sound good: The following sound good:
eepic EEPIC -- extended LaTeX picture environment eepic EEPIC -- extended LaTeX picture environment
emtex LaTeX picture environment with emTeX specials emtex LaTeX picture environment with emTeX specials
epslatex LaTeX picture environment using graphicx package epslatex LaTeX picture environment using graphicx package

Binary file not shown.

View file

@ -3,5 +3,5 @@
\usepackage{graphicx} \usepackage{graphicx}
\begin{document} \begin{document}
\input plot \input plot-tmp
\end{document} \end{document}