Skip to main content
9 events
when toggle format what by license comment
Aug 9, 2022 at 12:38 comment added Giuseppe To go in the same direction as @tecosaur: Anyone would have the skills to make it a small Emacs package so that it becomes available on MELPA?
Jan 18, 2020 at 14:34 comment added tecosaur @VladimirPanteleev do you know if I can add this to my config and make it an "inbuilt" function I can easilly apply to any table?
Dec 5, 2018 at 3:34 comment added Trevoke That's great. I'd love some more comments for folks who may come here and be unfamiliar with elisp, but it's amazing, thank you!
Dec 5, 2018 at 3:34 vote accept Trevoke
Dec 4, 2018 at 3:35 comment added Vladimir Panteleev Updated the code with a newer version which fixes the name/data redundancy, clears old overlays, and registers itself as an org-ctrl-c-ctrl-c-hook so you don't have to put point on the code block to run it. It can also update all tables in the document courtesy of org-table-map-tables.
Dec 4, 2018 at 3:33 history edited Vladimir Panteleev CC BY-SA 4.0
New code version
Dec 2, 2018 at 16:52 comment added Vladimir Panteleev Thanks. This is pretty much a combination of your two answers. There is some redundancy as it both receives the table data from org-babel and searches for the table name declaration (so that it can add overlays etc.). From there, it maps row and column numbers from the received table data to org-table cell coordinates. cs/itpl does simple linear interpolation, and cs/gradient uses that to interpolate a color using a list of data points and color stops. From there, it just adds an overlay as in your answer. The example is a bit non-trivial as it consults data from elsewhere in the table.
Dec 2, 2018 at 16:28 comment added Trevoke That's fantastic! I'd love to read a slightly more in-depth description of how it's all connected, even if it's just "this code runs when you do X, it takes Y and Z as inputs, and this is what it does to the table" :)
Dec 2, 2018 at 9:50 history answered Vladimir Panteleev CC BY-SA 4.0