Re: [O] Org agenda

2018-01-06 Thread Brett Viren
"M. P." writes: > I create a TODO and save the file but I can’t see the todo when I > select todo view in agenda? What am I doing wrong? Maybe your file is not in the org-agenda-files list. If so, a quick check is to visit the file and do "C-c ["

Re: [O] why prepend "file://" to abs paths in html output?

2017-07-10 Thread Brett Viren
Hi Nicolas, Nicolas Goaziou writes: > So, basically, upon exporting the following document to HTML: > > #+html_link_root: /tmp/ > [[/tmp/unicorn.jpg]] > > the link becomes > > Is this saying "subtract the value of 'html_link_root' from the Org link to make its

Re: [O] Overriding org-html-headline or other export functions?

2017-05-29 Thread Brett Viren
Brett Viren <b...@bnl.gov> writes: > Or, maybe you suggest I do direct "surgery" on the TEXT argument that > gets passed in to the filter and insert the "..." that way? I guess it > could work to find the end of the "" opening tag and then insert &g

Re: [O] Overriding org-html-headline or other export functions?

2017-05-29 Thread Brett Viren
Marcin Borkowski writes: > It's been a while since I did that, but AFAIR deriving a new, slightly > midified backend may be exactly what you want, since you seem to need to > modify just one of the exporter functions. Right, by my concern is I'm copy-pasting a large function

Re: [O] Overriding org-html-headline or other export functions?

2017-05-29 Thread Brett Viren
"Charles C. Berry" writes: > You do have that wrong. This is exactly what export filters and > derived backends are for. In fact, you can use both. For an example, > see > > http://orgmode.org/worg/exporters/filter-markup.html > > You will want to change `latex' to `html' in

[O] Overriding org-html-headline or other export functions?

2017-05-29 Thread Brett Viren
Hi, I am writing a manual in Org which gets exported/published to HTML and styled with org-html-themes. I want the HTML to include a little icon next to each headline which is a direct link to the headline itself. Basically, I want to rip off what GitHub does when it renders Org. First, is

Re: [O] git and orgmode: teaching git a bit of orgmode syntax

2017-01-24 Thread Brett Viren
Karl Voit writes: > -* NEXT test with DAVdroid > +* Lesestoff [1/26]:2read: > :PROPERTIES: > -:CREATED: [2016-05-08 Sun 12:51] > +:CREATED: [2012-04-17 Tue 10:39] > +:ARCHIVE: %s_archive::* Lesestoff > +:CATEGORY: reading >

Re: [O] XML dump of org file?

2016-09-22 Thread Brett Viren
Aaron Ecay writes: > Have a look at the org-element library, Just to add, there are circular dependencies in this data structure due to ":parent" and potentially some of the ":structure" elements. They obviously need to be broken to avoid infinite loops. Here my hackish

Re: [O] Open Peer-Review Reproducible Publication with Org and GRASS

2016-06-03 Thread Brett Viren
Thanks for your example. A few ideas: - When you begin developing your paper, or sometime before submission, make a break from your personal ~/.emacs.d/ environment and begin processing the .org in an explicitly configured Emacs session. Submit the needed, minimal, paper-specific Emacs

Re: [O] Clocking work time vs. office time

2016-04-29 Thread Brett Viren
Marcin Borkowski writes: > On 2016-04-29, at 11:21, Michael Welle wrote: > >> Marcin Borkowski writes: >> I assume that you use a laptop or some other portable device? In that >> case you can grep the IP address (which might change when you

Re: [O] Best way to create blog for company web site with Orgmode

2016-03-09 Thread Brett Viren
Rainer Hansen writes: > Sometimes I should read more carefully what I write. I want to use a > static web site generator! So Wordpress is no option for me. Ah, okay! That makes more sense. One day I will also learn to read what I write. :) > Of course I could use

Re: [O] Best way to create blog for company web site with Orgmode

