Skip to main content
added 28 characters in body
Source Link

I have multiple tables like below in an org file, but all having identical #+TBLFM lines. Is it possible to have just one #+TBLFM and have all these tables use it?

#+NAME: IOC | Rate | Units | Amount | Charges | Time | |-------+-------+---------+----------+------------------| | 170.3 | -6 | -1021.8 | -0.86853 | [2018-05-28 Mon] | | 174.1 | 6 | 1044.6 | -0.88791 | [2018-05-31 Thu] | |-------+-------+---------+----------+------------------| | Total | 0 | 22.8 | -1.75644 | | #+TBLFM: $3=$1*$2

#+NAME: IOC
|  Rate | Units |  Amount |  Charges | Time             |
|-------+-------+---------+----------+------------------|
| 170.3 |    -6 | -1021.8 | -0.86853 | [2018-05-28 Mon] |
| 174.1 |     6 |  1044.6 | -0.88791 | [2018-05-31 Thu] |
|-------+-------+---------+----------+------------------|
| Total |     0 |    22.8 | -1.75644 |                  |
#+TBLFM: $3=$1*$2

(The original #+TBLFM has a large number of simple formulae. Currently if I have to change it, I copy and yank to every place.)

I have multiple tables like below in an org file, but all having identical #+TBLFM lines. Is it possible to have just one #+TBLFM and have all these tables use it?

#+NAME: IOC | Rate | Units | Amount | Charges | Time | |-------+-------+---------+----------+------------------| | 170.3 | -6 | -1021.8 | -0.86853 | [2018-05-28 Mon] | | 174.1 | 6 | 1044.6 | -0.88791 | [2018-05-31 Thu] | |-------+-------+---------+----------+------------------| | Total | 0 | 22.8 | -1.75644 | | #+TBLFM: $3=$1*$2

(The original #+TBLFM has a large number of simple formulae. Currently if I have to change it, I copy and yank to every place.)

I have multiple tables like below in an org file, but all having identical #+TBLFM lines. Is it possible to have just one #+TBLFM and have all these tables use it?

#+NAME: IOC
|  Rate | Units |  Amount |  Charges | Time             |
|-------+-------+---------+----------+------------------|
| 170.3 |    -6 | -1021.8 | -0.86853 | [2018-05-28 Mon] |
| 174.1 |     6 |  1044.6 | -0.88791 | [2018-05-31 Thu] |
|-------+-------+---------+----------+------------------|
| Total |     0 |    22.8 | -1.75644 |                  |
#+TBLFM: $3=$1*$2

(The original #+TBLFM has a large number of simple formulae. Currently if I have to change it, I copy and yank to every place.)

Source Link

Can I have a single #+TBLFM for multiple org tables?

I have multiple tables like below in an org file, but all having identical #+TBLFM lines. Is it possible to have just one #+TBLFM and have all these tables use it?

#+NAME: IOC | Rate | Units | Amount | Charges | Time | |-------+-------+---------+----------+------------------| | 170.3 | -6 | -1021.8 | -0.86853 | [2018-05-28 Mon] | | 174.1 | 6 | 1044.6 | -0.88791 | [2018-05-31 Thu] | |-------+-------+---------+----------+------------------| | Total | 0 | 22.8 | -1.75644 | | #+TBLFM: $3=$1*$2

(The original #+TBLFM has a large number of simple formulae. Currently if I have to change it, I copy and yank to every place.)