[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: convert subtree or nested list to table
From: |
tbanelwebmin |
Subject: |
Re: convert subtree or nested list to table |
Date: |
Wed, 7 Jul 2021 12:27:58 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Hi Matt
Le 05/07/2021 à 21:44, Matt Price a écrit :
> I have to write a number of text-heavy documents which need to be
> delivered as tables with wrapped paragraphs in most cells. Working
> directly in table format is pretty arduous and uncomfortable. Has
> anyone ever written a function to accept a list or subtree as input
> and process it into a table?
>
> If anyone has done something similar, I'd love some tips!
Maybe you could use builtin Babel
Hereafter you have a starting point
- Give a name to your input Org list
- Process it with Emacs-Lisp (or whatever language you are comfortable
with) to output it as a table
____ self contained Org Mode example _____
Example of a named list
#+NAME: BBB
- abc
+ 123
+ 456
- def
+ red
+ blue
- ghi
+ big
+ small
Example of converting the named list into a table with Emacs-Lisp
#+begin_src elisp :var bbb=BBB :results table
bbb
#+end_src
#+RESULTS:
| abc | (unordered (123) (456)) |
| def | (unordered (red) (blue)) |
| ghi | (unordered (big) (small)) |
___________________________________________
Re: convert subtree or nested list to table, Tim Cross, 2021/07/05
Re: convert subtree or nested list to table, Uwe Brauer, 2021/07/06
Re: convert subtree or nested list to table,
tbanelwebmin <=
- Re: convert subtree or nested list to table, Matt Price, 2021/07/07
- Re: convert subtree or nested list to table, tbanelwebmin, 2021/07/08
- Re: convert subtree or nested list to table, Christian Moe, 2021/07/08
- Re: convert subtree or nested list to table, Matt Price, 2021/07/20
- Re: convert subtree or nested list to table, Nick Dokos, 2021/07/20
- Re: convert subtree or nested list to table, Matt Price, 2021/07/20
[a very different solution] (was: convert subtree or nested list to table), Uwe Brauer, 2021/07/10