Link to open PDF at a specific page
Hi, I'd like to open a PDF file to a specific page from a link, using the default PDF viewer in Windows (same as w32-shell-execute "open"), which opens a browser. With a browser, I can open it with this HTML link: Page 4 This link as an Org mode link doesn't work: file:///c:/a/b/c/file.pdf#page=4 as "#page=4" is interpreted as part of the filename by w32-shell-execute. If I modify org-file-apps for PDF to: ("\\.pdf::\\([0-9]+\\)\\'" . "browser file:///%s#page=%1") and if the Org link is: file:///c:/a/b/c/file.pdf::4 it doesn't work because the argument passed to browser is: file:///"c:/a/b/c/file.pdf"#page=4 A quick workaround is to modify org-open-file by removing shell-quote-argument, from: (shell-quote-argument (convert-standard-filename file)) to (convert-standard-filename file) to get the following string, which correctly opens page 4. "file:///c:/a/b/c/file.pdf#page=4" If I export the file as HTML, it is output as: ... so I modified org-html-link from: (concat raw-path "#" (org-publish-resolve-external-link option path t)) to (concat raw-path "#" (let ((r (org-publish-resolve-external-link option path t))) (or (and (string= r "MissingReference") (string-match "\\.pdf\\'" path) (string-match "[0-9]+" option) (format "page=%s" option)) r))) which generates the wanted HTML link: ... Is there any way less quick & dirty to achieve this? Thanks!
Re: [O] org-bbdb-anniversaries-future
Nick Dokos gmail.com> writes: > Michael Welle gmx.net> writes: > > > Marco Wahl gmail.com> writes: > > > >> BTW I use `org-bbdb-anniversaries-future'. See section "Anniversaries > >> from BBDB" in the info documentation (info "(org) Weekly/daily agenda"). Not present in latest org elpa package. --
Re: [O] Checkbox cookies not shown anymore when refiling
Nicolas Goaziou nicolasgoaziou.fr> writes: > Did you look at the commit? This is a one-line change introducing > a single regexp. This regexp apparently is not active anymore So, I've tweaked `org--get-outline-path-1' in order to keep the statistical/checkboxes cookies. > The problem is that it could clutter the display, and statistics cookie > are, for most use-cases, I assume, not an interesting information when > it comes to refiling. The reason I do that is because I want to refile a task (single action) under a project (multiple action item, with statistics cookie) and not under another plain task. Thanks for your help. --
Re: [O] Checkbox cookies not shown anymore when refiling
Nicolas Goaziou nicolasgoaziou.fr> writes: gekoc laposte.net> writes: >> With Org-mode version 8.3.4 (8.3.4-5-gdc68d2-elpa), it seems the >> checkbox cookies are not shown in the possible refile locations >> anymore when calling org-agenda-refile. > Actually, that was the intent since commit > 0c67513e7dbc260ba24552ae71d4cac40e5cec2a (Sep 2010), but the regexp was > buggy. This was fixed recently. Which regexp are refering to? I would very much like the checkbox cookies "[2/5]" be shown at all times. Is there an easy way I can tweak this regexp to do so? -- Georges
Re: [O] Convert from date to week number, howto?
Jambunathan K kjambunat...@gmail.com writes: I sometimes have to convert from a date to a week number, Try this. (org-odt-format-date 2011-12-31 Sat %U) (org-odt-format-date [2011-12-24 Sat] %U) You can steal the implementation. The functions have nothing to do with org-odt, btw. Another way to get the week of the year is: (require 'calendar) (require 'cal-iso) (car (calendar-iso-from-absolute (calendar-absolute-from-gregorian (list month day year -- Georges Ko g...@gko.net 2012-02-03
[O] Parsing org files with python
Hi there, I'm a quite recent user of org-mode (just a few months, very partial usage for now), and a python developer. Since I spend almost all my time in Emacs, org-mode is the most efficient tool to keep track of my working time. Now the question : are you aware of a python library to parse org files ? The ultimate goal would be to write an importer for OpenERP, which is itself written in python, and of course I'd prefer not to reinvent the wheel. A simple search on the web returned a project called OrgNode or orgtils, hosted at Google Code : http://members.optusnet.com.au/~charles57/GTD/orgnode.html http://code.google.com/p/orgtils/ but it lacks as far as I can tell the capability of understanding CLOCK markers and is not published on pypi.python.org either. Perhaps is the author on this list, too ? Are there other known libraries around that may prove useful ? Being quite new to this game, I could be mistaken, but it doesn't seem to have anything to do with org-babel, right ? And please, don't hesitate to tell if this ain't the right mailing-list for that kind of question :-) Cheers -- Georges Racinet, http://www.racinet.fr Zope/CPS expertise, assistance development GPG: 0x4862FFF7 identi.ca twitter: gracinet signature.asc Description: OpenPGP digital signature
Re: [O] Parsing org files with python
On 04/23/2011 05:58 PM, Juan Pechiar wrote: NEO (No Emacs Org) has just been announced: http://lists.gnu.org/archive/html/emacs-orgmode/2011-04/msg00598.html Ah, indeed, should have searched the archives in reverse chronological order Thanks, and sorry for the noise -- Georges Racinet, http://www.racinet.fr Zope/CPS expertise, assistance development GPG: 0x4862FFF7 identi.ca twitter: gracinet signature.asc Description: OpenPGP digital signature