summaryrefslogtreecommitdiff
path: root/support/texproc/READ.ME
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/texproc/READ.ME
Initial commit
Diffstat (limited to 'support/texproc/READ.ME')
-rw-r--r--support/texproc/READ.ME34
1 files changed, 34 insertions, 0 deletions
diff --git a/support/texproc/READ.ME b/support/texproc/READ.ME
new file mode 100644
index 0000000000..249f231375
--- /dev/null
+++ b/support/texproc/READ.ME
@@ -0,0 +1,34 @@
+From: dwagon@nella5.cc.monash.edu.au (Dougal Scott)
+Newsgroups: comp.graphics.gnuplot,comp.text.tex
+Date: 6 Oct 92 05:53:14 GMT
+Organization: Monash University, Melb., Australia.
+Keywords: gnuplot,tex
+
+I am converting a set of signal processing notes to AMS-LaTeX, and I needed to
+have lots (around 300) different graphs in the document. Rather than have 300
+gnuplot files, and 300 output files hanging around cluttering up my directory,
+which would be painful to administer and maintain, I wrote a simple text
+filter program which allows you to embed commands in TeX source.
+
+The program scans stdin for %# at the start of the line, it then saves
+everything from that line to the next occurence of %# at the start of a line.
+It then executes the program specified in the first line with the saved lines
+as data, and puts the result onto stdout.
+
+I use it just for gnuplot, but it should be able to handle any program that
+can output to stdout.
+
+For example, to include a plot of a sine wave in your LaTeX file.
+
+\begin{figure}[hbtp]
+\begin{center}
+%# gnuplot
+set terminal eepic
+set grid
+set nokey
+plot sin(x)
+%#
+\end{center}
+\caption{Sine wave}
+\end{figure}
+