[Orgmode] Re: #+call ?
On Oct 31, 2010, at 7:40 PM, Noorul Islam K M wrote: Thomas S. Dye t...@tsdye.com writes: Aloha all, I'm expecting to see the file bar.pdf output. #+srcname: single-date #+begin_src R :results output :file foo.pdf library(ggplot2) z - read.csv(file = x) g - ggplot(z, aes(x=1950 + cal.BP, y=Posterior.probability)) g + geom_bar(stat='identity') + xlab(Year AD) + ylab(Probability) #+end_src #+call: single-date(x=alpha-2.csv) :file bar.pdf :height 4 #+results: single-date(x=alpha-2.csv) [[file:foo.pdf]] Also, the :height header argument doesn't have any effect. I want the single-date source block to be a general function that I can call several times from an Org-mode file that I hope to distribute as a piece of reproducible research. There will be separate #+calls for each of the graphs in the paper. Apologies in advance if the answer is obvious. I'm using Org-mode version 7.02trans (release_7.02.37.g52fb) I think there was similar discussion already in this list. Take a look at http://www.mail-archive.com/emacs-orgmode@gnu.org/msg32516.html Thanks and Regards Noorul Aloha Noorul, There is a similar question, but no answer that I can find. Did you see an answer there? All the best, Tom ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: #+call ?
Replying to his own message: I found Eric's reply. Sorry for the noise. All the best, Tom On Oct 31, 2010, at 8:21 PM, Thomas S. Dye wrote: On Oct 31, 2010, at 7:40 PM, Noorul Islam K M wrote: Thomas S. Dye t...@tsdye.com writes: Aloha all, I'm expecting to see the file bar.pdf output. #+srcname: single-date #+begin_src R :results output :file foo.pdf library(ggplot2) z - read.csv(file = x) g - ggplot(z, aes(x=1950 + cal.BP, y=Posterior.probability)) g + geom_bar(stat='identity') + xlab(Year AD) + ylab(Probability) #+end_src #+call: single-date(x=alpha-2.csv) :file bar.pdf :height 4 #+results: single-date(x=alpha-2.csv) [[file:foo.pdf]] Also, the :height header argument doesn't have any effect. I want the single-date source block to be a general function that I can call several times from an Org-mode file that I hope to distribute as a piece of reproducible research. There will be separate #+calls for each of the graphs in the paper. Apologies in advance if the answer is obvious. I'm using Org-mode version 7.02trans (release_7.02.37.g52fb) I think there was similar discussion already in this list. Take a look at http://www.mail-archive.com/emacs-orgmode@gnu.org/msg32516.html Thanks and Regards Noorul Aloha Noorul, There is a similar question, but no answer that I can find. Did you see an answer there? All the best, Tom ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-export-string
On Sun, Oct 31, 2010 at 08:14:27AM -0600, Eric Schulte wrote: It should be possible to use edebug to locate the source of this prompt. Evaluate the definition of `org-export-string' with a prefix argument (i.e. C-u C-M-x). Then when you call `org-export-string' you can step through all S-expressions in the definition, until you reach the one which is generating the prompt. Then evaluate *that* function with edebug and recurse. This should lead you to the prompt and from there we should be able to figure out how to avoid it. Best -- Eric On Sun, Oct 31, 2010 at 12:15 PM, Aidan Gauland aidal...@no8wireless.co.nz wrote: Evaluating (org-export-string plain plain *bold* plain html) prompts me (in the minibuffer) with... File to save in: /tmp/ The prompt came up when evaluating (run-hooks 'org-export-html-after-blockquotes-hook) (which is in the function org-export-as-html). I had the following export hook that was a workaround for a problem with footnotes (which I need to try and fix when I get a chance). Removing this hook restores sane behaviour (i.e. no prompt). (add-hook 'org-export-html-final-hook 'gio/replace-square-brackets) (add-hook 'org-export-ascii-final-hook 'gio/replace-square-brackets) (defun gio/replace-square-brackets () Replace #91; with [ and #93; with ] (interactive) (setq a #91;) ; use \[ for LaTeX export (setq b #93;) ; use \] for LaTeX export (setq a1 [) (setq b1 ]) (ignore-errors (goto-char 1) (setq p (point)) (while ( p (point-max)) (re-search-forward a nil nil) (replace-match a1) (setq p (point)) ) ) (ignore-errors (goto-char 1) (setq p (point)) (while ( p (point-max)) (re-search-forward b nil nil) (replace-match b1) (setq p (point)) ) ) (save-buffer)) --Aidan signature.asc Description: Digital signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [babel] ob-octave requires octave 3.2 or extra package
Dan Davison dandavis...@gmail.com writes: Eric S Fraga ucec...@ucl.ac.uk writes: Hello, Just a comment on requirements: ob-octave assumes the presence of the =dlmwrite= function. This is available as standard with octave 3.2 but requires an extra package (=octave-io=) if you have an older version (3.0.x). All of this is for Debian systems; I cannot speak about others of course. Hi Eric, Thanks. When dlmwrite is missing, is a helpful error message given? (When not using a session, if an error message is written to stdout, then it should pop up in a dedicated babel error message buffer). yes, an error message is generated which is basically helpful enough. However, it took a while for me to realise that the error was referring to the octave code generated by babel to generate the output file (i.e. the message refers to line 2 and I had no line 2 in my octave code as it consisted of one expression). If the error message is not helpful, do you think we should programatically test for the function in octave code and display our own error message when it is absent? I think this would be a good idea. However, given that dlmwrite is available by default in octave 3.2, the /stable/ version and one which will be the default in Debian stable soon, it may simply be a case of extending the babel documentation to highlight this. If you have time to add relevant notes to Worg:org-contrib/babel/languages/ob-doc-octave-matlab.org that would be much appreciated. Dan I'll put it on my todo list... don't have much time at the moment but hopefully next week I will. -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Extended-period events in agenda views
Hello all, I have been a happy org-mode user for a while, using more and more of org-mode for more and more things. By now I have completely replaced my use of iCal (on the Mac) by the org-mode agenda, with no regrets. However, there is one feature that I am still trying to get into my agenda view, but I didn't find a way to do it yet. There are a couple of long-lasting events that I would like to show in my agenda view. A typical example would be school vacation periods, but there are others: absences of a colleague, availability of some instrument, etc, Their common feature is that they can last very long (several weeks) and that they don't really occupy my agenda. I just want to know when planning something if a given day is in period X or not. So I'd like to see at a glance (using a specific font, color, one- letter prefix etc.) if a day falls into a certain predefined period. Simply adding a corresponding event to my agenda leads to visual clutter: it gets marked on every single day of the period. Is there any way to get what I am looking for? Thanks in advance, Konrad. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Installing Orgmode through ELPA-tarball
Just pushed a FAQ on installing Orgmode through ELPA-tarballs to Worg.. Here is a dump for the sake of record. ** What is the easiest way to install latest version of Orgmode? The easiest way to install or update Orgmode is through Emacs' package manager. Orgmode is distributed as a ELPA-tar from [[http://elpa.gnu.org/packages/][GNU Emacs Lisp Package Archive]] as well as from [[http://orgmode.org/pkg/daily/][Orgmode Emacs Lisp Archive]]. Steps for adding Orgmode as a package archive: 1. Add Orgmode as a package archive. This can be done in two ways. 1. Use =M-x customize-variable RET package-archives= 2. Add the following line to your =.emacs= and reload Emacs. #+begin_src emacs-lisp (push '(Orgmode . http://orgmode.org/pkg/daily/;) package-archives) #+end_src 2. Use the Emacs package manager's =M-x list-packages= to browse and install the latest version. ** How do I install Emacs package manager? If you are running Emacs-24 or find the command =M-x list-packages= available you already have the package manager installed. Steps for installing package manager: 1. Download the latest package manager - [[http://repo.or.cz/w/emacs.git/blob_plain/HEAD:/lisp/emacs-lisp/package.el][package.el]]. 2. Add the following to your =.emacs= and reload Emacs. #+begin_src emacs-lisp ;; change ~/elisp/ as appropiate (setq load-path (cons ~/elisp load-path)) (package-initialize) #+end_src ** I don't see Orgmode as an installation option in Package Manager Menu? Emacs Package Manager is a very recent addition to Emacs. Work is under way to have have Orgmode seamlessly integrate with Emacs' Package Manager. As a result, it will be some time before the Orgmode packages are available and usable from either GNU or Orgmode package archives. In the meanwhile, you can install Orgmode via package manager through ELPA-compatible tar. Refer [[Installing from ELPA-tar][this FAQ entry]] for more information. ** How do I install Orgmode from a ELPA-compatible tarball? # Installing from ELPA-tar Orgmode is distributed as an ELPA-compatible tar which can be used in conjunction with Emacs' package manager. 1. If you are already running Orgmode, note the current version reported by M-x org-version. 2. Download the latest tarball from [[http://orgmode.org/pkg/daily/][Orgmode repo]]. 3. Do =M-x package-install-file=. When prompted for =Package file name=, point it to .tar file downloaded in step 2. You will now see Package Manager compiling the files and installing it. 4. Reload emacs. This step is very important. 5. Note the version of the new installation using M-x org-version. If the new and old versions are different, the installation is done and you are all set to enjoy the updated Orgmode. Otherwise skip to step 6. 6. Review you load-path using =C-h v load-path=. Most likely that your old installation path takes precedence over the path chosen by package manager (which is typically =~/.emacs.d/elpa/...=). Fix this anamoly by moving =(package-initialize)= line in .emacs to a more appropriate location. *** Additional Note on =org-install.el= Functionality of Orgmode's =org-install.el= is supplanted by Package Manager's =org-autoloads.el=. Since Package Manager autoloads Orgmode for you, the following line =(require 'org-install)= in your =.emacs= is no longer required and can be safely removed. Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Installing Orgmode through ELPA-tarball
** I don't see Orgmode as an installation option in Package Manager Menu? Emacs Package Manager is a very recent addition to Emacs. Work is under way to have have Orgmode seamlessly integrate with Emacs' Package Manager. As a result, it will be some time before the Orgmode packages are available and usable from either GNU or Orgmode package archives. In the meanwhile, you can install Orgmode via package manager through ELPA-compatible tar. Refer [[Installing from ELPA-tar][this FAQ entry]] for more information. For the sake of clarification, http://orgmode.org/pkg/daily/ doesn't provide the 'archive-contents' file for the tarballs it distributes. As a result, the package manager wouldn't know what tarballs are available for installation from the repo. Absence of 'archive-contents' file is a minor glitch and will be addressed in due course of time. Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: markup for small caps ?
Le dim. 31/10/10 (01:05:02 -0400), Bernt Hansen a écrit : Sébastien Mengin sebastien-men...@edilibre.net writes: I think I'd like to keep going with the customized markup I mentionned in another question posted earlier today : ¶text¶, that would export I think these markup characters are inconvenient to enter (how do I generate those?) Wouldn't it be better to pick something easier to type on a standard keyboard? Maybe =v=text=v= or something else. We already have a =text= markup so maybe =v= isn't a good choice either. I don't know either. I chose ¶ here because I wanted to avoid the risk of using an already existing symbol, but it could be anything, in fact. -- Sébastien Mengin Édition et logiciels libres Mise en page avec LaTeX http://edilibre.net tél. : 06 84 88 49 17 jid. : sebastien-men...@jabber.org ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Installing Orgmode through ELPA-tarball
On Mon, Nov 1, 2010 at 8:05 AM, Jambunathan K kjambunat...@gmail.com wrote: ** What is the easiest way to install latest version of Orgmode? That's all good information to have, but I'm not sure it's the easiest way to install the latest version. It may eventually be easy, but the existing steps look relatively cumbersome. Using git seems like the easiest way to get the latest version with the advantage that you can pick the version you want (latest up-to-the-minute, latest release, or some other release). - Tom ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] bug: org-narrow-to-subtree
Hi, I hit a minor bug with the function org-narrow-to-subtree. When I narrow to a headline (subtree with just the headline) present at the end of a file, the last character of the headline isn't present in the narrowed region. [file1.org and file2.org shown at the end of the message are examples] I am attaching a possible patch for the same, but I don't think that is the cleanest way to handle it. Hope it'll help some one else to fix it in a better way. Thanks, Puneeth file1.org - * Hello * World * TestEOF - file2.org -- * Test *** World *** Hello 1EOF -- diff --git a/lisp/org.el b/lisp/org.el index 59caf41..06b9f9e 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -7501,7 +7501,7 @@ If yes, remember the marker and the distance to BEG. (narrow-to-region (progn (org-back-to-heading t) (point)) (progn (org-end-of-subtree t t) - (if (org-on-heading-p) (backward-char 1)) + (if (and (org-on-heading-p) (org-at-regexp-p *)) (backward-char 1)) (point)) (eval-when-compile ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Sorting table columns (*not* content)
From the manual: [1] , | C-c C-x M-w | Copy a rectangular region from a table to a special clipboard. Point and mark determine edge fields of the rectangle. If there is no active region, copy just the current field. The process ignores horizontal separator lines. | C-c C-x C-w | Copy a rectangular region from a table to a special clipboard, and blank all fields in the rectangle. So this is the “cut” operation. | C-c C-x C-y | Paste a rectangular region into a table. The upper left corner ends up in the current field. All involved fields will be overwritten. If the rectangle does not fit into the present table, the table is enlarged as needed. The process ignores horizontal separator lines. ` Hope this helps, Jeff * Footnotes [1] http://orgmode.org/org.html#Built_002din-table-editor -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [REQUEST] Calendar-view (was: Extended-period events in agenda views)
On Mon, Nov 1, 2010 at 7:32 AM, Konrad Hinsen konrad.hin...@fastmail.net wrote: Hello all, I have been a happy org-mode user for a while, using more and more of org-mode for more and more things. By now I have completely replaced my use of iCal (on the Mac) by the org-mode agenda, with no regrets. However, there is one feature that I am still trying to get into my agenda view, but I didn't find a way to do it yet. There are a couple of long-lasting events that I would like to show in my agenda view. A typical example would be school vacation periods, but there are others: absences of a colleague, availability of some instrument, etc, Their common feature is that they can last very long (several weeks) and that they don't really occupy my agenda. I just want to know when planning something if a given day is in period X or not. So I'd like to see at a glance (using a specific font, color, one-letter prefix etc.) if a day falls into a certain predefined period. Simply adding a corresponding event to my agenda leads to visual clutter: it gets marked on every single day of the period. Is there any way to get what I am looking for? +1 for this feature. Also, I think our desire for such a feature could be met with a calendar-view, perhaps re-using some org-table or org-columns source? I'm envisioning I would very much like something akin to an ASCII 4-day calendar view (like the default Google Calendar view). Even if we could line up four days' agenda views horizontally (with an appointment-style timeline), I would find this useful. -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Problem with 7.02 - org-capture-templates not set from init file
Since moving from org-version 7.01 to 7.02, the variable org-capture-templates, which I set in my .emacs.el in a custom-set-variables is not being set. No error is generated, just the variable remains nil. Here's how I set it: --8---cut here---start-8--- '(org-capture-templates (quote ((t Todo entry (file+headline Tasks.org Tasks) * TODO %? %i %a) (c Care entry (file+headline Care.org Care Notes) * %? %U %i %a) (j Journal entry (file+datetree Journal.org) * %? --8---cut here---end---8--- Am I doing something funny here, or did something break? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Sorting table columns (*not* content)
If you don't mind losing h-lines, you can transpose the table, sort rows, and transpose back. This code (which I previously posted to the list) transposes a table: #+begin_src: emacs-lisp (defun org-transpose-table-at-point () Transpose orgmode table at point, eliminate hlines (interactive) (let ((contents (apply #'mapcar* #'list (remove-if-not 'listp ;; remove 'hline from list (org-table-to-lisp ;; signals error if not table ) (delete-region (org-table-begin) (org-table-end)) (insert (mapconcat (lambda(x) (concat | (mapconcat 'identity x | ) |\n )) contents )) (org-table-align) ) ) #+end_src Regards, .j. On Mon, Nov 01, 2010 at 02:42:55PM +0100, Gary wrote: Is there any way to sort the columns of a table, such that for example | Col 3 | Col 1 | Col 2 | can be converted to | Col 1 | Col 2 | Col 3 | |---+---+---| | ... | ... | ... | ? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Bug: Resilience to leaving Emacs w/o clocking out [7.02trans]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. I wrote this to John W: Somehow I ended up with this in todo.txt: *** DONE [#A] Check in elisp state SCHEDULED: 2010-10-31 Sun :LOGBOOK: CLOCK: [2010-10-31 Sun 13:31] CLOCK: [2010-10-21 Thu 12:01]--[2010-10-21 Thu 16:43] = 4:42 :END: :PROPERTIES: :Link: [[file:~/elisp/package.d/wl-gravatar.el::]] :ID: A661E17F-4526-4BBB-B8E7-43651123C472 :END: [2010-10-12 Tue 10:05] As a result, when I fired up emacs, it would always tell me there was a dangling clock, but I couldn't clock out, even by `j M-x org-clock-out'. Eventually I figured out to use J and it got cleaned up, but I'm still a bit baffled about how I ended up in this condition. and he replied: This happens for me if I exit Emacs without clocking out first. Seems like a bug. Emacs : GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29) of 2010-05-08 on black.local Package: Org-mode version 7.02trans current state: == (setq org-agenda-deadline-leaders '(D: D%d: ) org-clock-in-switch-to-state STARTED org-agenda-skip-scheduled-if-deadline-is-shown t org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-todo-keyword-faces '((TODO :foreground medium blue :weight bold) (APPT :foreground medium blue :weight bold) (NOTE :foreground brown :weight bold) (STARTED :foreground dark orange :weight bold) (WAITING :foreground red :weight bold) (DELEGATED :foreground dark violet :weight bold) (DEFERRED :foreground dark blue :weight bold) (SOMEDAY :foreground dark blue :weight bold) (PROJECT :height 1.5 :weight bold :foreground black)) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-agenda-custom-commands '((E Errands (next 3 days) tags ErrandTODO\DONE\TODO\CANCELLED\STYLE\habit\SCHEDULED\+3d\ ((org-agenda-overriding-header Errands (next 3 days (A Priority #A tasks agenda ((org-agenda-ndays 1) (org-agenda-overriding-header Today's priority #A tasks: ) (org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote notregexp) \\=.*\\[#A\\]))) ) ) (B Priority #A and #B tasks agenda ((org-agenda-ndays 1) (org-agenda-overriding-header Today's priority #A and #B tasks: ) (org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote regexp) \\=.*\\[#C\\]))) ) ) (w Waiting/delegated tasks tags TODO=\WAITING\|TODO=\DELEGATED\ ((org-agenda-overriding-header Waiting/delegated tasks:) (org-agenda-sorting-strategy (quote (todo-state-up priority-down category-up ) (u Unscheduled tasks tags TODO\\TODO\DONE\TODO\CANCELLED\TODO\NOTE\CATEGORY{CEG\\|ABC\\|Bizcard\\|Adagio\\|EVAprint\\|\\IT\\} ((org-agenda-overriding-header Unscheduled tasks: ) (org-agenda-skip-function (quote
Re: [Orgmode] Re: Sorting table columns (*not* content)
On Mon, Nov 1, 2010 at 10:15 AM, Gary emacs-orgm...@garydjones.name wrote: Jeff Horn wrote: Hope this helps, Not much, really. You're saying that I can do rectangle editing, which I knew. Are you basically saying you have to sort them yourself? (If so, that's okay, it's a valid answer, even if it isn't the one I want!) Cool. I don't know what other people know, so I thought I'd offer how I've solved the problem in the past. Better to respond when I can than see a question linger unanswered on the list. Have a good one, Jeff -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Installing Orgmode through ELPA-tarball
I agree about the word 'easiest'. Perhaps a more neutral phrasing of the question, such as: How can I install Orgmode through Emacs' Package Manager? Tom Short wrote: On Mon, Nov 1, 2010 at 8:05 AM, Jambunathan K kjambunat...@gmail.com wrote: ** What is the easiest way to install latest version of Orgmode? That's all good information to have, but I'm not sure it's the easiest way to install the latest version. It may eventually be easy, but the existing steps look relatively cumbersome. Using git seems like the easiest way to get the latest version with the advantage that you can pick the version you want (latest up-to-the-minute, latest release, or some other release). - Tom ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Using macros in worg
Hi I would like to use org-mode + git to generate a web page. I would also like to use the #+MACRO: directives as defined in Worg /macrs.setupfile. I have downloaded cloned the git repository for Worg (git clone http://repo.or.cz/r/Worg.git) for an example. How is the setup to expand the macros? Are there any further setup that isn't included when I clone the git repository of Worg? I don't know how the web page is published - is the publishing done automatically when the code is submitted to the central git archive, or how is it done? - I have found out to publish something via the below elisp code, but the macros don't work and there might be smarter ways to do it automatically when submitted to a central git repository. /Benny (require 'org-publish) (setq org-publish-use-timestamps-flag nil); Always publish all - else files including other files (menu) aren't updated (setq org-export-html-style-include-default nil) (setq org-publish-project-alist '( ;; ... add all the components here (see below)... (org-text :base-directory ~/org/ :base-extension org :publishing-directory ~/public_html/ :recursive t :publishing-function org-publish-org-to-html :headline-levels 4 ; Just the default for this project. ;:auto-preamble t :style link rel=\stylesheet\ type=\text/css\ href=\./css/stylesheet.css\ / ) (org-static :base-directory ~/org/ :base-extension css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf :publishing-directory ~/public_html/ :recursive t :publishing-function org-publish-attachment ) (org :components (org-text org-static) :include ./menu.org ) )) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Installing Orgmode through ELPA-tarball
Tom Short tshort.rli...@gmail.com writes: On Mon, Nov 1, 2010 at 8:05 AM, Jambunathan K kjambunat...@gmail.com wrote: ** What is the easiest way to install latest version of Orgmode? That's all good information to have, but I'm not sure it's the easiest way to install the latest version. Stronger opinion there, equally strong as the wording I used. I welcome your feedback. It may eventually be easy, but the existing steps look relatively cumbersome. This is the key. That is a placeholder entry for ELPA-related things. Using git seems like the easiest way to get the latest version with the advantage that you can pick the version you want (latest up-to-the-minute, latest release, or some other release). We need to remember that most people who are part of this list (including me) already use git. For this section of population the use of git would outweigh using other methods. There is also this other section in the wild trying to make their first foray in to the magic garden ... Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Installing Orgmode through ELPA-tarball
I agree about the word 'easiest'. Perhaps a more neutral phrasing of the question, such as: How can I install Orgmode through Emacs' Package Manager? Ok. I have modified the phrasing as suggested by you. Jambunathan K. Tom Short wrote: On Mon, Nov 1, 2010 at 8:05 AM, Jambunathan K kjambunat...@gmail.com wrote: ** What is the easiest way to install latest version of Orgmode? That's all good information to have, but I'm not sure it's the easiest way to install the latest version. It may eventually be easy, but the existing steps look relatively cumbersome. Using git seems like the easiest way to get the latest version with the advantage that you can pick the version you want (latest up-to-the-minute, latest release, or some other release). - Tom ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Installing Orgmode through ELPA-tarball
Hi all, being curious I tried the upgrade via ELPA but for for some reasons it didn't work. Any ideas? 2. Use the Emacs package manager's =M-x list-packages= to browse and install the latest version. Failed with the error message: Failed to download `Orgmode' archive. ** How do I install Orgmode from a ELPA-compatible tarball? # Installing from ELPA-tar 2. Download the latest tarball from [[http://orgmode.org/pkg/daily/][Orgmode repo]]. 3. Do =M-x package-install-file=. When prompted for =Package file name=, point it to .tar file downloaded in step 2. Failed with the error message: package-read-from-string: Can't read whole string Martin ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Sorting table columns (*not* content)
Gary emacs-orgm...@garydjones.name writes: Is there any way to sort the columns of a table, such that for example | Col 3 | Col 1 | Col 2 | can be converted to | Col 1 | Col 2 | Col 3 | |---+---+---| | ... | ... | ... | I'd do this using an external language that has a matrix/table data type with column indexing. #+tblname: unsorted | Col3 | Col1 | Col2 | |--+--+--| | c| a|b | #+source: sorted #+begin_src R :var tab=unsorted :colnames yes tab[,order(colnames(tab))] #+end_src #+results: sorted | Col1 | Col2 | Col3 | |--+--+--| | a| b| c| Dan ? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Sorting table columns (*not* content)
Jeff Horn seems to be explaining specifics of how to do some nitty-gritty manipulations--he mentions (quoting the manual) methods for yanking, Ccxy The methods Jeff expressed are useful for the question posed. I recommend rectangle-kill and rectangle-yank--Cxrk and Cxry to solve this (in a very simple albeit possibly faster or slower way--depending on how many columns you want to move/sort---moving column/rectangle 3 to the 3rd position in this case--took a few seconds) I tested Juan's method/defun---works great!! Thanks Juan P.S. I did lose the hlines like you reported; but, to put the line back was 3 key strokes: |-Tab On Mon, Nov 1, 2010 at 10:43 AM, Juan Pechiar j...@pechiar.com wrote: If you don't mind losing h-lines, you can transpose the table, sort rows, and transpose back. This code (which I previously posted to the list) transposes a table: #+begin_src: emacs-lisp (defun org-transpose-table-at-point () Transpose orgmode table at point, eliminate hlines (interactive) (let ((contents (apply #'mapcar* #'list (remove-if-not 'listp ;; remove 'hline from list (org-table-to-lisp ;; signals error if not table ) (delete-region (org-table-begin) (org-table-end)) (insert (mapconcat (lambda(x) (concat | (mapconcat 'identity x | ) |\n )) contents )) (org-table-align) ) ) #+end_src Regards, .j. On Mon, Nov 01, 2010 at 02:42:55PM +0100, Gary wrote: Is there any way to sort the columns of a table, such that for example | Col 3 | Col 1 | Col 2 | can be converted to | Col 1 | Col 2 | Col 3 | |---+---+---| | ... | ... | ... | ? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] bug: org-narrow-to-subtree
At Mon, 1 Nov 2010 19:02:53 +0530, Puneeth wrote: Hi, I hit a minor bug with the function org-narrow-to-subtree. When I narrow to a headline (subtree with just the headline) present at the end of a file, the last character of the headline isn't present in the narrowed region. [file1.org and file2.org shown at the end of the message are examples] I am attaching a possible patch for the same, but I don't think that is the cleanest way to handle it. Hope it'll help some one else to fix it in a better way. Confirmed and fixed in master. Different solution to the problem: Don't move point one character back if point is at end of buffer (eobp). Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgp7asHKwxHqE.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] bibtex latex export
Hi there, I realize that there have been a lot of discussion on this topic; however, it is not clear to me how to resolve this issue. More specifically, org-latex-export does a good job convert org to latex, but for some reason bibtex isn't called. My current work around is run bibtex in a shell after running org-latex-export. I there a more elegant way of doing this ? thanks M ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Installing Orgmode through ELPA-tarball
Hello Martin Thanks for trying out ELPA. Hi all, being curious I tried the upgrade via ELPA but for for some reasons it didn't work. Any ideas? 2. Use the Emacs package manager's =M-x list-packages= to browse and install the latest version. Failed with the error message: Failed to download `Orgmode' archive. This is expected. Orgmode cannot act as ELPA repo. There are some minor things to be fixed. Tarball is the way to go atleast for next few days ... ** How do I install Orgmode from a ELPA-compatible tarball? # Installing from ELPA-tar 2. Download the latest tarball from [[http://orgmode.org/pkg/daily/][Orgmode repo]]. 3. Do =M-x package-install-file=. When prompted for =Package file name=, point it to .tar file downloaded in step 2. Failed with the error message: package-read-from-string: Can't read whole string Does any one else experience this issue. Questions: = What package.el you are using? I hope it is the one that is bundled in to Emacs and *not* the one distributed from http://tromey.com. May I ask you what version of Emacs you use and what OS you run on? I use GNU Emacs 23.1.91.1 (i386-mingw-nt5.1.2600) of 2010-01-03 on PRETEST. I also have cygwin running. After your report, I downloaded org-20101101.tar and I am able to run things successfully without any issues. Possible Root Cause: === There is a comment in the package manager that there is a dependency on GNU tar. May be the tar binary that you are running is not GNU tar compatible Just to confirm, copy the below elisp code to scratch buffer and do a C-x C-e with cursor before the marker '@'. (progn (setq default-directory ~/tmp/) (package-read-from-string (shell-command-to-string ;; Requires GNU tar. (concat tar -xOf org-20101101.tar org-20101101/org-pkg.el @ What do you get? Jambunathan K. Martin ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Installing Orgmode through ELPA-tarball
Martin A small addtion: Possible Root Cause: === There is a comment in the package manager that there is a dependency on GNU tar. May be the tar binary that you are running is not GNU tar compatible Just to confirm, copy the below elisp code to scratch buffer and do a C-x C-e with cursor before the marker '@'. (progn (setq default-directory ~/tmp/) (package-read-from-string (shell-command-to-string ;; Requires GNU tar. (concat tar -xOf org-20101101.tar org-20101101/org-pkg.el @ What do you get? Before doing C-x C-e, change the ~/tmp/ and org-20101101 to whatever is right in your setup. Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Sorting table columns (*not* content)
If you want to sort table columns manually (usually that's quick and easy), forget rectangle editing: M-left and M-right are your friends. Cheers, Christian On 11/1/10 2:52 PM, Jeff Horn wrote: From the manual: [1] , | C-c C-x M-w | Copy a rectangular region from a table to a special clipboard. Point and mark determine edge fields of the rectangle. If there is no active region, copy just the current field. The process ignores horizontal separator lines. | C-c C-x C-w | Copy a rectangular region from a table to a special clipboard, and blank all fields in the rectangle. So this is the “cut” operation. | C-c C-x C-y | Paste a rectangular region into a table. The upper left corner ends up in the current field. All involved fields will be overwritten. If the rectangle does not fit into the present table, the table is enlarged as needed. The process ignores horizontal separator lines. ` Hope this helps, Jeff * Footnotes [1] http://orgmode.org/org.html#Built_002din-table-editor ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: BUG-Export level 1 subtree fails
At Sun, 31 Oct 2010 20:34:20 -0400, Bernt Hansen wrote: Bernt Hansen be...@norang.ca writes: Hi, Using the following commit ed5665e (babel: Use `copy-sequence' instead of `copy-tree', 2010-10-31) if I mark a level 1 subtree with C-c @ and then try to export to HTML with C-c C-e b I get the following stack dump: Exporting a level 2 subtree works. This seems to be related to my use of archive properties. Not exactly. If you export a subtree, Org uses the heading as the exported document's title and marks the headline for removal by the :org-license-to-kill text property. Now the error kicks in `org-export-remove-archived-trees' because at this point the headline is already removed but the function is set to 'headline, e.g. tries to export this headline. Not sure how to solve this problem. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpvRwmcIpAjg.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: BUG-Export level 1 subtree fails
David Maus dm...@ictsoc.de writes: At Sun, 31 Oct 2010 20:34:20 -0400, Bernt Hansen wrote: Bernt Hansen be...@norang.ca writes: Hi, Using the following commit ed5665e (babel: Use `copy-sequence' instead of `copy-tree', 2010-10-31) if I mark a level 1 subtree with C-c @ and then try to export to HTML with C-c C-e b I get the following stack dump: Exporting a level 2 subtree works. This seems to be related to my use of archive properties. Not exactly. If you export a subtree, Org uses the heading as the exported document's title and marks the headline for removal by the :org-license-to-kill text property. Now the error kicks in `org-export-remove-archived-trees' because at this point the headline is already removed but the function is set to 'headline, e.g. tries to export this headline. Not sure how to solve this problem. I believe Carsten has a fix for this: adede9f (Fix export bug of a region with an ARCHIVE property set, 2010-11-01) but I haven't verified it yet. Regards, Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] bibtex latex export
On Nov 1, 2010, at 8:33 AM, Marvin Doyley wrote: Hi there, I realize that there have been a lot of discussion on this topic; however, it is not clear to me how to resolve this issue. More specifically, org-latex-export does a good job convert org to latex, but for some reason bibtex isn't called. My current work around is run bibtex in a shell after running org-latex-export. I there a more elegant way of doing this ? thanks M Aloha M, I'm not certain I understand your questions, but perhaps this will help. There are many things one might do with the .tex file created by the Org-mode LaTeX exporter: latex, pdftex, bibtex, makeindex, glossaries, etc. If your output target is pdf, then the variable org-latex-to-pdf- process is your friend. This one holds a list of commands to run against the .tex file; one of these commands can be bibtex. There is some discussion of this here: http://orgmode.org/worg/org-tutorials/org-latex-export.php#sec-8 hth, Tom___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: BUG-Export level 1 subtree fails
At Mon, 01 Nov 2010 15:19:24 -0400, Bernt Hansen wrote: I believe Carsten has a fix for this: adede9f (Fix export bug of a region with an ARCHIVE property set, 2010-11-01) but I haven't verified it yet. Ah. Should have read the log before debugging. It's fixed for me. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpJAiVo0JKcc.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Resilience to leaving Emacs w/o clocking out [7.02trans]
On Nov 1, 2010, at 3:56 PM, David Abrahams wrote: Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. I wrote this to John W: Somehow I ended up with this in todo.txt: *** DONE [#A] Check in elisp state SCHEDULED: 2010-10-31 Sun :LOGBOOK: CLOCK: [2010-10-31 Sun 13:31] CLOCK: [2010-10-21 Thu 12:01]--[2010-10-21 Thu 16:43] = 4:42 :END: :PROPERTIES: :Link: [[file:~/elisp/package.d/wl-gravatar.el::]] :ID: A661E17F-4526-4BBB-B8E7-43651123C472 :END: [2010-10-12 Tue 10:05] As a result, when I fired up emacs, it would always tell me there was a dangling clock, but I couldn't clock out, even by `j M-x org-clock- out'. Eventually I figured out to use J and it got cleaned up, but I'm still a bit baffled about how I ended up in this condition. and he replied: This happens for me if I exit Emacs without clocking out first. Seems like a bug. No, this is meant to work like this. Next time you start up Emacs, you get a chance to fix this clock. What would you like to happen? That you always clock out when you exit Emacs? - Carsten Emacs : GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple- appkit-1038.29) of 2010-05-08 on black.local Package: Org-mode version 7.02trans current state: == (setq org-agenda-deadline-leaders '(D: D%d: ) org-clock-in-switch-to-state STARTED org-agenda-skip-scheduled-if-deadline-is-shown t org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- vars) org-todo-keyword-faces '((TODO :foreground medium blue :weight bold) (APPT :foreground medium blue :weight bold) (NOTE :foreground brown :weight bold) (STARTED :foreground dark orange :weight bold) (WAITING :foreground red :weight bold) (DELEGATED :foreground dark violet :weight bold) (DEFERRED :foreground dark blue :weight bold) (SOMEDAY :foreground dark blue :weight bold) (PROJECT :height 1.5 :weight bold :foreground black)) org-speed-command-hook '(org-speed-command-default-hook org-babel- speed-command-hook) org-agenda-custom-commands '((E Errands (next 3 days) tags ErrandTODO\DONE\TODO \CANCELLED\STYLE\habit\SCHEDULED\+3d\ ((org-agenda-overriding-header Errands (next 3 days (A Priority #A tasks agenda ((org-agenda-ndays 1) (org-agenda- overriding-header Today's priority #A tasks: ) (org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote notregexp) \\=.*\\[#A\\]))) ) ) (B Priority #A and #B tasks agenda ((org-agenda-ndays 1) (org-agenda- overriding-header Today's priority #A and #B tasks: ) (org-agenda-skip-function (quote (org-agenda-skip-entry-if (quote regexp) \\=.*\\[#C\\]))) ) ) (w Waiting/delegated tasks tags TODO=\WAITING\|TODO=\DELEGATED\ ((org-agenda-overriding-header Waiting/delegated tasks:) (org-agenda-sorting-strategy (quote (todo-state-up priority-down category-up ) (u Unscheduled tasks tags TODO\\TODO\DONE\TODO \CANCELLED\TODO\NOTE\CATEGORY{CEG\\|ABC\\|Bizcard\\|Adagio\ \|EVAprint\\|\\IT\\} ((org-agenda-overriding-header Unscheduled tasks: ) (org -agenda-skip-function (quote (org -agenda-skip-entry-if (quote scheduled)
Re: [Orgmode] Re: Sorting table columns (*not* content)
On Nov 1, 2010, at 3:15 PM, Gary wrote: Jeff Horn wrote: Hope this helps, Not much, really. You're saying that I can do rectangle editing, which I knew. Are you basically saying you have to sort them yourself? (If so, that's okay, it's a valid answer, even if it isn't the one I want!) I guess in many cases it will be fast to sort by hand in a situation like this. Maybe not using rectangle commands, but using the commands for dragging along a column, M-right and M-left. If you have many columns, you can use a transposition as indicated very cleverly by Juan. Or you can write the command and send us a patch :D Maybe just a bubble sort, using the column-shifting commands might be good enough. How many columns do you have? Cheers. - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Problem with 7.02 - org-capture-templates not set from init file
On Nov 1, 2010, at 3:06 PM, Jeffrey DeLeo wrote: Since moving from org-version 7.01 to 7.02, the variable org-capture-templates, which I set in my .emacs.el in a custom-set-variables is not being set. No error is generated, just the variable remains nil. Are you sure this is different in 7.1 and 7.2? Is the variable nil or undefined? The think is, the custom-set-variables only stores the intended value. If the variable is not yet defined (i.e. org-capture.el not yet loaded), it will wait until you load the package and then set the variable to the customized value. - Carsten Here's how I set it: --8---cut here---start-8--- '(org-capture-templates (quote ((t Todo entry (file+headline Tasks.org Tasks) * TODO %? %i %a) (c Care entry (file+headline Care.org Care Notes) * %? %U %i %a) (j Journal entry (file+datetree Journal.org) * %? --8---cut here---end---8--- Am I doing something funny here, or did something break? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Extended-period events in agenda views
Hi Konrad, On Nov 1, 2010, at 12:32 PM, Konrad Hinsen wrote: Hello all, I have been a happy org-mode user for a while, using more and more of org-mode for more and more things. By now I have completely replaced my use of iCal (on the Mac) by the org-mode agenda, with no regrets. However, there is one feature that I am still trying to get into my agenda view, but I didn't find a way to do it yet. There are a couple of long-lasting events that I would like to show in my agenda view. A typical example would be school vacation periods, but there are others: absences of a colleague, availability of some instrument, etc, Their common feature is that they can last very long (several weeks) and that they don't really occupy my agenda. I just want to know when planning something if a given day is in period X or not. So I'd like to see at a glance (using a specific font, color, one-letter prefix etc.) if a day falls into a certain predefined period. Simply adding a corresponding event to my agenda leads to visual clutter: it gets marked on every single day of the period. Is there any way to get what I am looking for? I don't think so. But what I am also missing is a clear idea on *how* this event should be generated and *how* it should be displayed. Apparently you do not want the event listed in the agenda, but you say maybe a special font. If the event is not listed, what else should be in a general font? Maybe try to work out a more detailed proposal? Cheers - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] bug: org-narrow-to-subtree
Hi Puneeth, I am unable to reproduce this problem Greetings - Carsten On Nov 1, 2010, at 2:32 PM, Puneeth wrote: Hi, I hit a minor bug with the function org-narrow-to-subtree. When I narrow to a headline (subtree with just the headline) present at the end of a file, the last character of the headline isn't present in the narrowed region. [file1.org and file2.org shown at the end of the message are examples] I am attaching a possible patch for the same, but I don't think that is the cleanest way to handle it. Hope it'll help some one else to fix it in a better way. Thanks, Puneeth file1.org - * Hello * World * TestEOF - file2.org -- * Test *** World *** Hello 1EOF -- org-narrow.patch.txt___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Extended-period events in agenda views
Konrad Hinsen konrad.hinsen at fastmail.net writes: There are a couple of long-lasting events that I would like to show in my agenda view. A typical example would be school vacation periods, but there are others: absences of a colleague, availability of some instrument, etc, Their common feature is that they can last very long (several weeks) and that they don't really occupy my agenda. I just want to know when planning something if a given day is in period X or not. So I'd like to see at a glance (using a specific font, color, one- letter prefix etc.) if a day falls into a certain predefined period. Simply adding a corresponding event to my agenda leads to visual clutter: it gets marked on every single day of the period. Is there any way to get what I am looking for? Just a suggestion... Would Julien Danjou's patch from three days ago adding support for category icons in the agenda be helpful to you? -- Chris ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: BUG-Export level 1 subtree fails
David Maus dm...@ictsoc.de writes: At Mon, 01 Nov 2010 15:19:24 -0400, Bernt Hansen wrote: I believe Carsten has a fix for this: adede9f (Fix export bug of a region with an ARCHIVE property set, 2010-11-01) but I haven't verified it yet. Ah. Should have read the log before debugging. It's fixed for me. It's fixed for me too! Thanks for following up on this. Regards, Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] bibtex latex export
Thanks, I will try the variable org-latex-pdf-process thanks M On Mon, Nov 1, 2010 at 4:00 PM, Thomas S. Dye t...@tsdye.com wrote: On Nov 1, 2010, at 8:33 AM, Marvin Doyley wrote: Hi there, I realize that there have been a lot of discussion on this topic; however, it is not clear to me how to resolve this issue. More specifically, org-latex-export does a good job convert org to latex, but for some reason bibtex isn't called. My current work around is run bibtex in a shell after running org-latex-export. I there a more elegant way of doing this ? thanks M Aloha M, I'm not certain I understand your questions, but perhaps this will help. There are many things one might do with the .tex file created by the Org-mode LaTeX exporter: latex, pdftex, bibtex, makeindex, glossaries, etc. If your output target is pdf, then the variable org-latex-to-pdf-process is your friend. This one holds a list of commands to run against the .tex file; one of these commands can be bibtex. There is some discussion of this here: http://orgmode.org/worg/org-tutorials/org-latex-export.php#sec-8 hth, Tom ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] abstract in exported latex and html
Use org-special-blocks On Oct 31, 2010, at 9:47 AM, Magnus Nilsson wrote: Dear all, Is there a way to include an abstract that suits both LaTeX export and html export? I am thinking in lines of #+BEGIN_ABSTRACT: My abstract goes here #+END_ABSTRACT: and have it interpreted differently depending on the export used. If I'm not overlooking a hitch, you can do that now with the contributed package org-special-blocks. Just put (require 'org-special-blocks) in your .emacs. The HTML abstract won't look like anything special until you style it, it will just be wrapped in a div class=abstract element. Here are some sample style lines for your org document header (without line wraps): #+STYLE: style.abstract {margin: 1em; padding: 1em; border: 1px solid black} #+STYLE: .abstract:before {content: ABSTRACT: ;}/style Thomas S. Dye wrote: Alternatively, you could use the existing link syntax for this kind of markup. See http://orgmode.org/worg/org-tutorials/org-latex-export.php#sec-12 I'm all for using custom links to extend inline markup, but this is block-level, and thus handily extensible with org-special-blocks. Cheers, Christian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] abstract in exported latex and html
On Nov 1, 2010, at 11:47 AM, Christian Moe wrote: Use org-special-blocks On Oct 31, 2010, at 9:47 AM, Magnus Nilsson wrote: Dear all, Is there a way to include an abstract that suits both LaTeX export and html export? I am thinking in lines of #+BEGIN_ABSTRACT: My abstract goes here #+END_ABSTRACT: and have it interpreted differently depending on the export used. If I'm not overlooking a hitch, you can do that now with the contributed package org-special-blocks. Just put (require 'org-special-blocks) in your .emacs. The HTML abstract won't look like anything special until you style it, it will just be wrapped in a div class=abstract element. Here are some sample style lines for your org document header (without line wraps): #+STYLE: style.abstract {margin: 1em; padding: 1em; border: 1px solid black} #+STYLE: .abstract:before {content: ABSTRACT: ;}/style Thomas S. Dye wrote: Alternatively, you could use the existing link syntax for this kind of markup. See http://orgmode.org/worg/org-tutorials/org-latex-export.php#sec-12 I'm all for using custom links to extend inline markup, but this is block-level, and thus handily extensible with org-special-blocks. Cheers, Christian Aloha Christian, Thanks for pointing out org-special-blocks. This will be very useful. Looks perfect for the OP. All the best, Tom ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: epresent and Org-mode: using Emacs to run presentations of Org-mode docs
Re: converting SVG 1. Prince (http://www.princexml.com) does SVG to PDF as vector graphics from the command line, very nicely. Too bad it's proprietary. e.g. : prince drawing.svg drawing.pdf 2. Ask Inkscape -- it's free software; unfortunately, the result is rasterized. e.g. : inkscape --without-gui --export-text-to-path --export-eps=drawing.eps drawing.svg From a sample 52 KB SVG file, Inkscape gives me a 420 KB EPS and Prince a 20 KB PDF. Cheers, Christian On 10/29/10 4:19 PM, Eric S Fraga wrote: Łukasz Stelmachlukasz.stelm...@iem.pw.edu.pl writes: Eric S Fragaucec...@ucl.ac.uk writes: ImageMagick [1] will convert from/to SVG to/from many formats including EPS. I've not tried any conversions with SVG, mind you, so this is based on the documentation. I'll check it, but I'm afraid it does render SVG as bitmap first, and then converts, or rather encapsulates, it to EPS/PDF. ImageMagick is a bitmap manipulation tool after all. Very true. For presentations, this may not be that much of an issue (given the resolution of many data projectors)... but it's a very valid point. Do let us know if you find a vector based converter. Thanks, eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] bibtex latex export
It works like a charm, thanks On Mon, Nov 1, 2010 at 4:47 PM, Marvin Doyley marvin...@gmail.com wrote: Thanks, I will try the variable org-latex-pdf-process thanks M On Mon, Nov 1, 2010 at 4:00 PM, Thomas S. Dye t...@tsdye.com wrote: On Nov 1, 2010, at 8:33 AM, Marvin Doyley wrote: Hi there, I realize that there have been a lot of discussion on this topic; however, it is not clear to me how to resolve this issue. More specifically, org-latex-export does a good job convert org to latex, but for some reason bibtex isn't called. My current work around is run bibtex in a shell after running org-latex-export. I there a more elegant way of doing this ? thanks M Aloha M, I'm not certain I understand your questions, but perhaps this will help. There are many things one might do with the .tex file created by the Org-mode LaTeX exporter: latex, pdftex, bibtex, makeindex, glossaries, etc. If your output target is pdf, then the variable org-latex-to-pdf-process is your friend. This one holds a list of commands to run against the .tex file; one of these commands can be bibtex. There is some discussion of this here: http://orgmode.org/worg/org-tutorials/org-latex-export.php#sec-8 hth, Tom ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-latex-export
Hi there, Is there anyway of tuning off the title and date options during export? it would be nice to able to switch these options off during export especially when the are blank (i.e. #+Title: or #+Date:) thanks M ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Resilience to leaving Emacs w/o clocking out [7.02trans]
On Mon, Nov 1, 2010 at 3:39 PM, Carsten Dominik carsten.domi...@gmail.com wrote: On Nov 1, 2010, at 3:56 PM, David Abrahams wrote: Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. I wrote this to John W: Somehow I ended up with this in todo.txt: *** DONE [#A] Check in elisp state SCHEDULED: 2010-10-31 Sun :LOGBOOK: CLOCK: [2010-10-31 Sun 13:31] CLOCK: [2010-10-21 Thu 12:01]--[2010-10-21 Thu 16:43] = 4:42 :END: :PROPERTIES: :Link: [[file:~/elisp/package.d/wl-gravatar.el::]] :ID: A661E17F-4526-4BBB-B8E7-43651123C472 :END: [2010-10-12 Tue 10:05] As a result, when I fired up emacs, it would always tell me there was a dangling clock, but I couldn't clock out, even by `j M-x org-clock-out'. Eventually I figured out to use J and it got cleaned up, but I'm still a bit baffled about how I ended up in this condition. and he replied: This happens for me if I exit Emacs without clocking out first. Seems like a bug. No, this is meant to work like this. Next time you start up Emacs, you get a chance to fix this clock. What would you like to happen? That you always clock out when you exit Emacs? No, I expected that I'd at least be *able* to clock out with `M-x org-clock-out' after I start Emacs back up. -- Dave Abrahams BoostPro Computing http://www.boostpro.com ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-latex-export
On Nov 1, 2010, at 2:59 PM, Marvin Doyley wrote: Hi there, Is there anyway of tuning off the title and date options during export? it would be nice to able to switch these options off during export especially when the are blank (i.e. #+Title: or #+Date:) thanks M Aloha M, This was discussed recently on the mailing list: http://lists.gnu.org/archive/html/emacs-orgmode/ Try searching on no title or date and display the results in reverse chronological order. It turns out there are several ways to achieve this. You should find at least one way here that suits your needs. All the best, Tom ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-latex-export
Marvin Hi there,Is there anyway of tuning off the title and date options during export?it would be nice to able to switch these options off during export especially when the are blank (i.e. #+Title: or #+Date:) Try searching this list for a possible pointers on how you could do this. Jambunathan K. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: TaskJuggler3, revisited
Hi everyone, Christian Egli and I have been having an off-list exchange about making a TaskJuggler3 exporter. In fact, Christian would like to change the current exporter to export to either TaskJuggler2 or TaskJuggler3, depending on a defcustom! We have quite a number of ideas in the pipeline now, and thought it would be best to move the discussion, and access to the source code, back onto the list. Christian has set up a github repository with the changes he is making here: http://github.com/egli/org-mode And the code I sent to Christian, which makes the exporter work with TJ3, and also introduces some bug fixes and new features is here: http://github.com/alander/org-taskjuggler3 . Please note that this is different from Christian's code, and that he is the maintainer of the exporter that is part of org-mode. I needed something to work, so I spent an afternoon hacking until it did what I needed. If you are interested in the details, our e-mail exchange is reproduced below. -Anthony 8- From: christian.e...@sbs.ch Subject:Re: [Orgmode] Re: TaskJuggler 3, revisited Date: October 19, 2010 5:29:42 AM GMT-04:00 To: anthonylan...@yahoo.com Cc: emacs-orgmode@gnu.org Hi Anthony Anthony Lander anthonylan...@yahoo.com writes: Please find attached a somewhat improved version of your TJ2 exporter, a drop-in replacement that exports to TJ3, and also a sample .org file. This is all exciting stuff. It's a little hard to digest (many changes rolled into one, white space formatting changes that make it hard to find the real change, common lisp idioms which I'm not familiar with). Let me get back to you with some questions and then we can discuss how to most easily merge the stuff. - Why did you compute the leafiness? I seem to have experienced that tj3 has a problem with zero effort tasks that aren't marked as milestones. Is that the reason? - Why do you add a duration of 1d if the task has neither a duration, an end, a period nor an effort? Shouldn't that be a milestone instead? - I see that there is a need to annotate a project with stuff such as scenarios, etc and I was missing a way to have file specific reports or other globals. Your additional tags solve that problem. However I'm a bit reluctant to add more magic tags that mark the trees in some way. I was hoping to find a more general way for this problem. So far I haven't found a good solution though. - I like the idea of the TJ drawer, but in the end you just seem to use it for the project node and the globals node. So in essence they are taskjuggler source code blocks (in disguise) which are tied to a particular node. In fact they are not even really tied to a particular node, especially in the case of the globals. This goes back to the previous question about a good way to add file specific globals. Maybe some kind taskjuggler specific export option is really what we are looking for. As an aside, I think it's better to post the source code to the list. There might be other people interested in it and pitching in with opinions and improvements. Thanks -- Christian Egli Swiss Library for the Blind, Visually Impaired and Print Disabled Grubenstrasse 12, CH-8045 Zürich, Switzerland 8- From: anthonylan...@yahoo.com Subject:Re: [Orgmode] Re: TaskJuggler 3, revisited Date: October 19, 2010 8:55:38 AM GMT-04:00 To: christian.e...@sbs.ch Hi Christian, On 10-Oct-19, at 5:29 AM, Christian Egli wrote: This is all exciting stuff. It's a little hard to digest (many changes rolled into one, white space formatting changes that make it hard to find the real change, common lisp idioms which I'm not familiar with). Let me get back to you with some questions and then we can discuss how to most easily merge the stuff. Apologies for the big blob of changes - I was initially just trying to get stuff to work, and, well, just kept going. As for the spacing/ formatting, I ran M-x indent-region RET on the whole file to get the formatting consistent. I know it makes diffing hard, though :( Is the unfamiliar idiom the backtick list with the ,variables in it, by chance? - Why did you compute the leafiness? I seem to have experienced that tj3 has a problem with zero effort tasks that aren't marked as milestones. Is that the reason? - Why do you add a duration of 1d if the task has neither a duration, an end, a period nor an effort? Shouldn't that be a milestone instead? Ah, sorry. This I should have documented. The problem is that TJ3 fails to compile the file if there is a leaf node with no computable end date. TJ2 happily ignored the situation, but TJ3 throws an error. So the problem I'm trying to solve is that as you are working on your project plan, it won't compile unless you
Re: [Orgmode] bug: org-narrow-to-subtree
Hi Carsten, On Tue, Nov 2, 2010 at 1:22 AM, Carsten Dominik carsten.domi...@gmail.com wrote: Hi Puneeth, I am unable to reproduce this problem Is it because David has already fixed the problem? :) Thanks, Puneeth ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] abstract in exported latex and html
This is great and should be in the FAQ or another good place on Worg. Thanks! - Carsten On Nov 1, 2010, at 10:47 PM, Christian Moe wrote: Use org-special-blocks On Oct 31, 2010, at 9:47 AM, Magnus Nilsson wrote: Dear all, Is there a way to include an abstract that suits both LaTeX export and html export? I am thinking in lines of #+BEGIN_ABSTRACT: My abstract goes here #+END_ABSTRACT: and have it interpreted differently depending on the export used. If I'm not overlooking a hitch, you can do that now with the contributed package org-special-blocks. Just put (require 'org-special-blocks) in your .emacs. The HTML abstract won't look like anything special until you style it, it will just be wrapped in a div class=abstract element. Here are some sample style lines for your org document header (without line wraps): #+STYLE: style.abstract {margin: 1em; padding: 1em; border: 1px solid black} #+STYLE: .abstract:before {content: ABSTRACT: ;}/style Thomas S. Dye wrote: Alternatively, you could use the existing link syntax for this kind of markup. See http://orgmode.org/worg/org-tutorials/org-latex-export.php#sec-12 I'm all for using custom links to extend inline markup, but this is block-level, and thus handily extensible with org-special-blocks. Cheers, Christian ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode