all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* filling cells automatically
@ 2007-06-20 15:44 ignotus
  2007-07-02 10:45 ` Carsten Dominik
  0 siblings, 1 reply; 3+ messages in thread
From: ignotus @ 2007-06-20 15:44 UTC (permalink / raw)
  To: emacs-orgmode

Dear Org users!

I would like to have the following functionality: I have a table like
this:

   | number1 | number2 | description |
   |---------+---------+-------------|
   |       1 |       1 | a           |
   |       1 |       2 | b           |
   |       1 |       3 | c           |
   |       1 |       4 | d           |
   |---------+---------+-------------|
   |       2 |       1 | aa          |
   |       2 |       2 | bb          |
   |       2 |       3 | cc          |
   |       2 |       4 | dd          |
   |---------+---------+-------------|
   |       3 |       1 | aaa         |
   |       3 |       2 | bbb         |
   |       3 |       3 | ccc         |
   |       3 |       4 | ddd         |
   |---------+---------+-------------|

I would like to generate number1 and number2 rows automatically (so when
I insert something the numbering will be okay), is this possible?  Well
I know it is, but is it possible within the current org table framework?

Thanks in advance, Richard.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: filling cells automatically
  2007-06-20 15:44 filling cells automatically ignotus
@ 2007-07-02 10:45 ` Carsten Dominik
  2007-07-04 14:22   ` ignotus
  0 siblings, 1 reply; 3+ messages in thread
From: Carsten Dominik @ 2007-07-02 10:45 UTC (permalink / raw)
  To: ignotus; +Cc: emacs-orgmode


On Jun 20, 2007, at 17:44, ignotus@freemail.hu wrote:

> Dear Org users!
>
> I would like to have the following functionality: I have a table like
> this:
>
>    | number1 | number2 | description |
>    |---------+---------+-------------|
>    |       1 |       1 | a           |
>    |       1 |       2 | b           |
>    |       1 |       3 | c           |
>    |       1 |       4 | d           |
>    |---------+---------+-------------|
>    |       2 |       1 | aa          |
>    |       2 |       2 | bb          |
>    |       2 |       3 | cc          |
>    |       2 |       4 | dd          |
>    |---------+---------+-------------|
>    |       3 |       1 | aaa         |
>    |       3 |       2 | bbb         |
>    |       3 |       3 | ccc         |
>    |       3 |       4 | ddd         |
>    |---------+---------+-------------|
>
> I would like to generate number1 and number2 rows automatically (so 
> when
> I insert something the numbering will be okay), is this possible?  Well
> I know it is, but is it possible within the current org table 
> framework?

This is currently difficult because of a bug in org-mode
in the treatment of fields that have a field formula assigned,
but also are in a column with a column formula.  This bug
will be fixed in the next version, and then you can do:

  | number1 | number2 | description |
  |---------+---------+-------------|
  |       1 |       1 | a           |
  |       1 |       2 | b           |
  |       1 |       3 | c           |
  |       1 |       4 | d           |
  |---------+---------+-------------|
  |       2 |       1 | aa          |
  |       2 |       2 | bb          |
  |       2 |       3 | cc          |
  |       2 |       4 | dd          |
  |---------+---------+-------------|
  |       3 |       1 | aaa         |
  |       3 |       2 | bbb         |
  |       3 |       3 | ccc         |
  |       3 |       4 | ddd         |
  |---------+---------+-------------|
#+TBLFM: 
$1=@-1::$2=1+@-1::@2$1=1::@2$2=1::@6$1=2::@6$2=1::@10$1=3::@10$2=1

Make sure that you insert new rows with Org-mode commands, not by hand.

With this setup, C-u C-c C-c will update the table and fill rows 1 and 
2.

Hope this helps

- Carsten

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: filling cells automatically
  2007-07-02 10:45 ` Carsten Dominik
@ 2007-07-04 14:22   ` ignotus
  0 siblings, 0 replies; 3+ messages in thread
From: ignotus @ 2007-07-04 14:22 UTC (permalink / raw)
  To: emacs-orgmode

Thanks Carsten!

-- 
...sutongi tti olleh

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-04 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-20 15:44 filling cells automatically ignotus
2007-07-02 10:45 ` Carsten Dominik
2007-07-04 14:22   ` ignotus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.