emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Shrinking columns after formula recalculation


From: Nick Dokos
Subject: [O] Shrinking columns after formula recalculation
Date: Wed, 10 Apr 2019 14:53:36 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

I have a table with column width cookies. I shrink the columns with
C-u C-c TAB and then I recalculate with C-c C-c on the #TBLFM
line. The columns then get expanded and I have to do the C-u C-c TAB
again after every recalculation. Is there a way to have the columns
stay shrunk?

Example: An unsolved problem in number theory: for what values of n
is n! - 1 a prime?

|  n |                                     n! -1 | prime? |
|----+-------------------------------------------+--------|
|  / |                                      <10> |        |
| 30 |         265252859812191058636308479999999 |      1 |
| 31 |        8222838654177922817725562879999999 |      0 |
| 32 |      263130836933693530167218012159999999 |      1 |
| 33 |     8683317618811886495518194401279999999 |      1 |
| 34 |   295232799039604140847618609643519999999 |      0 |
| 35 | 10333147966386144929666651337523199999999 |      0 |
#+TBLFM: @3$2..@>$2 = fact($1) -1 :: @3$3..@>$3 = prime($2, 10)

Thanks!
-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler




reply via email to

[Prev in Thread] Current Thread [Next in Thread]