[Orgmode] Help debugging a problem when saving org-agenda files with C-x s
Hi all, I use an own function to save the current agenta to a text file, which I display in a tooltip on my desktop: --8<---cut here---start->8--- (defun th-org-mode-init () (add-hook 'after-save-hook 'th-org-update-agenda-file t t)) (add-hook 'org-mode-hook 'th-org-mode-init) ;; TODO: This errors when calling C-x s after modifying things in the agenda. (defun th-org-update-agenda-file (&optional force) (interactive) (when (and (eq major-mode 'org-mode) (member buffer-file-name org-agenda-files)) (save-excursion (save-window-excursion (let ((file "/tmp/org-agenda.txt")) (org-agenda-list) (org-write-agenda file)) --8<---cut here---end--->8--- This works fine when I save an agenda file while in its buffer, but when I edit the file via agenda commands and hit `C-x s', I'm asked if I want to save "/home/horn/repos/org/uni.org" and say yes, I get this error: --8<---cut here---start->8--- Debugger entered--Lisp error: (error "Agenda file /home/horn/repos/org/uni.org is not in `org-mode'") signal(error ("Agenda file /home/horn/repos/org/uni.org is not in `org-mode'")) error("Agenda file %s is not in `org-mode'" "/home/horn/repos/org/uni.org") org-agenda-get-day-entries("/home/horn/repos/org/uni.org" (5 11 2009) :deadline :scheduled :sexp :timestamp) byte-code("...") org-agenda-list() (let ((file "/tmp/org-agenda.txt")) (org-agenda-list) (org-write-agenda file)) (save-window-excursion (let (...) (org-agenda-list) (org-write-agenda file))) (save-excursion (save-window-excursion (let ... ... ...))) (progn (save-excursion (save-window-excursion ...))) (if (and (eq major-mode ...) (member buffer-file-name org-agenda-files)) (progn (save-excursion ...))) (when (and (eq major-mode ...) (member buffer-file-name org-agenda-files)) (save-excursion (save-window-excursion ...))) th-org-update-agenda-file() run-hooks(after-save-hook) basic-save-buffer() save-buffer() #[(buffer) "rq. )" [buffer save-buffer] 1](#) map-y-or-n-p(#[(buffer) ".!V.!..."]) byte-code("...") save-some-buffers(nil) call-interactively(save-some-buffers nil nil) --8<---cut here---end--->8--- I'm not sure what's the problem here. /home/horn/repos/org/uni.org is surely in org-mode! Any help on that? Bye, Tassilo ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Organize Your Life In Plain Text!
Carsten Dominik writes: > On May 13, 2009, at 3:50 AM, Bernt Hansen wrote: > >> Rick Moynihan writes: >> >>> Another comment (and this goes for many documents published in >>> org-mode) is that it would be nice if the HTML file could link to an >>> online copy of the raw org file. >> >> More thoughts along this line... >> >> The only downside of doing this automatically is if you >> include :noexport: tags or COMMENT on headlines to prevent export (say >> you have information you don't want out on the net. >> >> I wouldn't want the source file automatically published always. I'm >> like to be able to control that from some org-publish configuration. > > I guess it would be relatively easy to write a function > `org-publish-org-to-org' which would remove these sensitive > parts and could be used as as :publishing-function in a setup That works for me :) I prefer to post my source with the published files for most things -- my old publishing method (before switching to org-mode) used to do that (without the noexport options -- since it had no concept of not publishing everything). -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Organize Your Life In Plain Text!
On May 13, 2009, at 3:50 AM, Bernt Hansen wrote: Rick Moynihan writes: Another comment (and this goes for many documents published in org-mode) is that it would be nice if the HTML file could link to an online copy of the raw org file. More thoughts along this line... The only downside of doing this automatically is if you include :noexport: tags or COMMENT on headlines to prevent export (say you have information you don't want out on the net. I wouldn't want the source file automatically published always. I'm like to be able to control that from some org-publish configuration. I guess it would be relatively easy to write a function `org-publish-org-to-org' which would remove these sensitive parts and could be used as as :publishing-function in a setup - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Organize Your Life In Plain Text!
Rick Moynihan writes: > Another comment (and this goes for many documents published in > org-mode) is that it would be nice if the HTML file could link to an > online copy of the raw org file. More thoughts along this line... The only downside of doing this automatically is if you include :noexport: tags or COMMENT on headlines to prevent export (say you have information you don't want out on the net. I wouldn't want the source file automatically published always. I'm like to be able to control that from some org-publish configuration. -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Organize Your Life In Plain Text!
Rick Moynihan writes: > Another comment (and this goes for many documents published in > org-mode) is that it would be nice if the HTML file could link to an > online copy of the raw org file. > > This would provide those new to org-mode a chance to see how org > syntax maps into a published document. I agree. But I've so far been unable to automagically publish the raw .org file when I publish the project and I normally forget to do it manually after the fact. I pushed the current version to http://doc.norang.ca/org-mode.org I'll publish it again when the rest of the doc is done (unless I can figure out how to have org-publish convert the source to HTML and push a both the raw copy and the published files to the webserver.) Thanks! Bernt ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Organize Your Life In Plain Text!
2009/5/7 Bernt Hansen : > Hi all, > > At Carsten's request I've started to document how I use org-mode in my > daily activities. I plan to cover everything I use org-mode for and > this document is about half finished at this time. > > The current (under construction) document is available at > http://doc.norang.ca/org-mode.html and I have added a link to it in > Worg. > > I'll continue working on this document over the next few months but I > think it has enough information in it already to be useful to other > people. > > Comments and feedback are welcome. Hi Bernt, Another comment (and this goes for many documents published in org-mode) is that it would be nice if the HTML file could link to an online copy of the raw org file. This would provide those new to org-mode a chance to see how org syntax maps into a published document. R. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Checking for tags efficiently
Using org-map-entries, I check for expired done tasks and then archive them. I would like to skip archiving any subtree that has the tags[1] :data: or :repurpose:.[2] Is there a function for checking for the presence of tags efficiently (order 1) and robustly? Is org-entry-properties the right thing to use? I'm trying to avoid future debugging. Thanks! [1] Immediate or inherited. I recall seeing in the code somewhere a reference to a way to speed up the latter. [2] In case you are curious, my plan is to use these tags to indicate that while the tasks are done, they have data that should be refiled or they have content that should be repurposed. The advantage of this over DATA and REPURPOSE todo kw is that they can be applied orthogonally to any todo states. It's not ideal, because done should mean done, but I have not found a better arrangement yet. --- Today is awareness day. Myalgic encephalomyelitis denialism is causing death and severe suffering worse than MS. Conflicts of interest are destroying research. /You/ can get the disease at any time permanently. Do science and justice matter to you? Posters: http://www.mefreeforall.org/fileadmin/PDFs/ME_Awareness_Posters_2009.pdf Overview: http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Looking for some org-mode hooks
Hi there, I've recently switched to using org-mode for tracking todo items, and I'm finding it to be well worth the effort. I've read through the manual, and browsed past messages on the mail archive, but have a few questions about whether or not a few enhancements I want to do are currently possible in the latest version. First, is there a hook that gets executed after sorting a subtree? In other words, if I'm viewing a subtree as folded/children only, then sort it, it changes to display all subtrees. I want it to automatically revert back to the visibility I had. I'm hoping I can just set the visibility in a hook. Second, along the same lines, is there a hook that gets executed after refiling an item? In this case, I'd like to resort the node to which the item has been refiled. So, for instance, if I refile an item with priority A to a new node, I'd like that node sorted so that the new item appears at or near the top (assuming I sort by priority first). Thanks in advance, Keith S. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] where to place org-mode and remember lisp files
Henri Fischer wrote: > I'm having trouble using org-mode version 6.26d in combination with Emacs > 22.3.1 > (i386-apple-darwin-9.6.0, Carbon version 1.6.0) which contains org-mode 5.23a. > The 6.26d source files are stored in ~/elisp. The Remember source files I > placed in ~/elisp/ > remember. > Without (setq load-path (cons "~/elisp" load-path)) in my .emacs, I'm running > 5.23a which allows me > to export org files to Latex and to use Remember. With (setq load-path (cons > "~/elisp" load-path) in > my .emacs sure enough version 6.26d is loaded. However exporting an org file > to Latex and using C-c > r for Remember both result in to errors. See below. Any idea how I can solve > these errors? I would > like to keep my org-mode and Remember source files in the locations mentioned > above. I've been > moving the source files arround (for instance the new source files to > /Applications/Emacs.app/ > Contents/Resources/lisp/textmodes, but with no success. Thanks for your help. > What exactly is in ~/elisp? You say the source files, but are you unpacking the tar file there? If so, adding ~/elisp to your load path is almost certainly wrong: the lisp files are in a subdirectory called "lisp". Use locate-library to find out where you are getting all these: (locate-library "org") (locate-library "remember") Then figure out where you *should* be getting them from. You probably need to do something like this in your .emacs (substitute your values as indicated): (add-to-list 'load-path "~/path/to/directory/containing/org.el-6.26d") (add-to-list 'load-path "~/path/to/directory/containing/remember.el") [...and possibly more: e.g. the contrib/lisp directory] > > error when exporting to Latex: > Exporting to LaTeX... > org-export-latex-content: Symbol's function definition is void: > org-cleaned-string-for-export > Since org-export-latex-content does not call org-cleaned-string-for-export (at least in my setup - in fact, I don't think the function exists any longer), I assume that you are using some remnants of the 5.23a installation, perhaps mixing-n-matching pieces from the two installs. > error when exporting to Latex and proces to pdf: > if: Wrong type argument: commandp, org-export-as-pdf > > error when using C-c r for Remember: > Debugger entered--Lisp error: (error "Autoloading failed to define function > org-remember") > Nick ___ Emacs-orgmode mailing list Remember: 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 genericize org-yank (6.21b)
Cool. I was just looking for something like that the other day. On Tue, May 12, 2009 at 3:30 PM, Carsten Dominik wrote: > Applied, thanks. > > - Carsten > > > On May 12, 2009, at 4:18 AM, s...@blarg.net wrote: > > The org-yank function has special support for outline structures. But >> if you want the same behavior for something other than yank, you're >> out of luck. This patch (against 6.21b) moves the main functionality >> into org-yank-generic, with yanking being just one particular entry >> point. (I use this to create a new entry point for a personal >> clipboard-inserting command.) >> >> Derek >> >> -- >> Derek Upham >> s...@blarg.net >> >> -- cut here -- >> --- org.el.orig 2009-05-11 19:07:08.0 -0700 >> +++ org.el 2009-05-11 19:09:00.0 -0700 >> @@ -14809,9 +14809,17 @@ >> \[1] Basically, the test checks if the first non-white line is a heading >>and if there are no other headings with fewer stars." >> (interactive "P") >> - (setq this-command 'yank) >> + (org-yank-generic 'yank arg)) >> + >> +(defun org-yank-generic (command arg) >> + "Perform some yank-like command. >> + >> +This function implements the behavior described in the `org-yank' >> +documentation. However, it has been generalized to work for any >> +interactive command with similar behavior." >> + (setq this-command command) >> (if arg >> - (call-interactively 'yank) >> + (call-interactively command) >>(let ((subtreep ; is kill a subtree, and the yank position appropriate? >> (and (org-kill-is-subtree-p) >> (or (bolp) >> @@ -14826,7 +14834,7 @@ >> end) >> (if (and subtreep org-yank-adjusted-subtrees) >> (org-paste-subtree nil nil 'for-yank) >> - (call-interactively 'yank)) >> + (call-interactively command)) >> (setq end (point)) >> (goto-char beg) >> (when (and (bolp) subtreep >> @@ -14842,7 +14850,7 @@ >> (error (goto-char end) >> (when swallowp >> (message >> -"Yanked text not folded because that would swallow text")) >> +"Inserted text not folded because that would swallow text")) >> (goto-char end) >> (skip-chars-forward " \t\n\r") >> (beginning-of-line 1) >> @@ -14852,7 +14860,7 @@ >> (org-paste-subtree nil nil 'for-yank) >> (push-mark beg 'nomsg))) >> (t >> - (call-interactively 'yank)) >> + (call-interactively command)) >> >> (defun org-yank-folding-would-swallow-text (beg end) >> "Would hide-subtree at BEG swallow any text after END?" >> >> >> ___ >> Emacs-orgmode mailing list >> Remember: 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 > Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Quote blocks face
I have managed to do multiple-line fontification in Emacs (and I think in org) using hi-lock mode: M-x hi-lock-face-buffer RET italic RET But I can't for the life of me get that regex back which could span multiple lines. I was sure I grouped '.' and the newline character somehow, but I can't reclaim it. Maybe someone else has an idea. If you get it figured out, you can then write the hi-lock regexp's into your file, and set things up so that they get read every time the file is loaded (with or without confirmation). It worked for me in a limited trial but I'm not sure how hi-lock would interact with org over the long haul. It certainly has the potential to slow things down, but I never noticed it. Scot ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] where to place org-mode and remember lisp files
Hi, I'm having trouble using org-mode version 6.26d in combination with Emacs 22.3.1 (i386-apple-darwin-9.6.0, Carbon version 1.6.0) which contains org-mode 5.23a. The 6.26d source files are stored in ~/elisp. The Remember source files I placed in ~/elisp/remember. Without (setq load-path (cons "~/elisp" load-path)) in my .emacs, I'm running 5.23a which allows me to export org files to Latex and to use Remember. With (setq load-path (cons "~/elisp" load-path) in my .emacs sure enough version 6.26d is loaded. However exporting an org file to Latex and using C-c r for Remember both result in to errors. See below. Any idea how I can solve these errors? I would like to keep my org-mode and Remember source files in the locations mentioned above. I've been moving the source files arround (for instance the new source files to /Applications/Emacs.app/Contents/Resources/lisp/textmodes, but with no success. Thanks for your help. Henri error when exporting to Latex: Exporting to LaTeX... org-export-latex-content: Symbol's function definition is void: org-cleaned-string-for-export error when exporting to Latex and proces to pdf: if: Wrong type argument: commandp, org-export-as-pdf error when using C-c r for Remember: Debugger entered--Lisp error: (error "Autoloading failed to define function org-remember") ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Some Javascript Adventures
If your Sitmap looks like this normaly: * Folder 1 - item 1.1 - item 1.2 * folder 1.1 - file 1.1.1 * folder 1.2 - file 1.2.1 * Folder 2 - item 2.1 - item 2.2 It collapses all, but the top folders on startup: * Folder 1 * Folder 2 Each folder can be clicked, to expand and collapse from now on. To do this with each TOC, just use another CSS selector in the jQuery code: */--> >>> >>> >>> You can set up a buttons to call these functions: >>> >>> >> name="toggletimestamp" >>> value="Toggle Time Stamp" >>> id="toggletimestamp" /> >>> >>> >> name="toggledone" >>> value="Toggle Done" >>> id="toggledone" /> >>> >> >> >> ___ >> Emacs-orgmode mailing list >> Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-protocol links from adobe reader
Yeeess! :-D Friedrich Delgado Friedrichs writes: > Done. Hope you like it :) > > Sebastian Rose schrieb: >> Friedrich Delgado Friedrichs writes: >> > Sebastian Rose schrieb: >> >> How about adding it to the org-protocol docs on Worg: >> > Just kidding, I just registered on repo.or.cz and sent mail to >> > Bastien. >> Looking forward to see your name show up in the next codeswarm video :) > ---Zitatende--- ___ Emacs-orgmode mailing list Remember: 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 genericize org-yank (6.21b)
Applied, thanks. - Carsten On May 12, 2009, at 4:18 AM, s...@blarg.net wrote: The org-yank function has special support for outline structures. But if you want the same behavior for something other than yank, you're out of luck. This patch (against 6.21b) moves the main functionality into org-yank-generic, with yanking being just one particular entry point. (I use this to create a new entry point for a personal clipboard-inserting command.) Derek -- Derek Upham s...@blarg.net -- cut here -- --- org.el.orig 2009-05-11 19:07:08.0 -0700 +++ org.el 2009-05-11 19:09:00.0 -0700 @@ -14809,9 +14809,17 @@ \[1] Basically, the test checks if the first non-white line is a heading and if there are no other headings with fewer stars." (interactive "P") - (setq this-command 'yank) + (org-yank-generic 'yank arg)) + +(defun org-yank-generic (command arg) + "Perform some yank-like command. + +This function implements the behavior described in the `org-yank' +documentation. However, it has been generalized to work for any +interactive command with similar behavior." + (setq this-command command) (if arg - (call-interactively 'yank) + (call-interactively command) (let ((subtreep ; is kill a subtree, and the yank position appropriate? (and (org-kill-is-subtree-p) (or (bolp) @@ -14826,7 +14834,7 @@ end) (if (and subtreep org-yank-adjusted-subtrees) (org-paste-subtree nil nil 'for-yank) - (call-interactively 'yank)) + (call-interactively command)) (setq end (point)) (goto-char beg) (when (and (bolp) subtreep @@ -14842,7 +14850,7 @@ (error (goto-char end) (when swallowp (message -"Yanked text not folded because that would swallow text")) +"Inserted text not folded because that would swallow text")) (goto-char end) (skip-chars-forward " \t\n\r") (beginning-of-line 1) @@ -14852,7 +14860,7 @@ (org-paste-subtree nil nil 'for-yank) (push-mark beg 'nomsg))) (t - (call-interactively 'yank)) + (call-interactively command)) (defun org-yank-folding-would-swallow-text (beg end) "Would hide-subtree at BEG swallow any text after END?" ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Quote blocks face
On May 12, 2009, at 3:38 PM, Julien Barnier wrote: Hi, And first of all, thanks to everybody for this really great piece of work that org-mode is. I think I discover a new feature almost every day. :-) I've got one little question : is there a simple way to customize the face of some «environments» inside Emacs ? More precisely, I'd like to make everything between #+BEGIN_QUOTE and #+END_QUOTE to be displayed in italic... No, Org-mode cannot fontify blocks. I have not been able to figure out how to do this. - Carsten Thanks a lot in advance, -- Julien ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Some Javascript Adventures
And this is, how you need to do it, if you have the sitemap included: => --->8->8->8--- #+STYLE: #+STYLE: #+STYLE: #+STYLE: * Sitemap #+INCLUDE sitemap.org <= ---8<-8<-8<--- Ian Barton writes: > Yesterday on my bike ride I was listening to an old FLOSS Podcast about > jQuery. There are a few things that Sebastian's org-info-js doesn't do, that I > would like. Unfortunately, my knowledge of javascript is almost zero. > > However, the jQuery library seems to have excellent documentation. More > importantly using jQuery seems to mostly protect you from trying to debug your > code on lots of different browsers, since the jQuery author has already done > it > for you. > > After some experiments I cam up with the following snippets which toggle the > visibility of DONE tasks and also timestamps. Hope someone finds them useful! > > Ian. > > http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"; > type="text/javascript"> > > > > > > You can set up a buttons to call these functions: > > name="toggletimestamp" > value="Toggle Time Stamp" > id="toggletimestamp" /> > > name="toggledone" >value="Toggle Done" > id="toggledone" /> > > > ___ > Emacs-orgmode mailing list > Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Some Javascript Adventures
On May 12, 2009, at 3:48 PM, Sebastian Rose wrote: jQuery is _the_ JS framework :-) I use it all the time here... I have this in my Sitemap: You can set up a buttons to call these functions: ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Some Javascript Adventures
jQuery is _the_ JS framework :-) I use it all the time here... I have this in my Sitemap: > > > You can set up a buttons to call these functions: > > name="toggletimestamp" > value="Toggle Time Stamp" > id="toggletimestamp" /> > > name="toggledone" >value="Toggle Done" > id="toggledone" /> > ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Quote blocks face
Hi, And first of all, thanks to everybody for this really great piece of work that org-mode is. I think I discover a new feature almost every day. :-) I've got one little question : is there a simple way to customize the face of some «environments» inside Emacs ? More precisely, I'd like to make everything between #+BEGIN_QUOTE and #+END_QUOTE to be displayed in italic... Thanks a lot in advance, -- Julien ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] No indentation for all paragraph
> "CD" == Carsten Dominik writes: CD> Clock lines are always removed, never published. The never look CD> nice when published. :-) CD> I'd recommend using a clock table to capture the necessary CD> stuff. Yes, it is possible but it seams too not nice :-) and more complicate. CD> Is people insist, we can go back to have a variable to publish CD> the clock lines. I think if a choice exist is better then not. Best -- Jan Buchal Tel: (00420) 24 24 86 008 Mob: (00420) 608023021 ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] LaTeX export errors
Hi On May 12, 2009, at 1:35 PM, Robert Hennig wrote: Dear Org-Mode experts, I'm using Org-Mode 6.26d on Linux and Emacs 23.0: The following org-file-snipplet will fail to be translated to correct LaTeX code: #+LaTeX: \begin{center} #+TBLNAME: Test | A | B | C | | 5% | 1 | 2 | #+TBLFM: @2$3=2*$2 #+LaTeX: \end{center} The preprocessor will turn this into \begin{center} #+TBLNAME: Test | A | B | C | | 5% | 1 | 2 | #+TBLFM: @2$3=2*$2 \end{center} and then the LaTeX exporter will see this as a plain LaTeX environment and think that all the stuff inside should be exported exactly as is. You want: #+begin_center #+TBLNAME: Test | A | B | C | | 5% | 1 | 2 | #+TBLFM: @2$3=2*$2 #+end_center If you want to do the same for other environments, take a look at http://orgmode.org/worg/org-contrib/org-special-blocks.php HTH - Carsten Triggered will this by the #+LaTeX: ... invocation (#+BEGIN_LaTeX has the same effect). The Error in the generated tex file is that - #+TBLNAME: Test will not be removed - the '%' sign will not be translated to \% Thanks in Advance, Robert Hennig ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] No indentation for all paragraph
Clock lines are always removed, never published. The never look nice when published. I'd recommend using a clock table to capture the necessary stuff. Is people insist, we can go back to have a variable to publish the clock lines. - Carsten On May 12, 2009, at 3:06 PM, Sebastian Rose wrote: Here it nearly works, when I set `org-clock-into-drawer' to `t' and `org-export-with-drawers' to `All drawers'. Or per file: #+OPTIONS: <:t d:t :LOGBOOK: :END: Hm - the time is still missing... Is this a bug or did I miss something? I didin't export with clocks for quite some time. But I know it worked half a year ago Now I get things like this all over the place: :LOGBOOK: :END: :PROPERTIES: :Effort: 16:00 :END: Sebastian Jan Buchal writes: "SR" == Sebastian Rose writes: [] Yes, perfect. And if I want that clocking line will be displayed in HTML or PDF exported file? For example: * Summary of time CLOCK: [2009-05-11 Po 11:00]--[2009-05-11 Po 11:40] => 0:40 SR> Do an SR> M-x customize-variable RET org-export-with- TAB SR> to see all (global) options related to this topic. SR> You can set this in the #+OPTIONS: line per file (see SR> http://orgmode.org/manual/Export-options.html#Export-options): SR> #+OPTIONS: <:t I added this line in my .org file but still in HTML and PDF CLOCK is not dysplayed. What I make wrong? In attached file is example of my .org file. Thanks. ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Minor correction requested in the manual
On May 11, 2009, at 10:57 PM, Kirubakaran wrote: Hi, Thanks for this wonderful tool. I noticed a minor typo and thought that I'll bring it to your attention: Location : http://orgmode.org/manual/ARCHIVE-tag.html#ARCHIVE-tag As it is now : C-c C-x a Has to be : C-c C-x C-a They both work - Carsten Thanks, Kirubakaran. ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] No indentation for all paragraph
Here it nearly works, when I set `org-clock-into-drawer' to `t' and `org-export-with-drawers' to `All drawers'. Or per file: #+OPTIONS: <:t d:t :LOGBOOK: :END: Hm - the time is still missing... Is this a bug or did I miss something? I didin't export with clocks for quite some time. But I know it worked half a year ago Now I get things like this all over the place: :LOGBOOK: :END: :PROPERTIES: :Effort: 16:00 :END: Sebastian Jan Buchal writes: >> "SR" == Sebastian Rose writes: > > [] > > >> Yes, perfect. And if I want that clocking line will be displayed > >> in HTML or PDF exported file? For example: > >> > >> * Summary of time > >> > >> CLOCK: [2009-05-11 Po 11:00]--[2009-05-11 Po 11:40] => 0:40 > > SR> Do an > > SR> M-x customize-variable RET org-export-with- TAB > > SR> to see all (global) options related to this topic. > > > SR> You can set this in the #+OPTIONS: line per file (see > SR> http://orgmode.org/manual/Export-options.html#Export-options): > > SR> #+OPTIONS: <:t > I added this line in my .org file but still in HTML and PDF CLOCK is not > dysplayed. What I make wrong? > > In attached file is example of my .org file. > > > Thanks. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Patch to genericize org-yank (6.21b)
The org-yank function has special support for outline structures. But if you want the same behavior for something other than yank, you're out of luck. This patch (against 6.21b) moves the main functionality into org-yank-generic, with yanking being just one particular entry point. (I use this to create a new entry point for a personal clipboard-inserting command.) Derek -- Derek Upham s...@blarg.net -- cut here -- --- org.el.orig 2009-05-11 19:07:08.0 -0700 +++ org.el 2009-05-11 19:09:00.0 -0700 @@ -14809,9 +14809,17 @@ \[1] Basically, the test checks if the first non-white line is a heading and if there are no other headings with fewer stars." (interactive "P") - (setq this-command 'yank) + (org-yank-generic 'yank arg)) + +(defun org-yank-generic (command arg) + "Perform some yank-like command. + +This function implements the behavior described in the `org-yank' +documentation. However, it has been generalized to work for any +interactive command with similar behavior." + (setq this-command command) (if arg - (call-interactively 'yank) + (call-interactively command) (let ((subtreep ; is kill a subtree, and the yank position appropriate? (and (org-kill-is-subtree-p) (or (bolp) @@ -14826,7 +14834,7 @@ end) (if (and subtreep org-yank-adjusted-subtrees) (org-paste-subtree nil nil 'for-yank) - (call-interactively 'yank)) + (call-interactively command)) (setq end (point)) (goto-char beg) (when (and (bolp) subtreep @@ -14842,7 +14850,7 @@ (error (goto-char end) (when swallowp (message -"Yanked text not folded because that would swallow text")) +"Inserted text not folded because that would swallow text")) (goto-char end) (skip-chars-forward " \t\n\r") (beginning-of-line 1) @@ -14852,7 +14860,7 @@ (org-paste-subtree nil nil 'for-yank) (push-mark beg 'nomsg))) (t - (call-interactively 'yank)) + (call-interactively command)) (defun org-yank-folding-would-swallow-text (beg end) "Would hide-subtree at BEG swallow any text after END?" ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Minor correction requested in the manual
Hi, Thanks for this wonderful tool. I noticed a minor typo and thought that I'll bring it to your attention: Location : http://orgmode.org/manual/ARCHIVE-tag.html#ARCHIVE-tag As it is now : C-c C-x a Has to be : C-c C-x C-a Thanks, Kirubakaran. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Newbie Question
Hi, I used CUA mode, so my "C-c" is taken up by the "Copy" function. Is there some way I can replace "C-c" for org mode with, say, "C-Alt-C" ? Thanks, -T ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-protocol links from adobe reader
Done. Hope you like it :) Sebastian Rose schrieb: > Friedrich Delgado Friedrichs writes: > > Sebastian Rose schrieb: > >> How about adding it to the org-protocol docs on Worg: > > Just kidding, I just registered on repo.or.cz and sent mail to > > Bastien. > Looking forward to see your name show up in the next codeswarm video :) ---Zitatende--- -- Friedrich Delgado Friedrichs TauPan on Ircnet and Freenode ;) signature.asc Description: Digital signature ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Latex export colouring and properties
On May 7, 2009, at 8:17 PM, Simon Brown wrote: * Carsten Dominik (carsten.domi...@gmail.com) wrote: I guess this could be implemented, but for me, LaTeX is still mainly used for B&W text, so it never occurred to me. I guess we could wrap some kind of macro around it, and you would be responsible to define that macro I've thought about this some more and although I love colour everywhere what I'm after is actually quite simple. Firstly on reflection I agree exporting draws would be bad. Where I work there are a lot of network restrictions which means many documents are exchanged in printed form. Highlighting the todo state red or green as it is within org-mode, makes important points obvious. Some sort of colouring for the date stamps for scheduled, deadline and closed would be nice as well Hi, I am not going to make this happen by default, but you can now configure things (with the latest git version: In the Org file: #+LATEX_HEADER: \usepackage{color} #+LATEX_HEADER: \def\todo#1{{\color{red}#1}} #+LATEX_HEADER: \def\done#1{{\color{green}#1}} In .emacs (setq org-export-latex-todo-keyword-markup '("\\todo{%s}" . "\ \done{%s}")) It is also possible to use different colors for each keyword. See also the variables org-export-latex-timestamp-keyword-markup org-export-latex-timestamp-markup HTH - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Some Javascript Adventures
Yesterday on my bike ride I was listening to an old FLOSS Podcast about jQuery. There are a few things that Sebastian's org-info-js doesn't do, that I would like. Unfortunately, my knowledge of javascript is almost zero. However, the jQuery library seems to have excellent documentation. More importantly using jQuery seems to mostly protect you from trying to debug your code on lots of different browsers, since the jQuery author has already done it for you. After some experiments I cam up with the following snippets which toggle the visibility of DONE tasks and also timestamps. Hope someone finds them useful! Ian. src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"; type="text/javascript"> You can set up a buttons to call these functions: ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] No indentation for all paragraph
> "SR" == Sebastian Rose writes: [] >> Yes, perfect. And if I want that clocking line will be displayed >> in HTML or PDF exported file? For example: >> >> * Summary of time >> >> CLOCK: [2009-05-11 Po 11:00]--[2009-05-11 Po 11:40] => 0:40 SR> Do an SR> M-x customize-variable RET org-export-with- TAB SR> to see all (global) options related to this topic. SR> You can set this in the #+OPTIONS: line per file (see SR> http://orgmode.org/manual/Export-options.html#Export-options): SR> #+OPTIONS: <:t I added this line in my .org file but still in HTML and PDF CLOCK is not dysplayed. What I make wrong? In attached file is example of my .org file. Thanks. -- Jan Buchal Tel: (00420) 24 24 86 008 Mob: (00420) 608023021 example.org Description: Binary data ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] LaTeX export errors
Dear Org-Mode experts, I'm using Org-Mode 6.26d on Linux and Emacs 23.0: The following org-file-snipplet will fail to be translated to correct LaTeX code: #+LaTeX: \begin{center} #+TBLNAME: Test | A | B | C | | 5% | 1 | 2 | #+TBLFM: @2$3=2*$2 #+LaTeX: \end{center} Triggered will this by the #+LaTeX: ... invocation (#+BEGIN_LaTeX has the same effect). The Error in the generated tex file is that - #+TBLNAME: Test will not be removed - the '%' sign will not be translated to \% Thanks in Advance, Robert Hennig ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] No indentation for all paragraph
Forgot: just in case you're not aware of this: Once you change something in the #+OPTIONS: line, stay there and pre `C-c C-c' to make Org update the local settings. Best Sebastian Sebastian Rose writes: > Jan Buchal writes: >>> "GR" == Giovanni Ridolfi writes: >> >> >> > "SR" == Sebastian Rose writes: >> >> >> >> SR> Try >> >> >> >> SR> \setlength{\parindent}{0em} >> >> >> >> Yes, it works fine for PDf but if I want export the same file to >> >> HTML then in HTML file is this latex command displayed. Is it >> >> possible say that this line has not be exported to HTML? >> >> GR> what about >> >> GR> #+BEGIN_LaTeX \setlength{\parindent}{0em} #+END_LaTeX >> >> GR> Giovanni >> Yes, perfect. And if I want that clocking line will be displayed in HTML >> or PDF exported file? For example: >> >> * Summary of time >> >> CLOCK: [2009-05-11 Po 11:00]--[2009-05-11 Po 11:40] => 0:40 >> >> >> Best > > > Do an > > M-x customize-variable RET org-export-with- TAB > > to see all (global) options related to this topic. > > > You can set this in the #+OPTIONS: line per file (see > http://orgmode.org/manual/Export-options.html#Export-options): > > #+OPTIONS: <:t ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] No indentation for all paragraph
Jan Buchal writes: >> "GR" == Giovanni Ridolfi writes: > > >> > "SR" == Sebastian Rose writes: > >> > >> SR> Try > >> > >> SR> \setlength{\parindent}{0em} > >> > >> Yes, it works fine for PDf but if I want export the same file to > >> HTML then in HTML file is this latex command displayed. Is it > >> possible say that this line has not be exported to HTML? > > GR> what about > > GR> #+BEGIN_LaTeX \setlength{\parindent}{0em} #+END_LaTeX > > GR> Giovanni > Yes, perfect. And if I want that clocking line will be displayed in HTML > or PDF exported file? For example: > > * Summary of time > > CLOCK: [2009-05-11 Po 11:00]--[2009-05-11 Po 11:40] => 0:40 > > > Best Do an M-x customize-variable RET org-export-with- TAB to see all (global) options related to this topic. You can set this in the #+OPTIONS: line per file (see http://orgmode.org/manual/Export-options.html#Export-options): #+OPTIONS: <:t Regards Sebastian ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] latex fragment problems with * environments
Carsten Dominik writes: > On May 12, 2009, at 12:07 PM, Eric S Fraga wrote: > > Apologies. I missed this. I don't track the latest git version, > > preferring to track the debian unstable version as it makes my life > > easier (given that I use 3+ computers daily...). I do, however, try > > to keep track of what has been fixed and I missed this. > > No problem. > > I need to make a new release soon, enough stuff has accuulated Actually, you've motivated me to move to the development version on all my systems (I already use an automated procedure tied to Mercurial for my own projects and it's relatively easy to add git to this procedure...). Org-mode is now such an integral part of my life that it seems silly not to be at the edge of development! Thanks again, eric ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] latex fragment problems with * environments
On May 12, 2009, at 12:07 PM, Eric S Fraga wrote: Carsten Dominik writes: Hi Eric, this was fixed 11 days ago in commit 5f86fd7ae2da40b20c967382fa938fc871fb7e44 If you use the latet git version, this problem will not be present. Apologies. I missed this. I don't track the latest git version, preferring to track the debian unstable version as it makes my life easier (given that I use 3+ computers daily...). I do, however, try to keep track of what has been fixed and I missed this. No problem. I need to make a new release soon, enough stuff has accuulated - Carsten ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] No indentation for all paragraph
> "GR" == Giovanni Ridolfi writes: >> > "SR" == Sebastian Rose writes: >> >> SR> Try >> >> SR> \setlength{\parindent}{0em} >> >> Yes, it works fine for PDf but if I want export the same file to >> HTML then in HTML file is this latex command displayed. Is it >> possible say that this line has not be exported to HTML? GR> what about GR> #+BEGIN_LaTeX \setlength{\parindent}{0em} #+END_LaTeX GR> Giovanni Yes, perfect. And if I want that clocking line will be displayed in HTML or PDF exported file? For example: * Summary of time CLOCK: [2009-05-11 Po 11:00]--[2009-05-11 Po 11:40] => 0:40 Best -- Jan Buchal Tel: (00420) 24 24 86 008 Mob: (00420) 608023021 ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] latex fragment problems with * environments
Carsten Dominik writes: > Hi Eric, > > this was fixed 11 days ago in commit > > 5f86fd7ae2da40b20c967382fa938fc871fb7e44 > > If you use the latet git version, this problem will not be present. Apologies. I missed this. I don't track the latest git version, preferring to track the debian unstable version as it makes my life easier (given that I use 3+ computers daily...). I do, however, try to keep track of what has been fixed and I missed this. Thanks, eric ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] No indentation for all paragraph
> > "SR" == > Sebastian Rose > writes: > > SR> Try > > SR> \setlength{\parindent}{0em} > > Yes, it works fine for PDf but if I want export the same > file to HTML > then in HTML file is this latex command displayed. Is it > possible say > that this line has not be exported to HTML? what about #+BEGIN_LaTeX \setlength{\parindent}{0em} #+END_LaTeX Giovanni ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-protocol links from adobe reader
Friedrich Delgado Friedrichs writes: > Sebastian Rose schrieb: >> How about adding it to the org-protocol docs on Worg: > >>http://orgmode.org/worg/org-contrib/org-protocol.php#sec-3 >> >> I wouldn't bother to do it myself, but, as you might have read on the >> other thread, code_swarm is better for projects with lots of committers >> ;-) > ---Zitatende--- > > Help! Help! I'm being dragged into another project against my will! > > ;-) > > Just kidding, I just registered on repo.or.cz and sent mail to > Bastien. Looking forward to see your name show up in the next codeswarm video :) Thanks Sebastian ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] No indentation for all paragraph
> "SR" == Sebastian Rose writes: SR> Try SR> \setlength{\parindent}{0em} Yes, it works fine for PDf but if I want export the same file to HTML then in HTML file is this latex command displayed. Is it possible say that this line has not be exported to HTML? -- Jan Buchal Tel: (00420) 24 24 86 008 Mob: (00420) 608023021 ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-publish doesn't republish if you delete the .html files
On May 10, 2009, at 9:27 PM, Daniel Clemente wrote: Hi; with org 6.26trans: 1. Publish a project you have configured with org-publish, concretely one that places the .html files locally beside the .org files. 2. While exporting, Org creates its own data in ~/.org-timestamps to cache things 3. Delete the new .html which have been created 4. Try to publish the same project again 5. Org-publish skips the file: Skipping unmodified file /home/dc/ patata/index.org One problem here is that org-publish does not really know the name of the file that will be produced, because the publishing function can be freely set by the user and may, for example, produce several files in one go. I see very well how useful this checking would be, and it could be done readily for the built-in publishing functions. But I am not yet sure how this is to be done. Workaround: Use a prefix argument when publishing, this will force republishing of all files. HTH - Carsten I think that most people would expect the .html files to be created again. Now users are expected to delete ~/.org-timestamps manually, which is not obvious. Org could check for the .html files first, and if they are not present, always create them. Even if this check involves access to a remote server, I think it is worth it at access time, since it assures republishing (and otherwise, you get nothing). Full event log: , | Saving file /home/dc/patata/index.html... | Wrote /home/dc/patata/index.html | Exporting... done | Saving file /home/dc/.org-timestamps/ X24bafcf2c400ea6b5088e9afd58c590112bccd0c... | Wrote /home/dc/.org-timestamps/ X24bafcf2c400ea6b5088e9afd58c590112bccd0c | Delete * [2 files] (y or n) | 1 of 2 deletions | 2 of 2 deletions | 2 deletions done | Select command: | Skipping unmodified file /home/dc/patata/temas.org | Skipping unmodified file /home/dc/patata/index.org | Updating buffer list...done | Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help | Mark saved where search started | Mark set ` Thanks, Daniel ___ Emacs-orgmode mailing list Remember: 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 Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Exporting for word processors
Hi, Jeffrey> Can anyone help me out? I suspect that docbook is the key, but Jeffrey> I've tried to find an answer there and am flummoxed by the Jeffrey> docbook documentation. Indeed, you can use docbook and something like docbook2odf to convert to something OpenOffice.org can read. You'll have to experiment, I really hope this will work well because that's what docbook has been designed for. You can also directly write to ODT, I've done such an export filter for emacs muse some time ago, I can't remember if I published it somewhere, but basically it is really simple : - start OpenOffice and write some dummy text and apply paragraph style to them. Make sure you use every type of structure you will need later (lists, titles ...). - tweak your styles to suit your tastes - save file somewhere as template.odt - odt is a zipped directory, so unzip the file and look inside, you will find something like content.xml, read it carefully, so you will know how to write it later. Now write an exporter that can be customized to use a given « template.odt » file. It will first unzip this file, then replace content.xml by a newly generated content.xml from your org file, then zip back the whole directory and voila. -- Paul ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode