Browse Source

text formatting minor fixes

Thierry Banel 6 years ago
parent
commit
1c69787d3c
1 changed files with 112 additions and 111 deletions
  1. 112 111
      org-contrib/orgtbl-ascii-plot.org

+ 112 - 111
org-contrib/orgtbl-ascii-plot.org

@@ -8,102 +8,102 @@ All in Emacs, without any external package.
 
 * A few examples
 
-| ! |  x |    sin(x/4) |              |
-|---+----+-------------+--------------|
-| # |  0 |           0 | WWWWWW       |
-| # |  1 |  0.32719470 | WWWWWWWW     |
-| # |  2 |  0.61836980 | WWWWWWWWWh   |
-| # |  3 |  0.84147098 | WWWWWWWWWWW  |
-| # |  4 |  0.97193790 | WWWWWWWWWWWV |
-| # |  5 |  0.99540796 | WWWWWWWWWWWW |
-| # |  6 |  0.90929743 | WWWWWWWWWWWu |
-| # |  7 |  0.72308588 | WWWWWWWWWW-  |
-| # |  8 |  0.45727263 | WWWWWWWWh    |
-| # |  9 |  0.14112001 | WWWWWWV      |
-| # | 10 | -0.19056796 | WWWWH        |
-| # | 11 | -0.50127705 | WWW          |
-| # | 12 | -0.75680250 | Wu           |
-| # | 13 | -0.92901450 | ;            |
-| # | 14 | -0.99895492 |              |
-| # | 15 | -0.95892427 | :            |
-| # | 16 | -0.81332939 | W.           |
-| # | 17 | -0.57819824 | WWu          |
-| # | 18 | -0.27941550 | WWWW-        |
-| # | 19 | 0.050127010 | WWWWWW-      |
-| # | 20 |  0.37415123 | WWWWWWWW:    |
-| # | 21 |  0.65698660 | WWWWWWWWWH   |
-| # | 22 |  0.86749687 | WWWWWWWWWWW: |
-| # | 23 |  0.98250779 | WWWWWWWWWWWH |
-| # | 24 |  0.98935825 | WWWWWWWWWWWH |
-| # | 25 |  0.88729411 | WWWWWWWWWWW- |
-| # | 26 |  0.68755122 | WWWWWWWWWW.  |
-| # | 27 |  0.41211849 | WWWWWWWWu    |
-| # | 28 | 0.091317236 | WWWWWWu      |
-| # | 29 | -0.23953677 | WWWWl        |
-| # | 30 | -0.54402111 | WWh          |
-| # | 31 | -0.78861628 | W-           |
-#+TBLFM: $3=sin($x/3);R::$4='(orgtbl-ascii-draw $3 -1 1)
-
-| ! |  x | x^2 |              |
-|---+----+-----+--------------|
-| # |  0 |   0 |              |
-| # |  1 |   1 | .            |
-| # |  2 |   4 | :            |
-| # |  3 |   9 | u            |
-| # |  4 |  16 | W            |
-| # |  5 |  25 | Wu           |
-| # |  6 |  36 | WW:          |
-| # |  7 |  49 | WWH          |
-| # |  8 |  64 | WWWV         |
-| # |  9 |  81 | WWWWH        |
-| # | 10 | 100 | WWWWWW       |
-| # | 11 | 121 | WWWWWWW-     |
-| # | 12 | 144 | WWWWWWWWl    |
-| # | 13 | 169 | WWWWWWWWWW.  |
-| # | 14 | 196 | WWWWWWWWWWWV |
-#+TBLFM: $3=$x*$x::$4='(orgtbl-ascii-draw $3 0 200)
-
-| ! |  x |   sqrt(x) |              |
-|---+----+-----------+--------------|
-| # |  0 |         0 |              |
-| # |  1 |         1 | WWW          |
-| # |  2 | 1.4142136 | WWWW:        |
-| # |  3 | 1.7320508 | WWWWW:       |
-| # |  4 |         2 | WWWWWW       |
-| # |  5 | 2.2360680 | WWWWWWh      |
-| # |  6 | 2.4494897 | WWWWWWW-     |
-| # |  7 | 2.6457513 | WWWWWWWH     |
-| # |  8 | 2.8284271 | WWWWWWWWu    |
-| # |  9 |         3 | WWWWWWWWW    |
-| # | 10 | 3.1622777 | WWWWWWWWWu   |
-| # | 11 | 3.3166248 | WWWWWWWWWH   |
-| # | 12 | 3.4641016 | WWWWWWWWWW;  |
-| # | 13 | 3.6055513 | WWWWWWWWWWV  |
-| # | 14 | 3.7416574 | WWWWWWWWWWW: |
-| # | 15 | 3.8729833 | WWWWWWWWWWWl |
-| # | 16 |         4 | WWWWWWWWWWWW |
-#+TBLFM: $3=sqrt($x)::$4='(orgtbl-ascii-draw $3 0 4)
-
-| ! |  x |         1/x |              |
-|---+----+-------------+--------------|
-| # |  1 |           1 | WWWWWWWWWWWW |
-| # |  2 |         0.5 | WWWWWW       |
-| # |  3 |  0.33333333 | WWWW         |
-| # |  4 |        0.25 | WWW          |
-| # |  5 |         0.2 | WW;          |
-| # |  6 |  0.16666667 | WW           |
-| # |  7 |  0.14285714 | Wh           |
-| # |  8 |       0.125 | Wu           |
-| # |  9 |  0.11111111 | W-           |
-| # | 10 |         0.1 | W:           |
-| # | 11 | 0.090909091 | W.           |
-| # | 12 | 0.083333333 | W            |
-| # | 13 | 0.076923077 | H            |
-| # | 14 | 0.071428571 | H            |
-| # | 15 | 0.066666667 | V            |
-| # | 16 |      0.0625 | V            |
-| # | 17 | 0.058823529 | h            |
-#+TBLFM: $3=1/$x::$4='(orgtbl-ascii-draw $3 0 1)
+: | ! |  x |    sin(x/4) |              |
+: |---+----+-------------+--------------|
+: | # |  0 |           0 | WWWWWW       |
+: | # |  1 |  0.32719470 | WWWWWWWW     |
+: | # |  2 |  0.61836980 | WWWWWWWWWh   |
+: | # |  3 |  0.84147098 | WWWWWWWWWWW  |
+: | # |  4 |  0.97193790 | WWWWWWWWWWWV |
+: | # |  5 |  0.99540796 | WWWWWWWWWWWW |
+: | # |  6 |  0.90929743 | WWWWWWWWWWWu |
+: | # |  7 |  0.72308588 | WWWWWWWWWW-  |
+: | # |  8 |  0.45727263 | WWWWWWWWh    |
+: | # |  9 |  0.14112001 | WWWWWWV      |
+: | # | 10 | -0.19056796 | WWWWH        |
+: | # | 11 | -0.50127705 | WWW          |
+: | # | 12 | -0.75680250 | Wu           |
+: | # | 13 | -0.92901450 | ;            |
+: | # | 14 | -0.99895492 |              |
+: | # | 15 | -0.95892427 | :            |
+: | # | 16 | -0.81332939 | W.           |
+: | # | 17 | -0.57819824 | WWu          |
+: | # | 18 | -0.27941550 | WWWW-        |
+: | # | 19 | 0.050127010 | WWWWWW-      |
+: | # | 20 |  0.37415123 | WWWWWWWW:    |
+: | # | 21 |  0.65698660 | WWWWWWWWWH   |
+: | # | 22 |  0.86749687 | WWWWWWWWWWW: |
+: | # | 23 |  0.98250779 | WWWWWWWWWWWH |
+: | # | 24 |  0.98935825 | WWWWWWWWWWWH |
+: | # | 25 |  0.88729411 | WWWWWWWWWWW- |
+: | # | 26 |  0.68755122 | WWWWWWWWWW.  |
+: | # | 27 |  0.41211849 | WWWWWWWWu    |
+: | # | 28 | 0.091317236 | WWWWWWu      |
+: | # | 29 | -0.23953677 | WWWWl        |
+: | # | 30 | -0.54402111 | WWh          |
+: | # | 31 | -0.78861628 | W-           |
+: #+TBLFM: $3=sin($x/3);R::$4='(orgtbl-ascii-draw $3 -1 1)
+
+: | ! |  x | x^2 |              |
+: |---+----+-----+--------------|
+: | # |  0 |   0 |              |
+: | # |  1 |   1 | .            |
+: | # |  2 |   4 | :            |
+: | # |  3 |   9 | u            |
+: | # |  4 |  16 | W            |
+: | # |  5 |  25 | Wu           |
+: | # |  6 |  36 | WW:          |
+: | # |  7 |  49 | WWH          |
+: | # |  8 |  64 | WWWV         |
+: | # |  9 |  81 | WWWWH        |
+: | # | 10 | 100 | WWWWWW       |
+: | # | 11 | 121 | WWWWWWW-     |
+: | # | 12 | 144 | WWWWWWWWl    |
+: | # | 13 | 169 | WWWWWWWWWW.  |
+: | # | 14 | 196 | WWWWWWWWWWWV |
+: #+TBLFM: $3=$x*$x::$4='(orgtbl-ascii-draw $3 0 200)
+
+: | ! |  x |   sqrt(x) |              |
+: |---+----+-----------+--------------|
+: | # |  0 |         0 |              |
+: | # |  1 |         1 | WWW          |
+: | # |  2 | 1.4142136 | WWWW:        |
+: | # |  3 | 1.7320508 | WWWWW:       |
+: | # |  4 |         2 | WWWWWW       |
+: | # |  5 | 2.2360680 | WWWWWWh      |
+: | # |  6 | 2.4494897 | WWWWWWW-     |
+: | # |  7 | 2.6457513 | WWWWWWWH     |
+: | # |  8 | 2.8284271 | WWWWWWWWu    |
+: | # |  9 |         3 | WWWWWWWWW    |
+: | # | 10 | 3.1622777 | WWWWWWWWWu   |
+: | # | 11 | 3.3166248 | WWWWWWWWWH   |
+: | # | 12 | 3.4641016 | WWWWWWWWWW;  |
+: | # | 13 | 3.6055513 | WWWWWWWWWWV  |
+: | # | 14 | 3.7416574 | WWWWWWWWWWW: |
+: | # | 15 | 3.8729833 | WWWWWWWWWWWl |
+: | # | 16 |         4 | WWWWWWWWWWWW |
+: #+TBLFM: $3=sqrt($x)::$4='(orgtbl-ascii-draw $3 0 4)
+
+: | ! |  x |         1/x |              |
+: |---+----+-------------+--------------|
+: | # |  1 |           1 | WWWWWWWWWWWW |
+: | # |  2 |         0.5 | WWWWWW       |
+: | # |  3 |  0.33333333 | WWWW         |
+: | # |  4 |        0.25 | WWW          |
+: | # |  5 |         0.2 | WW;          |
+: | # |  6 |  0.16666667 | WW           |
+: | # |  7 |  0.14285714 | Wh           |
+: | # |  8 |       0.125 | Wu           |
+: | # |  9 |  0.11111111 | W-           |
+: | # | 10 |         0.1 | W:           |
+: | # | 11 | 0.090909091 | W.           |
+: | # | 12 | 0.083333333 | W            |
+: | # | 13 | 0.076923077 | H            |
+: | # | 14 | 0.071428571 | H            |
+: | # | 15 | 0.066666667 | V            |
+: | # | 16 |      0.0625 | V            |
+: | # | 17 | 0.058823529 | h            |
+: #+TBLFM: $3=1/$x::$4='(orgtbl-ascii-draw $3 0 1)
 
 * How to
 
@@ -117,7 +117,7 @@ All in Emacs, without any external package.
 3- Type
    - either =C-c p=
    - or =M-x orgtbl-ascii-plot=
-   This adds a new ascii art column.
+   This adds a new ascii-art column.
 
 * Additional details
 
@@ -186,23 +186,24 @@ The column formula may be changed. Here is how it works:
 #+END_SRC
 
 * License (GNU GPL of course)
-;; Copyright (C) 2013 Thierry Banel
+Copyright (C) 2013 Thierry Banel
 
-;; Author: Thierry Banel
-;; Keywords: table, plot, ascii
+Author: Thierry Banel
 
-;; This file is NOT (yet) part of GNU Emacs.
+Keywords: table, plot, ascii
 
-;; orgtbl-ascii-plot.el is free software: you can redistribute it
-;; and/or modify it under the terms of the GNU General Public License
-;; as published by the Free Software Foundation, either version 3 of
-;; the License, or (at your option) any later version.
+This file is NOT (yet) part of GNU Emacs.
 
-;; orgtbl-ascii-plot.el is distributed in the hope that it will be
-;; useful, but WITHOUT ANY WARRANTY; without even the implied warranty
-;; of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-;; GNU General Public License for more details.
+orgtbl-ascii-plot.el is free software: you can redistribute it
+and/or modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation, either version 3 of
+the License, or (at your option) any later version.
 
-;; the GNU General Public License can be obtained here:
-;; <http://www.gnu.org/licenses/>.
+orgtbl-ascii-plot.el is distributed in the hope that it will be
+useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+the GNU General Public License can be obtained here:
+<http://www.gnu.org/licenses/>.