gpelcard.tex 15 KB

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