Re: [O] Using a table value within the text (dynamic variable)?
On 2013-04-10 15:07+0200, Sebastien Vauban wrote: > "'Mash Thomas Herbert" wrote: > > OK thanks, I have never used Babel at all, but I believe I have found > > the inline use. > > > > src_lang[args]{code} > > > > So I thought... > > > > src_emacs-lisp[var: data=example-table[2:1]]{data} > > > > But this does not work. > > src_emacs-lisp[:var data=example-table[2,1]]{data} should work (untested) > ^^ > > Two questions... > > > > Am I right in saying even if I do get this to work, it would only > > "replace" the inline code blocks (variables) on an export? > > AFAIK, yes -- I've never really used inline code blocks. > > But I think you could intermix real code blocks within paragraphs, if you > don't insert any blank line (= paragraph separator). > > Or have a real block doing the work, exposing the answer in your Org buffer, > and have an inline code block to "echo" the answer. > > > It wouldn't work like a hyperlink and "translate" and "hide" the code block > > underneath the value? > > From what I understand from your question, "no". > > Best regards, > Seb > > -- > Sebastien Vauban > > Thanks for the correction, this works. src_emacs-lisp[:var data=example[1,1]]{data} Nice point about separating one code block to do the work and the inline to echo. Thinking through this the whole thing, it may be an overkill for my needs. I am rather going to just use tables in the text to represent data, rather than describe it directly in a paragraph. As always though, Org and Babel prove themselves again in terms of possibility. Thanks again, 'Mash
Re: [O] Using a table value within the text (dynamic variable)?
On 2013-04-10 13:16+0200, Sebastien Vauban wrote: > "'Mash Thomas Herbert" wrote: > > I was wondering if it was possible at all to use like a "variable" within a > > document that would reference a table cell, and could then be > > dynamically updated when the table cell was? > > > > The reason I ask is that I would like to have have tabular data held > > in another document and then write my document referencing and > > including the data within the text, so I only have to change the > > external data and the document would be updated automatically. > > > > Example... > > > > #+TBLNAME: example > > |-+-| > > | Foo | Bar | > > |-+-| > > | 22 | 43 | > > | 44 | 54 | > > |-+-| > > > > Lorem ipsum dolor sit amet, @remote(example,B2) consectetur adipiscing > > elit. Nullam > > vehicula lobortis sem, ut viverra lorem elementum quis. Etiam ac lacus > > eu ante molestie vehicula. Maecenas sed viverra sem. Proin mattis > > fermentum orci, sed tempus nibh feugiat eget. > > > > Would become... > > > > Lorem ipsum dolor sit amet, 43 consectetur adipiscing elit. Nullam > > vehicula lobortis sem, ut viverra lorem elementum quis. Etiam ac lacus > > eu ante molestie vehicula. Maecenas sed viverra sem. Proin mattis > > fermentum orci, sed tempus nibh feugiat eget. > > > > Thoughts? > > Use an Org Babel (inline) code block which extracts part of the table. See > "indexing variables". > > Best regards, > Seb > > -- > Sebastien Vauban > > OK thanks, I have never used Babel at all, but I believe I have found the inline use. src_lang[args]{code} So I thought... src_emacs-lisp[var: data=example-table[2:1]]{data} But this does not work. Two questions... Am I right in saying even if I do get this to work, it would only "replace" the inline code blocks (variables) on an export? It wouldn't work like a hyperlink and "translate" and "hide" the code block underneath the value? Sorry I can't think of how to phrase that question better.
[O] Using a table value within the text (dynamic variable)?
I was wondering if it was possible at all to use like a "variable" within a document that would reference a table cell, and could then be dynamically updated when the table cell was? The reason I ask is that I would like to have have tabular data held in another document and then write my document referencing and including the data within the text, so I only have to change the external data and the document would be updated automatically. Example... #+TBLNAME: example |-+-| | Foo | Bar | |-+-| | 22 | 43 | | 44 | 54 | |-+-| Lorem ipsum dolor sit amet, @remote(example,B2) consectetur adipiscing elit. Nullam vehicula lobortis sem, ut viverra lorem elementum quis. Etiam ac lacus eu ante molestie vehicula. Maecenas sed viverra sem. Proin mattis fermentum orci, sed tempus nibh feugiat eget. Would become... Lorem ipsum dolor sit amet, 43 consectetur adipiscing elit. Nullam vehicula lobortis sem, ut viverra lorem elementum quis. Etiam ac lacus eu ante molestie vehicula. Maecenas sed viverra sem. Proin mattis fermentum orci, sed tempus nibh feugiat eget. Thoughts?
Re: [O] Org as a static site generator
On 2013-04-01 13:12+0200, David Engster wrote: > I'd like to use Org as a static site generator. I know quite a few > people use Org to manage their sites, so I'd like to know what's already > available and what I'd need to add to make this working properly. > > I know of course how to export a bunch of Org files to HTML through the > publishing features. However, that's not really cutting it, I'm afraid. > > Thing of a typical HTML5 template having a , , , > and . I'd like Org to include the different exported files into > the section, and the rest to remain the same. The would > contain a global navigation menu, also highlighting the current active > section (though CSS, no JS please). > > Has anybode done something like this? > > -David > I rolled my own called "Orgile". http://toshine.org/etc/orgile-emacs-org-mode-file-html-parser-php-publishing-tool/ I would love someone to help me develop "classOrgile.php" the org-mode file to HTML parser can be used as a stand-alone PHP class in what ever tool you want. I am not much of a developer so this is a garden-shed effort, but as you can see with http://toshine.org it turned out pretty clean, and allows me to stay in Emacs and just push up the .org file via Git and Orgile does the rest. Note: I have tweaked my current Orgile code on my current site versus the public version on github, so may need to compare the two and republish to github. 'Mash
Re: [O] Changing '_archive' extension to allow Easy PG encryption: "_archive.gpg"?
On 2013-03-19 08:20-0400, Nick Dokos wrote: > 'Mash (Thomas Herbert) wrote: > > > Morning, > > > > I wanted to know how I would change the default '_archive' extension? > > > > I work with encrypted org files "foo.gpg" with Easy PG and the > > added header... > > > > # -*- mode: org; epa-file-encrypt-to: ("mash...@toshine.net") -*- > > > > But today I discovered that when I archive my TODO items they are of > > course saved unencrypted to the archive file "foo.gpg_archive". > > > > This really is not ideal situation! > > > > I tried adding my header to the "_archive" file but this doesn't work, I > > assume because the extension is not ".gpg". > > > > Any ideas how would I change the default "_archive" extension to > > "_archive.gpg" or better setup a case where it would change the > > extension only if the org file is ".gpg" to begin with? > > > > I suppose could also look to setup a case for Easy PG to work with a > > different extension, but would prefer to define the change for > > org-mode instead. > > > > C-h v org-archive- gives some idea of the variables that are there. > > org-archive-location is what you need to change in order to add the .gpg > suffix. > > I have no idea however, whether that's enough to allow you to do what > you want to do. > > Nick > Nick, thanks. For those who are interested. I got this to work by amending my "foo.gpg" header line to... # -*- mode: org; epa-file-encrypt-to: ("mash...@toshine.net") -*- #+ARCHIVE: %s_archive.gpg:: Then I had to amend my "foo.gpg_archive.gpg" header to... # -*- mode: org; epa-file-encrypt-to: ("mash...@toshine.net") -*- This then allowed automatic encryption without me having to 'select recipient for encryption', etc. Thanks again, 'Mash
[O] Changing '_archive' extension to allow Easy PG encryption: "_archive.gpg"?
Morning, I wanted to know how I would change the default '_archive' extension? I work with encrypted org files "foo.gpg" with Easy PG and the added header... # -*- mode: org; epa-file-encrypt-to: ("mash...@toshine.net") -*- But today I discovered that when I archive my TODO items they are of course saved unencrypted to the archive file "foo.gpg_archive". This really is not ideal situation! I tried adding my header to the "_archive" file but this doesn't work, I assume because the extension is not ".gpg". Any ideas how would I change the default "_archive" extension to "_archive.gpg" or better setup a case where it would change the extension only if the org file is ".gpg" to begin with? I suppose could also look to setup a case for Easy PG to work with a different extension, but would prefer to define the change for org-mode instead. Many thanks, 'Mash
[O] Logging properties, values in notes on TODO state change for column view usage?
Wondered if anyone had any thoughts about this? I am trying to utilise the LOGBOOK and I think column view is the way to go. Many thanks, 'Mash > From: "'Mash (Thomas Herbert)" > Date: Mon, 29 Oct 2012 16:39:57 + > To: emacs-orgmode@gnu.org > Subject: Logging properties, values in notes on TODO state change for column > view usage? > > I have been looking at trying to track training performance with > org-mode. > > I currently just set a reoccurring schedule with note logging on > state change, but wondered if there was a way to log values within > this :LOGBOOK: logs? > > It is not a lot of effort to simply type in ":abc: 5", etc in the note > window. The idea being it would be nice to use column view to collect > these various logged values. > > > ** TODO Training > :LOGBOOK: > - State "DONE" [2012-10-29 Mon 16:26] \\ > :abc: 5 > :xyz: 9 > - State "DONE" [2012-10-30 Tue 16:25] \\ > :abc: 6 > :xyz: 8 > :PROPERTIES: > :LAST_REPEAT: [2012-10-30 Tue 16:26] > :COLUMNS: %25ITEM %10abc %10xyz > :END: > <2012-10-29 Mon +1d> >
[O] Capturing column view and LOGBOOK state change entries?
Morning, I have been reading and playing around with column view and capturing column view, but am unable to work-out how to view LOGBOOK entries. I record a note on certain state changes and would like to output these to a org table. Capturing column view / dynamic block looks like the way to go. Could you help? Many thanks, 'Mash
[O] Logging properties, values in notes on TODO state change for column view usage?
I have been looking at trying to track training performance with org-mode. I currently just set a reoccurring schedule with note logging on state change, but wondered if there was a way to log values within this :LOGBOOK: logs? It is not a lot of effort to simply type in ":abc: 5", etc in the note window. The idea being it would be nice to use column view to collect these various logged values. ** TODO Training :LOGBOOK: - State "DONE" [2012-10-29 Mon 16:26] \\ :abc: 5 :xyz: 9 - State "DONE" [2012-10-30 Tue 16:25] \\ :abc: 6 :xyz: 8 :PROPERTIES: :LAST_REPEAT: [2012-10-30 Tue 16:26] :COLUMNS: %25ITEM %10abc %10xyz :END: <2012-10-29 Mon +1d>
Re: [O] GNU Emacs ported to Android
On 2012-08-21 18:42+0100, Ian Barton wrote: > On 21/08/12 16:22, Karl Voit wrote: > > >I just stumbled upon > >https://play.google.com/store/apps/details?id=com.zielm.emacs&hl=en > > > >It is still in an early phase but still I am dreaming of having > >Org-mode on my XOOM tablet ... :-) > > > >HW/SW-keyboard is still an issue here IMHO. The Ctrl/ESC keys of my > >freedom pro HW-Bluetooth-keyboard does not seem to work on Android > >:-( I tried it for using mutt/slrn over ConnectBot/ssh ... > > > >Anybody else sharing experiences with Emacs or HW-keyboards on > >Android? > > > Thanks for the heads up. Off to play. The android Hackers Keyboard > has Ctrl, Alt, etc. I use it to run Emacs via a terminal. However, a > hardware keyboard that worked would be great. > > Ian. > Tempted to get one of these at some point. http://www.freedominput.com/freedom-accessories/freedom-pro-keyboard 'Mash
Re: [O] A tidy file maketh a tidy mind?
On 2012-08-14 07:10-0600, Eric Schulte wrote: > 'Mash writes: > > > Morning, > > > > I just want to know if there is there exists a 'tidy' module/command > > that can be run on a file to tidy it? > > > > I often find myself going back and adding extra line breaks and > > padding, and wondering if there exists something that can do this for > > me? > > > > While this doesn't exist currently, it should be fairly easy to > implement a set of rules which operate over the parsed file > representation generated by org-element. This may be used to convert an > Org-mode buffer into an elisp list, manipulate the list, and then insert > the results as text back into a new buffer. > > The code could look something like the following > > ;; -*- emacs-lisp -*- > (let ((buf (org-element-parse-buffer))) ;; convert current buffer to ELisp > (dolist (rule cleanup-rules) ;; run cleanup transformations on the > buffer > (setq buf (funcall rule buf))) > (delete-region (point-min) (point-max)) ;; replace the buffer contents > (insert (org-element-interpret-data buf))) ;; with the cleaned results > > The only catch would be deciding what to add to the cleanup-rules. > > Also, since Org-mode is plain text, I bet a couple of lines of sed or > perl could get you most of the way to a clean buffer. Thanks, I need to spend some time to look at rules. But my most common clean-up is really just adding some spacing/padding for example. Would be handy to implement in a save-hook along with org-sort. --- cluttered --- * Lorem ipsum dolor sit amet ** TODO consectetuer adipiscing elit Sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. SCHEDULED: <2012-08-09 Thu 20:30> ** TODO quis nostrud exerci tation ullamcorper SCHEDULED: <2012-08-08 Wed 10:30> Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. ** TODO Ut wisi enim ad minim veniam... --- tidier --- * Lorem ipsum dolor sit amet ** TODO quis nostrud exerci tation ullamcorper SCHEDULED: <2012-08-08 Wed 10:30> Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. ** TODO consectetuer adipiscing elit SCHEDULED: <2012-08-09 Thu 20:30> Sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. ** TODO Ut wisi enim ad minim veniam...
Re: [O] Latest version of Org-mode 7.8.3?
I asked a similar question earlier. I did though have to point to the lisp dir of org-mode git clone specifically and add the "org-install" line as mentioned. If you look at my question a few days ago there is no 7.8.3. 'Mash -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Torsten Wagner wrote: Hey Ciaran, as far as I remember you need to call (require 'org-install) to make emacs load your installation instead of the default one. Add it to your emacs config and check out org-version again Also you might be interesting to use the emacs-package manager which is a rather new feature of emacs. Org-mode versions there might be a good compromise between stability and up-to-dateness. Check here for details http://orgmode.org/worg/org-faq.html#installing-via-elpa Torsten On 10 August 2012 07:28, Ciaran Mulloy wrote: > Hi, > I'm relatively new to org-mode and a non-techie but grappling by and large > with > the steep learning curve and enjoying it! > > I had a simple question that I haven't been able to get an easy answer to. > I've just compiled the latest build of emacs 24.1 from the gnu.org website > which > currently has the latest build of org-mode (7.8.11 I believe). > > I've also cloned the bleeding edge git repository onto my PC (as I'm > interested > in getting the benefit of recent patches for exporting to Taskjuggler 3) and > did > a make into my ~/elisp directory. > > My question: how do I validate that I have the latest build version of > org-mode > running as when I do a 'M-x org-version' I just get the answer '7.8.11'. > > I've put a line in my .emacs file to add my ~/elisp directory to my load path > however it's not clear how I get emacs to load the newer files I've compiled > to > my ~/elisp directory over the existing emacs 24.1 build. > > I've gone through the FAQ section on the org-mode website and couldn't seem to > find any hints for my issue. > > Ciaran > >