Hi all,

As I've understood you want to setup the structure of the table and have some prompts to add rows to the table.

Using org-mode I have a capture skeleton here that uses 

------- org capture template
#+begin_src elisp
;; 
  ("Lu" "Fuel" table-line
 (file+olp "~/org/TODO.org" "Car" "Fuel Control")
 "|%<%Y-%m-%d> | %^{Price} | %^{ototanterior} | %^{ototatual} |  | %^{liters} |  %^{RSxl} | %^{Average} | %^{GasType}|
")
#+end_src

And at TODO.org I have the following structure

#+begin_example
 * Car
** Fuel Control

|       Date |   Price | otot anterior | otot atual | partial | Liters |  R$/l |    Average | Fuel type  |
|------------+---------+---------------+------------+--------------+--------+-------+-----------+-----------|
(...)

#+end_example

I've just written the structure of the table and every time I have a new entry I use capture to fill in the table. You'll get a prompt with the name of the strings asked.

Hope it helps. 

Cheers,

LEslie


On Thu, Dec 12, 2019 at 3:33 PM Berry, Charles <ccberry@health.ucsd.edu> wrote:


> On Dec 12, 2019, at 8:03 AM, Lawrence Bottorff <borgauf@gmail.com> wrote:
>
> I just figured out that this
>
> #+BEGIN_SRC emacs-lisp :results table
> '((H1 H2 H3) (text11 text12 text13) (text21 text22 text23) (... ... ...) (textN1 textN2 textN3))
> #+END_SRC
>
> #+RESULTS:
> | H1     | H2     | H3     |
> | text11 | text12 | text13 |
> | text21 | text22 | text23 |
> | ...    | ...    | ...    |
> | textN1 | textN2 | textN3 |
>
> is probably a better way all around, i.e., "best practice." If any one knows how to get the horizontal lines added in. . . .


Add an `hline' in the right place. Like this:

#+BEGIN_SRC emacs-lisp :results table
'((H1 H2 H3) hline (text11 text12 text13) (text21 text22 text23) (... ... ...) (textN1 textN2 textN3))
#+END_SRC

HTH,

Chuck



--
Leslie H. Watter