all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how can I fill a column (of any size) with zeros?
@ 2023-03-07 11:13 Uwe Brauer
  2023-03-07 12:28 ` Ihor Radchenko
  2023-03-07 13:11 ` Fraga, Eric
  0 siblings, 2 replies; 5+ messages in thread
From: Uwe Brauer @ 2023-03-07 11:13 UTC (permalink / raw)
  To: emacs-orgmode


Hi

If I have 

| this | that |
|------+------|
|      |      |
|      |      |
|      |      |
|      |      |
#+TBLFM: $1=@#-1

Then C-c C-c will fill the first colum with consecutive numbers.
| this | that |
|------+------|
|    1 |      |
|    2 |      |
|    3 |      |
|    4 |      |
#+TBLFM: $1=@#-1


How could I generate just a column of zeros but not consecutive numbers?

Thanks and regards

Uwe Brauer 



-- 
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/



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

* Re: how can I fill a column (of any size) with zeros?
  2023-03-07 11:13 how can I fill a column (of any size) with zeros? Uwe Brauer
@ 2023-03-07 12:28 ` Ihor Radchenko
  2023-03-07 13:48   ` Uwe Brauer
  2023-03-07 13:11 ` Fraga, Eric
  1 sibling, 1 reply; 5+ messages in thread
From: Ihor Radchenko @ 2023-03-07 12:28 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-orgmode

Uwe Brauer <oub@mat.ucm.es> writes:

> #+TBLFM: $1=@#-1
>
> How could I generate just a column of zeros but not consecutive numbers?

#+TBLFM: $1=0


-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

* Re: how can I fill a column (of any size) with zeros?
  2023-03-07 11:13 how can I fill a column (of any size) with zeros? Uwe Brauer
  2023-03-07 12:28 ` Ihor Radchenko
@ 2023-03-07 13:11 ` Fraga, Eric
  2023-03-07 13:49   ` Uwe Brauer
  1 sibling, 1 reply; 5+ messages in thread
From: Fraga, Eric @ 2023-03-07 13:11 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Maybe just column formula $2=0.0?

-- 
: Eric S Fraga, with org release_9.6.1-278-ge52c53 in Emacs 30.0.50

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

* Re: how can I fill a column (of any size) with zeros?
  2023-03-07 12:28 ` Ihor Radchenko
@ 2023-03-07 13:48   ` Uwe Brauer
  0 siblings, 0 replies; 5+ messages in thread
From: Uwe Brauer @ 2023-03-07 13:48 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 587 bytes --]

>>> "IR" == Ihor Radchenko <yantar92@posteo.net> writes:

> Uwe Brauer <oub@mat.ucm.es> writes:
>> #+TBLFM: $1=@#-1
>> 
>> How could I generate just a column of zeros but not consecutive numbers?

> #+TBLFM: $1=0

Ah, thanks


-- 
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

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

* Re: how can I fill a column (of any size) with zeros?
  2023-03-07 13:11 ` Fraga, Eric
@ 2023-03-07 13:49   ` Uwe Brauer
  0 siblings, 0 replies; 5+ messages in thread
From: Uwe Brauer @ 2023-03-07 13:49 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

>>> "FE" == Fraga, Eric <e.fraga@ucl.ac.uk> writes:

> Maybe just column formula $2=0.0?

Yep sometimes the easiest solution is the correct one....

> -- 
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

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

end of thread, other threads:[~2023-03-07 13:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-07 11:13 how can I fill a column (of any size) with zeros? Uwe Brauer
2023-03-07 12:28 ` Ihor Radchenko
2023-03-07 13:48   ` Uwe Brauer
2023-03-07 13:11 ` Fraga, Eric
2023-03-07 13:49   ` Uwe Brauer

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.