Initial release of Maemo 5 port of gnuplot
[gnuplot] / lisp / gpelcard.tex
1
2 %% Time-stamp: <2002/12/13 16:41:13 bruce>
3
4 %% This document is copyright (C) 1998-2002 Bruce Ravel <ravel@phys.washington.edu>
5 %% This page covers version 0.6.0 of gnuplot-mode.
6
7 %% This document is distributed in the hope that it will be useful,
8 %% but WITHOUT ANY WARRANTY; without even the implied warranty of
9 %% properly describing the software it documents.
10
11 %% Permission is granted to make and distribute copies of this
12 %% document in electronic form provided the copyright notice and this
13 %% permission are preserved on all copies.
14
15
16 \documentclass[twocolumn]{article}
17 \usepackage{fancybox}
18
19 \setlength{\parindent}{0truecm}
20 \setlength{\parskip}{1ex}
21 \setlength{\hoffset}{-0.5truecm}
22 \setlength{\voffset}{0truecm}
23 \setlength{\topmargin}{-2.5truecm}
24 \setlength{\marginparsep}{0truecm}
25 \setlength{\marginparwidth}{0truecm}
26 \setlength{\textheight}{25.5truecm}
27 \setlength{\textwidth}{17truecm}
28 \setlength{\oddsidemargin}{0truecm}
29 \setlength{\evensidemargin}{1.2truecm}
30 \setlength{\columnsep}{1.4truecm}
31
32 \newenvironment{Boxedminipage}%
33 {\begin{Sbox}\begin{minipage}}%
34   {\end{minipage}\end{Sbox}\Ovalbox{\TheSbox}}
35 \newenvironment{SqBoxedminipage}%
36 {\begin{Sbox}\begin{minipage}}%
37   {\end{minipage}\end{Sbox}\fbox{\TheSbox}}
38
39 \def\version{{0.6.0}}
40 \def\revised{{17 May, 2002}}
41 \def\file#1{{\texttt{`#1'}}}
42 \def\key#1{{\textrm \leavevmode\hbox{%
43   \raise0.4pt\hbox{$\langle$}\kern-.08em\vtop{%
44     \vbox{\hrule\kern-0.4pt
45      \hbox{\raise0.4pt\hbox{\vphantom{$\langle$}}#1}}%
46     \kern-0.4pt\hrule}%
47   \kern-.06em\raise0.4pt\hbox{$\rangle$}}}}
48 \def\variable#1#2#3{{
49     \vspace{-0.2truecm}
50     \begin{flushright}
51       \begin{minipage}[h]{0.97\linewidth}
52         \vspace{-0.2truecm}
53         \textbf{#1}\hfill[\texttt{#2}]
54         \begin{flushright}
55           \begin{minipage}[h]{0.93\linewidth}
56             \vspace{-0.2truecm}
57             #3
58           \end{minipage}
59         \end{flushright}
60       \end{minipage}
61     \end{flushright}
62     }}
63 \def\command#1#2{{
64     \vspace{-0.2truecm}
65     \begin{flushright}
66       \begin{minipage}[h]{0.97\linewidth}
67         \vspace{-0.2truecm}
68         \textbf{#1}\hfill
69         \begin{flushright}
70           \begin{minipage}[h]{0.93\linewidth}
71             \vspace{-0.4truecm}
72             #2
73           \end{minipage}
74         \end{flushright}
75       \end{minipage}
76     \end{flushright}
77     }}
78 \def\Star{{$\star$}}
79
80
81 \begin{document}
82
83 \small
84
85 \thispagestyle{empty}
86
87 \begin{center}
88   \begin{Boxedminipage}{0.75\linewidth}
89     \begin{center}
90       \vspace{0.01\textheight}
91       {\Large Quick Reference for}\\
92       \vspace{0.007\textheight}
93       {\Large gnuplot-mode}
94       \vspace{0.01\textheight}
95     \end{center}
96   \end{Boxedminipage}
97 \end{center}
98
99 \vspace{3ex}
100
101 This card describes the features of gnuplot-mode for Emacs.
102 Gnuplot-mode is intended for composing scripts for the
103 \textsc{gnuplot} plotting program.  It offers functions for sending
104 commands or entire scripts to the \textsc{gnuplot} program as well as
105 various functions to aid in composing scripts.  It works with any
106 version of \textsc{gnuplot} from 3.5 to 3.8.  See the comments in the
107 file \file{gnuplot.el} for instructions on installing gnuplot-mode.
108
109 \vspace{2ex}
110
111 \begin{minipage}[h]{\linewidth}
112   \begin{center}
113     \centerline{{\large\textbf{gnuplot-mode key sequences}}}
114     \vspace{0.2ex}
115     \begin{tabular}[h]{cl}
116       \hline \hline
117       \\[-1ex]
118       \multicolumn{2}{l}{~\quad\textbf{Gnuplot-mode buffer}}\\[0.5ex]
119       \textrm{key} & \quad description \\
120       \hline
121       \texttt{C-c C-l} & send a line to gnuplot \\
122       \texttt{C-c C-v} & send a line and move forward 1 line\\
123       \texttt{C-c C-r} & send the region to gnuplot \\
124       \texttt{C-c C-b} & send the buffer to gnuplot \\
125       \texttt{C-c C-f} & send a file to gnuplot \\
126       & \\[-1.5ex]
127       \texttt{M-\key{tab}} & complete keyword at point \\
128       \texttt{C-c C-i} & insert filename at point \\
129       \texttt{C-c C-j} & jump to next statement \\
130       \texttt{C-c C-n} & negate set option at point \\
131       \texttt{C-c C-c} & comment region \\
132       \texttt{C-c C-o} & set arguments of command at point \\
133       \texttt{S-mouse-2} & set arguments of command under mouse \\
134       \texttt{C-c C-h} & get help from the gnuplot info file \\
135       \texttt{C-c C-e} & look at the gnuplot process buffer \\
136       & \\[-1.5ex]
137       \texttt{C-c C-k} & kill the gnuplot process \\
138       \texttt{C-c C-u} & submit a bug report about gnuplot-mode \\
139       \texttt{C-c C-z} & customize gnuplot-mode \\
140       \hline
141       \\[-1ex]
142       \multicolumn{2}{l}{~\quad\textbf{Gnuplot process buffer}}\\[0.5ex]
143       \textrm{key} & \quad description \\
144       \hline
145       \texttt{M-C-p}   & plot script \\
146       \texttt{M-C-f}   & load file containing script \\
147       \hline \hline
148     \end{tabular}
149   \end{center}
150 \end{minipage}
151
152 \vspace{4ex}
153
154 \centerline{{\large\textbf{Starting gnuplot-mode}}}
155 \vspace{2ex}
156
157 \command{M-x gnuplot-mode}{Start gnuplot-mode in the current buffer.}
158 %
159 \command{M-x gnuplot-make-buffer}{Open a new buffer in gnuplot-mode}
160
161
162
163 \vfill
164
165 \begin{Boxedminipage}{1.05\linewidth}
166   \begin{center}
167     \footnotesize{Gnuplot-mode homepage} \\
168     \scriptsize{%%
169       \texttt{http://feff.phys.washington.edu/\char126ravel/software/gnuplot-mode/}}
170   \end{center}
171 \end{Boxedminipage}
172 \begin{flushleft}
173   {\footnotesize
174     This page {\copyright} 1998-2002 Bruce Ravel \hfill revised \revised \\
175     \texttt{<ravel@phys.washington.edu>} \\ %% \hfill printed \today \\
176     This page covers version {\version} of gnuplot-mode.
177
178     Permission is granted to make and distribute copies of this quick
179     reference provided the copyright notice and this permission are
180     preserved on all copies.}
181 \end{flushleft}
182 %%\vfil
183 \pagebreak
184 \centerline{{\large\textbf{Setting up gnuplot-mode}}}
185 \vspace{2ex}
186
187 Put the lines in the box below in your \file{.emacs} file or in the
188 system wide start-up file to enable gnuplot-mode.  The first two lines
189 make Emacs recognize the functions described in the ``Starting
190 gnuplot-mode'' section on this page.  The third line causes Emacs to
191 put all files ending in \file{.gp} into gnuplot-mode.  The final line
192 defines a hotkey -- in this case \key{F9} -- for starting
193 gnuplot-mode.
194
195 \begin{SqBoxedminipage}{\linewidth}
196 \begin{Verbatim}
197   (autoload 'gnuplot-mode "gnuplot"
198             "gnuplot major mode" t)
199   (autoload 'gnuplot-make-buffer "gnuplot"
200             "open a buffer in gnuplot mode" t)
201   (setq auto-mode-alist
202         (append '(("\\.gp$" . gnuplot-mode))
203                 auto-mode-alist))
204   (global-set-key [(f9)] 'gnuplot-make-buffer)
205 \end{Verbatim}%%$
206 \end{SqBoxedminipage}
207
208
209 \vspace{4ex}
210
211 \begin{description}
212 \item[Using the gnuplot-process buffer] \hfill \\
213   The process buffer contains an active \textsc{gnuplot} command line
214   for interacting with \textsc{gnuplot} directly.  The \texttt{M-C-p}
215   and \texttt{M-C-f} key sequences will plot using the contents of
216   the gnuplot script buffer.
217 \item[Using the GUI to set command arguments] \hfill \\
218   \texttt{C-c C-c} and \texttt{S-mouse-2} are used to invoke the
219   graphical tool for setting command arguments.  Use text fields and
220   option menus to choose appropriate values.  Menus and buttons are
221   activated with the middle mouse button.  A few plot options may not
222   be fully supported.
223 \item[Customizing variables] \hfill \\
224   The graphical customization tool for variables can be invoked using
225   \texttt{C-c C-z}.  Descriptions of the variables relevant to
226   gnuplot-mode can be obtained by using \texttt{gnuplot} as the
227   regular expression for \texttt{M-x apropos}.
228 \item[On-line help] \hfill \\
229   Keyword completion and on-line help require that the
230   \textsc{gnuplot} info file be available and that the info-look
231   package be installed.  The info file can be made from the
232   documentation supplied with the \textsc{gnuplot} distribution and
233   the info-look package is a standard part of Emacs 20.  Users of
234   XEmacs or Emacs 19 should download \file{info-look.el} from the
235   gnuplot-mode homepage.
236 \item[Using mouse] \hfill \\
237   All features of the mouse patch to \textsc{gnuplot} should be
238   available when using gnuplot-mode.  One particularly useful feature
239   of mouse is the ability to push a cursor position into the
240   clipboard.  This is done by double-clicking \texttt{mouse-1} in the
241   plot window, then doing \texttt{M-x yank-clipboard-selection}
242   (usually bound to \texttt{mouse-2}) in the gnuplot script buffer.
243 \end{description}
244
245
246
247 \vfill
248 \pagebreak
249
250 %%% end of first column
251
252 \begin{center}
253   \begin{Boxedminipage}{0.75\linewidth}
254     \begin{center}
255       {\large User configurable variables}
256     \end{center}
257   \end{Boxedminipage}
258 \end{center}
259
260
261 \variable{gnuplot-program}{gnuplot}{The name of the gnuplot
262   executable.}
263 %
264 \variable{gnuplot-process-name}{*gnuplot*}{The name of the gnuplot
265   process and process buffer.}
266 %
267 \variable{gnuplot-gnuplot-buffer}{plot.gp}{The name of the gnuplot
268   scratch buffer opened by \texttt{gnuplot-make-buffer}.}
269 %
270 %
271 \variable{gnuplot-display-process}{'window}{Determines how to display
272   the gnuplot process buffer, either 'frame, 'window, or nil}
273 %
274 \variable{gnuplot-info-display}{'window}{Determines how
275   `gnuplot-get-help' displays the info file, either 'frame, 'window,
276   or nil}
277 %
278 \variable{gnuplot-echo-command-line-flag}{t}{If lines that you send to
279   gnuplot from the gnuplot-mode buffer are not appearing at the
280   gnuplot prompt in the process buffer, set this to nil and restart
281   emacs.}
282 %
283 \variable{gnuplot-delay}{0.01}{Time in seconds to allow the gnuplot
284   display to update.  Increase this number if the prompts and lines
285   are displayed out of order.}
286 %
287 \variable{gnuplot-quote-character}{'}{Quotation character used when
288   inserting a filename into the script (single, double, or no quote).}
289
290 \variable{gnuplot-buffer-max-size}{1000}{The maximum size in lines of
291 the gnuplot buffer.  Excess lines are trimmed.  0 means to never trim.}
292
293 %%\vspace{1ex}
294 \begin{center}
295   \begin{Boxedminipage}{0.75\linewidth}
296     \begin{center}
297       {\large Hook variables}
298     \end{center}
299   \end{Boxedminipage}
300 \end{center}
301
302 \variable{gnuplot-mode-hook}{nil}{Functions run when gnuplot minor
303   mode is entered.}
304 %
305 \variable{gnuplot-load-hook}{nil}{Functions run when gnuplot.el is
306   first loaded.}
307 %
308 \variable{gnuplot-after-plot-hook}{nil}{Functions run after gnuplot
309   plots an entire buffer.  See the doc string for
310   \texttt{gnuplot-recently-sent}.}
311 %
312 \variable{gnuplot-comint-setup-hook}{nil}{Functions run after setting
313   up the gnuplot process buffer in comint mode.}
314 %
315 \variable{gnuplot-info-hook}{nil}{Functions run before setting up
316   info-look in the gnuplot-mode buffer.}
317 %
318
319
320
321 \vfill\eject
322
323
324 \begin{center}
325   \begin{Boxedminipage}{0.75\linewidth}
326     \begin{center}
327       {\large Insertion variables}
328     \end{center}
329   \end{Boxedminipage}
330 \end{center}
331
332 \noindent These variables control the \texttt{Insertions} pull-down
333 menu, which can be used to insert \textsc{gnuplot} commands into the
334 script.  The various sub-menu variables can be used to customize which
335 commands appear in the \texttt{Insertions} menu.
336
337 \vspace{2ex}
338 %
339 \variable{gnuplot-insertions-menu-flag}{t}{Non-nil means to display
340   the \texttt{Insertions} menu in the menubar.}
341 %
342 \variable{gnuplot-insertions-show-help-flag}{nil}{Non-nil means to
343   display help from info file when using the \texttt{Insertions}
344   menu.}
345 %
346 \variable{gnuplot-insertions-adornments}{\Star}{Contents of the
347   \texttt{adornments} sub-menu.}
348 %
349 \variable{gnuplot-insertions-plot-options}{\Star}{Contents of the
350   \texttt{plot-options} sub-menu.}
351 %
352 \variable{gnuplot-insertions-terminal}{\Star}{Contents of the
353   \texttt{terminal} sub-menu.}
354 %
355 \variable{gnuplot-insertions-x-axis}{\Star}{Contents of the \texttt{x
356     axis} sub-menu.}
357 %
358 \variable{gnuplot-insertions-x2-axis}{\Star}{Contents of the \texttt{x2
359     axis} sub-menu.}
360 %
361 \variable{gnuplot-insertions-y-axis}{\Star}{Contents of the \texttt{y
362     axis} sub-menu.}
363 %
364 \variable{gnuplot-insertions-y2-axis}{\Star}{Contents of the \texttt{y2
365     axis} sub-menu.}
366 %
367 \variable{gnuplot-insertions-z-axis}{\Star}{Contents of the \texttt{z
368     axis} sub-menu.}
369 %
370 \variable{gnuplot-insertions-parametric-plots}{\Star}{Contents of the
371   \texttt{parametric plots} sub-menu.}
372 %
373 \variable{gnuplot-insertions-polar-plots}{\Star}{Contents of the
374   \texttt{polar plots} sub-menu.}
375 %
376 \variable{gnuplot-insertions-surface-plots}{\Star}{Contents of the
377   \texttt{surface plots} sub-menu.}
378
379
380
381 \begin{center}
382   \begin{Boxedminipage}{0.75\linewidth}
383     \begin{center}
384       {\large Toolbar variables}
385     \end{center}
386   \end{Boxedminipage}
387 \end{center}
388
389 \noindent These variables control the use and location of the
390 toolbar in XEmacs.  The toolbar has buttons equivalent to the key
391 sequences \texttt{C-c C-l}, \texttt{C-c C-r}, \texttt{C-c C-b},
392 \texttt{C-c C-e}, and \texttt{C-c C-h}.
393
394 \vspace{2ex}
395
396 %
397 \variable{gnuplot-display-toolbar-flag}{nil}{Non-nil means to display
398   a toolbar if using XEmacs.}
399 %
400 \variable{gnuplot-use-toolbar}{left-toolbar}{Location of XEmacs
401   toolbar.  Valid values are \texttt{left-toolbar},
402   \texttt{right-toolbar}, \texttt{top-toolbar}, \texttt{bottom-toolbar},
403   \texttt{default-toolbar} and nil.}
404 %
405
406 \begin{center}
407   \begin{Boxedminipage}{0.75\linewidth}
408     \begin{center}
409       {\large Set Arguments}
410     \end{center}
411   \end{Boxedminipage}
412 \end{center}
413
414 \noindent These variables control the behavior of the graphical
415 interface to setting command arguments.  \texttt{C-c C-c} with point
416 over a command or \texttt{S-mouse-2} with the mouse cursor over a
417 command will cause a small frame to pop open with which you can set
418 command arguments.  Green button with bold text are bound to pup-up
419 menus --- use the mouse-2 to select an item from the menu.  Grey fields
420 are for filling in strings or numbers.  Hit the \textbf{[Set Options]}
421 button with \texttt{mouse-2} to insert command arguments into the
422 script.  You can also use the \key{tab} key to move among the widgets
423 and \key{ret} to push the buttons.
424
425 \vspace{2ex}
426 %
427 \variable{gnuplot-gui-popup-flag}{nil}{When non-nil an argument
428 setting frame will pop open whenever the \texttt{Insertions} menu is
429 used.}
430 %
431 \variable{gnuplot-gui-plot-splot-fit-style}{'simple}{\texttt{'simple}
432   or \texttt{'complete} -- describes the extent of the list of
433   properties of for plot, splot, and fit in the GUI.}
434 %
435 \variable{gnuplot-gui-frame-plist}{\Star}{Property list of parameters
436   controlling the argument setting frame.  Used by XEmacs.}
437 %
438 \variable{gnuplot-gui-frame-parameters}{\Star}{List of parameters
439   controlling the argument setting frame.  Used by Emacs.}
440 %
441 \variable{gnuplot-gui-fontname-list}{\Star}{List of font available on your
442   computer to the terminal drivers.}
443 %
444
445
446 \begin{center}
447   \begin{Boxedminipage}{0.75\linewidth}
448     \begin{center}
449       {\large Faces}
450     \end{center}
451   \end{Boxedminipage}
452 \end{center}
453
454 \noindent These are various faces defined for use with gnuplot-mode.
455 \vspace{2ex}
456
457 %
458 \variable{gnuplot-prompt-face}{firebrick}{Color of gnuplot prompt (on a
459   light background) in process buffer.  Bold and underlined on a
460   monochrome display.}
461 %
462 \variable{gnuplot-gui-menu-face}{dark olive green}{Color of menu
463   buttons (on a light background) in the argument setting frame.
464   Italic on a monochrome display.}
465 %
466 \variable{gnuplot-gui-button-face}{sienna}{Color of push buttons (on a
467   light background) in the argument setting frame.  Italic on a
468   monochrome display.}
469 %
470 \variable{gnuplot-gui-label-face}{dark slate blue}{Color of buttons (on
471   a light background) used to set label lists in the argument setting
472   frame.  Italic on a monochrome display.}
473 %
474
475 \vfill
476 \hrule
477 \vspace{0.5ex}
478 \begin{flushleft}
479   \footnotesize{Variables marked with {\Star} have default values that
480     are too long to print here.}
481 \end{flushleft}
482
483 \end{document}
484
485
486
487
488 %%% Local Variables:
489 %%% mode: latex
490 %%% TeX-master: t
491 %%% End: