New answers tagged

0

I was able to do this with sqlite and python. I still can't figure out a elisp method. Sqlite #+begin_src sqlite :db /tmp/workout.db :var workout=hpush :colnames yes drop table if exists workout; create table workout(date text, progression text, set_rep text, comment text, year text, week text, vol text); .mode csv .import $workout workout with recursive ...


0

The link you point to is only tangentially related to your problem: since you use :results output in your python block, you don't have to worry about the inconcistency of ob-python with :results value unless you change your code block to use that. Note also that you have a typo in your elisp code block that I correct below: the syntax is :var tab=ttest with ...


1

But you are on the right track. The only mistake is that you are passing the wrong argument to org-element-parse-buffer (see its doc string with C-h f org-element-parse-buffer to see what arguments it takes). In this case, just call it without any arguments: (org-element-map (org-element-parse-buffer) 'table (lambda (element) (org-element-property :name ...


0

Here is my implementation of c_48 solution. Say the org file where the tables are is called cardref.org, located in ~/. The following code will automatically retrieve tables names so that they will appear with TAB when the mda/refcard function is executed. (setq refnames (with-temp-buffer (insert-file-contents "~/cardref.org") ...


Top 50 recent answers are included