2016-03-09 Thread Brett Viren
Rainer Hansen writes: > I wonder what is the best way to create a blog for a company website > with Orgmode. I do not want to use a static web site generator. The > design of the web site is relying on Bootstrap and customs CSS. Just curious, why does wanting to use

Re: [O] Code block returning code results formatted as another type of code block?

2016-02-04 Thread Brett Viren
"Charles C. Berry" writes: > Try `:wrap src json': Works perfectly, thanks. I had missed this in the manual, but it was there for me all along! http://orgmode.org/manual/wrap.html -Brett. signature.asc Description: PGP signature

[O] Code block returning code results formatted as another type of code block?

2016-02-03 Thread Brett Viren
Hi, I have some shell command line program that spits out JSON. I want Org execute that command from a source block (of type "sh") and have the result displayed as another source block of type "json". I can almost get all that working except the resulting block is also of type "sh": I have:

Re: [O] Exporting a subtree

2015-11-20 Thread Brett Viren
Peter Davis writes: > For the first time, I'm trying to export just a single subtree of my overall > document, by typing > > C-c C-e C-s H O > > However, I get this error: > > apply: Wrong type argument: listp, #("Details, November 2015" 0 22 (:parent > (#0))) FWIW, I had

Re: [O] Bug: message after org-clock-in [8.2.10 (8.2.10-34-gc41bbc-elpa @ /home/torys/.emacs.d/elpa/org-20150223/)]

2015-03-07 Thread Brett Viren
torys.ander...@gmail.com (Tory S. Anderson) writes: I'd love to. Unfortunately, search engines were unable to give me decisive answer on what an ECM is. Heh. I guessed what it meant, but not what it stood for, and found: http://orgmode.org/worg/org-faq.html Some users call this an

Re: [O] Executing org shell blocks on remote machine over ssh

2014-11-18 Thread Brett Viren
David Bjergaard davi...@duke.edu writes: I use org mode as a lab notebook. I write org-src blocks to keep track of tasks I do at the command line, and then I copy paste them into the terminal. I would really like to hit C-c C-c on the source block and have it executed on the remote machine.

Re: [O] Executing org shell blocks on remote machine over ssh

2014-11-18 Thread Brett Viren
David Bjergaard davi...@duke.edu writes: I know this is working against the grain of the literate programming paradigm where the document and the source code are coupled, and tangling the document produces a program that can be executed. I'm just wondering if its possible. If not that's

Re: [O] org-mode for knowledge management

2014-10-13 Thread Brett Viren
Hi Louis, Louis lbml...@hethcote.com writes: I've been using org-mode for a variety of purposes for a few years. I find that it suffers from the same problem that other such tools do. The problem is me. I can't remember week to week how I may have classified some scrap of information. Did I

Re: [O] Fwd: Cooperating with oneself using the cloud?

2014-09-25 Thread Brett Viren
Monroe, Will wtmonroe...@gmail.com writes: Thanks so much for your reply, Tim. git-annex does seem like a possibility for syncing org-mode files but it appears that there's a lot to consider when setting it up. This thread prompted me last weekend to try git-annex via its assistant. It was

Re: [O] Emacs server and org-protocol

2014-09-17 Thread Brett Viren
Alexis flexibe...@gmail.com writes: If i may ask, which email front-end were you using? (Gnus, perhaps?) i used to use notmuch.el, and currently use mu4e, and basically don't have this issue My GNUS + IMAP subprocess + Maildir used to lead to long wait times when updating for new mail (g

Re: [O] Unit conversions and symbolic mathematics with Babel

2014-09-03 Thread Brett Viren
Hi, die...@duenenhof-wilhelm.de (H. Dieter Wilhelm) writes: But what is missing is to assign variables within a source block #+BEGIN_SRC calc :var L1 = 5 mm L2 := cvun( L1, m) #+END_SRC Unfortunately this is not working. Do you have an idea how to implement

Re: [O] Possible to use src block to generate org headlines for export?

2014-07-24 Thread Brett Viren
Matt Lundin m...@imapmail.org writes: That sounds interesting. I look forward to hearing more! It's not yet usable for anything real but I'm keeping the work here: https://github.com/brettviren/orgonpy -Brett. pgptNgTBz8D6F.pgp Description: PGP signature

Re: [O] Possible to use src block to generate org headlines for export?

2014-07-23 Thread Brett Viren
Matt Lundin m...@imapmail.org writes: Let's hope the real blog (when I get around to publishing it) is more interesting than the example above. ;) Maybe it would be more convenient to add the meta-ness you want as part of a new exporter process? -Brett. pgpX0dUH7NC9P.pgp Description: PGP

Re: [O] Possible to use src block to generate org headlines for export?

2014-07-23 Thread Brett Viren
Matt Lundin m...@imapmail.org writes: Brett Viren b...@bnl.gov writes: Maybe it would be more convenient to add the meta-ness you want as part of a new exporter process? To change the meta wrappers for code block results, we would have to modify org babel (ob-core.el). Just to be clear

Re: [O] org-redisplay-inline-images and export to HTML

2014-07-22 Thread Brett Viren
Nick Dokos ndo...@gmail.com writes: I think you'd be better off with the tip that Rick Frankel posted in the same thread: #+BEGIN_SRC emacs-lisp (add-hook 'org-babel-after-execute-hook (lambda () (org-display-inline-images nil t))) #+END_SRC Thanks Nick (and Rick). I changed this to use

[O] org-redisplay-inline-images and export to HTML

2014-07-21 Thread Brett Viren
Someone recently posted a tip to add :post (org-redisplay-inline-images) to a SRC block which generates an image in order to freshen the Emacs buffer with the regenerated image each time the block is executed. It works *almost* fine but I have two problems which I hope someone can help with.

Re: [O] Indentation messed up after example block

2014-07-07 Thread Brett Viren
Hi, Alexander Baier alexander.ba...@mailbox.org writes: On 2014-07-06 20:03 York Zhao wrote: ... #+BEGIN_EXAMPLE * Example at level one #+END_EXAMPLE Indentation is wrong. The asterisk followed by a space followed by text in your example block is recognized by org as a headline. So org

Re: [O] Reverse lookup from pdf to org?

2014-03-27 Thread Brett Viren
Rainer M Krug rai...@krugs.de writes: Brett Viren b...@bnl.gov writes: file:///path/to/foo.tex.orglink?line=42 But jumping to the .org file would be the aim - right? Yes, right. Maybe a better example is: file://foo.orglink?line=42 which might get interpreted as go to line 42

Re: [O] Reverse lookup from pdf to org?

2014-03-25 Thread Brett Viren
Rainer M Krug rai...@krugs.de writes: Therefore I export the document to pdf, and look for errors there. Now I have to find the corresponding section in the org file - possible, but tedious. Not quite what you have in mind and maybe only a half-measure but when I produce draft latex documents

Re: [O] Reverse lookup from pdf to org?

2014-03-25 Thread Brett Viren
Nick Dokos ndo...@gmail.com writes: One more (half-)possibility is as follows: produce the tex file and compile it not with pdflatex, but with plain latex, producing a DVI file. Passing the -src option to the latex invocation inserts source specials into the DVI file that some DVI viewers (in

Re: [O] Finer-grained control of published files

2014-03-13 Thread Brett Viren
Bastien b...@gnu.org writes: Please test the attached patch against the tip of the master branch and let me know if it works: it checks against a .oxignore file, one regexp on each line. If you find it useful, I'll commit this for the next version. I had some unrelated trouble with the head

[O] Finer-grained control of published files

2014-03-09 Thread Brett Viren
Hi, I'm trying to set up org-publish and am looking for more fine-grained control over what files get published than what (I think) I can get from configuring org-publish-project-alist. I've played with the publishing-function of org-publish-attachment and :exclude/:include and :base-extension

Re: [O] Graph not hierarchical?

2014-02-18 Thread Brett Viren
Lawrence Bottorff borg...@gmail.com writes: being able to organize and extract based on your stuff being stored graph-aware would be nice, IMHO. I'm by no means an expert on this but I know org-element-parse-buffer returns a data structure which is a directed-graph.

Re: [O] terminal emulators

2014-02-11 Thread Brett Viren
Gregor Zattler telegr...@gmx.net writes: Hi Achim, * Achim Gratz strom...@nexgo.de [10. Feb. 2014]: You cannot enter C-: in some terminals because it would require simultaneous processing of shift and control (these terminals ignore shift while control is pressed). this is true for xterm,

Re: [O] most robust linking practices?

2014-01-17 Thread Brett Viren
Hi John, John Kitchin jkitc...@andrew.cmu.edu writes: The files are all on a unix file system served over nfs, so everyone has the same / root. the users (students) have read access to my files. I am working towards creating packages of notes in org-mode (they might even be installed as

Re: [O] Parsing Org-mode in Python

2014-01-09 Thread Brett Viren
Hi Daniel, Daniel Clemente n142...@gmail.com writes: Are there already Python parsers for it? Parsing generic JSON is fairly trivial in Python. import json data = json.dumps(open('file.json').read()) The resulting data is then a bunch of Python lists and/or dicts matching whatever

Re: [O] working on cloud

2014-01-09 Thread Brett Viren
David Belohrad da...@belohrad.ch writes: 1) privacy: you're basically giving your data to somebody else. In case of emacs init there is no danger. In case of your org data, which might contain sensitive information you want to encrypt it, what complicates matter when switching

Re: [O] Parsing Org-mode in Python

2014-01-08 Thread Brett Viren
François Pinard pin...@iro.umontreal.ca writes: Brett Viren b...@bnl.gov writes: http://permalink.gmane.org/gmane.emacs.orgmode/79838 This yields: , | Not Found | | The requested URL /gmane.emacs.orgmode/79838 was not found on this server. ` Huh, maybe a transient failure

