From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: table formula help...
Date: Sun, 07 Dec 2014 10:05:11 +0800 [thread overview]
Message-ID: <87a9306wq0.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 54838805.8090705@free.fr
Thierry Banel <tbanelwebmin@free.fr> writes:
> To elaborate on Michael's first suggestion,
> we will first give a name ("work") to the table:
>
> #+TBLNAME: work
> | Chars | Lines | Translator |
>
> |-------+-------+-----------------|
> | | 84 | Austin Woerner |
> | 6633 | | Eric Abrahamsen |
> | 16984 | | Canaan Morse |
> | | 24 | Lucas Klein |
> | | 10 | Lucas Klein |
>
> Then typing C-c C-x i and answering the wizard questions,
> we get a new table as follow:
>
> #+BEGIN: aggregate :table "work" :cols "Translator sum(Chars) sum(Lines)"
> | Translator | sum(Chars) | sum(Lines) |
>
> |-----------------+------------+------------|
> | Austin Woerner | NA | 84 |
> | Eric Abrahamsen | 6633 | NA |
> | Canaan Morse | 16984 | NA |
> | Lucas Klein | 2 NA | 34 |
> #+END:
>
> Whenever you change the "work" table,
> you can easily refresh the aggregated table by typing C-c C-c
Whoa, that's really intense, going to play with it for a bit...
Thanks!
> To install the orgtbl-aggregate module,
> add those lines to your .emacs:
>
> (require 'package)
> (add-to-list 'package-archives '("melpa" .
> "http://melpa.milkbox.net/packages/") t)
> (package-initialize)
>
> Then type M-x package-list-packages
> and install orgtbl-aggregate
>
> Have fun
> Thierry
>
>
>
> Le 06/12/2014 09:05, Michael Brand a écrit :
>> Hi Eric
>>
>> On Sat, Dec 6, 2014 at 6:42 AM, Eric Abrahamsen <eric@ericabrahamsen.net> wrote:
>>> #+NAME: counts
>>> | Piece | Chars | Lines | Translator |
>>> +----------------+--------+-------+------------------+
>>> | 凤凰 | | 84 | Austin Woerner |
>>> | 王血 | 6633 | | Eric Abrahamsen |
>>> | 赵氏孤儿 | 16984 | | Canaan Morse |
>>> | 山鬼故家 | | 24 | Lucas Klein |
>>> | 寂静何其深沉 | | 10 | Lucas Klein |
>>>
>>> And the second:
>>>
>>> #+NAME: payments
>>> #+CONSTANTS: prose=0.7 poetry=10
>>> | Translator | Total Chars | Total Lines | Payment |
>>> |------------------+-------------+-------------+---------|
>>> | Austin Woerner | | | |
>>> | Eric Abrahamsen | | | |
>>> | Canaan Morse | | | |
>>> | Lucas Klein | | | |
>> Thierry Banel recently announced orgaggregate:
>> http://lists.gnu.org/archive/cgi-bin/namazu.cgi?idxname=emacs-orgmode&max=100&sort=date:late&query=%2Bsubject:"%5BANN%5D+Aggregate+Table"
>>
>> For a solution with only built-in functionality see the example
>> test-org-table/org-lookup-all in the Org source file
>> testing/lisp/test-org-table.el
>> http://orgmode.org/w/org-mode.git?p=org-mode.git;a=blob;f=testing/lisp/test-org-table.el
>>
>> Michael
>>
>>
next prev parent reply other threads:[~2014-12-07 1:59 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-06 5:42 table formula help Eric Abrahamsen
2014-12-06 7:37 ` Thomas S. Dye
2014-12-06 8:05 ` Michael Brand
2014-12-06 8:32 ` Eric Abrahamsen
2014-12-06 22:49 ` Thierry Banel
2014-12-07 2:05 ` Eric Abrahamsen [this message]
2014-12-07 3:25 ` Eric Abrahamsen
2014-12-07 9:20 ` Thierry Banel
2014-12-07 9:40 ` Michael Brand
2014-12-07 10:02 ` Thierry Banel
2014-12-07 10:26 ` Michael Brand
2014-12-07 14:51 ` Thierry Banel
2014-12-07 16:13 ` Thierry Banel
2014-12-07 16:48 ` Michael Brand
2014-12-08 21:12 ` Thierry Banel
2014-12-08 22:32 ` Thierry Banel
2014-12-10 21:08 ` Michael Brand
2014-12-08 3:52 ` Eric Abrahamsen
2014-12-07 9:39 ` Michael Brand
2014-12-07 9:55 ` Thierry Banel
2014-12-07 21:57 ` Thierry Banel
2014-12-08 18:02 ` Michael Brand
2014-12-08 21:57 ` Thierry Banel
2014-12-09 5:54 ` Michael Brand
2014-12-09 18:12 ` Thierry Banel
2014-12-09 19:01 ` Thierry Banel
2014-12-09 22:35 ` Thierry Banel
2014-12-10 21:06 ` Michael Brand
2014-12-10 22:55 ` Thierry Banel
2014-12-12 17:15 ` Michael Brand
2014-12-12 21:04 ` Thierry Banel
2014-12-13 18:27 ` Michael Brand
2015-01-25 22:21 ` Thierry Banel
2015-01-26 2:48 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9306wq0.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).