Re: [O] Gather properties for use by babel source block?
I have not used it myself, but isn't org-collector exactly what you want [1]. "org-collector collects headline properties into tables with optional pre-processing" Once you have a table, you can easily pass it to code blocks for further processing with org-babel. [1] - http://orgmode.org/worg/org-contrib/org-collector.html -- Darlan 2011/8/2 Tim Burt : > > I want to gather data from properties into something that can be used by > a babel source block (e.g. plot the data). Searches in the manual, > worg, and gmane have not yielded the method, but my best guess is that > I've missed it. If so, this is simply a request for a pointer to the > documentation I should read. > > BACKGROUND: I'm trying to complete a workflow where I capture data over > time and periodically operate with it (e.g. put into a database and > plot). The excellent documentation for orgmode has made certain parts > easy going, but the current obstacle is extracting properties that can > subsequently be operated on in babel source blocks. > + [X] Capture data into properties using templates > + [X] View tables of properties in org file > * [X] use columnview dynamic block > * [X] use org-collector > + [ ] Gather properties for use by babel source block > + [-] Operate on the gathered properties > * [-] SQL or SQLite > - [X] follow simple tutorials for proof of principle > - [ ] populate database with gathered properties > * [-] R > - [X] follow simple tutorials > - [ ] calculate statistics and populate database > - [ ] plot from database > - [ ] plot from table in org file > > Good evening, > Tim > >
Re: [O] preview latex fragments
Do you add the tikz package to the org-export-latex-default-packages-alist variable? I had this bug in the past when I added the tikz package to org-export-latex-default-packages-alist and the bug still exists today. Some threads about this (all related to tikz + preview-latex) http://thread.gmane.org/gmane.emacs.orgmode/42410 http://article.gmane.org/gmane.emacs.auctex.general/4333/match=tikz+preview+latex http://article.gmane.org/gmane.emacs.orgmode/56253/match=tikz+preview+latex -- Darlan 2012/8/3 Andreas Leha : > Hi Bastien, > > Bastien writes: > >> Hi Andreas, >> >> Andreas Leha writes: >> >>> I experience a problem with the preview of latex fragments: I can not >>> change the foreground color (in org-format-latex-options). On a dark >>> background, the black fragments are barely visible. >> >> If you are still having this bug, can you try this patch and say if it >> fixes your problem? >> >> http://patchwork.newartisans.com/patch/1387/ >> >> Thanks! > > I still do see this problem and, unfortunately, this patch does not seem > to fix it for me. > > Regards, > Andreas > >
Re: [O] org-capture target files
I also use refile for this. I have a refile.org file where new stuff goes. If I want to refile the note/task now, instead of later, I use "C-u C-u C-c c" and Org goes to the last captured note/task from where I can easily refile it. -- Darlan Em 15/09/2012 18:55, "Charles Philip Chan" escreveu: > Kalev Takkis writes: > > Hi Kalev: > > > Is it possible to take a note in org-capture and to specify one or > > several files to put the message into only after the note is written? > > The workflow I have in mind is first pressing C-c c to take a note; > > selecting the type of note I'd like to take; typing the message, > > pasting a link etc., finishing the note, with C-c C-c and then ending > > up in a list of available *.org files (which could already be on > > display in a window next to capture window) from which I can select > > the file(s) where to send the note to. > > No, however, you can instead of finalizing with "C-c C-c", use refile > "C-c C-w" and set "org-refile-use-outline-path" to "file". > > Cheers, > Charles > > -- > "Absolutely nothing should be concluded from these figures except that > no conclusion can be drawn from them." > (By Joseph L. Brothers, Linux/PowerPC Project) >
[O] Bug in the Org-mode version that comes with Emacs
Hi, I track the emacs repo (http://git.savannah.gnu.org/r/emacs.git) and from time to time I update my local version and starting using the new version. A few days ago I notice that my org files started opening with all trees fully expanded instead of collapsed and, worse, fill-paragraph didn't function correctly. On using fill paragraph a child list item or even headlines would be joined with the parent item thus breaking the org-mode file structure. If I call the org-fill-paragraph directly it works as intended, but previously I could just call fill-paragraph and it would work correctly. I'm still learning how to use git, but in my first time trying "git bisect" I have found that the most recent commit that works correctly is 320eb6b0f4315929d70d7a1e9f05f8d3cc0f4009, while the bug seem to be introduced in 0ce71d38bf295205067fd334e1993906f7fb0ba7. This bug was probably introduced not in org-mode, but by some change in Emacs. Nevertheless, if I use the most up to date version of Emacs I only see the problems I described in org-mode files. If anyone else seeing these problems? Notice that I tested if the bug exists in a given version starting emacs with the "-Q" option. Kind regards, Darlan
Re: [O] How to export ASCII paintings to HTML
You can also use http://ditaa.sourceforge.net/ with org-mode. 2016-04-22 6:41 GMT-03:00 Luis : > Dear Charles, > > thanks, "EXAMPLE" seems to be the "closest" answer here. > except it ignores all the "TAB"s, so I have to change them to "whitespace". > > anyway, it solves my problem . > > On Thu, Apr 21, 2016 at 11:52 PM, Charles C. Berry > wrote: > >> On Thu, 21 Apr 2016, Luis wrote: >> >> Still get the build error: org-html-table-cell: Args out of range: [left >>> left left], 3 >>> >>> On Thu, Apr 21, 2016 at 10:33 AM, Adam Porter >>> wrote: >>> >>> I think you're looking for #+BEGIN_VERBATIM. :) >>> >> I don't think so. >> >> But a #+BEGIN/END EXAMPLE blcok will set your drawing using >> ..., which seems to be what you are after. >> >> HTH, >> >> Chuck >> >> > > > -- > Best Regards, > Zhengchao Xu >
Re: [O] Using org-mode as a personal help desk tool
Another option can be using a webservice such as trello and an emacs package to access data on it. There is an org-trello package that is worth investigating. 2016-06-22 9:26 GMT-03:00 Roland Everaert : > org-attach was the feature I needed. > > Thank you. > > On Mon, Jun 20, 2016 at 4:10 PM, Eric Abrahamsen > wrote: > >> Roland Everaert writes: >> >> > Hi, >> > >> > I am working as a sysadmin, In the organization, we use 2 tools to >> > keep track of requests sent by the customers/users. As you can expect, >> > those tools are not meant to be used to track all the gritty details >> > of a sysadmin's job. >> > >> > So I am turning to org-mode (that I used for years) and its community >> > to find a way to organize my job and being able to track what I have >> > done and store the hundreds of lines of output from a command-line. >> > >> > I was wondering if it was possible to create directories and files >> > with org-capture, based on data given interactively by the user. >> >> You can use org-attach in conjunction with org-capture, to create a >> directory connected to an Org heading. >> >> > My intention would be to work this way: >> > >> > 1. Create a directory for a request or a group of tasks or a project, >> > in short, an aspect of my job. >> > 2. Create a file that will contain the information related to the >> > request in addition to a journal allowing me to keep track of what I >> > have done and store all the data that are useful to me. >> >> I'd say you don't need a separate file for this, simply the subtree of >> the heading you're using to track this job. >> >> > 3. Store anything that is related to that request or aspect of my job >> > into the related directory. >> >> That's org-attach again. >> >> > 4. Being able to search for a particular aspect or getting a list of >> > them and access it. >> >> I actually don't think there's any built-in way of searching files in an >> org-attach directory. >> >> > 5. When the job is done for an aspect, archive the directory. >> >> I think that would happen automatically with org-attach. >> >> > So far, I was using the configuration of norang, but I don't thing it >> > is really adapted to my work-flow anymore. >> > >> > I know that org-mode is capable of a lot of things, but I was >> > wondering if this is not a little bit to broad for org-mode to be an >> > efficient tool. I was even thinking that all of this should be done >> > through a server, with emacs being the interface to communicate with >> > it. >> >> Beats me! >> >> >> >
Re: [O] markup text with leading, trailing spaces
Even if you want to run commands in a different computer you can do that with "C-c C-c" thanks to the ":dir folder" header argument and tramp. As an example, suppose I have the code block below #+begin_src sh hostname #+end_src If I run it I get something like #+RESULTS: : my_computer_name However, if if I can ssh to a server called "myserver" I can change the code block to #+begin_src sh :dir /myserver:~/ hostname #+end_src Now if I run the code block the code is executed in myserver and I get #+RESULTS: : myserver_host_name Combine this with "C-c C-v b" (org-babel-execute-buffer) and you can easily run many different commands in different machines. It is really great. Em Sat Feb 14 2015 at 01:09:02, hymie! escreveu: In our last episode, the evil Dr. Lacto had captured our hero, > jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo), who said: > >hymie! writes: > > > >> I'd like to be able to have a series of commands in my raw org > >> file that I can copy-n-paste into my shell window. But I also > >> like to export my org files to HTML so that I can make ePubs and > >> keep them in my iPad. > > > >> And this > >> > >> #+BEGIN_SRC > >> command1 > >> command2 > >> command3 > >> #+END_SRC > >> > >> is just IMO ugly. > > > >It shouldn't be. Try adding the word "shell" after BEGIN_SRC, so > >that it fontifies the code correctly (the variable > >org-src-fontify-natively should be set to t, but that has been > >default for a while) > > It's not that the font is ugly. It's that > * (in the epub) the source code appears in a box > * (in the html/epub) it's impossible to tell the difference between two > different commands and a single command that was too long and word wrapped > to fit in the box > * (in the html/epub) I can't have non-monospace comments between/attached > to/within the code without drawing four or five separate boxes around my > code > * (in the org file) For whatever reason, monospace code appears as a > light-gray font, which is hard to read against a white background. I'm > sure that can be changed, but I haven't had time to figure it out yet. > > >Also, add shell to the loaded babel > >languages, so that you can execute the code and get the results > >right away in org: > > > >No need for "copy-n-paste", just do C-c C-c where you have your > >commands. > > I think you are making the incorrect assumption that the machine on > which I maintain my Org files is the same machine that I wish to execute > commands on. > > >Try copying this example into an org file, it should fontify it > >nicely, both in the org file and in the html exported. > > If my commnds were all 8 characters long or less, it would be fine. > Some of my commands look like this: > > adduser username -d /data/chroot/home/username -s /usr/bin/rssh -m -k > /dev/null -g rssh > > useradd -U -G wheel -p '$6$wcMRrkcdGeNHLT5c$0s4qezb00ISmGZSsILOyV/ > WJn3RnuZPkSEknwoSZ22HvbgkBTe4TQwCz/mpG.3zby.1Jwnmtsq1B.uCbyg5l./' username > > pssh -x '-q -t -t' -I -i --hosts hosts_linux_rhel6 'sudo -S wget > puppet/puppet/pub/system_patch.pl -O /usr/local/bin/system_patch.pl' < > hostnamefile > > While I admit that the "useradd" command is an extreme example, > this becomes horribly ambiguous: > > adduser username -d /data/chroot/home/username -s > /usr/bin/rssh -m -k /dev/null -g rssh > pssh -x '-q -t -t' -I -i --hosts hosts_linux_rhel6 > 'sudo -S wget puppet/puppet/pub/system_patch.pl -O > /usr/local/bin/system_patch.pl' < hostnamefile > > --hymie!http://lactose.homelinux.net/~hymie > hy...@lactose.homelinux.net > > >
Re: [O] change completion function in a headline in a minor mode
I don't know much lisp and Emacs completion framework details, but if you use company-mode there's a nice article explaining how to create a new company backend http://sixty-north.com/blog/writing-the-simplest-emacs-company-mode-backend There's also a second part improving the backend with extra information. -- Darlan Em qui, 16 de jul de 2015 23:52, Matt Price escreveu: > Hi, > > I am thinking of turning my marking stuff into a minor mode ( > http://matt.hackinghistory.ca/2015/07/15/mailing-subtrees-with-attachments/). > One feature that is missing from my current setup is a function that will > let me use org-contacts-complete-name to complete names when I'm in certain > headlines (level 2). Does anyone know how to do that? I don't understand > the completion framework in emacs, looks so complicated... > > Thanks as always, > m >