Re: [O] Help proofreading ORG-NEWS for Org 8.1
Hi Charles, Charles Berry ccbe...@ucsd.edu writes: Should the changes in the arguments of org-export-to-file/buffer or the move to make the (plist-get info :back-end) return a struct count as 'Incompatible changes'? Or at least be highlighted somewhere as old code may be (and - in my case - was) broken by them. sorry your email came up when I just packaged 8.1. Nicolas, is this something that should be part of ORG-NEWS? If so, we can add it now and it will be part of the next bugfix release 8.1.1. Thanks, -- Bastien
Re: [O] [PARSER] Why not add properties to type 'org-data'?
Hello, Thorsten Jolitz tjol...@gmail.com writes: But sometimes, when only the parse-tree is needed, not the exporter framework, it would indeed be useful if that highest level element the others refer to as parent (org-data) would have some kind of unique name/id. What would be the cost of introducing just one single unique attribute like: ,- | (org-data (:input-file /my/file.org) (section (:begin 1 :end 52 ...))) `- or ,- | (org-data (:ID 08AF34b12) (section (:begin 1 :end 52 ...))) `- to make different parse trees distinguishable (and associated to the parsed file)? There is no real cost in this case. Though, note that :input-file would not make for a unique identifier. On the other hand, what prevents you, once you have the parse tree, from tagging it with all the attributes you need? Regards, -- Nicolas Goaziou
Re: [O] Help proofreading ORG-NEWS for Org 8.1
Hello, Bastien b...@gnu.org writes: Charles Berry ccbe...@ucsd.edu writes: Should the changes in the arguments of org-export-to-file/buffer or the move to make the (plist-get info :back-end) return a struct count as 'Incompatible changes'? Or at least be highlighted somewhere as old code may be (and - in my case - was) broken by them. sorry your email came up when I just packaged 8.1. Nicolas, is this something that should be part of ORG-NEWS? If so, we can add it now and it will be part of the next bugfix release 8.1.1. I forgot about these changes. I've added some notes about it in ORG-NEWS. Regards, -- Nicolas Goaziou
Re: [O] Help proofreading ORG-NEWS for Org 8.1
Nicolas Goaziou n.goaz...@gmail.com writes: I forgot about these changes. I've added some notes about it in ORG-NEWS. Thanks! -- Bastien
Re: [O] Superscript before character
On 6.9.2013, at 20:03, Charles Berry ccbe...@ucsd.edu wrote: Roger Mason rmason at mun.ca writes: Hello, I'd like to create a superscript that preceeds a letter. I tried ^1Fred, ^1 Fred, ^{1}Fred and ^{1} Fred, to no avail. Can this be done in org (8.0.3)? If so how? [snip] \nbsp{}^{1}Fred Yes, nice. I also need this often. You can also write \nbsp^{1}Fred, a bit more compact. I am wondering if we could come up with something even more compact though. I often have to write names of isotopes, for example \nbsp^{13}CO, and I do find that cumbersome. - Carsten exports to ~$^{\text{1}}$Fred in latex and nbsp;sup1/supFred in html HTH, Chuck
[O] [PATCH] Fix table formula debugger error display
Hi all Attached is a patch to fix the offset of the arrow pointing to the error in a Calc formula, see this example: | #ERROR | #+TBLFM: $1 = . want a Calc error Michael 0001-Fix-table-formula-debugger-error-display.patch Description: Binary data
Re: [O] [PARSER] Why not add properties to type 'org-data'?
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Thorsten Jolitz tjol...@gmail.com writes: But sometimes, when only the parse-tree is needed, not the exporter framework, it would indeed be useful if that highest level element the others refer to as parent (org-data) would have some kind of unique name/id. What would be the cost of introducing just one single unique attribute like: ,- | (org-data (:input-file /my/file.org) (section (:begin 1 :end 52 ...))) `- or ,- | (org-data (:ID 08AF34b12) (section (:begin 1 :end 52 ...))) `- to make different parse trees distinguishable (and associated to the parsed file)? There is no real cost in this case. Though, note that :input-file would not make for a unique identifier. Yes, :input-file plus (exact) :date would probably do the job as unique identifier(s). On the other hand, what prevents you, once you have the parse tree, from tagging it with all the attributes you need? Nothing really, I just thought that the space after 'org-data' is a bit wasted and that it would be generally usefull to put some unique 'parse-tree-id' there instead of just nil. But it may be better to keep the core functionality as clean and simple as possible and add this kind of info later on if necessary. -- cheers, Thorsten
Re: [O] org-insert-heading rewritten from scratch
Hello, There seem to be a bug when using M-RET at X in the following buffer: * H1 TextX Try it with different values for `org-blank-before-new-entry'. Regards, -- Nicolas Goaziou
Re: [O] org-insert-heading rewritten from scratch
Nicolas Goaziou n.goaz...@gmail.com writes: There seem to be a bug when using M-RET at X in the following buffer: * H1 TextX Try it with different values for `org-blank-before-new-entry'. Well, please scratch that: I was on a dubious local branch. Sorry for the noise. Regards, -- Nicolas Goaziou
[O] Outline cycling does not preserve point's position
Hello, Since a little while, I've observed that point's position is not anymore preserved when cycling buffer's view with S-TAB. Sometimes, point stays where it was (even when in the body of entries); sometimes, not. See http://screencast.com/t/1sr6Lezk: - when on the first letter of From, in that example, point's location is preserved; - when on the second letter of it, point's location is lost: new position is at the end of the level 1 parent... That's very annoying when you want to just look at your tree structure, but don't expect to land somewhere else by doing so. Best regards, Seb -- Sebastien Vauban
Re: [O] Outline cycling does not preserve point's position
Hi Sebastien, you say since a little while. Have you tried to bisect? Or has it been like this always? Also, I am not convinced that staying in invisible places is the right behavior at all. Even though I would agree that three S-TAB in a row should be a null operation. May be it would be better to use something like (org-display-outline-path nil t) to see where you are? - Carsten On 7.9.2013, at 14:11, Sebastien Vauban sva-n...@mygooglest.com wrote: Hello, Since a little while, I've observed that point's position is not anymore preserved when cycling buffer's view with S-TAB. Sometimes, point stays where it was (even when in the body of entries); sometimes, not. See http://screencast.com/t/1sr6Lezk: - when on the first letter of From, in that example, point's location is preserved; - when on the second letter of it, point's location is lost: new position is at the end of the level 1 parent... That's very annoying when you want to just look at your tree structure, but don't expect to land somewhere else by doing so. Best regards, Seb -- Sebastien Vauban signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [O] [PATCH] Fix table formula debugger error display
Hi Michael, thank you for the patch, I have applied it. - Carsten On 7.9.2013, at 10:57, Michael Brand michael.ch.br...@gmail.com wrote: Hi all Attached is a patch to fix the offset of the arrow pointing to the error in a Calc formula, see this example: | #ERROR | #+TBLFM: $1 = . want a Calc error Michael 0001-Fix-table-formula-debugger-error-display.patch signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [O] Inconsistent entitiespretty behavior
On 09/07/2013 10:59 AM, Ross Vandegrift wrote: I can reproduce this with the following org-entities-user: ((box \, \\square t X Y Z □) ^ (vDash \\vDash t vDash; |= |= ⊧)) The single misplaced character: hard to spot, easy to fix... Ross
[O] Inconsistent entitiespretty behavior
Hello all, I am seeing some weird behavior with entitiespretty. Mostly, emacs correctly displays the UTF-8 substitution. But for some elements of my org-entities-user, emacs uses the latin1 alternative. I can reproduce this with the following org-entities-user: ((box \, \\square t X Y Z □) (vDash \\vDash t vDash; |= |= ⊧)) If I type \box, I get a Z. If I type \vDash I get a ⊧. Any idea what is causing this inconsistent behavior? The characters are displayed fine when entered with the Tex input method. I am using org-mode 7.8.11-1 and emacs23 from Debian wheezy. Thanks in advance, Ross
Re: [O] Outline cycling does not preserve point's position
Hi Carsten, Carsten Dominik wrote: On 7.9.2013, at 14:11, Sebastien Vauban sva-n...@mygooglest.com wrote: Since a little while, I've observed that point's position is not anymore preserved when cycling buffer's view with S-TAB. Sometimes, point stays where it was (even when in the body of entries); sometimes, not. See http://screencast.com/t/1sr6Lezk: - when on the first letter of From, in that example, point's location is preserved; - when on the second letter of it, point's location is lost: new position is at the end of the level 1 parent... That's very annoying when you want to just look at your tree structure, but don't expect to land somewhere else by doing so. you say since a little while. Have you tried to bisect? Not yet. I have many Chinese plates turning at the moment, but I'll try to do that very soon. And I have other problems to report or bisect: - not possible anymore to cut a code snippet in two parts with C-c C-v C-d (demarcate block); already reported (without bisect), no answer; - not possible anymore to use C-a or C-e in code blocks to select regions; not reported yet, though I reported similar problems with C-arrows (apparently due to a change which is now officially part of 8.1). IMO, that renders editing of code block in the original buffer much more annoying. Or has it been like this always? In my mind, this did work before; or, at least, in (many) more cases than it now does. Also, I am not convinced that staying in invisible places is the right behavior at all. Even though I would agree that three S-TAB in a row should be a null operation. At the very least, we could agree that point should always be part of the entry we were on; so never go up to the *parent* entry. May be it would be better to use something like (org-display-outline-path nil t) to see where you are? I know where I am: I'm using that. But, sometimes (in fact, often), I want to see the rest of the entries (brothers, parents, etc.) in the outline view. I simply expect to land back at the entry I was at, when having cycled 3 times. Best regards, Seb -- Sebastien Vauban
Re: [O] disable org-replace-disputed-keys for org-read-date
Dear Carsten, sorry for not responding sooner. I've been on holiday and didn't see your messages. Unfortunately, setting `org-replace-disputed-keys' to `nil' inside `org-read-date' doesn't work. The reason is: `org-read-date-minibuffer-local-map' is a defvar - thus, it has already been evaluated (upon loading org.el). One quick fix would be to make `org-read-date-minibuffer-local-map' be a `defun' instead of a `defvar'. To ensure keymap is created lazily and thus automatically respect `(let* ((org-replace-disputed-keys nil)))'. Although, that would cause some backwards incompatibilities. Any thoughts? Kind Regards, Miro On Mon, Sep 2, 2013 at 7:50 AM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Miro, I have implemented this. Please test and make sure it works. Regards - Carsten On 15.5.2013, at 11:37, Miro Bezjak bezjak.m...@gmail.com wrote: Hi all, for orgmode 7.9.x I had the following defadvice. (defadvice org-read-date (around my-no-disputed-keys activate) Ignore org-replace-disputed-keys when calendar is active. (let ((org-replace-disputed-keys nil)) ad-do-it)) Contrary to the `org-replace-disputed-keys' documentation (only being relevant at load-time), the advice worked because in 7.9.x `org-read-date' used `org-defkey' to add the relevant keybindings each time it was called. In 8.0.x, this advice no longer works since `org-read-date-minibuffer-local-map' is being used. Basically, I'm trying to use windmove keys, but not when I'm entering dates through calendar. In calendar, shift + arrow keys are really handy and calendar is not active for a long time. Does anyone have any suggestion how I can achieve that in 8.0.x without patching org.el? Should I make a patch to introduce defcustom that will ignore disputed keys while setting up `org-read-date-minibuffer-local-map'? Anyone else interested in this besides me? Kind Regards, Miro
Re: [O] heading numbering in LaTeX export?
Hi Peter, Peter Salazar cycleofs...@gmail.com writes: I have a LaTeX template I created for use with org-mode, to export to PDF via LaTeX using xelatex. I don't edit LaTeX directly, I just generate from org-mode. This works perfectly for me except for one thing: it only works when I have heading numbering turned on. When I turn numbering off in org-mode, by adding this line to my org-mode file... #+OPTIONS: num:nil ...LaTeX no longer recognizes my headings as headings. This creates two problems: 1. The Table of Contents is blank. This is because, when you set num:nil, Org exports headings to LaTeX using the \section*{} command, not the usual \section{}. LaTeX does not put sections defined with \section* (or \chapter*, \part*, etc.) in the table of contents. Thus, if you still want all sections to show up in your table of contents, you probably don't want to set num:nil. If you just want section numbers not to show up in section titles, there's probably a simple way to do this in LaTeX by redefining a command, but I can't find it right now; maybe someone else here knows. Once you know the LaTeX command, you can set it on Org via #+LATEX_HEADER: \renewcommand{...} or whatever. See also: https://en.wikibooks.org/wiki/LaTeX/Document_Structure#Sectioning_commands 2. The \leftmark in the heading shows up as Contents instead of showing up as the title of the section. I'm not sure about this issue. I would guess that it's also caused by using \section* rather than \section, but there's no \leftmark command in the test document I created. -- Best, Richard
[O] [PATCH] Add Microsoft Outlook Support to org-mac-link
* contrib/lisp/org-mac-link.el: Add “o”utlook to capture descriptors along with functions to capture links from Microsoft Outlook for Mac. The functions here replicate those that capture from Mail.app. --- contrib/lisp/org-mac-link.el | 140 +++ 1 file changed, 140 insertions(+) diff --git a/contrib/lisp/org-mac-link.el b/contrib/lisp/org-mac-link.el index 59b88d2..2ff6711 100644 --- a/contrib/lisp/org-mac-link.el +++ b/contrib/lisp/org-mac-link.el @@ -13,6 +13,11 @@ ;; Version: 1.1 ;; Keywords: org, mac, hyperlink ;; +;; Version: 1.2 +;; Keywords: outlook +;; Author: Mike McLean mike.mcl...@pobox.com +;; Add support for Microsoft Outlook for Mac as Org mode links +;; ;; This file is not part of GNU Emacs. ;; ;; This program is free software; you can redistribute it and/or modify @@ -51,6 +56,7 @@ ;; Google Chrome.app - Grab the url of the frontmost tab in the frontmost window ;; Together.app - Grab links to the selected items in the library list ;; Skim.app - Grab a link to the selected page in the topmost pdf document +;; Microsoft Outlook.app - Grab a link to the selected message in the message list ;; ;; ;; Installation: @@ -97,6 +103,12 @@ applications and inserting them in org documents :group 'org-mac-link :type 'boolean) +(defcustom org-mac-grab-Outlook-app-p t + Enable menu option [o]utlook to grab links from Microsoft Outlook.app + :tag Grab Microsoft Outlook.app links + :group 'org-mac-link + :type 'boolean) + (defcustom org-mac-grab-Addressbook-app-p t Enable menu option [a]ddressbook to grab links from AddressBook.app :tag Grab AddressBook.app links @@ -179,6 +191,7 @@ applications and inserting them in org documents (interactive) (let* ((descriptors `((F inder org-mac-finder-insert-selected ,org-mac-grab-Finder-app-p) (m ail org-mac-message-insert-selected ,org-mac-grab-Mail-app-p) +(o utlook org-mac-outlook-message-insert-selected ,org-mac-grab-Outlook-app-p) (a ddressbook org-mac-addressbook-insert-selected ,org-mac-grab-Addressbook-app-p) (s afari org-mac-safari-insert-frontmost-url ,org-mac-grab-Safari-app-p) (f irefox org-mac-firefox-insert-frontmost-url ,org-mac-grab-Firefox-app-p) @@ -574,6 +587,133 @@ applications and inserting them in org documents ;; ;; +;; Handle links from Microsoft Outlook.app +;; + +(org-add-link-type mac-outlook 'org-mac-outlook-message-open) + +(defun org-mac-outlook-message-open (msgid) + Open a message in outlook + (let* ((record-id-string (format mdfind com_microsoft_outlook_recordID==%s msgid)) + (found-message (replace-regexp-in-string \n$ + (shell-command-to-string record-id-string +(if (string= found-message ) + (message org-mac-link: error could not find Outlook message %s (substring-no-properties msgid)) + (shell-command (format open \`mdfind com_microsoft_outlook_recordID==%s`\ msgid) + +(defun org-as-get-selected-outlook-mail () + AppleScript to create links to selected messages in Microsoft Outlook.app. + (do-applescript + (concat +tell application \Microsoft Outlook\\n +set msgCount to count current messages\n +if (msgCount 1) then\n +return\n +end if\n +set theLinkList to {}\n +set theSelection to (get current messages)\n +repeat with theMessage in theSelection\n +set theID to id of theMessage as string\n +set theURL to \mac-outlook:\ theID\n +set theSubject to subject of theMessage\n +set theLink to theURL \::split::\ theSubject \\n\\n +copy theLink to end of theLinkList\n +end repeat\n +return theLinkList as string\n +end tell))) + +(defun org-sh-get-flagged-outlook-mail () + Shell commands to create links to flagged messages in Microsoft Outlook.app. + (mapconcat + (lambda (x) + (concat + mac-outlook: + (mapconcat + (lambda (y) y) + (split-string + (shell-command-to-string +(format mdls -raw -name com_microsoft_outlook_recordID -name kMDItemDisplayName \%s\ x)) + \000) + ::split::) + \n)) + (with-temp-buffer + (let ((coding-system-for-read (or file-name-coding-system 'utf-8)) + (coding-system-for-write 'utf-8)) + (shell-command + mdfind com_microsoft_outlook_flagged==1 + (current-buffer))) + (split-string + (buffer-string) \n t)) + )) + +(defun org-mac-outlook-message-get-links (optional select-or-flag) + Create links to the messages currently selected or flagged in Microsoft Outlook.app. +This will use AppleScript to get the message-id and the subject of the +messages in Microsoft Outlook.app and make a link out of it. +When SELECT-OR-FLAG is \s\, get the selected messages (this is also +the default). When SELECT-OR-FLAG is \f\, get the flagged messages. +The Org-syntax text will be pushed to
Re: [O] ATTENTION: Incompatible change
Thank you. I just submitted my patch to add support for Microsoft Outlook for Mac and I will add support for DevonThink Pro (at least) sometime next week. Mike On Fri, Sep 6, 2013 at 12:38 PM, Carsten Dominik carsten.domi...@gmail.comwrote: On 6.9.2013, at 17:00, Mike McLean mike.mcl...@pobox.com wrote: Thank you for this. The combination and simplification is finally prompting me to add support for Microsoft Outlook for Mac email messages and for DevonThink Pro. I have a question, though. If the only require now is supposed to be =(require 'org-mac-link)=, why is there still a =(require 'org-mac-message)= in =org-mac-link.el=? Hi Mike, Thanks for picking this up - I fixed that. - Carsten Mike On Thursday, September 5, 2013, Anthony Lander wrote: Hi Carsten, Sorry for the delay. For org-mac-link, here is a small cleanup patch to org that changes the customize group name from 'org-mac-link-grabber to 'org-mac-link, and another patch which updates the documentation in worg. Can you please review, and if OK apply to the repositories? Thanks, -Anthony On Sat, Aug 31, 2013 at 9:37 AM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi all, I have now replaced both org-mac-message.el and org-mac-link-grabber.el with org-mac-link.el. So after the next pull, you will have to change your setup to use this module instead of the others and use the new commands as well. I would appreciate if you your try this soon, so that we can fix issue before the next release (very soon). Thank you, and in particular thanks to Anthony Lander for doing the work. - Carsten P.S. Anthony, you promised to update the documentation. It would be great if you could do that now. Thank you!
Re: [O] heading numbering in LaTeX export?
Richard Lawrence richard.lawre...@berkeley.edu writes: Hi Peter, Peter Salazar cycleofs...@gmail.com writes: I have a LaTeX template I created for use with org-mode, to export to PDF via LaTeX using xelatex. I don't edit LaTeX directly, I just generate from org-mode. This works perfectly for me except for one thing: it only works when I have heading numbering turned on. When I turn numbering off in org-mode, by adding this line to my org-mode file... #+OPTIONS: num:nil ...LaTeX no longer recognizes my headings as headings. This creates two problems: 1. The Table of Contents is blank. This is because, when you set num:nil, Org exports headings to LaTeX using the \section*{} command, not the usual \section{}. LaTeX does not put sections defined with \section* (or \chapter*, \part*, etc.) in the table of contents. Thus, if you still want all sections to show up in your table of contents, you probably don't want to set num:nil. If you just want section numbers not to show up in section titles, there's probably a simple way to do this in LaTeX by redefining a command, but I can't find it right now; maybe someone else here knows. Once you know the LaTeX command, you can set it on Org via #+LATEX: \setcounter{secnumdepth}{0} Or just #+OPTIONS: num:0 –Rasmus -- If you can mix business and politics wonderful things can happen!
Re: [O] Superscript before character
Carsten Dominik carsten.domi...@gmail.com writes: On 6.9.2013, at 20:03, Charles Berry ccbe...@ucsd.edu wrote: Roger Mason rmason at mun.ca writes: Hello, I'd like to create a superscript that preceeds a letter. I tried ^1Fred, ^1 Fred, ^{1}Fred and ^{1} Fred, to no avail. Can this be done in org (8.0.3)? If so how? [snip] \nbsp{}^{1}Fred Yes, nice. I also need this often. You can also write \nbsp^{1}Fred, a bit more compact. I am wondering if we could come up with something even more compact though. I often have to write names of isotopes, for example \nbsp^{13}CO, and I do find that cumbersome. I don't use prescripts, but perhaps a macro could be used? #+BEGIN_SRC org #+LATEX_HEADER: \usepackage{mhchem} #+MACRO: ce $\ce{$1}$ {{{ce(^{227}_{90}Th+)}}} *bold* #+END_SRC Further flexibility is probably possible using ob-latex. –Rasmus -- Don't panic!!!
[O] Marking repeating task as done with the scheduled time
Hi all. I have a habit set up that I need to mark done every day. If it's not done that day I can do it later. Basically I want to track how many days I'm running late and have the ability to catch up. If I use +1d interval, when I mark task as done it updates the schedule by one 1 day, but puts the done record with the current date. So I have to edit every timestamp manually, to make the habit display properly. Is there any way I can make my done records to use task scheduled time instead of now? -- Best Regards, Nikolay Kudryavtsev
Re: [O] ANN: Release 8.1
Carsten Dominik carsten.domi...@gmail.com writes: Hi everyone! The current git master has just been tagged as release 8.1. I would like to thank everyone who contributed to it. A chance to add my thanks, as a simple user, who almost lives in Org-mod and Gnus, to all who contribute! with all good wishes Glyn
Re: [O] disable org-replace-disputed-keys for org-read-date
Dear Carsten, actually forget my previous fix attempt. There is a better way. Here is what I did to org.el to make it work. (defvar org-read-date-minibuffer-local-map (let* ((org-replace-disputed-keys nil) (map (make-sparse-keymap))) ... rest unchanged ... In words: I just added `(let* ((org-replace-disputed-keys nil)' right where init-value of `org-read-date-minibuffer-local-map' is being determined. Kind Regards, Miro On Sat, Sep 7, 2013 at 10:22 PM, Miro Bezjak bezjak.m...@gmail.com wrote: Dear Carsten, sorry for not responding sooner. I've been on holiday and didn't see your messages. Unfortunately, setting `org-replace-disputed-keys' to `nil' inside `org-read-date' doesn't work. The reason is: `org-read-date-minibuffer-local-map' is a defvar - thus, it has already been evaluated (upon loading org.el). One quick fix would be to make `org-read-date-minibuffer-local-map' be a `defun' instead of a `defvar'. To ensure keymap is created lazily and thus automatically respect `(let* ((org-replace-disputed-keys nil)))'. Although, that would cause some backwards incompatibilities. Any thoughts? Kind Regards, Miro On Mon, Sep 2, 2013 at 7:50 AM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Miro, I have implemented this. Please test and make sure it works. Regards - Carsten On 15.5.2013, at 11:37, Miro Bezjak bezjak.m...@gmail.com wrote: Hi all, for orgmode 7.9.x I had the following defadvice. (defadvice org-read-date (around my-no-disputed-keys activate) Ignore org-replace-disputed-keys when calendar is active. (let ((org-replace-disputed-keys nil)) ad-do-it)) Contrary to the `org-replace-disputed-keys' documentation (only being relevant at load-time), the advice worked because in 7.9.x `org-read-date' used `org-defkey' to add the relevant keybindings each time it was called. In 8.0.x, this advice no longer works since `org-read-date-minibuffer-local-map' is being used. Basically, I'm trying to use windmove keys, but not when I'm entering dates through calendar. In calendar, shift + arrow keys are really handy and calendar is not active for a long time. Does anyone have any suggestion how I can achieve that in 8.0.x without patching org.el? Should I make a patch to introduce defcustom that will ignore disputed keys while setting up `org-read-date-minibuffer-local-map'? Anyone else interested in this besides me? Kind Regards, Miro
Re: [O] heading numbering in LaTeX export?
Thanks for the responses! John: Oh yes, of course. Sorry about that. inimal org file and config files are here. I had to make the org file long enough to make several pages, so the header displays. Here you go: https://github.com/petersalazar/org-troubleshooting Rasmus: #+OPTIONS: num:0 is what I started from. When I do that, the resulting PDF has no Table of Contents, and the header displays the section title as Contents. The same thing happens with #+LATEX: \setcounter{secnumdepth}{0}. Richard: Your idea about #+LATEX_HEADER: \renewcommand{...} sounds very promising! I'd love to know what the exact command is! I don't need section numbers ever, so my desire is to turn off numbering forever, but still have an intact Table of Contents and header. Thanks guys! On Fri, Sep 6, 2013 at 4:30 PM, John Hendy jw.he...@gmail.com wrote: On Fri, Sep 6, 2013 at 2:43 PM, Peter Salazar cycleofs...@gmail.com wrote: I have a LaTeX template I created for use with org-mode, to export to PDF via LaTeX using xelatex. I don't edit LaTeX directly, I just generate from org-mode. This works perfectly for me except for one thing: it only works when I have heading numbering turned on. When I turn numbering off in org-mode, by adding this line to my org-mode file... #+OPTIONS: num:nil ...LaTeX no longer recognizes my headings as headings. This creates two problems: 1. The Table of Contents is blank. 2. The \leftmark in the heading shows up as Contents instead of showing up as the title of the section. How do I modify these org-mode preferences such that my I can turn heading numbering off in org-mode while still correctly generating a Table of Contents and adding my section title to the header? I'm sorry, but I don't know enough about LaTeX to make a minimum representation of this. I have no idea where the problem is. At the very least, can you provide a minimal org file? This is over my head with xelatex and all that customization, but I think people are going to at least need: - minimal emacs config (reproducible version that produces the problem, not just the latex stuff) - a .org file that produces the issue you're experiencing (even with just a couple headlines and the words blah blah blah or what have you as the text John Here are the org-mode preferences in question: http://pastebin.com/62Nugpsg Thanks!
[O] Index of cases
G'day, I am the author of a legal text of about 700 pages. I currently have the book in LaTeX using the memoir class. A couple of macros define special indexes for a Table of Cases and a Table of Statutes. I would like to move the whole thing to Org to make it easier for my editors who can be easily alarmed by the LaTeX markup. The LaTeX is overkill since I submit the manuscript to the publisher in a Word file. Is there a standard way to get, say, the table of cases? A typical case looks like this: Howell v Coupland (1874) LR 9 QB 462; (1876) 1 QBD 258 The Table of Cases needs to indicate where in the text the case is mentioned; reference to section numbers is OK. So, for example, in the Table of Cases, the above case appears as: Howell v Coupland (1874) LR 9 QB 462; (1876) 1 QBD 258 [15.16] [15.25] Presuming there is not a standard, I have considered the following procedure: - maintain a list of cases as I write; I already do this to ensure consistent citation of cases; - use links from the list of cases back into the manuscript to index the places where each case is mentioned in the text. Does this seem like a reasonable approach, or is there some obviously better way? I am an extreme novice at elisp but can handle some simple jobs. Any advice greatly appreciated. Cheers, Alan Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: 04 2748 6206 sip:typh...@iptel.org
Re: [O] Index of cases
Alan L Tyree alanty...@gmail.com writes: G'day, I am the author of a legal text of about 700 pages. I currently have the book in LaTeX using the memoir class. A couple of macros define special indexes for a Table of Cases and a Table of Statutes. I would like to move the whole thing to Org to make it easier for my editors who can be easily alarmed by the LaTeX markup. The LaTeX is overkill since I submit the manuscript to the publisher in a Word file. Is there a standard way to get, say, the table of cases? A typical case looks like this: Howell v Coupland (1874) LR 9 QB 462; (1876) 1 QBD 258 The Table of Cases needs to indicate where in the text the case is mentioned; reference to section numbers is OK. So, for example, in the Table of Cases, the above case appears as: Howell v Coupland (1874) LR 9 QB 462; (1876) 1 QBD 258 [15.16] [15.25] Presuming there is not a standard, I have considered the following procedure: - maintain a list of cases as I write; I already do this to ensure consistent citation of cases; - use links from the list of cases back into the manuscript to index the places where each case is mentioned in the text. Does this seem like a reasonable approach, or is there some obviously better way? I am an extreme novice at elisp but can handle some simple jobs. In one sense it would be nicer and more writer-friendly if the links went the other direction; that is, when you refer to a case within the manuscript, you would always tag it in a way that allows it to be automatically labelled with the section in which it occurs, and automatically placed into the index of cases for you. That's a work-saving ideal that I don't actually know how to achieve. (Further idealistic ramblings: if for example you were to add a new section between current sections 6 and 7, it would be nice for the labels in sections 7 through the end to update themselves wholesale without your needing to change each label individually.) -- David R
Re: [O] heading numbering in LaTeX export?
Thank you! That solution is very promising indeed. I see why it's quick and dirty though - it appears to be generation section numbers, but just making the numbers invisible, so that the headings are not flush with the left margin: http://i.imgur.com/G6drpmf.png Is there a solution to that, or is that just the way it is? Thanks again. On Sun, Sep 8, 2013 at 12:05 AM, Nick Dokos ndo...@gmail.com wrote: Peter Salazar cycleofs...@gmail.com writes: Thanks for the responses! John: Oh yes, of course. Sorry about that. inimal org file and config files are here. I had to make the org file long enough to make several pages, so the header displays. Here you go: https://github.com/petersalazar/org-troubleshooting Rasmus: #+OPTIONS: num:0 is what I started from. When I do that, the resulting PDF has no Table of Contents, and the header displays the section title as Contents. The same thing happens with #+LATEX: \setcounter{secnumdepth}{0}. Richard: Your idea about #+LATEX_HEADER: \renewcommand{...} sounds very promising! I'd love to know what the exact command is! The quick-and-dirty solution is --8---cut here---start-8--- #+LATEX_HEADER: \renewcommand{\thesection}{} #+LATEX_HEADER: \renewcommand{\thesubsection}{} #+LATEX_HEADER: \renewcommand{\thesubsubsection}{} --8---cut here---end---8--- That's enough for the default secnumdepth of 3, but if you make that bigger, you'll have to make it even dirtier: --8---cut here---start-8--- #+LATEX_HEADER: \renewcommand{\theparagraph}{} #+LATEX_HEADER: \renewcommand{\thesubparagraph}{} --8---cut here---end---8--- There is probably a cleaner way, but that would require cleverness and I don't have any right now. BTW, this turns off section numbers in the TOC as well, not just in the body of the document. -- Nick
Re: [O] disable org-replace-disputed-keys for org-read-date
Hi Miro, you are right, and this is now fixed. Thanks! - Carsten On 7.9.2013, at 23:39, Miro Bezjak bezjak.m...@gmail.com wrote: Dear Carsten, actually forget my previous fix attempt. There is a better way. Here is what I did to org.el to make it work. (defvar org-read-date-minibuffer-local-map (let* ((org-replace-disputed-keys nil) (map (make-sparse-keymap))) ... rest unchanged ... In words: I just added `(let* ((org-replace-disputed-keys nil)' right where init-value of `org-read-date-minibuffer-local-map' is being determined. Kind Regards, Miro On Sat, Sep 7, 2013 at 10:22 PM, Miro Bezjak bezjak.m...@gmail.com wrote: Dear Carsten, sorry for not responding sooner. I've been on holiday and didn't see your messages. Unfortunately, setting `org-replace-disputed-keys' to `nil' inside `org-read-date' doesn't work. The reason is: `org-read-date-minibuffer-local-map' is a defvar - thus, it has already been evaluated (upon loading org.el). One quick fix would be to make `org-read-date-minibuffer-local-map' be a `defun' instead of a `defvar'. To ensure keymap is created lazily and thus automatically respect `(let* ((org-replace-disputed-keys nil)))'. Although, that would cause some backwards incompatibilities. Any thoughts? Kind Regards, Miro On Mon, Sep 2, 2013 at 7:50 AM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Miro, I have implemented this. Please test and make sure it works. Regards - Carsten On 15.5.2013, at 11:37, Miro Bezjak bezjak.m...@gmail.com wrote: Hi all, for orgmode 7.9.x I had the following defadvice. (defadvice org-read-date (around my-no-disputed-keys activate) Ignore org-replace-disputed-keys when calendar is active. (let ((org-replace-disputed-keys nil)) ad-do-it)) Contrary to the `org-replace-disputed-keys' documentation (only being relevant at load-time), the advice worked because in 7.9.x `org-read-date' used `org-defkey' to add the relevant keybindings each time it was called. In 8.0.x, this advice no longer works since `org-read-date-minibuffer-local-map' is being used. Basically, I'm trying to use windmove keys, but not when I'm entering dates through calendar. In calendar, shift + arrow keys are really handy and calendar is not active for a long time. Does anyone have any suggestion how I can achieve that in 8.0.x without patching org.el? Should I make a patch to introduce defcustom that will ignore disputed keys while setting up `org-read-date-minibuffer-local-map'? Anyone else interested in this besides me? Kind Regards, Miro signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [O] mixed orgmode installation
-Original Message- From: Suvayu Ali fatkasuvayu+li...@gmail.com To: emacs-orgmode@gnu.org Subject: Re: [O] mixed orgmode installation Date: Wed, 4 Sep 2013 17:07:49 +0200 On Wed, Sep 04, 2013 at 04:52:34PM +0200, Johannes Rainer wrote: hm, that's an option. based on your suggestion I created now my own little makefile to install the git org-mode and directly over-write the one located in /Applications/Emacs.app/Resources/lisp/org . actually, I first delete all files in this org directory and install the one from git into the dir again. This can actually cause difficult to diagnose problems sometimes. The simplest way to do it right is to setup your load-path early in your init file. To get an idea, you can take a look at my setup. https://github.com/suvayu/.emacs.d/blob/master/init.el Look at the first 18 lines; after this I can customise, load, do whatever I want with org. You will notice I load a kill-old-org.el. That line is experimental and optional, and you may skip it. Hope this helps, Very interesting thread. Being a novice, I grab the tgz snapshot, unarchive into a folder, and simply have that folder in the load-path early in .emacs. I don't 'make make install' so perhaps I am missing some things as a result. I just leave the old version Emacs-supplied Org as-is.
Re: [O] Superscript before character
On 7.9.2013, at 22:47, Rasmus ras...@gmx.us wrote: Carsten Dominik carsten.domi...@gmail.com writes: On 6.9.2013, at 20:03, Charles Berry ccbe...@ucsd.edu wrote: Roger Mason rmason at mun.ca writes: Hello, I'd like to create a superscript that preceeds a letter. I tried ^1Fred, ^1 Fred, ^{1}Fred and ^{1} Fred, to no avail. Can this be done in org (8.0.3)? If so how? [snip] \nbsp{}^{1}Fred Yes, nice. I also need this often. You can also write \nbsp^{1}Fred, a bit more compact. I am wondering if we could come up with something even more compact though. I often have to write names of isotopes, for example \nbsp^{13}CO, and I do find that cumbersome. I don't use prescripts, but perhaps a macro could be used? #+BEGIN_SRC org #+LATEX_HEADER: \usepackage{mhchem} #+MACRO: ce $\ce{$1}$ {{{ce(^{227}_{90}Th+)}}} *bold* #+END_SRC Yes, this will do the trick for LaTeX, but {{{...}}} is still not pretty. Yes, maybe I should think more about the cechem package - did not know it, and it looks good. Thanks! - Carsten \ce Further flexibility is probably possible using ob-latex. –Rasmus -- Don't panic!!! signature.asc Description: Message signed with OpenPGP using GPGMail
Re: [O] [PATCH] Add Microsoft Outlook Support to org-mac-link
Hi Mike, we don't need papers for contrib stuff - but let me ask anyway: Do you have signed FSF papers? Thanks - Carsten On 7.9.2013, at 22:29, Mike McLean mike.mcl...@pobox.com wrote: * contrib/lisp/org-mac-link.el: Add “o”utlook to capture descriptors along with functions to capture links from Microsoft Outlook for Mac. The functions here replicate those that capture from Mail.app. --- contrib/lisp/org-mac-link.el | 140 +++ 1 file changed, 140 insertions(+) diff --git a/contrib/lisp/org-mac-link.el b/contrib/lisp/org-mac-link.el index 59b88d2..2ff6711 100644 --- a/contrib/lisp/org-mac-link.el +++ b/contrib/lisp/org-mac-link.el @@ -13,6 +13,11 @@ ;; Version: 1.1 ;; Keywords: org, mac, hyperlink ;; +;; Version: 1.2 +;; Keywords: outlook +;; Author: Mike McLean mike.mcl...@pobox.com +;; Add support for Microsoft Outlook for Mac as Org mode links +;; ;; This file is not part of GNU Emacs. ;; ;; This program is free software; you can redistribute it and/or modify @@ -51,6 +56,7 @@ ;; Google Chrome.app - Grab the url of the frontmost tab in the frontmost window ;; Together.app - Grab links to the selected items in the library list ;; Skim.app - Grab a link to the selected page in the topmost pdf document +;; Microsoft Outlook.app - Grab a link to the selected message in the message list ;; ;; ;; Installation: @@ -97,6 +103,12 @@ applications and inserting them in org documents :group 'org-mac-link :type 'boolean) +(defcustom org-mac-grab-Outlook-app-p t + Enable menu option [o]utlook to grab links from Microsoft Outlook.app + :tag Grab Microsoft Outlook.app links + :group 'org-mac-link + :type 'boolean) + (defcustom org-mac-grab-Addressbook-app-p t Enable menu option [a]ddressbook to grab links from AddressBook.app :tag Grab AddressBook.app links @@ -179,6 +191,7 @@ applications and inserting them in org documents (interactive) (let* ((descriptors `((F inder org-mac-finder-insert-selected ,org-mac-grab-Finder-app-p) (m ail org-mac-message-insert-selected ,org-mac-grab-Mail-app-p) +(o utlook org-mac-outlook-message-insert-selected ,org-mac-grab-Outlook-app-p) (a ddressbook org-mac-addressbook-insert-selected ,org-mac-grab-Addressbook-app-p) (s afari org-mac-safari-insert-frontmost-url ,org-mac-grab-Safari-app-p) (f irefox org-mac-firefox-insert-frontmost-url ,org-mac-grab-Firefox-app-p) @@ -574,6 +587,133 @@ applications and inserting them in org documents ;; ;; +;; Handle links from Microsoft Outlook.app +;; + +(org-add-link-type mac-outlook 'org-mac-outlook-message-open) + +(defun org-mac-outlook-message-open (msgid) + Open a message in outlook + (let* ((record-id-string (format mdfind com_microsoft_outlook_recordID==%s msgid)) + (found-message (replace-regexp-in-string \n$ + (shell-command-to-string record-id-string +(if (string= found-message ) + (message org-mac-link: error could not find Outlook message %s (substring-no-properties msgid)) + (shell-command (format open \`mdfind com_microsoft_outlook_recordID==%s`\ msgid) + +(defun org-as-get-selected-outlook-mail () + AppleScript to create links to selected messages in Microsoft Outlook.app. + (do-applescript + (concat +tell application \Microsoft Outlook\\n +set msgCount to count current messages\n +if (msgCount 1) then\n +return\n +end if\n +set theLinkList to {}\n +set theSelection to (get current messages)\n +repeat with theMessage in theSelection\n +set theID to id of theMessage as string\n +set theURL to \mac-outlook:\ theID\n +set theSubject to subject of theMessage\n +set theLink to theURL \::split::\ theSubject \\n\\n +copy theLink to end of theLinkList\n +end repeat\n +return theLinkList as string\n +end tell))) + +(defun org-sh-get-flagged-outlook-mail () + Shell commands to create links to flagged messages in Microsoft Outlook.app. + (mapconcat + (lambda (x) + (concat + mac-outlook: + (mapconcat + (lambda (y) y) + (split-string + (shell-command-to-string + (format mdls -raw -name com_microsoft_outlook_recordID -name kMDItemDisplayName \%s\ x)) + \000) + ::split::) + \n)) + (with-temp-buffer + (let ((coding-system-for-read (or file-name-coding-system 'utf-8)) +(coding-system-for-write 'utf-8)) + (shell-command + mdfind com_microsoft_outlook_flagged==1 + (current-buffer))) + (split-string + (buffer-string) \n t)) + )) + +(defun org-mac-outlook-message-get-links (optional select-or-flag) + Create links to the messages currently selected or flagged in Microsoft Outlook.app. +This will use AppleScript to
Re: [O] heading numbering in LaTeX export?
Peter Salazar cycleofs...@gmail.com writes: Thank you! That solution is very promising indeed. I see why it's quick and dirty though - it appears to be generation section numbers, but just making the numbers invisible, so that the headings are not flush with the left margin: http://i.imgur.com/G6drpmf.png Is there a solution to that, or is that just the way it is? Here is a cleaner way: #+LATEX_HEADER: \setcounter{secnumdepth}{0} #+LATEX_HEADER: \setcounter{tocdepth}{3} -- Nick
Re: [O] Index of cases
On 08/09/13 12:05, David Rogers wrote: Alan L Tyree alanty...@gmail.com writes: G'day, I am the author of a legal text of about 700 pages. I currently have the book in LaTeX using the memoir class. A couple of macros define special indexes for a Table of Cases and a Table of Statutes. I would like to move the whole thing to Org to make it easier for my editors who can be easily alarmed by the LaTeX markup. The LaTeX is overkill since I submit the manuscript to the publisher in a Word file. Is there a standard way to get, say, the table of cases? A typical case looks like this: Howell v Coupland (1874) LR 9 QB 462; (1876) 1 QBD 258 The Table of Cases needs to indicate where in the text the case is mentioned; reference to section numbers is OK. So, for example, in the Table of Cases, the above case appears as: Howell v Coupland (1874) LR 9 QB 462; (1876) 1 QBD 258 [15.16] [15.25] Presuming there is not a standard, I have considered the following procedure: - maintain a list of cases as I write; I already do this to ensure consistent citation of cases; - use links from the list of cases back into the manuscript to index the places where each case is mentioned in the text. Does this seem like a reasonable approach, or is there some obviously better way? I am an extreme novice at elisp but can handle some simple jobs. In one sense it would be nicer and more writer-friendly if the links went the other direction; that is, when you refer to a case within the manuscript, you would always tag it in a way that allows it to be automatically labelled with the section in which it occurs, and automatically placed into the index of cases for you. That's a work-saving ideal that I don't actually know how to achieve. (Further idealistic ramblings: if for example you were to add a new section between current sections 6 and 7, it would be nice for the labels in sections 7 through the end to update themselves wholesale without your needing to change each label individually.) I was thinking of linking back to the closest headline in the Manuscript. If it was a plain line, that is, one with no description, then it would be replaced in the Table of Cases with the number of the headline. Or so I understand from the Manual at section 4.2. But, if the TOC is a plain text file, then I'm not sure. If it is an org file, then following a link looks for matching headlines. Not sure what I am doing! Thanks for the input. Cheers, Alan -- Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: 04 2748 6206 sip:typh...@iptel.org
Re: [O] [PATCH] Add Microsoft Outlook Support to org-mac-link
Applied, thanks. - Carsten On 7.9.2013, at 22:29, Mike McLean mike.mcl...@pobox.com wrote: * contrib/lisp/org-mac-link.el: Add “o”utlook to capture descriptors along with functions to capture links from Microsoft Outlook for Mac. The functions here replicate those that capture from Mail.app. --- contrib/lisp/org-mac-link.el | 140 +++ 1 file changed, 140 insertions(+) diff --git a/contrib/lisp/org-mac-link.el b/contrib/lisp/org-mac-link.el index 59b88d2..2ff6711 100644 --- a/contrib/lisp/org-mac-link.el +++ b/contrib/lisp/org-mac-link.el @@ -13,6 +13,11 @@ ;; Version: 1.1 ;; Keywords: org, mac, hyperlink ;; +;; Version: 1.2 +;; Keywords: outlook +;; Author: Mike McLean mike.mcl...@pobox.com +;; Add support for Microsoft Outlook for Mac as Org mode links +;; ;; This file is not part of GNU Emacs. ;; ;; This program is free software; you can redistribute it and/or modify @@ -51,6 +56,7 @@ ;; Google Chrome.app - Grab the url of the frontmost tab in the frontmost window ;; Together.app - Grab links to the selected items in the library list ;; Skim.app - Grab a link to the selected page in the topmost pdf document +;; Microsoft Outlook.app - Grab a link to the selected message in the message list ;; ;; ;; Installation: @@ -97,6 +103,12 @@ applications and inserting them in org documents :group 'org-mac-link :type 'boolean) +(defcustom org-mac-grab-Outlook-app-p t + Enable menu option [o]utlook to grab links from Microsoft Outlook.app + :tag Grab Microsoft Outlook.app links + :group 'org-mac-link + :type 'boolean) + (defcustom org-mac-grab-Addressbook-app-p t Enable menu option [a]ddressbook to grab links from AddressBook.app :tag Grab AddressBook.app links @@ -179,6 +191,7 @@ applications and inserting them in org documents (interactive) (let* ((descriptors `((F inder org-mac-finder-insert-selected ,org-mac-grab-Finder-app-p) (m ail org-mac-message-insert-selected ,org-mac-grab-Mail-app-p) +(o utlook org-mac-outlook-message-insert-selected ,org-mac-grab-Outlook-app-p) (a ddressbook org-mac-addressbook-insert-selected ,org-mac-grab-Addressbook-app-p) (s afari org-mac-safari-insert-frontmost-url ,org-mac-grab-Safari-app-p) (f irefox org-mac-firefox-insert-frontmost-url ,org-mac-grab-Firefox-app-p) @@ -574,6 +587,133 @@ applications and inserting them in org documents ;; ;; +;; Handle links from Microsoft Outlook.app +;; + +(org-add-link-type mac-outlook 'org-mac-outlook-message-open) + +(defun org-mac-outlook-message-open (msgid) + Open a message in outlook + (let* ((record-id-string (format mdfind com_microsoft_outlook_recordID==%s msgid)) + (found-message (replace-regexp-in-string \n$ + (shell-command-to-string record-id-string +(if (string= found-message ) + (message org-mac-link: error could not find Outlook message %s (substring-no-properties msgid)) + (shell-command (format open \`mdfind com_microsoft_outlook_recordID==%s`\ msgid) + +(defun org-as-get-selected-outlook-mail () + AppleScript to create links to selected messages in Microsoft Outlook.app. + (do-applescript + (concat +tell application \Microsoft Outlook\\n +set msgCount to count current messages\n +if (msgCount 1) then\n +return\n +end if\n +set theLinkList to {}\n +set theSelection to (get current messages)\n +repeat with theMessage in theSelection\n +set theID to id of theMessage as string\n +set theURL to \mac-outlook:\ theID\n +set theSubject to subject of theMessage\n +set theLink to theURL \::split::\ theSubject \\n\\n +copy theLink to end of theLinkList\n +end repeat\n +return theLinkList as string\n +end tell))) + +(defun org-sh-get-flagged-outlook-mail () + Shell commands to create links to flagged messages in Microsoft Outlook.app. + (mapconcat + (lambda (x) + (concat + mac-outlook: + (mapconcat + (lambda (y) y) + (split-string + (shell-command-to-string + (format mdls -raw -name com_microsoft_outlook_recordID -name kMDItemDisplayName \%s\ x)) + \000) + ::split::) + \n)) + (with-temp-buffer + (let ((coding-system-for-read (or file-name-coding-system 'utf-8)) +(coding-system-for-write 'utf-8)) + (shell-command + mdfind com_microsoft_outlook_flagged==1 + (current-buffer))) + (split-string + (buffer-string) \n t)) + )) + +(defun org-mac-outlook-message-get-links (optional select-or-flag) + Create links to the messages currently selected or flagged in Microsoft Outlook.app. +This will use AppleScript to get the message-id and the subject of the +messages in Microsoft Outlook.app and make a link out