Re: [Orgmode] interacting with word processors (opeonffice, word)
At Tue, 2 Feb 2010 12:55:42 -0600, Russell Adams wrote: On Tue, Feb 02, 2010 at 08:44:54PM +0200, Rainer M Krug wrote: Hi Matt try latex2rtf: export org-mode to LaTeX and use latex2rtf to convert it to rtf. I am using latex2rtf to convert LaTeX code (generated by LyX) into rtf for exactly the same purpose. That's a great idea! Currently I export to HTML and then let Word users import that. It preserves most of the formatting that is important to me, though external files have to be manually inserted in Word. I export to HTML and then use OpenOffice.org to create a Word compatible version from it. There's an extension for OOo available which will convert all links to embedded versions if you want embedded images (most likely, especially with latex fragments!). ___ 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] colors in agenda view
At Tue, 2 Feb 2010 12:06:14 +0100, Krause, Joerg wrote: Hello all, I am using emacs 23.1 on windows xp. In my agenda view, some topics show up in light green, which is difficult to read on a white background. I've tried to google around, but I can't find how to influence the colors in this view. Any help will be appreciated... Joerg Krause 1. position the cursor on any character on the line that shows in the colour you don't like 2. type C-u C-x = (aka what-cursor-position) 3. in the buffer that appears, scroll down for an entry that says face. 4. click on the face 5. in the face description buffer, click on customize this face and change any and every aspect you wish. If you know what face you want to customize, you can go directly to the last step by M-x customize-face. I'm sure there are other ways of doing this... HTH, 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] Is there any IN Buffer setting for preamble and Remember
At Tue, 2 Feb 2010 23:07:03 -0500, Chao Lu wrote: [...] Another question will be for remember, I tried several times, seem for the remember template, a headline is required, say, if I just want to add a line, like below, which is quite often when just want to write some idea down: - Don't forget buy some binders Could I do so, but let org know not generate the headline automatically? Is there really much difference between that and what remember will generate, specifically: , | ** Don't forget buy some binders ` Not answering your question, unfortunately... ___ 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] Another question
At Wed, 3 Feb 2010 00:45:51 -0500, Chao Lu wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; ISO-8859-1 (7bit)] Dear all, I know it's a silly question... But it is possible for emacs support free hand input (tablet), since for a student on physics, most notes are math equation related... Any suggestion? I would suggest you ask on an emacs forum/newsgroup/list as this is really a much more general question than input for org-mode. Also, I imagine it will depend strongly on what operating system you are using. ___ 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-plot] multiple graphs on a plot
Back in September, zwz asked about getting multiple graphs on a plot from a table: http://lists.gnu.org/archive/html/emacs-orgmode/2009-09/msg00354.html There appears to be no answer to that question. I have the same need and I was wondering if anybody has an answer to this. Basically, given a table that looks like this: | x | y1 | x | y2 | | 1 | 2 | 1.5 | 3 | | ... || || I want to plot y1 versus x as one line on a plot and y2 versus x as another line on the same plot. In gnuplot, this is straightforward: plot ... using 1:2, '' using 3:4 but org-plot currently assumes :ind to have just one entry. I have started to look at the code in org-plot to see how to generalise ind to be a vector of columns but would rather avoid the work if somebody else has already done this (and because although my elisp skills are improving daily due to org-mode, they are still rather rudimentary ;-). 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] Re: [org-beamer] \alert
Hi, i just catched up reading the org list, and I think I can contribute to this: Carsten Dominik carsten.domi...@gmail.com writes: Is there a LaTeX command that can figure out if it is running a beamer class? If yes, a possible solution would be to redefine \alert in LaTeX when not doing BEAMER. The LaTeX Command \providecommand behaves exactly like \newcommand iff the command does not already exist, so one (untested) solution would be \providecommand{\alert}[1]{\emph{#1}} I think this would be the cleanest way, but keep in mind that the special beamer parameters are not supported by standard latex command creation commands. Yours Karsten ___ 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-remember support in xournal
Hi everybody, I am sorry I have been a bit slow to finish the integration of xournal with remember mode. I think I got it working. Hi Daniel, that is great! After learning about org-protocol on worg, I got it working. There seems to be a problem with non-ASCII characters in the file names, though: an ü in the file path arrived in emacs as %0 %)). If the loaded file in xournal is a PDF, the remember link is created to the .pdf file. Otherwise it is created to the .xoj file. In both cases the protocol is docview: emacsclient 'org-protocol://remember://docview:filename::pagenumber Can you add a second menu item (Store Link), which uses 'org-protocol://store-link://docview:filename::pagenumber'? - Jan ___ 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-remember support in xournal
On Wed, Feb 3, 2010 at 1:19 AM, Jan Böcker jan.boec...@jboecker.de wrote: Hi everybody, I am sorry I have been a bit slow to finish the integration of xournal with remember mode. I think I got it working. Hi Daniel, that is great! After learning about org-protocol on worg, I got it working. good. first person who uses it beside me! There seems to be a problem with non-ASCII characters in the file names, though: an ü in the file path arrived in emacs as %0 %)). I wonder if that would have been a problem. I had to write my own functions to encode the non alphanumeric characters. I'll look into it, but will have to wait until next week. If the loaded file in xournal is a PDF, the remember link is created to the .pdf file. Otherwise it is created to the .xoj file. In both cases the protocol is docview: emacsclient 'org-protocol://remember://docview:filename::pagenumber Can you add a second menu item (Store Link), which uses 'org-protocol://store-link://docview:filename::pagenumber'? I will. Next week though. - Jan -- --dmg --- Daniel M. German http://turingmachine.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] patch to support remember in evince
On 31.01.2010 11:19, D M German wrote: here is a patch to support remember inside evince. http://turingmachine.org/~dmg/temp/0001-Added-support-for-xournal-but-docview-linking-needs-.patch Hi Daniel, sorry for my late reply, I have just caught up with the list again. The patch works for me, but as in your patch for xournal, there is a problem with non-ASCII characters. An ü arrives in emacs as %C3%BC, which are the two URL-encoded bytes which make up the character in UTF-8. I don't know if this one is a bug in org-protocol, though, because AFAIK unix filenames are just a bunch of bytes and evince might not be able to find out what the encoding is supposed to be. I tried to pass the text selection to remember, but it does not work (org-protocol://remember://docview:filename::pagenumber::selection). Looking at the code of org-docview.el I can see that its code does not support splitting the selection. I suspect this is a minor change required. Any suggestions on how to change it? As I already indicated in the Protocol for PDFs thread, I realized that docview: is just a syntax for specialized file: links. Take a look at the following patch I posted to the mailing list two weeks ago: http://thread.gmane.org/gmane.emacs.orgmode/21474 This allows you to define customized file: links. These are some entries from my org-file-apps variable: Extension: \.pdf\' Command: evince %s Extension: \.pdf::\([0-9]+\)\' Command: evince -p %1 $s Extension: \.xoj\' Command: /home/jan/.local/bin/xournal %s Extension: \.xoj::\([0-9]+\)\' Command: /home/jan/.local/bin/xournal -p %1 %s This allows me to link to PDFs and Xournal files using normal file: links, both with and without page numbers. You could easily define a custom regexp which captures the page number and the selection with groups, then uses them in a command as %1 and %2. You can also use the groups in custom lisp forms, like this: Extension: \.pdf::\(.*\)::\(.*\)\' Lisp form: (progn (message (concat Page Number: (match-string 1 link))) (message (concat Selection: (match-string 2 link))) (message (concat File Name: file))) HTH, Jan ___ 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] [babel] bug, exporting scrname source blocks html
Hi, when I export the following to html -start * test #+srcname: test1 #+begin_src n3 -n subject predicate object #+end_src #+begin_src n3 -n subject predicate object #+end_src -end the two source blocks are exported as (spacing removed) -start pA/p label class=org-src-nametest1 equiv/label span class=linenr1: /spanpre class=src src-n3 span class=linenr2: /spansubject predicate object /pre pB/p pre class=src src-n3span class=linenr1: /spansubject predicate object /pre -end which in a browser looks like -start A test1 ≡ 1: 2: subject predicate object B 1: subject predicate object -end In my opinion it should be exported to look like this -start A 1: subject predicate object B 1: subject predicate object -end Thanks! Martin Emacs : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0) of 2009-09-27 on palmer, modified by Debian Package: Org-mode version 6.34trans (release_6.34c.40.g2cd16.dirty) current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-babel-interpreters '(makefile tex n3 xml java python dot css sh emacs-lisp) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-src-preserve-indentation t org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-latex-classes '((article \\documentclass[11pt]{article} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s})) (book \\documentclass[11pt]{book} (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})) ) org-publish-project-alist '((vortex :base-directory ~/exercises/ :publishing-directory ~/exercises/ :base-extension org :publishing-function org-publish-org-to-html :preamble ${resource:breadcrumb}style.breadcrumb {font-size:80%;}/style :skip-before-1st-heading nil) ) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-use-speed-commands t org-mode-hook '((lambda nil (org-add-hook (quote change-major-mode-hook) (quote org-babel-show-result-all) (quote append) (quote local)) ) org-babel-result-hide-spec org-babel-hide-all-hashes #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] ) org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash-at-point org-babel-execute-src-block-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-occur-hook '(org-first-headline-recenter) org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-metadown-hook '(org-babel-pop-to-session-maybe) org-export-blocks '((src org-babel-exp-src-blocks nil) (comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) )
[Orgmode] Re: S-Tab strange behavour
On 02.02.2010 23:25, Ryan Thompson wrote: If the previous command was anything else, then Org Mode has no idea whether the buffer or its visibility has changed since the last-executed S-Tab, since it cannot know which other commands will affect buffer visibility and which will not. I think, only Org changes visibility, so it can track current state. On Tue, Feb 2, 2010 at 12:38 PM, Ivan Vanyushkinva...@vanav.com.ua wrote: There is org-startup-folded that controls startup state, so org-mode should know it. Also S-Tab forgets state even in the middle of document. Key presses to reproduce: 1) S-Tab - OVERVIEW 2) S-Tab - CONTENTS 3) C-G (or any other) 4) S-Tab - OVERVIEW (expected: SHOW ALL) or 1) S-Tab - OVERVIEW 3) C-G (or any other) 4) S-Tab - OVERVIEW (nothing changed! expected: CONTENTS) Is it by design? Why? On 02.02.2010 21:40, Ryan Thompson wrote: I don't think it is possible in general to know the startup state of a file. Files with a #+STARTUP line may be an execption. On Tue, Feb 2, 2010 at 11:28 AM, Ivan Vanyushkinva...@vanav.com.ua wrote: Hello. On initial file opening, S-TABcycles through 1) OVERVIEW -2) CONTENTS -3) SHOW ALL not depending on current state of document. So, if (as default) document is in OVERVIEW state, first press _does nothing_ (switch to OVERVIEW again). Expected: CONTENTS. If document initially #+STARTUP: content, then first press switches it back to OVERVIEW. Expected: SHOW ALL. So, S-Tab (and maybe Tab) doesn't use context state when start cycling. Is it correct and why? org-version 6.21 and 6.34c Emacs 23.1.1 Thank you for your answer! -- Ivan Vanyushkin - Vanav. ___ 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: [org-beamer] \alert
This is also a very nice solution, thank you, I will be using it. - Carsten On Feb 3, 2010, at 9:31 AM, Karsten Heymann wrote: Hi, i just catched up reading the org list, and I think I can contribute to this: Carsten Dominik carsten.domi...@gmail.com writes: Is there a LaTeX command that can figure out if it is running a beamer class? If yes, a possible solution would be to redefine \alert in LaTeX when not doing BEAMER. The LaTeX Command \providecommand behaves exactly like \newcommand iff the command does not already exist, so one (untested) solution would be \providecommand{\alert}[1]{\emph{#1}} I think this would be the cleanest way, but keep in mind that the special beamer parameters are not supported by standard latex command creation commands. Yours Karsten ___ 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 - 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] Re: S-Tab strange behavour
On Feb 3, 2010, at 11:13 AM, Ivan Vanyushkin wrote: On 02.02.2010 23:25, Ryan Thompson wrote: If the previous command was anything else, then Org Mode has no idea whether the buffer or its visibility has changed since the last-executed S-Tab, since it cannot know which other commands will affect buffer visibility and which will not. I think, only Org changes visibility, so it can track current state. No, there are other commands outside Org that are changing visibility. Also, Org creates strange visibillity states with sparse trees etc. Furthermore, I in fact like that it is agnostic of the current visibility. Then I can create a state by quickly pressing TAB or S-TAB 1, 2, or three times - without even looking. - Carsten On Tue, Feb 2, 2010 at 12:38 PM, Ivan Vanyushkinva...@vanav.com.ua wrote: There is org-startup-folded that controls startup state, so org- mode should know it. Also S-Tab forgets state even in the middle of document. Key presses to reproduce: 1) S-Tab - OVERVIEW 2) S-Tab - CONTENTS 3) C-G (or any other) 4) S-Tab - OVERVIEW (expected: SHOW ALL) or 1) S-Tab - OVERVIEW 3) C-G (or any other) 4) S-Tab - OVERVIEW (nothing changed! expected: CONTENTS) Is it by design? Why? On 02.02.2010 21:40, Ryan Thompson wrote: I don't think it is possible in general to know the startup state of a file. Files with a #+STARTUP line may be an execption. On Tue, Feb 2, 2010 at 11:28 AM, Ivan Vanyushkinva...@vanav.com.ua wrote: Hello. On initial file opening, S-TABcycles through 1) OVERVIEW -2) CONTENTS -3) SHOW ALL not depending on current state of document. So, if (as default) document is in OVERVIEW state, first press _does nothing_ (switch to OVERVIEW again). Expected: CONTENTS. If document initially #+STARTUP: content, then first press switches it back to OVERVIEW. Expected: SHOW ALL. So, S-Tab (and maybe Tab) doesn't use context state when start cycling. Is it correct and why? org-version 6.21 and 6.34c Emacs 23.1.1 Thank you for your answer! -- Ivan Vanyushkin - Vanav. ___ 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 - 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] latex enumeration issue
Hi Mark, On Feb 2, 2010, at 11:08 PM, Mark Elston wrote: A year ago Flavio de Souza asked a question about latex enumerations that is similar to a problem I now have. The answer given then was a workaround that doesn't apply in my case. This stems from my project of using a single file to maintain source for generating my class notes *and* student handouts for my classes. This allows me to take advantage of the common outline and common text while specifying text that should go into only one or the other document. I manage to do this by something like: * Common heading Some common text ** A common subheading More common text *** :handouts: Something for handouts only *** :both: More common text *** :notes: My class notes text *** :both: More common text I have a makefile which creates a temporary .org file by prepending a specific header on this file for each type of output (handouts or notes), exporting to a latex file, running a perl script to remove any (sub)+sections with just the tags in them, and running pdflatex to generate the output. So far, so good. However, I ran into a problem with enumerations. Sometimes I have enumerations in my original org file which are separated by the 'empty' sectioning commands. This ends the enumeration and the next enumerated item starts a new one. The result is a set of enumerations with a single element in it. I get something like: 1. Blah handout-specific text 1. More Blah etc. These should really have been 1, 2, etc. I don't understand. Why is the text handout-specific text still there? Do you need it between the items? Do you want to make it part of the item (indentation would solve this). The only workaround I have so far is to make all these items lists instead of enumerations. This works OK but they would make much more sense as enumerations. How does this help? - 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] Re: ics file not understood by google calendar
On Feb 2, 2010, at 9:18 PM, Vagn Johansen wrote: Carsten Dominik carsten.domi...@gmail.com writes: Hi Vagn On Feb 1, 2010, at 8:47 PM, Vagn Johansen wrote: Carsten Dominik carsten.domi...@gmail.com writes: Hi Vagn, you are saying that this used to work out of the box and no longer does? Could you please git bisect to identify the offending commit? I tried git bisect with grep -R VTODO .. It seems that org-mode has always used VTODO so it is not a regression in org-mode. I think the problem is caused by a change in google calendar. They no longer support VTODO. In this case, you just need to export to ical files without TODO stuff, i.e. (setq org-icalendar-include-todo nil) ; this is already the default, actually So I guess this case is closed? - 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
[Orgmode] plainlists in remember templates
I'm trying to use remember-templates to create plainlists. (setq org-remember-templates '((CD ?d + [ ] %? :achat:@enville:\n ~/org/orgfiles/loisirs.org CDs [ / ]) ) ) doesn't work : it creates a starred entry, with a timestamp... Is it doable ? ___ 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: Is there any IN Buffer setting for preamble and Remember
Chao Lu looc...@gmail.com writes: Another question will be for remember, I tried several times, seem for the remember template, a headline is required, say, if I just want to add a line, like below, which is quite often when just want to write some idea down: - Don't forget buy some binders Could I do so, but let org know not generate the headline automatically? I don't believe there is any way to do this. The reason, AFAIK, is that such items could be easily lost when refiled to their target destinations. Once the item is filed, however, you can easily convert it from a headline to an item by typing C-c - on the headline. Best, Matt ___ 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: Repeating tasks in an interval
Eric S Fraga ucec...@ucl.ac.uk writes: At Wed, 3 Feb 2010 05:02:51 + (UTC), Robert P. Goldman wrote: Is there some way to specify a repeating task over an interval? That is a task that is done, for example, every month, over a finite period? Here's an example that I tried: DEADLINE: 2009-12-01 Tue +1m--2009-11-01 Sun But this one doesn't work --- the tasks keep appearing after November ended. Is this possible? Do I just have the wrong syntax? Or must I do this with C-c C-x c (cloning)? You can use sexp diary constructs for this: see the Timestamps section in the org manual, specifically the DIARY-STYLE SEXP ENTRIES heading. One word of clarification: diary sexp entries behave as timestamps, not as deadlines. Cloning an item is probably your best option here. Another possibility is simply to remove the deadline line with C-u C-c C-d after you no longer require the item. Best, Matt ___ 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] [babel] Need different beginning for tangled script
Hi I want to use org-mode to create a submit script for a cluster, and would need the first lines to be as follow: #!/bin/bash #$ -cwd -j y #$ -t 1-5 #$ -l mem_free=4G at the moment I get: #!/usr/bin/env sh # generated by org-babel-tangle # [[file:~/Documents/Projects/BiocontrolAndAlienDynamics/HakeaLandscape/trunc/R/spreadSim.org::*submit%20scripts][block-19]] #$ -cwd -j y #$ -t 1-5 #$ -l mem_free=4G 1) Is the first line customizable, or do I have to change org-babel-sh.el to use #!/bin/bash instead? 2) Can I ommit the second and third line (the comments added by tangle)? Thanks, and I must say org-mode is getting better and better Cheers, Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.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
[Orgmode] Re: Mobile org
Marcelo de Moraes Serpa celose...@gmail.com writes: Hello list, org-mode really changed my life, and allowed me to fully implement GTD the way I wanted. However, I miss having access to it everytime, so, I'm looking for a mobile device that could run emacs and org, and that I could keep in sync with my laptop. What do you think? Any suggestions appreciated, Marcelo. Hi Marcelo, check the CategoryPorts page on the emacswiki: http://www.emacswiki.org/emacs/CategoryPorts Personally I use emacs on my android phone, which includes a Debian installation, see here: http://www.emacswiki.org/emacs/EmacsOnAndroid I use the android scripting environment to access android programs from emacs. This allows me to make phone calls/send text messages with BBDB in emacs, while I can still use the useful gui stuff in android such as maps, web-browsing, bar-code scanner etc. I believe android is the way to go since it is open source and hackable, while also having a large repertoire of cool and useful apps. The only drawback is that the initial setup is quite complicated and time-consuming. You need to be fairly technically minded. -- aleblanc ___ 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: Another question
Chao Lu loochao at gmail.com writes: Dear all,I know it's a silly question... But it is possible for emacs support free hand input (tablet), since for a student on physics, most notes are math equation related...Any suggestion?Chao I would suggest using Xournal for your graphic notes. i am using this on a Nokia N800/N810 in concert with emacs/org for writing, and it is a great combination for getting graphical things recorded quickly. You can then convert the formulas to some other markup language later. Xournal runs on linux, windows, etc. http://en.wikipedia.org/wiki/Xournal http://xournal.sourceforge.net/ Delwood ___ 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] [babel] Need different beginning for tangled script
Rainer M Krug r.m.k...@gmail.com writes: Hi I want to use org-mode to create a submit script for a cluster, and would need the first lines to be as follow: #!/bin/bash #$ -cwd -j y #$ -t 1-5 #$ -l mem_free=4G at the moment I get: #!/usr/bin/env sh # generated by org-babel-tangle # [[file:~/Documents/Projects/BiocontrolAndAlienDynamics/HakeaLandscape/trunc/R /spreadSim.org::*submit%20scripts][block-19]] #$ -cwd -j y #$ -t 1-5 #$ -l mem_free=4G 1) Is the first line customizable, or do I have to change org-babel-sh.el to use #!/bin/bash instead? 2) Can I ommit the second and third line (the comments added by tangle)? Hi Rainer, Yes, I've also wanted control over these things from time to time. Here's a patch. It introduces two new variables; you would turn off both behaviours as follows: (setq org-babel-tangle-include-shebang nil) (setq org-babel-tangle-include-org-coordinates nil) If Eric approves, he'll apply the patch to the main org-mode git repo. I suspect you're using git already, but if not then you probably do want to use it for org-mode. Dan From ebc119693ca9daf104f935e794b5e2122127fa05 Mon Sep 17 00:00:00 2001 From: Dan Davison davi...@stats.ox.ac.uk Date: Wed, 3 Feb 2010 10:41:10 -0500 Subject: [PATCH] babel: provide control over additional content in tangled files New variables: * org-babel-tangle-include-shebang Whether to include shebang * org-babel-tangle-include-org-coordinates Whether to include links to org file etc. --- contrib/babel/lisp/org-babel-tangle.el | 32 ++-- 1 files changed, 26 insertions(+), 6 deletions(-) diff --git a/contrib/babel/lisp/org-babel-tangle.el b/contrib/babel/lisp/org-babel-tangle.el index 66e2c26..c019c43 100644 --- a/contrib/babel/lisp/org-babel-tangle.el +++ b/contrib/babel/lisp/org-babel-tangle.el @@ -40,6 +40,22 @@ to use when writing out the language to file, and an optional fourth element is a flag which when true indicates that the language does not support comments.) +(defvar org-babel-tangle-include-shebang t + If non-nil the first line of tangled output will be a +'shebang'-style line, for example, + +#!/bin/sh + +On UNIX/linux-like operating systems these lines serve to specify +an interpreter for the code contained in the file.) + +(defvar org-babel-tangle-include-org-coordinates t + If non-nil (and if a comment syntax is defined), each block in +the tangled output will be (a) preceded by a commented org-style +link back to the source block in the source org file, and (b) +followed by a commented statement indicating which block has just +ended.) + (defun org-babel-load-file (file) Load the contents of the Emacs Lisp source code blocks in the org-mode formatted FILE. This function will first export the @@ -117,12 +133,12 @@ exported source code blocks by language. ;; drop source-block to file (with-temp-buffer (funcall lang-f) -(when (and she-bang (not (member file-name she-banged))) +(when (and org-babel-tangle-include-shebang she-bang (not (member file-name she-banged))) (insert (concat she-bang \n)) (setq she-banged (cons file-name she-banged))) -(when commentable +(when (and commentable org-babel-tangle-include-org-coordinates) (comment-region - (point) (progn (insert generated by org-babel-tangle) (point))) + (point) (progn (insert Generated by org-babel-tangle) (point))) (move-end-of-line nil)) (org-babel-spec-to-string spec) (append-to-file nil nil file-name)) @@ -188,8 +204,8 @@ form (link source-name params body) (flet ((insert-comment (text) +(insert \n) (when commentable - (insert \n) (comment-region (point) (progn (insert text) (point))) (move-end-of-line nil) (insert \n @@ -197,9 +213,13 @@ form (source-name (second spec)) (body (fourth spec)) (commentable (not (fifth spec - (insert-comment (format [[%s][%s]] (org-link-escape link) source-name)) + (if org-babel-tangle-include-org-coordinates + (insert-comment (format [[%s][%s]] (org-link-escape link) source-name)) + (insert \n)) (insert (format %s (org-babel-chomp body))) - (insert-comment (format %s ends here source-name) + (if org-babel-tangle-include-org-coordinates + (insert-comment (format %s ends here source-name)) + (insert \n) (provide 'org-babel-tangle) ;;; org-babel-tangle.el ends here -- 1.6.3.3 ___ Emacs-orgmode mailing list Please use `Reply All' to send
Re: [Orgmode] Re: Any idea why the git repo is so huge
Richard Riley rileyrg...@gmail.com writes: I was under the impression that the one thing that git does not advertise is space efficiency - it stores total file blobs for each and every change. So I think its efficiency is in terms of speed, not in terms of disk usage. And to be honest, if you worry about 54M in a development scenario then I'd be surprised when you consider how cheap disk is these days. Git does store those as individual files initially, but once you run git gc it'll compress them and store only the deltas in the pakfiles. After I run git gc my orgmode .git/ directory is compressed to 44MB. Not a huge difference, but a difference nonetheless. - cwebb ___ 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] Scheduling an already-scheduled item
Hello, Is there a way to easily postpone an item for several days in the Agenda view? For example, if I have a item scheduled on Sunday and wanted to pus it to Monday, is there a command where I could enter '+1d' and it would offset from the scheduled time instead of the current date? Thanks, Nathaniel Flath ___ 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 exporting latex fragments to html: Debian's dvipng 1.12-1 is buggy
Hi Eric, OK, this now throws an error. - Carsten On Feb 2, 2010, at 2:57 PM, Eric S Fraga wrote: Hi, I'm obviously having a bad two days with org-mode but, this time, I've actually solved the problem myself. I thought I would highlight the issue in case anybody else runs into this. Short summary: exporting org files with latex fragments to HTML failed to create the images. I tracked the problem down to dvipng failing (memory reference problems). My system is Debian with a mixture of testing and unstable (yes, this will do it to you every time!). In any case, version 1.12-1 of dvipng seems to have problems; the latest in testing is 1.12-3 and this one works. However, I thought I would bring up a minor point: the failure to create images was not obvious; I had to resort to going through my *Messages* buffer. I then tried toggling debug on error to see why the image creation was failing but this had no effect as an error condition is not raised; this begs the question: should an error condition be raised when an image creation fails? 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 - 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] Announcing org-jekyll
On Feb 1, 2010, at 9:20 PM, Eric Schulte wrote: So to jump onto this thread that Carsten unwittingly brought back to life ;) I have been exporting org-mode subtrees to jekyll blog posts on a couple of projects, and I've found it really handy - resulting in more attractive web pages than I'm able to generate directly from org - for the liquid syntax which jekyll provides for programmatic generation of elements of html files - and for the ability to automatically generate xml/atom/rss from my projects One issue that I've not been able to solve is the resolution of intra-file links when I'm exporting subtrees to external files. For example say I have the following file ,[example.org] | * top | ** subtopic |:PROPERTIES: |:CUSTOM_ID: subtopic |:END: | stuff | | ** another topic | see stuff in [[subtopic]] ` after I've exported the subtrees to separate files for processing by jekyll, all of my intra-file links are broken. I wonder if a generalization of this issue might have wide enough appeal to merit an org-mode based solution. Specifically would it be possible to add support for exporting subtrees to external files, and updating all links within the subtree based on the new location of the exported file (i.e. adjusting all intra-file links to point to the original file)? Taking the above idea one step further, if say each subtree has an EXPORT_FILE_NAME property then it would be great to support link maintenance during export of all such subtrees in a file, so for example the following file ,[example.org] | * top | | ** section one |:PROPERTIES: |:EXPORT_FILE_NAME: section-one |:END: | | *** subtopic |:PROPERTIES: |:CUSTOM_ID: subtopic |:END: | stuff | | ** another topic |:PROPERTIES: |:EXPORT_FILE_NAME: another-topic |:END: | see stuff in [[subtopic]] ` could export to ,[section-one.org] | * section one | :PROPERTIES: | :EXPORT_FILE_NAME: section-one | :END: | | ** subtopic |:PROPERTIES: |:CUSTOM_ID: subtopic |:END: | stuff ` and ,[another-topic.org] | * another topic |:PROPERTIES: |:EXPORT_FILE_NAME: another-topic |:END: | see stuff in [[file:section-one.org::subtopic][subtopic]] ` I hope the above example is clear. While writing this up I noticed the existence of an EXPORT_FILE_NAME property however I was unable to use it to successfully export a subtree. It may be that the behavior I've described is only useful in the case of jekyll export, in which case I may try my hand at hacking a solution together. Either way I'd be interested to hear peoples thoughts or if I'm missing some existing functionality. The subtree need to be selected with transient mark active - at least temporarily. - Carsten Thanks -- Eric Carsten Dominik domi...@uva.nl writes: Sorry, this reply was in the wrong thread and is therefore meaningless. - Carsten On Feb 1, 2010, at 9:38 AM, Carsten Dominik wrote: Hi Juan, I like this idea, and I have implemented it. Please use the property HTML_CONTAINER_CLASS. And let me know if it works! HTH - Carsten On Jan 30, 2010, at 12:16 AM, Juan Reyero wrote: Greetings, I've been toying around with a small package to export entries as a Jekyll blog. It is different from other approaches I am aware of in that it will find your blog entries anywhere in the files belonging to a project, and it will pass properties along to Jekyll as yaml front matter. It also includes some support for localization. Full description: http://juanreyero.com/open/org-jekyll/ Source code: http://github.com/juanre/org-jekyll Best regards, Juan - 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 - 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] Re: icalendar: exporting times of day specified in heading?
Hi Stephen, this is an interesting patch. I am a bit uneasy because it changes the entered text and that may work better in some cases than in others. However, as the resulting agenda entry is the same, I have applied the patch. We'll see how it goes - maybe we do need to add another variable for this eventually. Thanks! - Carsten On Feb 2, 2010, at 2:16 PM, Stephen Eglen wrote: I often use org-agenda-diary-entry to make simple entries into an agenda.org file. I see that the agenda is clever enough to recognise if a time range has been typed into the heading. However, this time range is not exported by the icalendar code. Attached is a patch to the code underlying 'i d' entries in the *Org Agenda* buffer. If a time of day is specified in the entry, it is extracted from the entry and put into the timestamp of the diary entry. (The .ics exporting code recognises these timestamps and therefore the ics export code does not need altering.) For example, given the following three entries added using 'i d' from *Org Agenda*: i d RET test 1 12:00-14:00 classes RET i d RET test 2 did you get 7am wake up call? RET i d RET test 3 find 3--5 volunteers RET then the following entries are added to agenda.org: *** 2010-02-03 Wednesday test 3 find 3--5 volunteers 2010-02-03 Wed test 2 did you get wake up call? 2010-02-03 Wed 07:00 test 1 classes 2010-02-03 Wed 12:00-14:00 As this behvaiour may not be desired by all, I've currently put the code conditional on org-agenda-search-headline-for-time being non-nil (the default is t). If that variable is nil, then the above three test entries generates the regular tree: *** 2010-02-03 Wednesday test 3 find 3--5 volunteers 2010-02-03 Wed test 2 did you get 7am wake up call? 2010-02-03 Wed test 1 12:00-14:00 classes 2010-02-03 Wed Perhaps org-agenda-search-headline-for-time is not the right variable though (happy to had another) given that it defaults to t? Stephen 2010-02-02 Stephen Eglen step...@gnu.org * org-agenda.el (org-agenda-add-entry-to-org-agenda-diary-file): Optionally extract time specification from text and add to the timestamp. *** /tmp/ediff11782joC 2010-02-02 13:07:49.0 + --- /home/stephen/langs/emacs/elisp-ds/org-mode/lisp/org-agenda.el 2010-02-02 09:48:10.0 + *** *** 6891,6903 (insert (format (diary-anniversary %s) %s (calendar-date-string d1 nil t) text ((eq type 'day) ! (if (eq org-agenda-insert-diary-strategy 'top-level) ! (org-agenda-insert-diary-as-top-level text) ! (require 'org-datetree) ! (org-datetree-find-date-create d1) ! (org-agenda-insert-diary-make-new-entry text)) ! (org-insert-time-stamp (org-time-from-absolute ! (calendar-absolute-from-gregorian d1))) (end-of-line 0)) ((eq type 'block) (if ( (calendar-absolute-from-gregorian d1) --- 6891,6919 (insert (format (diary-anniversary %s) %s (calendar-date-string d1 nil t) text ((eq type 'day) ! (let* ! (fmt time time2 ! (org-agenda-time-leading-zero t)) ! (if org-agenda-search-headline-for-time ! ;; Use org-format-agenda-item to parse text for a time-range and ! ;; remove it. ! (setq fmt (org-format-agenda-item nil text nil nil t) ! time (get-text-property 0 'time fmt) ! time2 (if ( (length time) 0) ! ;; split-string removes trailing .. if ! ;; no end time given. First space ! ;; separates time from date. ! (concat (car (split-string time \\.))) ! nil) ! text (get-text-property 0 'txt fmt))) ! (if (eq org-agenda-insert-diary-strategy 'top-level) ! (org-agenda-insert-diary-as-top-level text) ! (require 'org-datetree) ! (org-datetree-find-date-create d1) ! (org-agenda-insert-diary-make-new-entry text)) ! (org-insert-time-stamp (org-time-from-absolute ! (calendar-absolute-from-gregorian d1)) ! nil nil nil nil time2)) (end-of-line 0)) ((eq type 'block) (if ( (calendar-absolute-from-gregorian d1) ___ 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 - 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] Scheduling an already-scheduled item
Nathaniel Flath flat0...@gmail.com wrote: Is there a way to easily postpone an item for several days in the Agenda view? For example, if I have a item scheduled on Sunday and wanted to pus it to Monday, is there a command where I could enter '+1d' and it would offset from the scheduled time instead of the current date? S-right on the agenda item - and you can repeat it to shift by a number of days. Then refresh the agenda with g. Does that help? Nick ___ 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-export-generic.el patch to make it load with require
In the org-export-generic.el file the library is provided as org-generic instead of org-export-generic. Not sure what the reason for this is, but I cannot load it with (require 'org-generic). This patch changes (provide 'org-generic) to (provide 'org-export-generic) so I can load it normally. *** ~/.emacs.d/org-export-generic.el2010-02-03 15:47:30.0 + --- ~/.emacs.d/org-mode/contrib/lisp/org-export-generic.el 2010-02-03 15:46:45.0 + *** *** 1237,1242 (and vl (setcar vl nil)) vl)) ! (provide 'org-export-generic) ;;; org-export-generic.el ends here --- 1237,1242 (and vl (setcar vl nil)) vl)) ! (provide 'org-generic) ;;; org-export-generic.el ends here -- aleblanc ___ 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] [babel] bug, exporting scrname source blocks html
Hi Martin, Yes, we are still wrestling with how to deal with source-block names on export to both LaTeX and html. You can use the org-src-name css class to control the appearance of the source-code name -- or in your case to hide it with the addition of something like the following to your org-mode file #+STYLE: style.org-src-name{ display: none; }/style As for the line numbering issue, I just pushed up a small patch which should fix the line numbers in the case of name source blocks. Thanks for reporting this bug. Best -- Eric Martin G. Skjæveland mart...@ifi.uio.no writes: Hi, when I export the following to html -start * test #+srcname: test1 #+begin_src n3 -n subject predicate object #+end_src #+begin_src n3 -n subject predicate object #+end_src -end the two source blocks are exported as (spacing removed) -start pA/p label class=org-src-nametest1 equiv/label span class=linenr1: /spanpre class=src src-n3 span class=linenr2: /spansubject predicate object /pre pB/p pre class=src src-n3span class=linenr1: /spansubject predicate object /pre -end which in a browser looks like -start A test1 ≡ 1: 2: subject predicate object B 1: subject predicate object -end In my opinion it should be exported to look like this -start A 1: subject predicate object B 1: subject predicate object -end Thanks! Martin Emacs : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.0) of 2009-09-27 on palmer, modified by Debian Package: Org-mode version 6.34trans (release_6.34c.40.g2cd16.dirty) current state: == (setq org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-metaup-hook '(org-babel-load-in-session-maybe) org-after-todo-state-change-hook '(org-clock-out-if-current) org-babel-interpreters '(makefile tex n3 xml java python dot css sh emacs-lisp) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-src-preserve-indentation t org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-latex-classes '((article \\documentclass[11pt]{article} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s})) (book \\documentclass[11pt]{book} (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})) ) org-publish-project-alist '((vortex :base-directory ~/exercises/ :publishing-directory ~/exercises/ :base-extension org :publishing-function org-publish-org-to-html :preamble ${resource:breadcrumb}style.breadcrumb {font-size:80%;}/style :skip-before-1st-heading nil) ) org-export-preprocess-before-normalizing-links-hook (org-remove-file-link-modifiers) org-use-speed-commands t org-mode-hook '((lambda nil (org-add-hook (quote change-major-mode-hook) (quote org-babel-show-result-all) (quote append) (quote local)) ) org-babel-result-hide-spec org-babel-hide-all-hashes #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] ) org-ctrl-c-ctrl-c-hook '(org-babel-lob-execute-maybe org-babel-hash-at-point org-babel-execute-src-block-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-occur-hook
Re: [Orgmode] org-export-generic.el patch to make it load with require
n...@aleblanc.cotse.net wrote: In the org-export-generic.el file the library is provided as org-generic instead of org-export-generic. Not sure what the reason for this is, but I cannot load it with (require 'org-generic). Having the provided symbol have the same print-name as the file name is a common convention, but you *can* do what you want with (require 'org-generic org-export-generic) although your patch is probably the right long term solution. HTH, Nick ___ 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] [babel] Need different beginning for tangled script
Hi Rainer and Dan, I have comments below, I believe this behavior should be possible through manipulation of some existing org-babel variables. Dan Davison davi...@stats.ox.ac.uk writes: Rainer M Krug r.m.k...@gmail.com writes: Hi I want to use org-mode to create a submit script for a cluster, and would need the first lines to be as follow: #!/bin/bash #$ -cwd -j y #$ -t 1-5 #$ -l mem_free=4G at the moment I get: #!/usr/bin/env sh # generated by org-babel-tangle # [[file:~/Documents/Projects/BiocontrolAndAlienDynamics/HakeaLandscape/trunc/R /spreadSim.org::*submit%20scripts][block-19]] #$ -cwd -j y #$ -t 1-5 #$ -l mem_free=4G 1) Is the first line customizable, or do I have to change org-babel-sh.el to use #!/bin/bash instead? The first line is customizable through adjusting the value of the org-babel-tangle-langs variable as show below. 2) Can I ommit the second and third line (the comments added by tangle)? The commenting behavior can also be changed using the org-babel-tangle-langs variable. The following non-trivial elisp snippet could be added to your emacs init to make both of these changes. --8---cut here---start-8--- (setq org-babel-tangle-langs (cons '(sh sh #!/bin/bash t) (remove-if (lambda (el) (string= (car el) sh)) org-babel-tangle-langs))) --8---cut here---end---8--- the third element of the '(sh sh #!/bin/bash t) list will appear at the top of your tangled files, and the t at the end of the list should suppress all org-babel comments. Perhaps we should change `org-babel-tangle-langs' to an a-list and declare it behind a defvar to make these sorts of customizations easier in the future. Best -- Eric Hi Rainer, Yes, I've also wanted control over these things from time to time. Here's a patch. It introduces two new variables; you would turn off both behaviours as follows: (setq org-babel-tangle-include-shebang nil) (setq org-babel-tangle-include-org-coordinates nil) If Eric approves, he'll apply the patch to the main org-mode git repo. I suspect you're using git already, but if not then you probably do want to use it for org-mode. Dan From ebc119693ca9daf104f935e794b5e2122127fa05 Mon Sep 17 00:00:00 2001 From: Dan Davison davi...@stats.ox.ac.uk Date: Wed, 3 Feb 2010 10:41:10 -0500 Subject: [PATCH] babel: provide control over additional content in tangled files New variables: * org-babel-tangle-include-shebang Whether to include shebang * org-babel-tangle-include-org-coordinates Whether to include links to org file etc. --- contrib/babel/lisp/org-babel-tangle.el | 32 ++-- 1 files changed, 26 insertions(+), 6 deletions(-) diff --git a/contrib/babel/lisp/org-babel-tangle.el b/contrib/babel/lisp/org-babel-tangle.el index 66e2c26..c019c43 100644 --- a/contrib/babel/lisp/org-babel-tangle.el +++ b/contrib/babel/lisp/org-babel-tangle.el @@ -40,6 +40,22 @@ to use when writing out the language to file, and an optional fourth element is a flag which when true indicates that the language does not support comments.) +(defvar org-babel-tangle-include-shebang t + If non-nil the first line of tangled output will be a +'shebang'-style line, for example, + +#!/bin/sh + +On UNIX/linux-like operating systems these lines serve to specify +an interpreter for the code contained in the file.) + +(defvar org-babel-tangle-include-org-coordinates t + If non-nil (and if a comment syntax is defined), each block in +the tangled output will be (a) preceded by a commented org-style +link back to the source block in the source org file, and (b) +followed by a commented statement indicating which block has just +ended.) + (defun org-babel-load-file (file) Load the contents of the Emacs Lisp source code blocks in the org-mode formatted FILE. This function will first export the @@ -117,12 +133,12 @@ exported source code blocks by language. ;; drop source-block to file (with-temp-buffer (funcall lang-f) -(when (and she-bang (not (member file-name she-banged))) +(when (and org-babel-tangle-include-shebang she-bang (not (member file-name she-banged))) (insert (concat she-bang \n)) (setq she-banged (cons file-name she-banged))) -(when commentable +(when (and commentable org-babel-tangle-include-org-coordinates) (comment-region - (point) (progn (insert generated by org-babel-tangle) (point))) + (point) (progn (insert Generated by org-babel-tangle) (point))) (move-end-of-line nil)) (org-babel-spec-to-string spec) (append-to-file nil nil file-name)) @@
Re: [Orgmode] org-babel - First line of file created by tangle
Hi Rainer, I just responded to your other email with a global solution to this problem. Do you think this is the sort of thing that would need to be customized on a per-block or per-file/subtree basis? If so we may want to move this customization behind a header argument. Thanks -- Eric Rainer M Krug r.m.k...@gmail.com writes: Hi I am sure I can customize it, but I could not find it. When tangling R code, I would like to skip (or customize) the first line of the resulting R file. It reads #!/usr/bin/env Rscript and I would either like to exclude it completely, or replace it with e.g. ## R I am sourcing the files anyway from a different R session and I don't need to execute them directly. Cheers, Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax: +27 - (0)86 516 2782 Fax: +49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.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 ___ 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-plot] multiple graphs on a plot
Hi Eric, I don't believe anyone has yet extended org-plot to support multiple independent variable columns. Since stating work on Org-babel [1], I know use gnuplot source-code blocks for all of my plotting needs, as they provide a more direct interface into gnuplot. For example the following should provide the functionality your are looking for... #+tblname: my-table | 1 | 2 | 1.5 | 3 | | 2 | 4 | 3 | 9 | | ... | | | | #+begin_src gnuplot :var data=my-table plot data using 1:2, data using 3:4 #+end_src Cheers -- Eric Eric S Fraga ucec...@ucl.ac.uk writes: Back in September, zwz asked about getting multiple graphs on a plot from a table: http://lists.gnu.org/archive/html/emacs-orgmode/2009-09/msg00354.html There appears to be no answer to that question. I have the same need and I was wondering if anybody has an answer to this. Basically, given a table that looks like this: | x | y1 | x | y2 | | 1 | 2 | 1.5 | 3 | | ... || || I want to plot y1 versus x as one line on a plot and y2 versus x as another line on the same plot. In gnuplot, this is straightforward: plot ... using 1:2, '' using 3:4 but org-plot currently assumes :ind to have just one entry. I have started to look at the code in org-plot to see how to generalise ind to be a vector of columns but would rather avoid the work if somebody else has already done this (and because although my elisp skills are improving daily due to org-mode, they are still rather rudimentary ;-). 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 Footnotes: [1] http://orgmode.org/worg/org-contrib/babel/ ___ 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] [babel] Need different beginning for tangled script
Dan Davison davi...@stats.ox.ac.uk writes: Rainer M Krug r.m.k...@gmail.com writes: Hi I want to use org-mode to create a submit script for a cluster, and would need the first lines to be as follow: #!/bin/bash #$ -cwd -j y #$ -t 1-5 #$ -l mem_free=4G at the moment I get: #!/usr/bin/env sh # generated by org-babel-tangle # [[file:~/Documents/Projects/BiocontrolAndAlienDynamics/HakeaLandscape/trunc/R /spreadSim.org::*submit%20scripts][block-19]] #$ -cwd -j y #$ -t 1-5 #$ -l mem_free=4G 1) Is the first line customizable, or do I have to change org-babel-sh.el to use #!/bin/bash instead? Hi Rainer, I see that my patch in fact answered your question (2) and your other question from your other email. But as for question (1), yes, see C-h v org-babel-tangle-langs The value of this variable for me is ((makefile) (C c) (sql sql) (perl pl #!/usr/bin/env perl) (sass sass) (dot dot) (asymptote asymptote) (latex tex) (ditaa ditaa) (ruby rb #!/usr/bin/env ruby) (python py #!/usr/bin/env python) (R R #!/usr/bin/env Rscript) (sh sh #!/usr/bin/env sh) (emacs-lisp el)) One solution would be to change it so that the entry for sh is (sh sh #!/bin/bash) [Having taken some time off, my elisp is now failing me. What's the right way to do this? If the cars of this list were symbols then we could use assq-delete-all but as they're strings we can't. This seems cumbersome (setq org-babel-tangle-langs (cons '(sh sh #!/bin/bash) (delete (assoc sh org-babel-tangle-langs) org-babel-tangle-langs))) ] Dan 2) Can I ommit the second and third line (the comments added by tangle)? Hi Rainer, Yes, I've also wanted control over these things from time to time. Here's a patch. It introduces two new variables; you would turn off both behaviours as follows: (setq org-babel-tangle-include-shebang nil) (setq org-babel-tangle-include-org-coordinates nil) If Eric approves, he'll apply the patch to the main org-mode git repo. I suspect you're using git already, but if not then you probably do want to use it for org-mode. Dan From ebc119693ca9daf104f935e794b5e2122127fa05 Mon Sep 17 00:00:00 2001 From: Dan Davison davi...@stats.ox.ac.uk Date: Wed, 3 Feb 2010 10:41:10 -0500 Subject: [PATCH] babel: provide control over additional content in tangled files New variables: * org-babel-tangle-include-shebang Whether to include shebang * org-babel-tangle-include-org-coordinates Whether to include links to org file etc. --- contrib/babel/lisp/org-babel-tangle.el | 32 ++-- 1 files changed, 26 insertions(+), 6 deletions(-) diff --git a/contrib/babel/lisp/org-babel-tangle.el b/contrib/babel/lisp/org-babel-tangle.el index 66e2c26..c019c43 100644 --- a/contrib/babel/lisp/org-babel-tangle.el +++ b/contrib/babel/lisp/org-babel-tangle.el @@ -40,6 +40,22 @@ to use when writing out the language to file, and an optional fourth element is a flag which when true indicates that the language does not support comments.) +(defvar org-babel-tangle-include-shebang t + If non-nil the first line of tangled output will be a +'shebang'-style line, for example, + +#!/bin/sh + +On UNIX/linux-like operating systems these lines serve to specify +an interpreter for the code contained in the file.) + +(defvar org-babel-tangle-include-org-coordinates t + If non-nil (and if a comment syntax is defined), each block in +the tangled output will be (a) preceded by a commented org-style +link back to the source block in the source org file, and (b) +followed by a commented statement indicating which block has just +ended.) + (defun org-babel-load-file (file) Load the contents of the Emacs Lisp source code blocks in the org-mode formatted FILE. This function will first export the @@ -117,12 +133,12 @@ exported source code blocks by language. ;; drop source-block to file (with-temp-buffer (funcall lang-f) -(when (and she-bang (not (member file-name she-banged))) +(when (and org-babel-tangle-include-shebang she-bang (not (member file-name she-banged))) (insert (concat she-bang \n)) (setq she-banged (cons file-name she-banged))) -(when commentable +(when (and commentable org-babel-tangle-include-org-coordinates) (comment-region - (point) (progn (insert generated by org-babel-tangle) (point))) + (point) (progn (insert Generated by org-babel-tangle) (point))) (move-end-of-line nil)) (org-babel-spec-to-string spec) (append-to-file nil nil file-name)) @@ -188,8 +204,8 @@ form (link source-name params body) (flet ((insert-comment (text) + (insert \n)
Re: [Orgmode] Misleading error message from beamer export
I've tested your analysis and confirmed that was NOT the misspelled CLASSS. Correcting the misspelling must have been coincident with something else. I wish had taken better notes. I'll continue to test to see what clobbered class list entry. -ben Carsten Dominik wrote: Hi Ben, I don't think #+LaTeX_CLASSS_OPTIONS: [presentation] can mess with org-export-latex-classes. You must hve been missing something else. Try to re-introduce the line - I am sure it will work just fine. - Carsten -- Capt. Ben Smith R/V Coastal Surveyor - R/V Cocheco - S/V Mother of Perl Center for Coastal and Ocean Mapping Joint Hydrographic Center University of New Hampshire, Durham, NH, U.S.A. attachment: ben.vcf___ 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-babel - First line of file created by tangle
Hi Eric On Wed, Feb 3, 2010 at 7:22 PM, Eric Schulte schulte.e...@gmail.com wrote: Hi Rainer, I just responded to your other email with a global solution to this problem. Thanks - I'll look at it in detail tomorrow. Do you think this is the sort of thing that would need to be customized on a per-block or per-file/subtree basis? Yes, I think it would be useful. An example would be if I want to create two scripts, where one is running on my local computer, and the other on a cluster, in which the paths might be different. Also: there is, in addition to R, also Ra, with Just-In-Time compiling functionality. It might be useful to be able to have two R scripts, one using R, the other Ra, for e.g. profiling. Another example would be to try different versions of e.g. R. So yes, I think it would be very useful to define the two additional header arguments for each block: :shebang NIL for default, other string for the shebang line :headers NIL for default, NONE for no headers, other string for custom headers If so we may want to move this customization behind a header argument. That would be great Cheers, Rainer Thanks -- Eric Rainer M Krug r.m.k...@gmail.com writes: Hi I am sure I can customize it, but I could not find it. When tangling R code, I would like to skip (or customize) the first line of the resulting R file. It reads #!/usr/bin/env Rscript and I would either like to exclude it completely, or replace it with e.g. ## R I am sourcing the files anyway from a different R session and I don't need to execute them directly. Cheers, Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.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 -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.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
[Orgmode] Re: Scheduling an already-scheduled item
Nathaniel Flath flat0...@gmail.com writes: Is there a way to easily postpone an item for several days in the Agenda view? For example, if I have a item scheduled on Sunday and wanted to pus it to Monday, is there a command where I could enter '+1d' and it would offset from the scheduled time instead of the current date? Just type C-c C-s (the same command you would use to schedule something for the first time). You will be greeted with a time/date prompt. Simply type +1d or Mon or Feb 8 (whichever you prefer) to reschedule the item. Best, Matt ___ 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-babel - First line of file created by tangle
Hi Rainer, Rainer M Krug r.m.k...@gmail.com writes: Hi Eric [...] So yes, I think it would be very useful to define the two additional header arguments for each block: :shebang NIL for default, other string for the shebang line :headers NIL for default, NONE for no headers, other string for custom headers Noted: I've added this to the Org-babel development TODO list http://eschulte.github.com/babel-dev/TODO-allow-customization-of-shebang-lines-and-commenting-through-header-argument.html Thanks for the ideas! -- 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] latex enumeration issue
Hi Carsten, Thanks for the reply. My responses are below: On 2/3/2010 2:34 AM, Carsten Dominik wrote: Hi Mark, On Feb 2, 2010, at 11:08 PM, Mark Elston wrote: A year ago Flavio de Souza asked a question about latex enumerations that is similar to a problem I now have. The answer given then was a workaround that doesn't apply in my case. This stems from my project of using a single file to maintain source for generating my class notes *and* student handouts for my classes. This allows me to take advantage of the common outline and common text while specifying text that should go into only one or the other document. I manage to do this by something like: * Common heading Some common text ** A common subheading More common text *** :handouts: Something for handouts only *** :both: More common text *** :notes: My class notes text *** :both: More common text I have a makefile which creates a temporary .org file by prepending a specific header on this file for each type of output (handouts or notes), exporting to a latex file, running a perl script to remove any (sub)+sections with just the tags in them, and running pdflatex to generate the output. So far, so good. However, I ran into a problem with enumerations. Sometimes I have enumerations in my original org file which are separated by the 'empty' sectioning commands. This ends the enumeration and the next enumerated item starts a new one. The result is a set of enumerations with a single element in it. I get something like: 1. Blah handout-specific text 1. More Blah etc. These should really have been 1, 2, etc. I don't understand. Why is the text handout-specific text still there? Do you need it between the items? Yes (see below). I have in each of these items something I want as part of the handouts and some additional info I want to include for myself. Do you want to make it part of the item (indentation would solve this). It will always be a part of the item, otherwise I would have made it a footnote or left it to after the enumeration. Unfortunately, indentation doesn't solve this. My example above was a little shy on details, sorry. If I have a file with: #+EXPORT_EXCLUDE_TAGS: notes * Common Heading Common Text 1) Blah ** :handouts: handout-specific text ** :notes: note-specific text ** :both: 2) More Blah ** :handouts: handout-specific text ** :notes: note-specific text ** :both: 3) Even more... After I export to latex and post process with my perl script I have the following for the body of my document: \section{Common Heading} \label{sec-1} Common Text \begin{enumerate} \item Blah \end{enumerate} handout-specific text \begin{enumerate} \item More Blah \end{enumerate} handout-specific text \begin{enumerate} \item Even more\ldots{} \end{enumerate} This is because the 'empty' placeholder headings (tags-only) interrupt the enumeration processing for each item, effectively ending it and causing the insertion of the \end{enumeration}. So each item is in it's own enumeration and the number restarts from 1 with each item. The only workaround I have so far is to make all these items lists instead of enumerations. This works OK but they would make much more sense as enumerations. How does this help? It eliminates the numbers and uses only list marks instead. That way I don't have to worry about incorrect numbering of enumerations. Unfortunately, the text between items is still not indented properly since it appears outside the list environment. It is not ideal but it is something I can live with if I have to. Mark ___ 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: ics file not understood by google calendar
Carsten Dominik carsten.domi...@gmail.com writes: On Feb 2, 2010, at 9:18 PM, Vagn Johansen wrote: I tried git bisect with grep -R VTODO .. It seems that org-mode has always used VTODO so it is not a regression in org-mode. I think the problem is caused by a change in google calendar. They no longer support VTODO. In this case, you just need to export to ical files without TODO stuff, i.e. (setq org-icalendar-include-todo nil) ; this is already the default, actually This just gives me an empty ics file! For example #+STARTUP: content hidestars * TODO feb7-todo SCHEDULED: 2010-02-07 Sun * TODO feb8-todo SCHEDULED: 2010-02-08 Mon * feb9-event SCHEDULED: 2010-02-09 Tue * feb10-event SCHEDULED: 2010-02-10 Wed * EOF (http://ozymandias.dk/test/test6275.org) With my custom setting '(org-icalendar-include-todo (quote all)) I have feb7-todo and feb8-todo in my ics file after a C-C C-e i export. The other two are nowhere to be seen. (http://ozymandias.dk/test/test6275.ics) Your suggestion '(org-icalendar-include-todo nil) gives me an ics-file with no entries. Are you saying there is a way to get non-TODO entries into the ics file? By the way, org-print-icalendar-entries is really difficult to understand. Maybe you could split it up. The function appears to generate VTODOs when org-icalendar-include-todo is non-nil and VEVENTs when the timestamp begins with %%. Is the latter related to the diary time-format? So I guess this case is closed? Maybe. If org-mode works as documented then perhaps all is good. I can work around my problem by changing org-icalendar.el to use VEVENT where it now uses VTODO and only use TODOs in org-files. This will generate an ics-file with the TODO entries when org-icalendar-include-todo is non-nil. I do not know much about the ics format so I cannot tell you what is the correct thing to do here. It would be useful if other people could tell about their experience in importing ics-files into various tools to gauge the VTODO support. Maybe only VEVENT should be used. -- Vagn Johansen ___ 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: [org-beamer] \alert
Hi all I have been away for a week. Thanks for implementing this. Haven't tried it yet. Greetings Sven Carsten Dominik carsten.domi...@gmail.com writes: This is also a very nice solution, thank you, I will be using it. - Carsten On Feb 3, 2010, at 9:31 AM, Karsten Heymann wrote: Hi, i just catched up reading the org list, and I think I can contribute to this: Carsten Dominik carsten.domi...@gmail.com writes: Is there a LaTeX command that can figure out if it is running a beamer class? If yes, a possible solution would be to redefine \alert in LaTeX when not doing BEAMER. The LaTeX Command \providecommand behaves exactly like \newcommand iff the command does not already exist, so one (untested) solution would be \providecommand{\alert}[1]{\emph{#1}} I think this would be the cleanest way, but keep in mind that the special beamer parameters are not supported by standard latex command creation commands. Yours Karsten ___ 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 - 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 -- Mit freundlichen Grüßen Sven Bretfeld ___ Prof. Dr. Sven Bretfeld \ CEntrum für CERES \ REligionswissenschaftliche \_Studien__ Ruhr-Universität Bochum Universitätsstraße 150 D-44780 Bochum http://www.ruhr-uni-bochum.de/ceres/de/organisation/beteiligte/sven_bretfeld.html ___ 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] latex enumeration issue
Carsten, Never mind. I had had problems in the past getting the hook function to work because I was making it harder than it needed to be. I just went back to trying my hand at it and got it working pretty easily. Sigh. I added a hook function to org-export-preprocess-hook and removed the blank headers that way. That solved the problem before it even starts. I probably don't have to do any perl post-processing at all, now. Thanks for all the help. Mark P.S. If anyone is interested here is the embarrassingly simple hook function I came up with. I show it not because I think anyone else will find this thing useful but as an example of how simple it really is to write this kind of thing. ;;; Export Hooks (defun mee-delete-empty-org-headers () (while (re-search-forward ^[*]+ [ ]+:[a-zA-Z0-9]+:$ nil t) (progn (beginning-of-line) (kill-line 0 (add-hook 'org-export-preprocess-hook 'mee-delete-empty-org-headers) On 2/3/2010 12:41 PM, Mark Elston wrote: Hi Carsten, Thanks for the reply. My responses are below: On 2/3/2010 2:34 AM, Carsten Dominik wrote: Hi Mark, On Feb 2, 2010, at 11:08 PM, Mark Elston wrote: A year ago Flavio de Souza asked a question about latex enumerations that is similar to a problem I now have. The answer given then was a workaround that doesn't apply in my case. This stems from my project of using a single file to maintain source for generating my class notes *and* student handouts for my classes. This allows me to take advantage of the common outline and common text while specifying text that should go into only one or the other document. I manage to do this by something like: * Common heading Some common text ** A common subheading More common text *** :handouts: Something for handouts only *** :both: More common text *** :notes: My class notes text *** :both: More common text I have a makefile which creates a temporary .org file by prepending a specific header on this file for each type of output (handouts or notes), exporting to a latex file, running a perl script to remove any (sub)+sections with just the tags in them, and running pdflatex to generate the output. So far, so good. However, I ran into a problem with enumerations. Sometimes I have enumerations in my original org file which are separated by the 'empty' sectioning commands. This ends the enumeration and the next enumerated item starts a new one. The result is a set of enumerations with a single element in it. I get something like: 1. Blah handout-specific text 1. More Blah etc. These should really have been 1, 2, etc. I don't understand. Why is the text handout-specific text still there? Do you need it between the items? Yes (see below). I have in each of these items something I want as part of the handouts and some additional info I want to include for myself. Do you want to make it part of the item (indentation would solve this). It will always be a part of the item, otherwise I would have made it a footnote or left it to after the enumeration. Unfortunately, indentation doesn't solve this. My example above was a little shy on details, sorry. If I have a file with: #+EXPORT_EXCLUDE_TAGS: notes * Common Heading Common Text 1) Blah ** :handouts: handout-specific text ** :notes: note-specific text ** :both: 2) More Blah ** :handouts: handout-specific text ** :notes: note-specific text ** :both: 3) Even more... After I export to latex and post process with my perl script I have the following for the body of my document: \section{Common Heading} \label{sec-1} Common Text \begin{enumerate} \item Blah \end{enumerate} handout-specific text \begin{enumerate} \item More Blah \end{enumerate} handout-specific text \begin{enumerate} \item Even more\ldots{} \end{enumerate} This is because the 'empty' placeholder headings (tags-only) interrupt the enumeration processing for each item, effectively ending it and causing the insertion of the \end{enumeration}. So each item is in it's own enumeration and the number restarts from 1 with each item. The only workaround I have so far is to make all these items lists instead of enumerations. This works OK but they would make much more sense as enumerations. How does this help? It eliminates the numbers and uses only list marks instead. That way I don't have to worry about incorrect numbering of enumerations. Unfortunately, the text between items is still not indented properly since it appears outside the list environment. It is not ideal but it is something I can live with if I have to. Mark ___ 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] Template org files, org-babel.
What are the possibilities for auto creating an org file based on a template so that all todo items are auto scheduled based on an arbitrary start date? Or would this be strictly a job for sed/awk or something? Having just seen a screencast of xiki, http://xiki.org/screencasts/web_development.html, I got to thinking of a template workflow with the org-babel being used to perform steps e.g create myql db, add user, update hosts file, etc etc etc. It would be nice if that template flow could somehow inherit/prompt for init parameters used throughout e.g start date, webname etc. Any ideas or pointers in the right direction welcome. Hope that makes some sense. An example of babel snippets setting/retrieving and sharing values between them would be great. Possible? ___ 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] latex enumeration issue
OK. I guess I was wrong. For some reason this hook doesn't seem to work. I masked the issue a different way and it made me *think* this was working. Any ideas why this hook function would not remove header lines with only tags and no header text? Mark On 2/3/2010 6:24 PM, Mark Elston wrote: ... ;;; Export Hooks (defun mee-delete-empty-org-headers () (while (re-search-forward ^[*]+ [ ]+:[a-zA-Z0-9]+:$ nil t) (progn (beginning-of-line) (kill-line 0 (add-hook 'org-export-preprocess-hook 'mee-delete-empty-org-headers) ___ 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: Repeating tasks in an interval
Thanks to all for the help! I'll use the cloning. Best, r ___ 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] latex enumeration issue
Mark Elston m_els...@comcast.net writes: OK. I guess I was wrong. For some reason this hook doesn't seem to work. I masked the issue a different way and it made me *think* this was working. Any ideas why this hook function would not remove header lines with only tags and no header text? Mark Hi Mark, I haven't tried to understand the use case, but here's a modified version. Dan (defun mee-delete-empty-org-headers () (while (re-search-forward ^\\*+[\t ]+:[a-zA-Z0-9]+:$ nil t) (beginning-of-line) (kill-line) (forward-line))) On 2/3/2010 6:24 PM, Mark Elston wrote: ... ;;; Export Hooks (defun mee-delete-empty-org-headers () (while (re-search-forward ^[*]+ [ ]+:[a-zA-Z0-9]+:$ nil t) (progn (beginning-of-line) (kill-line 0 (add-hook 'org-export-preprocess-hook 'mee-delete-empty-org-headers) ___ 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] Only show a certain weekday in the agenda view
2010/1/29 Björn Steffen : Hello, I'm teaching every thursday at a school. So I made a recurring entry in my org-file like this: * Teaching 2010-02-04 Thu 7:45-9:25 +1w I would like to have a custom agenda view where I only see an entry for all the Thursdays. But I cannot filter for the specific entry above because I also would like to see other timestamped items which fall on Thursdays. Is there some kind of filtering function for this purpose? I am guessing you probably want to see items related to your classes. In that case if you tag the items related to classes, then you can filter based on the tag ('/' in agenda or timeline view or 'C-c a m tag'). HTH -- Manish ___ 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-babel - First line of file created by tangle
On Wed, Feb 3, 2010 at 10:15 PM, Eric Schulte schulte.e...@gmail.comwrote: Hi Rainer, Rainer M Krug r.m.k...@gmail.com writes: Hi Eric [...] So yes, I think it would be very useful to define the two additional header arguments for each block: :shebang NIL for default, other string for the shebang line :headers NIL for default, NONE for no headers, other string for custom headers Noted: I've added this to the Org-babel development TODO list http://eschulte.github.com/babel-dev/TODO-allow-customization-of-shebang-lines-and-commenting-through-header-argument.html Thanks for the ideas! -- Eric I have to thank you, Eric, for putting it on the TODO list. I agree - :comments is better. Cheers, Rainer -- NEW GERMAN FAX NUMBER!!! Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Cell: +27 - (0)83 9479 042 Fax:+27 - (0)86 516 2782 Fax:+49 - (0)321 2125 2244 email: rai...@krugs.de Skype: RMkrug Google: r.m.k...@gmail.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] latex enumeration issue
Found it. Apparently org-export-preprocess-hook was the wrong hook. When I used org-export-preprocess-final-hook instead it works as expected. Mark On 2/3/2010 7:12 PM, Mark Elston wrote: OK. I guess I was wrong. For some reason this hook doesn't seem to work. I masked the issue a different way and it made me *think* this was working. Any ideas why this hook function would not remove header lines with only tags and no header text? Mark On 2/3/2010 6:24 PM, Mark Elston wrote: ... ;;; Export Hooks (defun mee-delete-empty-org-headers () (while (re-search-forward ^[*]+ [ ]+:[a-zA-Z0-9]+:$ nil t) (progn (beginning-of-line) (kill-line 0 (add-hook 'org-export-preprocess-hook 'mee-delete-empty-org-headers) ___ 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] Suppressing table of contents
Dear list, Sorry to ask a FAQ-type question, but how do I suppress the table of contents generated in LaTeX files from orgmode? Must I use a custom class or is there a command I can insert into #+LaTeX_HEADER that will suppress its generation? Thank you, - Raffi. ___ 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-generic.el patch to make it load with require
Hi, I have applied you patch, but also kept the old provide statement, to make sure that no old code will break. Thanks. - Carsten On Feb 3, 2010, at 5:27 PM, n...@aleblanc.cotse.net n...@aleblanc.cotse.net wrote: In the org-export-generic.el file the library is provided as org- generic instead of org-export-generic. Not sure what the reason for this is, but I cannot load it with (require 'org-generic). This patch changes (provide 'org-generic) to (provide 'org-export-generic) so I can load it normally. *** ~/.emacs.d/org-export-generic.el 2010-02-03 15:47:30.0 + --- ~/.emacs.d/org-mode/contrib/lisp/org-export-generic.el 2010-02-03 15:46:45.0 + *** *** 1237,1242 (and vl (setcar vl nil)) vl)) ! (provide 'org-export-generic) ;;; org-export-generic.el ends here --- 1237,1242 (and vl (setcar vl nil)) vl)) ! (provide 'org-generic) ;;; org-export-generic.el ends here -- aleblanc ___ 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 - 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] Radio targets don't work in headers
Hi Tom, you are right, this is a recently introduced bug, fixed now. Thank you for your report. - Carsten On Feb 2, 2010, at 11:28 AM, Tom wrote: If I create a radio target in the file stuff and then somewhere else in the document I use the target in a header like * collection of some info on project X ** collected info about stuff *** note 1 *** note 2 ... Then the word stuff will be a link, but when I click on it it says No links. If the word stuff is not in a header line then the link works fine. I see no reason why it shouldn't work in the header, so it seems like a bug. Org-mode version 6.34 ___ 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 - 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] Re: ics file not understood by google calendar
On Feb 3, 2010, at 10:33 PM, Vagn Johansen wrote: Carsten Dominik carsten.domi...@gmail.com writes: On Feb 2, 2010, at 9:18 PM, Vagn Johansen wrote: I tried git bisect with grep -R VTODO .. It seems that org-mode has always used VTODO so it is not a regression in org-mode. I think the problem is caused by a change in google calendar. They no longer support VTODO. In this case, you just need to export to ical files without TODO stuff, i.e. (setq org-icalendar-include-todo nil) ; this is already the default, actually This just gives me an empty ics file! For example #+STARTUP: content hidestars * TODO feb7-todo SCHEDULED: 2010-02-07 Sun * TODO feb8-todo SCHEDULED: 2010-02-08 Mon * feb9-event SCHEDULED: 2010-02-09 Tue * feb10-event SCHEDULED: 2010-02-10 Wed * EOF (http://ozymandias.dk/test/test6275.org) With my custom setting '(org-icalendar-include-todo (quote all)) I have feb7-todo and feb8-todo in my ics file after a C-C C-e i export. The other two are nowhere to be seen. (http://ozymandias.dk/test/test6275.ics) Your suggestion '(org-icalendar-include-todo nil) gives me an ics-file with no entries. Are you saying there is a way to get non-TODO entries into the ics file? Yes. Any entries that have a plain time stamp like * meeting with Peter 2010-02-07 Sun will create a VEVENT Also, you can configure the variables org-icalendar-use-deadlines and org-icalendar-use-scheduled to make these timestamps become VEVENT as well. By default they are set up to use these special time stamps as start date and due date in TODO entries, but you can use them for more. Take a look at the entire customization group org-export-icalendar, there might be more stuff you'd find useful. By the way, org-print-icalendar-entries is really difficult to understand. Yes. This function was grown, in the absence of predators. No intelligent design here... :-) Maybe you could split it up. It works, and I do not want to break it. Feel free to break it up, test it extensively (!) and send me a patch. The function appears to generate VTODOs when org-icalendar-include-todo is non-nil and VEVENTs when the timestamp begins with %%. Is the latter related to the diary time-format? Yes, you can use diary-like sexp functions to create complicated dates. Hope this helps - 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] Re: Repeating tasks in an interval
You could also use Remind along with remind2org. I think there's info about this in org-hacks on Worg. On Wed, Feb 3, 2010 at 8:18 PM, Robert Goldman rpgold...@sift.info wrote: Thanks to all for the help! I'll use the cloning. Best, r ___ 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