Re: [O] Parsing Org-mode in Python

2014-01-07 Thread Brett Viren
Hi Karl, Karl Voit devn...@karl-voit.at writes: Hi! * Daniel Clemente n142...@gmail.com wrote: I dream of having a general Python parser for Org mode files, knowing every bit about the current syntax for Org files, surrounded by enough Python machinery to make it useful. Oh, this would

Re: [O] email - TODO items?

2014-01-06 Thread Brett Viren
Peter Davis p...@pfdstudio.com writes: I use half a dozen email clients, including mutt, which lets me easily pipe a message to a script. The need to support multiple clients may rule out my suggestion but capturing a TODO or a note while visiting a GNUS message and thus preserving the link

Re: [O] Org mode and shunt exporters?

2013-12-13 Thread Brett Viren
Hi, Nicolas Goaziou n.goaz...@gmail.com writes: You can walk the tree, e.g. with `org-element-map', and remove all :parent references if you don't need them. I figured out how to follow this advice. I can even make valid JSON From the filtered parse tree by handing it to Edward O'Conner's

Re: [O] Org mode and shunt exporters?

2013-12-13 Thread Brett Viren
Matt Price mopto...@gmail.com writes: I am pretty ignorant and may have missed a referene o this in the thread, but this (very outdated) code is on the emacswiki: http://www.emacswiki.org/emacs/org-json.el Thanks. My searches didn't find this. It looks like this is parsing the org buffer

Re: [O] Org mode and shunt exporters?

2013-12-13 Thread Brett Viren
Hi Eric, Eric Schulte schulte.e...@gmail.com writes: This should work in a recent Emacs. (require 'json) (defun org-as-json-to-file (optional path) Export the current Org-mode buffer as JSON to the supplied PATH. (interactive Fwrite to file: ) (let ((tree

Re: [O] Org mode and shunt exporters?

2013-12-12 Thread Brett Viren
Hi John, John Kitchin jkitc...@andrew.cmu.edu writes: that sounds like an interesting approach. xml seems like what you really want, since looking at the parsetree there is a lot of information (e.g. attributes, properties, etc...) that would be tricky to generate a fully representative json

Re: [O] Org mode and shunt exporters?

2013-12-09 Thread Brett Viren
Eric Schulte schulte.e...@gmail.com writes: You can use `org-element-parse-buffer' to convert an Emacs Buffer to a structured Emacs Lisp object. At that point you can use existing tools for converting lisp to JSON or YAML. I've used cl-json for Common Lisp, I would imagine something similar

