Re: [O] Should comments break paragraphs?
Eric S Fraga writes: Rasmus ras...@gmx.us writes: [...] show up on the side of the documents. Again, I don't agree that they are comments in the sense that '^#.*' is a comment. Again, I think the correct approach for adding such notes is inlinetasks. +1 Comments are internal to the org file and should not be exported. +1 There is also a #+begin_annotation block special to ODT export, and there was some talk about devising a backend-agnostic solution along those lines for comments that one /does/ want exported. Yours, Christian
Re: [O] Should comments break paragraphs?
Christian Moe m...@christianmoe.com writes: Eric S Fraga writes: Rasmus ras...@gmx.us writes: [...] show up on the side of the documents. Again, I don't agree that they are comments in the sense that '^#.*' is a comment. Again, I think the correct approach for adding such notes is inlinetasks. +1 Comments are internal to the org file and should not be exported. +1 There is also a #+begin_annotation block special to ODT export, and there was some talk about devising a backend-agnostic solution along those lines for comments that one /does/ want exported. Latex could use a marginpar, and HTML a specially-styled div (an aside tag in HTML5) -- seems plausible!
[O] org-mode automatically sets bookmarks org-capture-last-stored etc.
Hi all, I'd like to point out that it's inconvenient for me that org stores the bookmarks org-capture-last-stored, org-refile-last-stored and org-capture-last-stored-marker when I do capture/refile. I'd like an option to turn them off selectively. Also it would be nice to customize the default names of these bookmarks. For the moment, I've just disabled in the source the org-capture-last-stored-marker and renamed the others to oc: org-capture-last-stored-marker and or: org-refile-last-stored. But messing with the source is not a permanent solution. regards, Oleh
Re: [O] How to turn off visibility-state messages from 'org-cycle?
Thorsten Jolitz tjol...@gmail.com writes: Hi List, when calling Org-mode functionality form an external program, some functions seem to make use of 'org-cycle', what results in a lot of OVERVIEW messages arriving at stdout/stderr ,- | OVERVIEW [...] Is there a way to turn these message off? I found things like Unfortunately, no. The code that outputs these messages does have a hack to turn off the output when the org file is an attachment in a gnus message but that's about it. I also would like to have these turned off when using an emacs batch command which I often do to synchronise my diary with various online calendars... Should be easy to add a variable and then a condition on each (message...) line in org-cycle-internal-global as all of the relevant message lines are already within a conditional. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.0.5-337-g9f3bed
Re: [O] Should comments break paragraphs?
Christian Moe m...@christianmoe.com writes: show up on the side of the documents. Again, I don't agree that they are comments in the sense that '^#.*' is a comment. Again, I think the correct approach for adding such notes is inlinetasks. +1 Comments are internal to the org file and should not be exported. +1 There is also a #+begin_annotation block special to ODT export, and there was some talk about devising a backend-agnostic solution along those lines for comments that one /does/ want exported. I wasn't aware of begin_annotation. That's cool. Yeah, a backed agnostic note syntax would be cool. I'd go with inlinetasks, but I'm also happy with begin_annotation. A good thing about inlinetasks is that they can be turned off (from export) easily. pdfcomment for LaTeX is cool, but poorly supported by Evince, but works great in the Mozilla Aurora. And there's already Nicolas' boxes. I don't know how it could be added meaningfully to html, but it should be pretty doable. –Rasmus -- Er du tosset for noge' lårt!
Re: [O] patch for latex-tikz
Andreas Leha andreas.l...@med.uni-goettingen.de writes: Hi all, attached is a small patch that makes it possible to 'evaluate' latex source blocks to tikz files. Thanks for this. Just what I needed! -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.0.5-337-g9f3bed
Re: [O] Should comments break paragraphs?
Eric Abrahamsen e...@ericabrahamsen.net writes: There is also a #+begin_annotation block special to ODT export, and there was some talk about devising a backend-agnostic solution along those lines for comments that one /does/ want exported. Latex could use a marginpar, and HTML a specially-styled div (an aside tag in HTML5) -- seems plausible! There's already support for inlinetasks in ox-latex and they create minipages. It can easily be altered and different styles could be provided. Users could then select how to translate inlinetasks. E.g. marginpars would presumably not work for beamer (although I have no idea). –Rasmus -- This is the kind of tedious nonsense up with which I will not put
Re: [O] How to turn off visibility-state messages from 'org-cycle?
Eric S Fraga e.fr...@ucl.ac.uk writes: Thorsten Jolitz tjol...@gmail.com writes: Hi List, when calling Org-mode functionality form an external program, some functions seem to make use of 'org-cycle', what results in a lot of OVERVIEW messages arriving at stdout/stderr ,- | OVERVIEW [...] Is there a way to turn these message off? I found things like Unfortunately, no. The code that outputs these messages does have a hack to turn off the output when the org file is an attachment in a gnus message but that's about it. I also would like to have these turned off when using an emacs batch command which I often do to synchronise my diary with various online calendars... Should be easy to add a variable and then a condition on each (message...) line in org-cycle-internal-global as all of the relevant message lines are already within a conditional. yes, adding this defcustom to org.el #+begin_src emacs-lisp (defcustom org-cycle-silently nil Non-nil means `org-cycle-internal-global' cycles silently. No messages about changing visibility state of the Org-mode buffer will be outputted anymore in that case. This is especially useful to avoid having these messages arrive at stdout or stderr when calling Org-mode functionality from an external program. :group 'org-cycle :type 'boolean) #+end_src and then changing the four #+begin_src emacs-lisp (unless ga (message CONTENTS...)) #+end_src lines in `org-cycle-internal-global' to something like #+begin_src emacs-lisp (unless (or ga org-cycle-silently) (message CONTENTS...)) #+end_src would do the job. -- cheers, Thorsten
Re: [O] Should comments break paragraphs?
Rasmus ras...@gmx.us writes: Eric Abrahamsen e...@ericabrahamsen.net writes: There is also a #+begin_annotation block special to ODT export, and there was some talk about devising a backend-agnostic solution along those lines for comments that one /does/ want exported. Latex could use a marginpar, and HTML a specially-styled div (an aside tag in HTML5) -- seems plausible! There's already support for inlinetasks in ox-latex and they create minipages. It can easily be altered and different styles could be provided. Users could then select how to translate inlinetasks. E.g. marginpars would presumably not work for beamer (although I have no idea). I also thought, glancing at this whole discussion, that inlinetasks were kind of what everyone was talking about: something that is stuck in the middle of everything else, that doesn't semantically affect its surroundings, that can be exported or not. I do think minipages and margipars are quite semantically distinct, though. Anyway, inlinetasks have always struck me as a gross hack (how many stars, again?), and I wasn't actually prepared to code anything myself, so I thought I'd restrain myself...
Re: [O] How to turn off visibility-state messages from 'org-cycle?
Thorsten Jolitz tjol...@gmail.com writes: Eric S Fraga e.fr...@ucl.ac.uk writes: Thorsten Jolitz tjol...@gmail.com writes: Hi List, when calling Org-mode functionality form an external program, some functions seem to make use of 'org-cycle', what results in a lot of OVERVIEW messages arriving at stdout/stderr ,- | OVERVIEW [...] Is there a way to turn these message off? I found things like Unfortunately, no. The code that outputs these messages does have a hack to turn off the output when the org file is an attachment in a gnus message but that's about it. I also would like to have these turned off when using an emacs batch command which I often do to synchronise my diary with various online calendars... Should be easy to add a variable and then a condition on each (message...) line in org-cycle-internal-global as all of the relevant message lines are already within a conditional. yes, adding this defcustom to org.el #+begin_src emacs-lisp (defcustom org-cycle-silently nil Non-nil means `org-cycle-internal-global' cycles silently. No messages about changing visibility state of the Org-mode buffer will be outputted anymore in that case. This is especially useful to avoid having these messages arrive at stdout or stderr when calling Org-mode functionality from an external program. :group 'org-cycle :type 'boolean) #+end_src or, even better, since more dynamic (untested): #+begin_src emacs-lisp (defvar org-cycle-silently nil Suppress visibility-state-change messages when non-nil.) (defun org-toggle-silent-cycling (optional arg) Toggle silent cycling between visibility states. When silent cycling is off, visibility state-change messages are written to stdout (i.e. the *Messages* buffer), otherwise these messages are suppressed. With prefix argument ARG, cycle silently if ARG is positive, otherwise write state-change messages. (interactive P) (setq org-cycle-silently (if (null arg) (not truncate-lines) ( (prefix-numeric-value arg) 0))) (message Silent visibility cycling %s (if org-cycle-silently enabled disabled))) #+end_src and then changing the four #+begin_src emacs-lisp (unless ga (message CONTENTS...)) #+end_src lines in `org-cycle-internal-global' to something like #+begin_src emacs-lisp (unless (or ga org-cycle-silently) (message CONTENTS...)) #+end_src would do the job. -- cheers, Thorsten
Re: [O] How to turn off visibility-state messages from 'org-cycle?
Thorsten Jolitz tjol...@gmail.com writes: oops, there was a left-over from inspiring `toggle-truncate-lines' in my example function, here is the fixed version: #+begin_src emacs-lisp (defvar org-cycle-silently nil Suppress visibility-state-change messages when non-nil.) (defun org-toggle-silent-cycling (optional arg) Toggle silent cycling between visibility states. When silent cycling is off, visibility state-change messages are written to stdout (i.e. the *Messages* buffer), otherwise these messages are suppressed. With prefix argument ARG, cycle silently if ARG is positive, otherwise write state-change messages. (interactive P) (setq org-cycle-silently (if (null arg) (not org-cycle-silently) ( (prefix-numeric-value arg) 0))) (message Silent visibility cycling %s (if org-cycle-silently enabled disabled))) #+end_src -- cheers, Thorsten
Re: [O] Should comments break paragraphs?
Hello, Eric Schulte schulte.e...@gmail.com writes: I should add the conditional *if* we're going to improve comment support globally (e.g., in the parser as well). Else I am emphatically *not* up for a host of new parsing edge cases. :) *If* we're going to improve comments support (i.e. make comments real comments like in programming languages), I can take care of the parser and even, with some additional time, org-list. But there's also the agenda to handle: * Headline # A annoying comment since agenda expects planning to be just below # the headline. SCHEDULED: ... And tables too: | a | b | # I really want to comment the row below, without breaking formulas. | c | d | I'm not up for any of these two. BTW, *if* comments are to become real comments, they should be allowed even in source blocks. They would then become context free syntax, which is much easier to handle. It would then be possible to rely a bit more on newcomment.el. Regards, -- Nicolas Goaziou
Re: [O] org-mode automatically sets bookmarks org-capture-last-stored etc.
Since there's no reaction, I'll just show my view of how it could be done. I attach the patch. regards, Oleh On Thu, Jul 18, 2013 at 10:34 AM, Oleh ohwoeo...@gmail.com wrote: Hi all, I'd like to point out that it's inconvenient for me that org stores the bookmarks org-capture-last-stored, org-refile-last-stored and org-capture-last-stored-marker when I do capture/refile. I'd like an option to turn them off selectively. Also it would be nice to customize the default names of these bookmarks. For the moment, I've just disabled in the source the org-capture-last-stored-marker and renamed the others to oc: org-capture-last-stored-marker and or: org-refile-last-stored. But messing with the source is not a permanent solution. regards, Oleh
Re: [O] org-mode automatically sets bookmarks org-capture-last-stored etc.
On Thu, Jul 18, 2013 at 2:41 PM, Oleh ohwoeo...@gmail.com wrote: Since there's no reaction, I'll just show my view of how it could be done. I attach the patch. regards, Oleh On Thu, Jul 18, 2013 at 10:34 AM, Oleh ohwoeo...@gmail.com wrote: Hi all, I'd like to point out that it's inconvenient for me that org stores the bookmarks org-capture-last-stored, org-refile-last-stored and org-capture-last-stored-marker when I do capture/refile. I'd like an option to turn them off selectively. Also it would be nice to customize the default names of these bookmarks. For the moment, I've just disabled in the source the org-capture-last-stored-marker and renamed the others to oc: org-capture-last-stored-marker and or: org-refile-last-stored. But messing with the source is not a permanent solution. regards, Oleh 0001-org.el-added-org-bookmark-names-plist.patch Description: Binary data
[O] Simplifying the weekly agenda a tiny bit, howto?
Hi, Org friends. Here is an (edited) copy of my weekly agenda: Week-agenda (W29): Lundi 15 Juillet 2013 W29 Mardi 16 Juillet 2013 Mercredi 17 Juillet 2013 Jeudi 18 Juillet 2013 notes: In 1 d.: TODO *Some meeting Automobile: In 4 d.: TODO Another thing [...] Vendredi 19 Juillet 2013 notes: 20:30.. Deadline: TODO *Some meeting Samedi 20 Juillet 2013 Dimanche 21 Juillet 2013 [...] The Vendredi (Friday) lines is clearly shown in red (yet in the quote above, it is likely shown in black and white!). So the Jeudi (Thursday) reference to the same activity is superfluous to me. I wonder if there is a (simple) way to inhibit, in a weekly agenda, any announced activity which appears later down in the same agenda. François
Re: [O] Hiding cells in org table
John Rakestraw li...@johnrakestraw.com writes: Hi, David -- On 17.07.2013 14:02, da...@adboyd.com wrote: I've scanned through the manuals, and see no way to do this, but. Is there anyway to block out the contents of a result field in a table, until I export it into an html file? I'm keeping track of my hours worked, with the dollar amounts paid calculated, and I don't want anyone wandering by my desk to be able to see how much I am being paid. Then I want the amount to show in the .html file that I export to have signed off on. I can't tell you how to hide the contents of a field, but this might serve your purpose, assuming that you're paid a regular hourly wage. How about setting a constant (see http://orgmode.org/org.html#References and search for Named References)? You can do this in a property in the table. Have a column formula that multiplies the number of hours worked times the constant. For day-to-day purposes, you'd define the constant as 0 or 1. When it's time to export and print your html file, change the constant to your actual hourly rate and recalculate. Hmm, that's not a bad idea for a work around. Thanks.
Re: [O] Simplifying the weekly agenda a tiny bit, howto?
François Pinard pin...@iro.umontreal.ca writes: Hi, Org friends. Here is an (edited) copy of my weekly agenda: Week-agenda (W29): Lundi 15 Juillet 2013 W29 Mardi 16 Juillet 2013 Mercredi 17 Juillet 2013 Jeudi 18 Juillet 2013 notes: In 1 d.: TODO *Some meeting Automobile: In 4 d.: TODO Another thing [...] Vendredi 19 Juillet 2013 notes: 20:30.. Deadline: TODO *Some meeting Samedi 20 Juillet 2013 Dimanche 21 Juillet 2013 [...] The Vendredi (Friday) lines is clearly shown in red (yet in the quote above, it is likely shown in black and white!). So the Jeudi (Thursday) reference to the same activity is superfluous to me. I wonder if there is a (simple) way to inhibit, in a weekly agenda, any announced activity which appears later down in the same agenda. François First of all, if your event is a meeting, it should only be timestamped, not deadlined or scheduled. Then it will just show up where it's supposed to, and not before (or after). It probably shouldn't even be a TODO. Otherwise, scheduled TODOs show up on their schedule, and deadlined TODOs show up on their deadline, and also today's agenda, if you're coming up on the deadline. There are a host of variables that change how a TODO is displayed depending on whether it has a schedule/deadline/timestamp, or one and not the others, or `how close you are to it, etc. Check out variables starting org-agenda-skip-*, org-agenda-ignore-*, org-agenda-include-*, org-deadline-*, org-scheduled-*, there are plenty of ways of screening out TODOs that you don't want to see until you're supposed to see them. Hope that helps, Eric
Re: [O] Simplifying the weekly agenda a tiny bit, howto?
Eric Abrahamsen e...@ericabrahamsen.net writes: First of all, if your event is a meeting, it should only be timestamped, not deadlined or scheduled. Then it will just show up where it's supposed to, and not before (or after). How do I get it quickly rescheduled then, when it is a regular activity? I find fairly convenient using t d to push an activity at its next slot in the future. Could I do something equivalent with mere time stamps? It probably shouldn't even be a TODO. Otherwise, scheduled TODOs show up on their schedule, and deadlined TODOs show up on their deadline, and also today's agenda, if you're coming up on the deadline. There are many Org commands able to find, display and otherwise handle TODOs. If I stop using such keywords, wouldn't I give up the tools? Maybe there are ways to reformulate them all using other commands, but at fist, it would require some searching, and acquiring new habits, presuming that there are alternative ways for all such tools. There are a host of variables [...] Check out variables starting org-agenda-skip-*, org-agenda-ignore-*, org-agenda-include-*, org-deadline-*, org-scheduled-* [...] Hope that helps, Undoubtedly :-). Thanks! François
Re: [O] Use babel to import table data from OpenDocument spreadsheets?
At Thu, 18 Jul 2013 14:49:16 +0530, Jambunathan K wrote: 1. Give me a sample worksheet. Attached. 2. Give me the specific unoconv command that you used for converting the worksheet. unoconv -f csv -i 9,34,system,1,1/5/2/1/3/1/4/1 html-table.ods Maybe the filename needs a full path, not sure. I can supply that later. If you do (1) and (2), I will post a recipe. Really appreciate that! hjh #+OPTIONS: html-postamble:auto html-preamble:t tex:t #+CREATOR: a href=http://www.gnu.org/software/emacs/;Emacs/a 23.3.1 (a href=http://orgmode.org;Org/a mode 8.0.2) #+HTML_CONTAINER: div #+HTML_DOCTYPE: xhtml-strict #+EXCLUDE_TAGS: noexport * Table test After running the script, I expect the existing table (with 1, 2, 3 in the second column) to be replaced by the new table data (10, 20, 30). #+name: gettable1 #+begin_src emacs-lisp :exports none (... don't know what to write in here...) #+end_src #+name: table1 #+ATTR_HTML: :border 2 :rules all :frame border | Simple | Table | |+---| | 1 | 1 | | 2 | 2 | | 3 | 3 | html-table.ods Description: application/vnd.oasis.opendocument.spreadsheet
[O] elpa's copy of org-version.el
Hello, If I install org from elpa the file org-version.el is missing and I get the following: M-x org-version Org-mode version N/A (N/A !!check installation!! @ /Home/ps/.emacs.d/elpa/org-20130715.1743/) and M-x locate-library org-version No library org-version in search path However, the following give the expected results: M-x locate-library org Library is file ~/.emacs.d/elpa/org-20130715.1743/org.elc M-x locate-library org-install Library is file ~/.emacs.d/elpa/org-20130715.1743/org-install.el If I install org from git://orgmode.org/org-mode.git it includes the file org-version.el and all of the above commands work okay, eg, M-x locate-library org-version Library is file ~/local/emacs/site-lisp/org-git/org-version.el Is something wrong here? Thanks, Paul
Re: [O] elpa's copy of org-version.el
Paul Stansell writes: If I install org from elpa the file org-version.el is missing and I get the following: Huh? All Org ELPA packages (both from orgmode.org and GNU) come with their own org-version.el, so how do you try to install? Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves
Re: [O] elpa's copy of org-version.el
Same problem here. I've tried the version org-20130718.1557 from elpa too. May be an packaging problem ? Pierre Le jeudi 18 juillet 2013 17:44:06 Paul Stansell a écrit : Hello, If I install org from elpa the file org-version.el is missing and I get the following: M-x org-version Org-mode version N/A (N/A !!check installation!! @ /Home/ps/.emacs.d/elpa/org-20130715.1743/) and M-x locate-library org-version No library org-version in search path However, the following give the expected results: M-x locate-library org Library is file ~/.emacs.d/elpa/org-20130715.1743/org.elc M-x locate-library org-install Library is file ~/.emacs.d/elpa/org-20130715.1743/org-install.el If I install org from git://orgmode.org/org-mode.git it includes the file org-version.el and all of the above commands work okay, eg, M-x locate-library org-version Library is file ~/local/emacs/site-lisp/org-git/org-version.el Is something wrong here? Thanks, Paul
[O] org mode suggestion: offer option to not save the buffer after capture
after org mode capture and hitting C-c C-c capture will try to save the buffer in my case, that's not always desired, since it's a network share file and it might not be available away from homebut I do have the buffer open, and that buffer does seem updated other than not saved, it seems fine, I can simply kill the Capture-xxx buffer and the captured text shows up in the target buffer Here is my setup:(setq org-capture-templates '((p ptodo entry (file (expand-file-name dmz/ptodo.org pjx-personal-folder)) * TODO [#1] %?\n%U\n %i\n %a :prepend t)))
Re: [O] Switch for exported file types when evaluating code blocks
Hi Nick, I'm not sure how to use this ctan package in concert with orgmode's export to tex-pdf. Perhaps there is a way to use orgmode's export filtering capability to swap in a up-to-date png when exporting to tex Hmmm Anyone? Thx! -Original Message- From: emacs-orgmode-bounces+mec=stowers@gnu.org [mailto:emacs-orgmode-bounces+mec=stowers@gnu.org] On Behalf Of Nick Dokos Sent: Wednesday, July 17, 2013 11:02 PM To: emacs-orgmode@gnu.org Subject: Re: [O] Switch for exported file types when evaluating code blocks Suvayu Ali fatkasuvayu+li...@gmail.com writes: Hello again Malcolm, On Thu, Jul 18, 2013 at 12:45:36AM +, Cook, Malcolm wrote: I tend to work with org-export-babel-evaluate set to nil. Thus, my code blocks are not evaled in the context of an export. Thus at eval time there is no way of knowing what the eventual backend is going to be. I think I need an approach that auto converts svg to png on-demand/on-the-fly during export. In that case just use another source block with shell source. In that block you can call inkscape to do the conversion. For an example, see here: http://ctan.mirrorcatalogs.com/info/svg-inkscape/InkscapePDFLaTeX.pdf#subsubsection.2.3.1 OT for the OP (say that three times fast!) but maybe of some use to somebody: For SVG, there is a latex package that is an evolutionary offshoot of the above link. It does the inkscape dance so you don't have to: http://www.tex.ac.uk/ctan/graphics/svg/ -- Nick
[O] Http pull/clone at orgmode.org is down?
When I try to issue git pull (since yesterday, replicated today), I'm getting this: $ git pull error: Unable to find 989923a140695aa87959bdc727666aeec48ec074 under http://orgmode.org/org-mode.git Cannot obtain needed tree 989923a140695aa87959bdc727666aeec48ec074 while processing commit 0b770b125ffaed8e21dfea523437f12c35dec334. error: Fetch failed. In googling around, it sounds like it might be an issue with either low disk space (checked, and I'm only at 60% of HD capacity) or a repo location change. I pull using http since I'm behind a firewall. I changed ~/.elisp/org.git/.git/config to point to the repo.or.cz site, and pull worked fine. Just an FYI in case this was unknown. Thanks, John
[O] english automatically option added to latex's babel package
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I've customized org-latex-packages-alist and added the package babel, with option italian, however in my latex exports I get: \usepackage[italian, english]{babel} I don't want the english option to be there (latex gives it priority over the italian one it seems). What could be wrong? I have english as default language on my system (archlinux), so maybe I should change some variable in emacs? cheers, reanto -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.20 (GNU/Linux) iQEcBAEBAgAGBQJR6FsMAAoJEBz6xFdttjrfwBUIAIKKOH56Ypt6mFPmMJVVppDu aKaurtpqPnXwQbHszDoFVc38lrHctpnGhMeKOK7h3kCGvcE3eXuaNq+KuScxkaN9 e9Scl6pVTR+xceZzmWSxe70f3pTgzYs8Ap9Ss1QDdRY3zQdR+7XGqdKESwxQCpw9 jKwUg8rS8HoBewzIx9CLqpnD2rDpkQdE3f72+QK1HKp/zsLnsHpG8Yl4H54YLKFw OZMN/k2JED+gL+gEMc9a/9aZVbUwld7QTcgCPRi0vUBzbXIdi8hbiEKRiy3duD97 JPEEXsLSIdrhhdySpoY07Q9rV5L97gNppvhG6mHNms1lrUmsw/DnfGJKf+lLtjg= =ANDX -END PGP SIGNATURE-
Re: [O] Use babel to import table data from OpenDocument spreadsheets?
At Fri, 19 Jul 2013 00:32:44 +0530, Jambunathan K wrote: I don't want to venture in to Babel. I don't want to experiment with unoconv either. I have a non-official libreoffice installed. Pulling in official unoconv will interfere with my working installation. Fair enough. For your purposes, just soffice will do. Except that I tried using soffice --headless, but I could never get it to write any output file. (defun org-table-import-ods (optional file-name) (interactive fFile: ) (let ((csv-file (org-odt-convert file-name csv)) (pos (point))) (save-excursion (insert (with-temp-buffer (insert-file-contents csv-file) (org-table-convert-region (point-min) (point-max) '(4)) (buffer-string)) Wow, thanks, this is great! I never would have guessed the stuff about with-temp-buffer. This snippet didn't handle the part about deleting the old table contents, but I was actually able to figure that out on my own (below). And... using it in a src block as below... works! I don't see the change in table contents in the original org buffer, but the new contents definitely show up in the HTML export. That's all I need, and I'd agree that this behavior -- protecting the org file from side effects -- is safer. Next, parameterize the file name and table name. So this is really pretty f'''... sweet. I'm thrilled! Thanks to Jambunathan for the crucial info that got me over the part I just couldn't figure out on my own. hjh #+name: gettable1 #+begin_src emacs-lisp :exports results (defun org-table-import-ods (optional file-name) (interactive fFile: ) (let ((csv-path (concat (file-name-sans-extension file-name) .csv)) (pos (point))) (shell-command (concat unoconv -f csv -i 9,34,system,1,1/5/2/1/3/1/4/1 file-name)) (save-excursion (let ((table-begin (funcall (lambda () (search-forward #+name: table1) (search-forward-regexp ^|) (beginning-of-line) (point (table-end (funcall (lambda () (search-forward # end table) (beginning-of-line) (point) (delete-region table-begin table-end) (goto-char table-begin) (insert (with-temp-buffer (insert-file-contents csv-path) (org-table-convert-region (point-min) (point-max) '(16)) (buffer-string))) (goto-char table-begin) (org-table-insert-hline) (org-table-import-ods html-table.ods) #+end_src
Re: [O] ASCII art in org src mode triggers font lock glitch
M-x version GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601) of 2013-03-18 on MARVIN M-x org-version Org-mode version 8.0.5 (8.0.5-6-g426917-elpa @ c:/Users/Alice/AppData/Roaming/.emacs.d/elpa/org-20130708/)
[O] [babel] Problems assigning tables as variables using #+CALL and using properties in code blocks and sbe calls
Hi, I have a tables like this: #+TBLNAME: tablename | a | b |c | d | | 1 | 2 |3 |4 | | z | x | y |w| #+TBLNAME: othertablename | a | b |c | d | | 1 | 2 |3 |4 | | z | x | y |w| I have the following code block #+name: test #+begin_src python :var table=tablename :exports results import numpy as np tab = np.array(table) return np.array([tab[:,1], tab[:,-1]]).T #+end_src If I call that function the result is correct However using #+CALL: aushang[:var table=othertablename]() :exports results or #+CALL: aushang(table=othertablename) :exports results does not work. It seem the babel block does not get the table but something else in case its called by #+CALL:. In general, how-to refer to a table in #+CALL blocks? On a similar line: I used $PROP_name to use property values within the sbe function. However, how to use the same property as input to a code-block? +begin_src python :var x=$PROP_name :exports results and +begin_src python :var x=name :exports results did not work Any ideas? Thanks Torsten
Re: [O] Switch for exported file types when evaluating code blocks
Cook, Malcolm m...@stowers.org writes: Hi Nick, I'm not sure how to use this ctan package in concert with orgmode's export to tex-pdf. Here's a simplfied example of what I did with it. The source block uses dot to produce an SVG file for illustration - if you already have one then you can ignore it: --8---cut here---start-8--- #+LATEX_HEADER: \usepackage{svg} * foo #+name: foo #+BEGIN_SRC dot :file foo.svg :exports results :results none digraph foo { a - b } #+END_SRC #+BEGIN_LaTeX \includesvg{foo} #+END_LaTeX --8---cut here---end---8--- Perhaps there is a way to use orgmode's export filtering capability to swap in a up-to-date png when exporting to tex PNG is a raster format whereas SVG is a vector format. I was trying to produce some slides and I did use PNG at first because it's easier to fit into the pdflatex workflow. But when I made the slides full screen, the PNG got fuzzy. Sticking with SVG got rid of the fuzzies for me. Hmmm Anyone? Thx! -Original Message- From: emacs-orgmode-bounces+mec=stowers@gnu.org [mailto:emacs-orgmode-bounces+mec=stowers@gnu.org] On Behalf Of Nick Dokos Sent: Wednesday, July 17, 2013 11:02 PM To: emacs-orgmode@gnu.org Subject: Re: [O] Switch for exported file types when evaluating code blocks Suvayu Ali fatkasuvayu+li...@gmail.com writes: Hello again Malcolm, On Thu, Jul 18, 2013 at 12:45:36AM +, Cook, Malcolm wrote: I tend to work with org-export-babel-evaluate set to nil. Thus, my code blocks are not evaled in the context of an export. Thus at eval time there is no way of knowing what the eventual backend is going to be. I think I need an approach that auto converts svg to png on-demand/on-the-fly during export. In that case just use another source block with shell source. In that block you can call inkscape to do the conversion. For an example, see here: http://ctan.mirrorcatalogs.com/info/svg-inkscape/InkscapePDFLaTeX.pdf#subsubsection.2.3.1 OT for the OP (say that three times fast!) but maybe of some use to somebody: For SVG, there is a latex package that is an evolutionary offshoot of the above link. It does the inkscape dance so you don't have to: http://www.tex.ac.uk/ctan/graphics/svg/ -- Nick -- Nick
Re: [O] [babel] Problems assigning tables as variables using #+CALL and using properties in code blocks and sbe calls
Torsten Wagner torsten.wag...@gmail.com writes: Hi, I have a tables like this: #+TBLNAME: tablename | a | b |c | d | | 1 | 2 |3 |4 | | z | x | y |w| #+TBLNAME: othertablename | a | b |c | d | | 1 | 2 |3 |4 | | z | x | y |w| I have the following code block #+name: test #+begin_src python :var table=tablename :exports results import numpy as np tab = np.array(table) return np.array([tab[:,1], tab[:,-1]]).T #+end_src If I call that function the result is correct However using #+CALL: aushang[:var table=othertablename]() :exports results or #+CALL: aushang(table=othertablename) :exports results does not work. It seem the babel block does not get the table but something else in case its called by #+CALL:. In general, how-to refer to a table in #+CALL blocks? Your tables are identical, and you're not calling the test function in your call blocks. A more reasonable (to me) version of your example works as expected. #+TBLNAME: tablename | a | b | c | d | | 1 | 2 | 3 | 4 | | z | x | y | w | #+TBLNAME: othertablename | a | b | c | d | | 4 | 3 | 2 | 1 | | z | x | y | w | I have the following code block #+name: test #+begin_src python :var table=tablename :exports results import numpy as np tab = np.array(table) return np.array([tab[:,1], tab[:,-1]]).T #+end_src #+RESULTS: test | b | d | | 2 | 4 | | x | w | If I call that function the result is correct However using #+CALL: test[:var table=othertablename]() :exports results #+RESULTS: | b | d | | 3 | 1 | | x | w | #+CALL: test(table=othertablename) :exports results #+RESULTS: | b | d | | 3 | 1 | | x | w | On a similar line: I used $PROP_name to use property values within the sbe function. However, how to use the same property as input to a code-block? +begin_src python :var x=$PROP_name :exports results and +begin_src python :var x=name :exports results did not work Any ideas? I don't understand the later part of this email, perhaps an example would clarify. Also, it might be worth looking in the following to see if something matching your use case appears. http://eschulte.github.io/org-scraps/ Cheers, Thanks Torsten -- Eric Schulte http://cs.unm.edu/~eschulte
Re: [O] Simplifying the weekly agenda a tiny bit, howto?
François Pinard pin...@iro.umontreal.ca writes: Eric Abrahamsen e...@ericabrahamsen.net writes: First of all, if your event is a meeting, it should only be timestamped, not deadlined or scheduled. Then it will just show up where it's supposed to, and not before (or after). How do I get it quickly rescheduled then, when it is a regular activity? I find fairly convenient using t d to push an activity at its next slot in the future. Could I do something equivalent with mere time stamps? If it's a regular activity, you can use a repeater in the timestamp, like: * Weekly meeting 2013-07-18 Thu 15:00 +1w or if you need something more complicated, you can use the diary sexp functions, like: * 22:00-23:00 The nerd meeting on every 2nd Thursday of the month %%(diary-float t 4 2) * Class every Tuesday and Thursday in the Spring 2013 semester 12:30PM-2PM %%(org-class 2013 1 22 2013 5 10 2) %%(org-class 2013 1 22 2013 5 10 4) For non-regular meetings, I have a capture template that allows me to easily enter them; maybe this is a good option for you if you regularly need to schedule meetings, but at times that you can't predict before you actually enter them. It probably shouldn't even be a TODO. Otherwise, scheduled TODOs show up on their schedule, and deadlined TODOs show up on their deadline, and also today's agenda, if you're coming up on the deadline. There are many Org commands able to find, display and otherwise handle TODOs. If I stop using such keywords, wouldn't I give up the tools? Maybe. Which tools do you use for TODOs that you also apply to meetings? Apart from the schedule-based agenda view, if you find it convenient to e.g. create a list of all your upcoming meetings, you can do things like tag all your meetings with a :meeting: or :appointment: tag, and then use tag searches and/or custom agenda views to identify them, sort them by timestamp, etc. Hope that's helpful! Best, Richar
Re: [O] Http pull/clone at orgmode.org is down?
John Hendy jw.he...@gmail.com writes: When I try to issue git pull (since yesterday, replicated today), I'm getting this: $ git pull error: Unable to find 989923a140695aa87959bdc727666aeec48ec074 under http://orgmode.org/org-mode.git Cannot obtain needed tree 989923a140695aa87959bdc727666aeec48ec074 while processing commit 0b770b125ffaed8e21dfea523437f12c35dec334. error: Fetch failed. This is working fine for me. Thanks and Regards Noorul
Re: [O] Use babel to import table data from OpenDocument spreadsheets?
I don't want to venture in to Babel. I don't want to experiment with unoconv either. I have a non-official libreoffice installed. Pulling in official unoconv will interfere with my working installation. For your purposes, just soffice will do. (defun org-table-import-ods (optional file-name) (interactive fFile: ) (let ((csv-file (org-odt-convert file-name csv)) (pos (point))) (save-excursion (insert (with-temp-buffer (insert-file-contents csv-file) (org-table-convert-region (point-min) (point-max) '(4)) (buffer-string)) | Simple | Table | | 1 |10 | | 2 |20 | | 3 |30 | Remember to close all libreoffice applications. THIS IS IMPORTANT. Otherwise `org-odt-convert' will error out. 0. Visit scratch buffer 1. Install the above snippet 2. Go to end of the scratch buffer. 3. M-x org-table-import-ods RET You will see something like what I see above. James Harkins jamshar...@gmail.com writes: At Thu, 18 Jul 2013 14:49:16 +0530, Jambunathan K wrote: 1. Give me a sample worksheet. Attached. 2. Give me the specific unoconv command that you used for converting the worksheet. unoconv -f csv -i 9,34,system,1,1/5/2/1/3/1/4/1 html-table.ods Maybe the filename needs a full path, not sure. I can supply that later. If you do (1) and (2), I will post a recipe. Really appreciate that! hjh
Re: [O] Use babel to import table data from OpenDocument spreadsheets?
1. Give me a sample worksheet. 2. Give me the specific unoconv command that you used for converting the worksheet. If you do (1) and (2), I will post a recipe. James Harkins jamshar...@gmail.com writes: At Wed, 10 Jul 2013 09:20:25 +0530, Jambunathan K wrote: James Harkins jamshar...@gmail.com writes: I found a utility, unoconv[1], which I can persuade to produce a tab-separated export of the first worksheet of an ODS document. FYI, unoconv is an option provided by `org-odt-convert-processes'. Thanks. Okay... I finally had some time to come back to this task. While I do appreciate all the suggestions so far, unfortunately I have to admit that I'm still stuck. What I'd like to do now is run down what I know about it so far and put questions in the middle of that. 1. I have a LibreOffice ODS file, where the table to obtain will be in the first worksheet. 1a. I can use unoconv to get a tab-separated text table out of it, in a file on disk. 1b. I will need to invoke this synchronously in an emacs-lisp block. (shell-command ...) I guess, right? 2. I want the tab-separated text to be converted into an org-table, so that HTML export will turn it into an HTML table. This is where it becomes completely baffling to the novice. 2a. There's a function, org-table-import, which looks like it will do the job. It inserts the table contents at the point. I just can't find any examples online of the correct way to do this. I assume I will have to run an emacs-lisp source block. I had been thinking I could use :exports results with a #+call, supposing that I could write out the table text as a stream and those results would be put in place of the #+call in the export. But of course that doesn't make sense if org-table-import is significant for its side effect (modifying the buffer) rather than its result. 2b. So (I guess) I would have to use emacs-lisp to move the point to a specific location in the file before calling org-table-import (obviously not by character index, since I can't assume previous text will not change). QUESTION: What is the best way to do that? ^^ This is the point where I'm stuck. I really have no idea. Say I put in an org comment # raw data here -- how do I get the point to go to the line after that? How do I delete the entire old table before importing the new one? Working example, perhaps? Anyway, I'll be happy to write this up as a worg page after I get it working, as it seems to me this would be a fairly common need but the information is not easy to find. Thanks, hjh
Re: [O] Use babel to import table data from OpenDocument spreadsheets?
Jambunathan K kjambunat...@gmail.com writes: I don't want to venture in to Babel. I don't want to experiment with unoconv either. I have a non-official libreoffice installed. Pulling in official unoconv will interfere with my working installation. For your purposes, just soffice will do. (defun org-table-import-ods (optional file-name) (interactive fFile: ) (let ((csv-file (org-odt-convert file-name csv)) (pos (point))) (save-excursion (insert (with-temp-buffer (insert-file-contents csv-file) (org-table-convert-region (point-min) (point-max) '(4)) (buffer-string)) | Simple | Table | | 1 |10 | | 2 |20 | | 3 |30 | Remember to close all libreoffice applications. THIS IS IMPORTANT. Otherwise `org-odt-convert' will error out. 0. Visit scratch buffer 1. Install the above snippet 2. Go to end of the scratch buffer. 3. M-x org-table-import-ods RET You will see something like what I see above. Here is a dump from my Messages buffer. , | Executing libreoffice4.0 --headless --convert-to csv --outdir ~/ ~/html-table.ods | convert ~/html-table.ods - ~//html-table.csv using Text - txt - csv (StarCalc) | | Exported to ~/html-table.csv | Undo! | Executing libreoffice4.0 --headless --convert-to csv --outdir ~/ ~/html-table.ods | convert ~/html-table.ods - ~//html-table.csv using Text - txt - csv (StarCalc) | | Exported to ~/html-table.csv ` James Harkins jamshar...@gmail.com writes: At Thu, 18 Jul 2013 14:49:16 +0530, Jambunathan K wrote: 1. Give me a sample worksheet. Attached. 2. Give me the specific unoconv command that you used for converting the worksheet. unoconv -f csv -i 9,34,system,1,1/5/2/1/3/1/4/1 html-table.ods Maybe the filename needs a full path, not sure. I can supply that later. If you do (1) and (2), I will post a recipe. Really appreciate that! hjh
[O] [WIP/RFC] Bibliography support ODT + JabRef
[WIP/RFC] Bibliography support ODT + JabRef I need some quick feedback on how this works out. Look at the Org and ODT file and tell me to what extent it will suffice. I am not interested in Org syntax at the moment. But I am willing to exchange notes with anyone who wants to canonicalize some Citation support in Org. For now, the keys are referenced with \cite{key1, key2} I am dumping 1. messages buffer. Shows how JabRef can be invoked on the command line. --8---cut here---start-8--- Extracting Citation Reference (suzuki_studies_1998) Running java -jar /home/kjambunathan/Downloads/JabRef-2.9.2.jar -n true -m suzuki_studies_1998,jabref-16048-fF.xml,ooxml.reference MyLibrary.bib Extracting Citation Reference (blyth_zen_1966) Running java -jar /home/kjambunathan/Downloads/JabRef-2.9.2.jar -n true -m blyth_zen_1966,jabref-16048LqL.xml,ooxml.reference MyLibrary.bib Extracting Citation Reference (watts_way_1999) Running java -jar /home/kjambunathan/Downloads/JabRef-2.9.2.jar -n true -m watts_way_1999,jabref-16048Y0R.xml,ooxml.reference MyLibrary.bib --8---cut here---end---8--- 2. JabRef's jstyle and layout files split out from the Jstyle. The jstyle is the one that comes with Jabref's OOplugin itself - Default Style (numerical citations). The layout files were broken apart from the Jstyle for the purpose of org-odt export. The files may not be perfect but gets the job done. * Some section This paragraph has some footnote references[fn:1] and cites some bibliographic references \cite{watts_way_1999,blyth_zen_1966}. There are more bibliographic references. \cite{suzuki_studies_1998}. Here I re-cite an earlier book \cite{watts_way_1999}. Here is another footnote.[fn:2] #+ATTR_ODT: :style custom #+BIBLIOGRAPHY: MyLibrary plain option:-d * Another section So on and so forth. * Footnotes [fn:1] This is a footnote. [fn:2] This is another footnote. cite.odt Description: application/vnd.oasis.opendocument.text @misc{_101_, title = {101 Zen Stories}, url = {http://www.101zenstories.com/}, urldate = {2013-06-10}, file = {101 Zen Stories:/home/kjambunathan/.mozilla/firefox/htr1myi9.default/zotero/storage/67EHBZZ6/www.101zenstories.com.html:text/html} }, @book{blyth_zen_1966, edition = {{1St} Edition}, title = {Zen and Zen Classics Volume 4 Mumonkan}, publisher = {The Hokuseido Press}, author = {Blyth, R. H.}, year = {1966} }, @book{watts_way_1999, title = {The Way of Zen}, isbn = {0375705104}, publisher = {Vintage}, author = {Watts, Alan W.}, month = jan, year = {1999} }, @misc{center_for_history_and_new_media_zotero_, title = {Zotero Quick Start Guide}, url = {http://zotero.org/support/quick_start_guide}, author = {{Center for History and New Media}}, annote = {Welcome to {Zotero!View} the Quick Start Guide to learn how to begin collecting, managing, citing, and sharing your research {sources.Thanks} for installing Zotero.} }, @book{besserman_crazy_1991, title = {Crazy Clouds: Zen radicals, rebels, and reformers}, isbn = {9780877735434}, shorttitle = {Crazy Clouds}, language = {en}, publisher = {Shambhala}, author = {Besserman, Perle and Steger, Manfred}, month = may, year = {1991}, keywords = {Philosophy / General, Philosophy / Zen, Priests, Zen, Religion / Buddhism / General, Religion / Buddhism / Zen, Religion / General, Zen priests, Zen priests/ Biography} }, @misc{_believing_, title = {{ON} {BELIEVING} {IN} {MIND} ({SHINJIN-NO-MEI)} by Seng-t'san}, url = {http://home.primusonline.com.au/peony/faith_in_mind.htm}, urldate = {2013-06-10}, file = {ON BELIEVING IN MIND (SHINJIN-NO-MEI) by Seng-t'san:/home/kjambunathan/.mozilla/firefox/htr1myi9.default/zotero/storage/SD4HNP5X/faith_in_mind.html:text/html} }, @book{suzuki_studies_1998, title = {Studies in Zen}, isbn = {0802216781}, publisher = {Chartwell Books {Inc.,U.S.}}, author = {Suzuki}, month = dec, year = {1998} }, @misc{_gateless_, title = {The Gateless Gate Index}, url = {http://www.sacred-texts.com/bud/glg/index.htm}, urldate = {2013-06-10}, file = {The Gateless Gate Index:/home/kjambunathan/.mozilla/firefox/htr1myi9.default/zotero/storage/WWH3MDSG/index.html:text/html} }, @book{blyth_zen_1970, title = {Zen and Zen classics}, language = {en}, publisher = {Hokuseido Press}, author = {Blyth, Reginald Horace}, year = {1970}, keywords = {Philosophy / Zen, Religion / Buddhism / General, Religion / Buddhism / Zen, Zen Buddhism} }, @book{blofeld_zen_1994, edition = {First Evergreen Edition}, title = {The Zen Teaching of Huang-Po: On the Transmission of Mind}, isbn = {0802150926}, shorttitle = {The Zen Teaching of Huang-Po}, publisher = {Grove Press}, translator = {Blofeld, John Eaton Calthorpe}, month = jan, year = {1994} }, @book{blofeld_zen_1994-1, edition = {First Evergreen Edition}, title = {The Zen Teaching of Huang-Po: On the Transmission of Mind}, isbn =
Re: [O] How to turn off visibility-state messages from 'org-cycle?
Try this: (defadvice org-cycle-internal-local (around org-cycle-internal-local-suppress-messages activate) Do the local cycling action, but suppress messages. (letf (((symbol-function 'message) (symbol-function 'ignore))) ad-do-it)) (defadvice org-cycle-internal-global (around org-cycle-internal-global-suppress-messages activate) Do the global cycling action, but suppress messages. (letf (((symbol-function 'message) (symbol-function 'ignore))) ad-do-it)) You can also use `flet' form to `ignore' the `message'. Thorsten Jolitz tjol...@gmail.com writes: Hi List, when calling Org-mode functionality form an external program, some functions seem to make use of 'org-cycle', what results in a lot of OVERVIEW messages arriving at stdout/stderr ,- | OVERVIEW | OVERVIEW | OVERVIEW | OVERVIEW | OVERVIEW | OVERVIEW | OVERVIEW | OVERVIEW | OVERVIEW | OVERVIEW | OVERVIEW | OVERVIEW | OVERVIEW | `- that are not really helpful and a bit of a hassle. ,- | (org-cycle optional ARG) | | | - When this function is called with a prefix argument, rotate the entire | buffer through 3 states (global cycling) | 1. OVERVIEW: Show only top-level headlines. | 2. CONTENTS: Show all headlines of all levels, but no body text. | 3. SHOW ALL: Show everything. `- Is there a way to turn these message off? I found things like 'org-no-popups or 'org-no-warnings but nothing like org-no-visibility-state-messages or so. Its not really a big problem, rather an inconvenience, but maybe its easy to solve when knowing where to look.
[O] [PATCH] save-restriction in `org-mobile-push'
* lisp/org-mobile.el (org-mobile-push): add `save-restriction' The fact that pushing org-file loses my narrow context annoys me. TINYCHANGE --- lisp/org-mobile.el | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el index 7cdaf34..a43896b 100644 --- a/lisp/org-mobile.el +++ b/lisp/org-mobile.el @@ -319,23 +319,24 @@ create all custom agenda views, for upload to the mobile phone. (org-agenda-tag-filter org-agenda-tag-filter) (org-agenda-redo-command org-agenda-redo-command)) (save-excursion - (save-window-excursion - (run-hooks 'org-mobile-pre-push-hook) - (org-mobile-check-setup) - (org-mobile-prepare-file-lists) - (message Creating agendas...) - (let ((inhibit-redisplay t) - (org-agenda-files (mapcar 'car org-mobile-files-alist))) - (org-mobile-create-sumo-agenda)) - (message Creating agendas...done) - (org-save-all-org-buffers) ; to save any IDs created by this process - (message Copying files...) - (org-mobile-copy-agenda-files) - (message Writing index file...) - (org-mobile-create-index-file) - (message Writing checksums...) - (org-mobile-write-checksums) - (run-hooks 'org-mobile-post-push-hook))) + (save-restriction + (save-window-excursion + (run-hooks 'org-mobile-pre-push-hook) + (org-mobile-check-setup) + (org-mobile-prepare-file-lists) + (message Creating agendas...) + (let ((inhibit-redisplay t) + (org-agenda-files (mapcar 'car org-mobile-files-alist))) + (org-mobile-create-sumo-agenda)) + (message Creating agendas...done) + (org-save-all-org-buffers) ; to save any IDs created by this process + (message Copying files...) + (org-mobile-copy-agenda-files) + (message Writing index file...) + (org-mobile-create-index-file) + (message Writing checksums...) + (org-mobile-write-checksums) + (run-hooks 'org-mobile-post-push-hook (setq org-agenda-buffer-name org-agenda-curbuf-name org-agenda-this-buffer-name org-agenda-curbuf-name)) (redraw-display) -- 1.8.3.2