Re: [O] tricky odt export needs
Jambunathan K writes: The following message is a courtesy copy of an article that has been posted to gmane.emacs.orgmode as well. Christian Moe m...@christianmoe.com writes: You can do cross-references with ordinary links. Have a look at the manual section 4.2, Internal links. However, what you get out of the box is textual references to e.g. section headings, not page references. You can change that for each reference individually by right-clicking on them in LibreOffice. There should be a way to get page references by default, but off the cuff, I'm not sure how. I am interested in rolling out support for xref by pagenumbers. I would like to know what the standard or recommended practice is like. So, when one says I want pagenumbers for xref, what xref-es they have in mind. Do they mean ONE-or-SOME-or-ALL of a xref to outline headings, figure, table, source listings, formula etc. I don't know what recommended practice is would be. My own take on this is that all objects you mention are probably best left as xrefs to the section, figure etc. concerned, exported as section title, section number, figure number etc. as appropriate. On a different thread, however, I have suggested that xrefs to *dedicated link targets* should export as page numbers in ODT. (Or this should be made an option.) http://article.gmane.org/gmane.emacs.orgmode/79096 Nicolas Goaziou raised a couple of objections on that thread, as did you. I forgot to copy my reply to the list, and I think I partly misunderstood what Nicolas was saying, anyway. Nicolas raised a use case I'd forgotten about: Dedicated link targets in list items are currently exported as the item number. Nicolas suggested that item numbers are more useful than page numbers here, and he's probably right. But keeping this behavior would make my proposal more complex to implement and maintain. Nicolas also raised concerns over backend compatibility. However, I don't think this is a strong argument against introducing page number references. A page reference solution makes sense for paged media (ODT, LaTeX backends) but not for screen (HTML). Finally, it should also be considered to make page numbers the default for *non-numbered* headings: When headings are not numbered in export (#+options: num:nil), current ODT export outputs a cross-reference with a descriptive text equal to the heading text of the item the dedicated target is in. However, this seems to be fragile; as soon as you Update Fields in LibreOffice, the cross-reference collapses to an empty space. The other backends also seem to struggle with the case of xrefs to headings without heading numbering. Yours, Christian
Re: [O] Warning (initialization): Your `load-path' seems to contain your `.emacs.d' directory
Paul Harper harper.pau...@gmail.com writes: Warning (initialization): Your `load-path' seems to contain your `.emacs.d' directory: /home/username/.emacs.d/ This is likely to cause problems... Consider using a subdirectory instead, e.g.: /home/username/.emacs.d/lisp (I know nothing about starter kit) On a related note, this warning occurs with Emacs from bzr trunk. The problem surfaced in the help list. See http://permalink.gmane.org/gmane.emacs.help/94823
Re: [O] Reading calendars in org mode: what is the best solution?
Michael Strey mst...@strey.biz writes: Hi Alan, alan.schm...@polytechnique.org writes: [...] I would like to have a read-only version of my calendars in my org agenda. These calendars (10 of them) currently live in Zimbra and iCould, and I am accessing them both using the native Calendar application on OS X and on my (Android) phone. I've looked at what the options are, and I can find two of them: - convert ics files into org files (http://orgmode.org/worg/org-tutorials/org-google-sync.html) I'm using the scripts from Eric S. Fraga from the above link since several months and I'm very happy with them. The only drawback that I have noticed is, that the frequent messages ~Reverting buffer `gcal-termine.org'~ are sometimes in the way in Emacs' echo area. Thanks a lot. I'll try this approach then. I have found out how to get .ics files out of zimbra but I'm still looking for iCloud (I know how to export using the Calendar app on OS X, but it's not that easy to automate). Thanks again, Alan
[O] date next year
How can I set org-agenda-custom-commands so that I can get the tasks past a date in the coming year? Suppose I'm interested in things past next september. This (y Next year's appointments tags TIMESTAMP=\2014-09-01\) works alright as long as we are before that date but won't work anymore next october. I would have to modify my org config file each year. Is there a generic way to indicate next year? Thanks.
[O] [PATCH] Add ob-J.el
Hi all, Here's a patch to add babel support for J. I couldn't figure out how to make ob-J.elc a target for make, maybe someone can fix this. regards, Oleh From 0139af8534dc33911ed1a24a9702a156ae46c99d Mon Sep 17 00:00:00 2001 From: Oleh Krehel ohwoeo...@gmail.com Date: Fri, 20 Dec 2013 14:43:59 +0100 Subject: [PATCH] Add org-babel support for J. --- lisp/ob-J.el | 134 +++ 1 file changed, 134 insertions(+) create mode 100644 lisp/ob-J.el diff --git a/lisp/ob-J.el b/lisp/ob-J.el new file mode 100644 index 000..50c1a5a --- /dev/null +++ b/lisp/ob-J.el @@ -0,0 +1,134 @@ +;;; ob-J.el --- org-babel functions for J evaluation + +;; Copyright (C) 2011-2013 Free Software Foundation, Inc. + +;; Author: Oleh Krehel +;; Keywords: literate programming, reproducible research +;; Homepage: http://orgmode.org + +;; This file is part of GNU Emacs. + +;; GNU Emacs is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; GNU Emacs is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs. If not, see http://www.gnu.org/licenses/. + +;;; Commentary: + +;; Session interaction depends on `j-console'. + +;;; Code: +(require 'ob) +(require 'j-console) + +(defun org-babel-expand-body:J (body params optional processed-params) + Expand BODY according to PARAMS, return the expanded body. +PROCESSED-PARAMS isn't used yet. + (org-babel-J-interleave-echos-except-functions body)) + +(defun org-babel-J-interleave-echos (body) + Interleave echo'' between each source line of BODY. + (mapconcat #'identity (split-string body \n) \necho''\n)) + +(defun org-babel-J-interleave-echos-except-functions (body) + Interleave echo'' between source lines of BODY that aren't functions. + (if (string-match-m \\(?:^\\|\n\\)[^\n]*\\(?:1\\|2\\|3\\|4\\) : 0\n.*) body) + (let ((s1 (substring body 0 (match-beginning 0))) + (s2 (match-string 0 body)) + (s3 (substring body (match-end 0 + (concat + (org-babel-J-interleave-echos s1) + \necho''\n + s2 + (org-babel-J-interleave-echos-except-functions s3))) +(org-babel-J-interleave-echos body))) + +(defun org-babel-execute:J (body params) + Execute a block of J code BODY. +PARAMS are given by org-babel. +This function is called by `org-babel-execute-src-block' + (message executing J source code block) + (let* ((processed-params (org-babel-process-params params)) + (sessionp (cdr (assoc :session params))) + (session (org-babel-j-initiate-session sessionp)) + (vars (second processed-params)) + (result-params (third processed-params)) + (result-type (fourth processed-params)) + (full-body (org-babel-expand-body:J + body params processed-params)) + (tmp-script-file (org-babel-temp-file J-src))) +(org-babel-J-strip-whitespace + (if (string= sessionp none) + (progn + (with-temp-file tmp-script-file + (insert full-body)) + (org-babel-eval (format jconsole %s tmp-script-file) )) + (org-babel-J-eval-string full-body) + +(defun org-babel-J-eval-string (str) + Sends STR to the `j-console-cmd' session and exectues it. + (let ((session (j-console-ensure-session))) +(with-current-buffer (process-buffer session) + (goto-char (point-max)) + (insert (format \n%s\n str)) + (let ((beg (point))) + (comint-send-input) + (sit-for .1) + (buffer-substring-no-properties + beg (point-max)) + +(defun org-babel-J-strip-whitespace (str) + Remove whitespace from jconsole output STR. + (let ((strs (split-string str \n t)) + out cur s) +(while (setq s (pop strs)) + (if (string-match ^ *$ s) + (progn (push (nreverse cur) out) + (setq cur)) + (push s cur))) +(mapconcat #'org-babel-J-print-block + (delq nil (nreverse out)) + \n\n))) + +(defun org-babel-J-print-block (x) + Prettify jconsole output X. + (if (= 1 (length x)) + (obj-strip-leading-ws (car x)) +;; assume only first row is misaligned +(let ((n1 (obj-match-second-space (car x))) + (n2 (obj-match-second-space (cadr x + (setcar + x + (if (and n1 n2) + (substring (car x) (- n1 n2)) + (obj-strip-leading-ws (car x + (mapconcat #'identity x \n + +(defun obj-match-second-space (s) + Return position of second space in S or nil. + (and (string-match ^ *[^ ]+\\( \\) s) + (match-beginning 1))) + +(defun obj-strip-leading-ws (s) + String leading whitespace from S. + (and (string-match ^ *\\([^ ].*\\) s) + (match-string 1 s))) +
[O] escaping org commands
How does one escape something in a text that is an org-command eg I wanted to write Something It vanished from the export because its a link-target!
[O] [bug] Partially disable interpretation of subscripts
Hello, In order to be able to write names such as CODE_STATUT without STATUT being written in subscript, I'm using the {} value for the ^ option. --8---cut here---start-8--- #+TITLE: ECM Subscript #+OPTIONS: ^:{} * Underscores in text x_i + x^2 + x^{2} + x_{i} | Key | Value | |--+---| | CODE_STATUT | 1 | | CONTRAT\_DEBUT\_DATE | 2 | | CONTRAT_FIN_DATE | 3 | --8---cut here---end---8--- Though, doing so, - a_b is interpreted as subscript - a_{b} is left as is In a way, the opposite of what I'm expecting. Am I missing something? Best regards, Seb -- Sebastien Vauban
Re: [O] escaping org commands
Hello, Rustom Mody rustompm...@gmail.com writes: How does one escape something in a text that is an org-command eg I wanted to write Something It vanished from the export because its a link-target! You can customize `org-activate-links' so that radio links are not activated -- not tested, but my assumption is that the exporter should handle this fine. There is also `org-export-filter-radio-target-functions'. HTH, -- Bastien
Re: [O] [PATCH] Add ob-J.el
Hi Oleh, Oleh ohwoeo...@gmail.com writes: Here's a patch to add babel support for J. Thanks. Are you a FSF-signed contributor? We cannot include this in Org's core without your copyright assignment, let me know. I couldn't figure out how to make ob-J.elc a target for make, maybe someone can fix this. No need to create a specific target. Some comments on the code below: From 0139af8534dc33911ed1a24a9702a156ae46c99d Mon Sep 17 00:00:00 2001 From: Oleh Krehel ohwoeo...@gmail.com Date: Fri, 20 Dec 2013 14:43:59 +0100 Subject: [PATCH] Add org-babel support for J. --- lisp/ob-J.el | 134 +++ 1 file changed, 134 insertions(+) create mode 100644 lisp/ob-J.el diff --git a/lisp/ob-J.el b/lisp/ob-J.el new file mode 100644 index 000..50c1a5a --- /dev/null +++ b/lisp/ob-J.el @@ -0,0 +1,134 @@ +;;; ob-J.el --- org-babel functions for J evaluation + +;; Copyright (C) 2011-2013 Free Software Foundation, Inc. + +;; Author: Oleh Krehel +;; Keywords: literate programming, reproducible research +;; Homepage: http://orgmode.org + +;; This file is part of GNU Emacs. That's for Org's core (the lisp/ directory) but we can add ob-J.el in contrib/lisp/ without the copyright assignment. + (mapconcat #'identity (split-string body \n) \necho''\n)) ^ (mapconcat 'identity ...) is fine. +(defun org-babel-J-strip-whitespace (str) +(defun obj-strip-leading-ws (s) Maybe you can use org-trim here. +;;; ob-J.el ends here Thanks for this contribution! -- Bastien
Re: [O] escaping org commands
On Fri, Dec 20, 2013 at 9:37 PM, Bastien b...@gnu.org wrote: Hello, Rustom Mody rustompm...@gmail.com writes: How does one escape something in a text that is an org-command eg I wanted to write Something It vanished from the export because its a link-target! You can customize `org-activate-links' so that radio links are not activated -- not tested, but my assumption is that the exporter should handle this fine. There is also `org-export-filter-radio-target-functions'. HTH, Thanks Bastien that will work in this case However I am also looking for something more generic: When there is something in my document which normally looks like an org command, is there any generic way of saying This particular command-like thing is not a command eg in C a backslash in strings (and in some cases a %) is an escape character Is there no such general (set of) concepts for org? Rusi -- http://www.the-magus.in http://blog.languager.org
Re: [O] [PATCH] Add ob-J.el
Applied, Thanks! I've played with APL but never seriously, however I can see it being a perfect tool for manipulating Org-mode tables. If you have time to put some documentation up on Worg as a new [1] linked from [2] that'd be great. I added ob-J to the org-babel-load-languages customization variable and it is now compiling with make. Best, Oleh ohwoeo...@gmail.com writes: Hi all, Here's a patch to add babel support for J. I couldn't figure out how to make ob-J.elc a target for make, maybe someone can fix this. regards, Oleh From 0139af8534dc33911ed1a24a9702a156ae46c99d Mon Sep 17 00:00:00 2001 From: Oleh Krehel ohwoeo...@gmail.com Date: Fri, 20 Dec 2013 14:43:59 +0100 Subject: [PATCH] Add org-babel support for J. --- lisp/ob-J.el | 134 +++ 1 file changed, 134 insertions(+) create mode 100644 lisp/ob-J.el diff --git a/lisp/ob-J.el b/lisp/ob-J.el new file mode 100644 index 000..50c1a5a --- /dev/null +++ b/lisp/ob-J.el @@ -0,0 +1,134 @@ +;;; ob-J.el --- org-babel functions for J evaluation + +;; Copyright (C) 2011-2013 Free Software Foundation, Inc. + +;; Author: Oleh Krehel +;; Keywords: literate programming, reproducible research +;; Homepage: http://orgmode.org + +;; This file is part of GNU Emacs. + +;; GNU Emacs is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; GNU Emacs is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs. If not, see http://www.gnu.org/licenses/. + +;;; Commentary: + +;; Session interaction depends on `j-console'. + +;;; Code: +(require 'ob) +(require 'j-console) + +(defun org-babel-expand-body:J (body params optional processed-params) + Expand BODY according to PARAMS, return the expanded body. +PROCESSED-PARAMS isn't used yet. + (org-babel-J-interleave-echos-except-functions body)) + +(defun org-babel-J-interleave-echos (body) + Interleave echo'' between each source line of BODY. + (mapconcat #'identity (split-string body \n) \necho''\n)) + +(defun org-babel-J-interleave-echos-except-functions (body) + Interleave echo'' between source lines of BODY that aren't functions. + (if (string-match-m \\(?:^\\|\n\\)[^\n]*\\(?:1\\|2\\|3\\|4\\) : 0\n.*) body) + (let ((s1 (substring body 0 (match-beginning 0))) + (s2 (match-string 0 body)) + (s3 (substring body (match-end 0 + (concat + (org-babel-J-interleave-echos s1) + \necho''\n + s2 + (org-babel-J-interleave-echos-except-functions s3))) +(org-babel-J-interleave-echos body))) + +(defun org-babel-execute:J (body params) + Execute a block of J code BODY. +PARAMS are given by org-babel. +This function is called by `org-babel-execute-src-block' + (message executing J source code block) + (let* ((processed-params (org-babel-process-params params)) + (sessionp (cdr (assoc :session params))) + (session (org-babel-j-initiate-session sessionp)) + (vars (second processed-params)) + (result-params (third processed-params)) + (result-type (fourth processed-params)) + (full-body (org-babel-expand-body:J + body params processed-params)) + (tmp-script-file (org-babel-temp-file J-src))) +(org-babel-J-strip-whitespace + (if (string= sessionp none) + (progn +(with-temp-file tmp-script-file + (insert full-body)) +(org-babel-eval (format jconsole %s tmp-script-file) )) + (org-babel-J-eval-string full-body) + +(defun org-babel-J-eval-string (str) + Sends STR to the `j-console-cmd' session and exectues it. + (let ((session (j-console-ensure-session))) +(with-current-buffer (process-buffer session) + (goto-char (point-max)) + (insert (format \n%s\n str)) + (let ((beg (point))) + (comint-send-input) + (sit-for .1) + (buffer-substring-no-properties + beg (point-max)) + +(defun org-babel-J-strip-whitespace (str) + Remove whitespace from jconsole output STR. + (let ((strs (split-string str \n t)) + out cur s) +(while (setq s (pop strs)) + (if (string-match ^ *$ s) + (progn (push (nreverse cur) out) + (setq cur)) + (push s cur))) +(mapconcat #'org-babel-J-print-block +(delq nil (nreverse out)) +\n\n))) + +(defun org-babel-J-print-block (x) + Prettify jconsole output X. + (if (= 1 (length x)) + (obj-strip-leading-ws
Re: [O] [PATCH] Add ob-J.el
Aloha Oleh, Oleh ohwoeo...@gmail.com writes: Hi all, Here's a patch to add babel support for J. I couldn't figure out how to make ob-J.elc a target for make, maybe someone can fix this. regards, Oleh Are you willing to draft documentation for ob-J.el? You can find a link for a documentation template here: http://orgmode.org/worg/org-contrib/babel/languages.html#develop I'm happy to proof-read and edit draft documentation, if you'd like. We're slowly catching up with the documentation for babel languages. Thanks for your contribution to Org mode! All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] date next year
+1y? On 12/20/13, Rene jl...@yahoo.com wrote: How can I set org-agenda-custom-commands so that I can get the tasks past a date in the coming year? Suppose I'm interested in things past next september. This (y Next year's appointments tags TIMESTAMP=\2014-09-01\) works alright as long as we are before that date but won't work anymore next october. I would have to modify my org config file each year. Is there a generic way to indicate next year? Thanks. -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. ANYBODY can get it. Denmark: free Karina Hansen NOW.
Re: [O] Exporting Agenda
On 19/12/2013 22:45, Nicolas Goaziou wrote: You may need to tweak `org-icalendar-use-scheduled' (for VEVENT) and `org-icalendar-include-todo' (for VTODO). Thanks. I have search a little bit on how to do this and found something that works for me. Regards Johann -- J.H. Spies - Tel. 021-982 2694 / 082 782 0336 / 021-808 4699(w) Posbus 4668, Tygervallei 7536 Submit yourselves therefore to God. Resist the devil, and he will flee from you. James 4:7
[O] latex packages savetrees is persisting in my org-mode exporter
I had been running Org mode version 7.9.3f, but I needed a feature only available in version 8, so I upgraded, by downloading from the Org website, and using comment characters in my .emacs file, like this: ;; Load org-mode ; (add-to-list 'load-path c:/Org/org-7.9.3f/lisp) ; (add-to-list 'load-path c:/Org/org-7.9.3f/contrib/lisp) (add-to-list 'load-path c:/Org/org-8.2.4/lisp) (add-to-list 'load-path c:/Org/org-8.2.4/contrib/lisp) (require 'org) Then I used it a few times to export a subtree from an org file, exporting to pdf, using a latex package called savetrees. I put this in the subtree I was exporting: ** Review of assessment system, including instructions for bubble sheet :PROPERTIES: :EXPORT_FILE_NAME: ReviewAssessmentSystemWithPreceptors-12-02-2013 :EXPORT_TITLE: Review of our system for assessing student's clinical performance :EXPORT_LATEX_OPTIONS: \usepackage{enumitem} :END: #+latex_header: \usepackage{savetrees} Now some features I need don't work--specifically, features from here: http://orgmode.org/worg/org-tutorials/org-meeting-tasks.html So I went back to Og 7.9.3f, or at least I thought I did, by changing my .emacs to this: ;; Load org-mode (add-to-list 'load-path c:/Org/org-7.9.3f/lisp) (add-to-list 'load-path c:/Org/org-7.9.3f/contrib/lisp) ; (add-to-list 'load-path c:/Org/org-8.2.4/lisp) ; (add-to-list 'load-path c:/Org/org-8.2.4/contrib/lisp) (require 'org) But now every time I export a different subtree of that same org file, a subtree that does not contain any mention of savetrees, to pdf, the savetrees package is still loaded and used. How do I stop it? Thanks. --Chris -- Christopher W. Ryan, MD, MS SUNY Upstate Medical University Clinical Campus at Binghamton 425 Robinson Street, Binghamton, NY 13904 cryanatbinghamtondotedu Once we recognize that we do not err out of laziness, stupidity, or evil intent, we can liberate ourselves from the impossible burden of trying to be permanently right. We can take seriously the proposition that we could be in error, without deeming ourselves idiotic or unworthy. [Karen Schulz, in Being Wrong: Adventures in the Margin of Error]
Re: [O] latex packages savetrees is persisting in my org-mode exporter
Christopher W. Ryan cr...@binghamton.edu writes: ... #+latex_header: \usepackage{savetrees} ... But now every time I export a different subtree of that same org file, a subtree that does not contain any mention of savetrees, to pdf, the savetrees package is still loaded and used. How do I stop it? Delete the #+latex_header line from the file: just because you placed it in a subtree does not make it subtree-local in scope. Nick
Re: [O] publishuing in html5
On 12/18/2013 05:04 AM, Catonano wrote: Nicolas, 2013/12/15 Nicolas Goaziou n.goaz...@gmail.com Hello, Catonano caton...@gmail.com writes: I made a temporary repository here https://github.com/humanitiesNerd/exploring-org-mode in case anyone wants to take a look In configuration.el you use :org-html-html5-fancy 1 but it should be :html-html5-fancy 1 Regards, -- Nicolas Goaziou thank you so much for your suggestion ! I tried but it still doesn't work. That is, this block #+ATTR_HTML: :controls controls :width 350 #+BEGIN_VIDEO #+HTML: source src=movie.mp4 type=video/mp4 #+HTML: source src=movie.ogg type=video/ogg Your browser does not support the video tag. #+END_VIDEO gets translated to div controls=controls width=350 class=video source src=movie.mp4 type=video/mp4 source src=movie.ogg type=video/ogg p Your browser does not support the video tag. /p /div Here is an example that works for me: --8---cut here---start-8--- #+HTML_DOCTYPE: html5 #+OPTIONS: html5-fancy:t #+ATTR_HTML: :controls controls :preload metadata : width 350 #+BEGIN_VIDEO #+BEGIN_HTML source src=video.webm / Your browser does not support the codevideo/code tag. #+END_HTML #+END_VIDEO #+ATTR_HTML: :controls controls :id aud-tag :preload metadata #+BEGIN_AUDIO #+BEGIN_HTML source src=audio.ogg / source src=audio.mp3 / Your browser does not support the codeaudio/code tag. #+END_HTML #+END_AUDIO --8---cut here---end---8--- Scott Randby As for my versions of Org-mode, Emacs and operating system, I'm gonna write about it in a minute Thanks again
Re: [O] latex packages savetrees is persisting in my org-mode exporter
Thanks! Very interesting. I would not have thought of that. Especially since the offending line of code appears in the org file after the subtree I am trying to export. Is there a better way to say #+latex_header: \usepackage{savetrees} in either org 7.9.3f or org 8.2.4? Like using EXPORT_LATEX_OPTIONS under PROPERTIES, or something like that? --Chris Christopher W. Ryan, MD, MS SUNY Upstate Medical University Clinical Campus at Binghamton 425 Robinson Street, Binghamton, NY 13904 cryanatbinghamtondotedu Once we recognize that we do not err out of laziness, stupidity, or evil intent, we can liberate ourselves from the impossible burden of trying to be permanently right. We can take seriously the proposition that we could be in error, without deeming ourselves idiotic or unworthy. [Karen Schulz, in Being Wrong: Adventures in the Margin of Error] Nick Dokos wrote: Christopher W. Ryan cr...@binghamton.edu writes: ... #+latex_header: \usepackage{savetrees} ... But now every time I export a different subtree of that same org file, a subtree that does not contain any mention of savetrees, to pdf, the savetrees package is still loaded and used. How do I stop it? Delete the #+latex_header line from the file: just because you placed it in a subtree does not make it subtree-local in scope. Nick
Re: [O] latex packages savetrees is persisting in my org-mode exporter
Christopher W. Ryan cr...@binghamton.edu writes: Nick Dokos wrote: Christopher W. Ryan cr...@binghamton.edu writes: ... #+latex_header: \usepackage{savetrees} ... But now every time I export a different subtree of that same org file, a subtree that does not contain any mention of savetrees, to pdf, the savetrees package is still loaded and used. How do I stop it? Delete the #+latex_header line from the file: just because you placed it in a subtree does not make it subtree-local in scope. Thanks! Very interesting. I would not have thought of that. Especially since the offending line of code appears in the org file after the subtree I am trying to export. Is there a better way to say #+latex_header: \usepackage{savetrees} in either org 7.9.3f or org 8.2.4? Like using EXPORT_LATEX_OPTIONS under PROPERTIES, or something like that? I think so: you have an EXPORT_LATEX_OPTIONS property in your original example, so if that works... Nick PS. I didn't test either this or the previous pronouncement, so caveat emptor.
Re: [O] [bug] Partially disable interpretation of subscripts
Hello, Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: In order to be able to write names such as CODE_STATUT without STATUT being written in subscript, I'm using the {} value for the ^ option. #+TITLE: ECM Subscript #+OPTIONS: ^:{} * Underscores in text x_i + x^2 + x^{2} + x_{i} | Key | Value | |--+---| | CODE_STATUT | 1 | | CONTRAT\_DEBUT\_DATE | 2 | | CONTRAT_FIN_DATE | 3 | Though, doing so, - a_b is interpreted as subscript - a_{b} is left as is In a way, the opposite of what I'm expecting. Am I missing something? No, I forgot a `not' in a recent patch. This should now be fixed. Thank you for reporting it. Regards, -- Nicolas Goaziou
Re: [O] Reading calendars in org mode: what is the best solution?
On Thu, Dec 19 2013, Alan Schmitt wrote: I would like to have a read-only version of my calendars in my org agenda. These calendars (10 of them) currently live in Zimbra and iCould, and I am accessing them both using the native Calendar application on OS X and on my (Android) phone. I've looked at what the options are, and I can find two of them: - convert ics files into org files (http://orgmode.org/worg/org-tutorials/org-google-sync.html) - set up a synchronization using caldav (https://github.com/dengste/org-caldav) Have you seen https://github.com/asoroa/ical2org.py I started using this about a week ago, and like it. One strength compared to the worg entry is that it handles (some) recurring events. My approach is to download the .ics file and then run this python script. There is also a ruby script: https://github.com/simonthum/ical2org but I couldn't get this to work correctly with British Summer Time, despite help from the author. (The python script seems to handle the timezones okay for me.) Stephen
Re: [O] Bug: HTML Export doesn't handle internal link with spaces [8.0.7 (8.0.7-6-g13cb28-elpa @ /home/jbalint/.emacs.d/elpa/org-20130812/)]
Hello, Jess Balint jbal...@gmail.com writes: I've generated a link to a headline with `org-store-link' and `org-insert-link'. It's rendered into the Org file like so: [[*Headline%20with%Spaces][Headline with Spaces]] [...] The problem is in `org-export-resolve-fuzzy-link' which get's the path directly from the link: (let* ((raw-path (org-element-property :path link)) But at this point it has %20 in it which causes a problem when splitting it: ;; Split PATH at white spaces so matches are space ;; insensitive. (path (org-split-string (if match-title-p (substring raw-path 1) raw-path))) Thank you for the report. This bug exists because `org-insert-link' blindly url-hexifies links, but nothing will unhexify it before it reaches an export back-end. This is difficult to solve, because if you unhexify it, the very same bug will occur on the other side (i.e. links you paste without using `org-insert-link', which you don't want to unhexify). IMO, `org-insert-link' shouldn't hexify links in all situations (if at all). Anyway, I can't think of any satisfactory solution at the moment. Regards, -- Nicolas Goaziou
Re: [O] ox-bibtex: Allow for missing bibtex style
Hello, Julian Gehring julian.gehr...@gmail.com writes: Currently, it is required to specify a bibtex style when defining the bibliography: #+BIBLIOGRAPHY: bibfilebasename stylename optional-options Would it be reasonable to allow for a missing 'stylename'? Such that if 'stylename' is missing or 'nil', that: Due to BIBLIOGRAPHY syntax, it may be easier to set it to nil instead of removing it completely. a) 'stylename' is passed with the '-s' argument to 'bibtex2html' and b) the line '\bibliographystyle{stylename}' is not added to the latex output? Then, the bibtex style can be overwritten by default settings of the latex document. At the moment, this results in a warning about two conflicting styles. Would be happy to hear your opinion about this suggestion. It sounds interesting. Would you want to provide a patch for that? Regards, -- Nicolas Goaziou
[O] Force blank line above level 1 heading
Hi, Is there a way to always force a blank line above a level 1 heading. When I enter them manually, orgmode somethings things it belongs to the level 2 (or so) item above it and hides it. So it should look like this: * eeny ** meeny ** miny next line will get swallowed sometimes; also it should be added by default * moe ** catch ** ... Thanks, Sebastian
Re: [O] [PATCH] Table continuation strings
Hi, At Wed, 30 Oct 2013 11:15:36 +0100, Nicolas Goaziou wrote: t...@tsdye.com (Thomas S. Dye) writes: Patch includes table continuation strings for several languages. Translations all from the internet. Caveat emptor. Applied. Thank you. + (ja :utf-8 前ページから続く) [...] + (ja :utf-8 次ページに続く) These will not be very helpful, though, as `latex' back-end (the only one to use this string so far) relies on :latex or :default properties, never on :utf-8. I'm not a latex user but a Japanese speaker who'd like to use those translation tables with other backends. The thing I don't understand is the reason all Japanese entries have `:utf-8'. Would you kindly enlighten me the relationship among the followings: - transtion coding key (ie :utf-8, :default, :html) - your current buffer coding system - `buffer-file-coding-system' and friends BTW, 前ページから続く should be 前ページからの続き Thanks, -- yashi
Re: [O] Insert a heading in every sibling
Hi, At Mon, 28 Oct 2013 06:13:21 +0500, Scot Becker wrote: I'm using org-mode to keep track of student grades. How can I easily add a bunch of identical headings at a certain level in my tree? Specifically,I have a L2 heading for each student, and I want to put a node (heading, with some properties) under each L2 student heading for that class. It is not a org solution but I'd recommend using multiple cursor by Magnar Sveen of Emacs rocks. - http://emacsrocks.com/e13.html - https://github.com/magnars/multiple-cursors.el * Class One ** Sarah Adams *** Essay One Here is my comment to the student on their essay. The grade/mark itself will be stored as a property or priority. [...] In the case of above, do the following after properly installed mc: 1. mark `Essay One' 2. call `mc/mark-all-like-this' 3. C-Enter 4. Type 'Essay Two' Viola! Now you have new `Essay Two' entries even if you already have one. ;-p My two cents, -- yashi
Re: [O] tricky odt export needs
I will respond to other items as I visit them. Meanwhile, I would like to add the following note for discussion. Christian Moe m...@christianmoe.com writes: When headings are not numbered in export (#+options: num:nil), current ODT export outputs a cross-reference with a descriptive text equal to the heading text of the item the dedicated target is in. When we are typesetting a xref in a backend - I can authoritatively speak for the ODT backend - we need not be resticted to ONE-OF but can have ANY-COMBINATION-OF descriptors. What I mean is this: In the pdf version of Emacs info manuals one typically sees all three of a Section number AND a Description AND a Page number, something like: See Section 3.1 [Tropical Storms], page 24. In Org context, I am wondering whether there is such a need. http://www.gnu.org/software/texinfo/manual/texinfo/html_node/Reference-Syntax.html#Reference-Syntax (There are some variations on the xref markup to restrict whether te See is present or not, capitalized or not) http://www.gnu.org/software/texinfo/manual/texinfo/html_node/Cross-Reference-Commands.html#Cross-Reference-Commands
Re: [O] Exporting Agenda
Hi Johann, Johann Spies johann.sp...@gmail.com writes: On 19/12/2013 22:45, Nicolas Goaziou wrote: You may need to tweak `org-icalendar-use-scheduled' (for VEVENT) and `org-icalendar-include-todo' (for VTODO). Thanks. I have search a little bit on how to do this and found something that works for me. If the solution is generic enough, maybe it's worth sharing it on the list? Thanks in advance! -- Bastien