[O] Org mode and shunt exporters?

2013-12-05 Thread Brett Viren
Has anyone written any new-style exporter which will produce a common markup/data language format like JSON or YAML? I'm looking for something that fully preserves the original org document structure and does no semantic interpretation along the way. What I really want is to parse arbitrary org

Re: [O] Capture templates with function type

2013-11-06 Thread Brett Viren
Bastien b...@gnu.org writes: Capture templates using `function' should now return back to the correct window location. Thanks for raising this, Thanks so much for putting time in it! Regards, -Brett. pgpgYsSYgPjri.pgp Description: PGP signature

Re: [O] Capture templates with function type

2013-11-05 Thread Brett Viren
Hi Bastien, Bastien b...@gnu.org writes: You may try this (not tested myself): (defun bv-daily-log-file () (save-window-excursion (find-file (concat ~/org/web/notes/ (format-time-string %Y-%m-%d) .org)) (goto-char (point-max)) (newline 2))) The trick

[O] Capture templates with function type

2013-10-26 Thread Brett Viren
Hi, I'm trying to set up a capture template of type function in order to produce a daily log file named after today's date. It mostly works. However, after doing the C-cC-c to close the capture buffer the window is left holding the daily log file which the capture just updated instead of going

[O] Export org to dot for an organization chart?

2013-10-18 Thread Brett Viren
Hi, I'd like to produce an organization chart using org. What I want to do is: - enter an organization role as a section heading - have the heading hierarchy map to the organization hierarchy - enter optional section properties to specify: - the name of the individual who might fill the

Re: [O] Amazing demonstration by John Kitchin

2013-09-27 Thread Brett Viren
John, I finally got a chance to watch your really nice SciPy talk last night. I've been trying to incorporate Reproducible Research methods with org into my own work. I strive to do more and what you are doing looks to provide a wealth of examples. I hope more researchers follow this

Re: [O] Amazing demonstration by John Kitchin

2013-09-27 Thread Brett Viren
John Kitchin jkitc...@andrew.cmu.edu writes: Here is part of how I use org-mode to publish to my blog: http://jkitchin.github.io/blog/2013/09/27/Publishing-to-blogofile-using-org-mode/ Thank you very much for typing this up! I now have some weekend entertainment to try and replicate it for

Re: [O] Org mode issue tracker

2013-09-26 Thread Brett Viren
Hi, Suvayu Ali fatkasuvayu+li...@gmail.com writes: * TODO Subject timestamp :emacs_ver:org_ver:org_module: ... Emacs version ends up as a tag: * TODO . :24.3: Or, if I add an Org version: * TODO .

Re: [O] asynchronous code evaluation

2013-09-04 Thread Brett Viren
Hi Johannes, Johannes Rainer johannes.rai...@i-med.ac.at writes: well, I'm using emacs/org for my data analyses in R. I thus combine documentation (i.e. the conclusions drawn from e.g. plots created in R) and the R code to perform the analysis in my org file. Since I'm analysing high

Re: [O] org-export-current-backend variable and org-mode 8

2013-07-31 Thread Brett Viren
Hi Christophe, Christophe Rhodes cs...@cantab.net writes: In org-mode 7, I was able to use the (documented) variable org-export-current-backend to test what the current backend is, allowing me to dynamically produce and include images of different formats depending on whether I was exporting

[O] Interpreter/shell prompts when exporting code blocks?

2013-07-26 Thread Brett Viren
Hi organistas. I'd like to have my executable code blocks get exported to HTML/LaTeX with some prompt prefixed to each line of code but still let the blocks themselves remain executable in their given language. Is there already a nice way to do this? For example, if there was something like a

[O] Switch for exported file types when evaluating code blocks

2013-07-17 Thread Brett Viren
Hi, I'm hitting on an old theme in a new way here. I want graphics files which are exported by evaluated code blocks to be generated in a format best suited to their intended use. For HTML I want either PNG or SVG. For LaTeX/PDF I almost always want PDF. For inline viewing in emacs I want

Re: [O] advice needed: how do you guys sync org files between devices?

2013-07-02 Thread Brett Viren
Alan Schmitt alan.schm...@polytechnique.org writes: Well, what would be there? If there is (and there may be) an external tool that knows how to merge org files (it can be a 3-way merge, if it makes things simpler), I could try to devise the magical incantation to use it. It is not

Re: [O] RFQ - new contribution - org-screenshot.el

2013-05-17 Thread Brett Viren
Hi Max, Max Mikhanosha m...@openchat.com writes: I have committed org-screenshot to master This sounds like a great idea. And just to prove that no good deed goes unpunished, here is a bug report: In an org-mode file I run M-x org-screenshot-take, scrot runs and I can either click on a

[O] Nested list with percent-complete in multiple states?

2013-04-11 Thread Brett Viren
Hi, I'm helping to edit a large document with section contributions from many people. Any given section may come in some bizarre format (ie, .doc) which I convert to LaTeX, leave open a time for subsequent edits and finally freeze the section. I'd like to track this state using org-mode. So

Re: [O] Nested list with percent-complete in multiple states?

2013-04-11 Thread Brett Viren
Bastien b...@gnu.org writes: Check boxes have only three state: empty, checked, undecided. If you need more states, I suggest using a property. Then the column view can be used to display a summary of the sum of all properties in the subtree. Thanks for the pointer, Bastien. This looks

Re: [O] The statement on what is orgmode.

2012-12-07 Thread Brett Viren
Rasmus ras...@gmx.us writes: Orgmode: your life, in plain text. I like the idea of a catch phrase (your life, in plain text) and perhaps a more detailed paragraph belows, potentially with links. This phrase is also what first comes to my mind when I try to explain org-mode to others.

Re: [O] How to integrate org-mode in a MS Windows-/Office-based environment?

2012-07-13 Thread Brett Viren
Hi Martin, M elwood...@web.de writes: One example of helpful integration: if I send or get an e-mail which I want to follow-up on later, I want to track that in org-mode and I want to have a way to quickly find the original message in Outlook again (to reply or forward it or whatever), which

[O] Multiple images per figure with LaTeX export

2012-06-18 Thread Brett Viren
I'm using GNU emacs 23.2+1-7 and org-mode 6.27a-1 on Debian. I want to put two images in one figure for LaTeX/PDF export but can't find a way. Googling has not born fruit. I have tried a few naive things like: #+caption: Caption. #+label: fig:figure [[./img1.pdf]][[./img2.pdf]] or:

Re: [O] Multiple images per figure with LaTeX export

2012-06-18 Thread Brett Viren
Hi Suvayu, suvayu ali fatkasuvayu+li...@gmail.com writes: Glad to see another HEP researcher using org-mode. :) Greetings! Sadly my solution is a big bad hack: #+begin_latex \begin{figure} \centering \begin{tabular}{c} \includegraphics[options]{plots/file1.eps} \\

Re: [O] python/babel inline images

2012-06-05 Thread Brett Viren
henry atting nsmp...@online.de writes: I do not succeed in generating an inline image as a result of a python code block. The code itself works, C-c C-c generates the according picture, but only in my home directory. The code block: Could you not just follow the block with a hand-written link

[O] Embed images in formats best suited for HTML and LaTeX export and inline viewing

2012-05-30 Thread Brett Viren
Hi, How can I tell org-mode to use different file formats for an image for different purposes? What I really want is a scalable format to embed line art type images (plots) into org-mode documents so that they can display inline and in both HTML and LaTeX exports. SVG seems good for the first