Re: [O] Installing Org through the new http://orgmode.org ELPA
Hi Eric, Eric Schulte eric.schu...@gmx.com writes: should be expanded to ;; -*- emacs-lisp -*- (package-initialize);; Initialize Install Package (unless package-archive-contents (package-refresh-contents)) (unless (package-installed-p 'org) (package-install 'org)) (require 'org-install) ;; Initialize Org ;; (setq org-...) ;; Custom settings I gave these instructrion, but in a separate chunk as I want to keep the first one very short and clear... Thanks for this! -- Bastien
Re: [O] auto-fill non-op, fill-paragraph error
Achim Gratz strom...@nexgo.de writes: Maybe the manual and Worg should be checked for bad advice in that direction? Yes. I updated the manual but did not check Worg yet. If someone can have a go, great. -- Bastien
Re: [O] [PATCH] speedup redisplay of agenda item after change
Hi Max, Max Mikhanosha m...@openchat.com writes: Following patch changes (org-agenda-change-all-lines) to call (org-agenda-finalize) for each line changed, with agenda buffer narrowed to just that line, and it speeds up redisplay of current item a lot, the Shift-Up changing of priority can almost keep up with keyboard repeat rate on large agendas. This is a great optimization trick, thanks a lot for this patch, I just applied it. I was running with this patch for a month, and did not noticed any problems so far. Did you run it with latest Org from maint, from master? Also, would you like to get push access to the repo? I'd be glad. Just send me your public key if so. Thanks! -- Bastien
Re: [O] [BUG] org-agenda-goto-today from end of agenda buffer fails / OS-X only
Hi Juan, Juan Pechiar j...@pechiar.com writes: A very minor bug when jumping to today from agenda buffer, on Emacs for OS-X. Fixed, thanks. The thing is, if you add a text property from (point-min) to (point-max), (get-text-property (point-max) 'prop) will always return nil -- because it checks against the character *after* (point-max)... which does not exist of course. Thanks for reporting this! -- Bastien
Re: [O] [bug] COMMENT alone on heading ignored by new exporter
Hello, Eric Fraga e.fr...@ucl.ac.uk writes: I often use COMMENT in headlines to block out text that I don't want exported. This works generally very well. However, sometimes I comment a headline that has no headline text, as in * COMMENT alone. These sections are ignored properly by the old exporter but not the new one. This is fixed. Thank you for the report. Regards, -- Nicolas Goaziou
[O] (no subject)
I just did make up2 And on OSX 10.8.2 and Emacs 24.2 I get: Ran 208 tests, 207 results as expected, 1 unexpected (2012-09-29 09:27:47+0200) 6 expected failures 1 unexpected results: FAILED test-ob/org-babel-remove-result--results-org make[1]: *** [test-dirty] Error 1 make: *** [up2] Error 2 Perhaps this is useful information
Re: [O] Bug: org-preview-latex-fragment does not work with pygmentize (-shell-escape missing) [with patch] [7.8.11]
Hi Arne, Arne Babenhauserheide (IMK) arne.babenhauserhe...@kit.edu writes: When using the minted package, latex requires the -shell-escape argument to call pygmentize. Due to this, org-preview-latex-fragment fails for me (used via C-c C-x C-l). I use minted too and C-c C-x C-l works here. Can you let us know how to reproduce the error? -- Bastien
[O] test fails on OSX
Sorry for the missing subject in the last message, here it is again with a subject line. I just did make up2 And on OSX 10.8.2 and Emacs 24.2 I get: Ran 208 tests, 207 results as expected, 1 unexpected (2012-09-29 09:27:47+0200) 6 expected failures 1 unexpected results: FAILED test-ob/org-babel-remove-result--results-org make[1]: *** [test-dirty] Error 1 make: *** [up2] Error 2 Perhaps this is useful information
Re: [O] (no subject)
Neuwirth Erich erich.neuwi...@univie.ac.at writes: 1 unexpected results: FAILED test-ob/org-babel-remove-result--results-org Fixed, thanks. -- Bastien
[O] tables once again
Bastien, does the current git version contain the new LaTeX exporter? I am asking because I just installed via make up2 (as you noticed) after you fixed the export but and l c r are still not respected in LaTeX export on my Mac. html export works as expected. #+title: Table test ** My Table | Headhead | headhead | headhead | headhead | headhead | headhead | headhead | headhead | |--+--+--+--+--+--+--+--| | l | c | r | | l | c | r | | | 1| 1|1 |1 | aa | aa | aa | aa |
Re: [O] (no subject)
Bastien writes: 1 unexpected results: FAILED test-ob/org-babel-remove-result--results-org Fixed, thanks. There are some tests that are supposed to have whitespace errors, based on the comments in the file, but you've removed them along with all the others. I've reverted that hunk of the commit. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] tables once again
Hello, Neuwirth Erich erich.neuwi...@univie.ac.at writes: does the current git version contain the new LaTeX exporter? I am asking because I just installed via make up2 (as you noticed) after you fixed the export but and l c r are still not respected in LaTeX export on my Mac. html export works as expected. #+title: Table test ** My Table | Headhead | headhead | headhead | headhead | headhead | headhead | headhead | headhead | |--+--+--+--+--+--+--+--| | l | c | r | | l | c | r | | | 1| 1|1 |1 | aa | aa | aa | aa | From git, assuming you have contrib/ in your load-path: (require 'org-e-latex) Then, M-x org-export-dispatch Regards, -- Nicolas Goaziou
Re: [O] (no subject)
Achim Gratz strom...@nexgo.de writes: There are some tests that are supposed to have whitespace errors, based on the comments in the file, but you've removed them along with all the others. I've reverted that hunk of the commit. Thanks, -- Bastien
Re: [O] Problem: Moving rows in a table changes vsum start and end
On 28.9.2012, at 18:00, Bastien wrote: Hi Torsten, Torsten Wagner torsten.wag...@gmail.com writes: I might start very very simple and hope you are wiling enough to help me to translate whatever mess I send you into some reasonable patch ;) I just pushed this: Org now sends a message when the formulas have been updated. Something less intrusive like a temporary overlay would be nice, though. But I don't think an overlay would work anyway, because the change could be easily off the screen beyond the right edge. A message is better - lets see if it gets annoying. Thorsten, if you look at the manual, there are ways to write this limits of vsum etc in a way that they are relative to the table boundaries or to horizontal lines. This is robust agains changes of rows. - Carsten -- Bastien
Re: [O] [PATCH] speedup redisplay of agenda item after change
Looks great, and I see no reasons why this should break anything. - Carsten On 28.9.2012, at 19:01, Max Mikhanosha wrote: I had noticed that with large agendas (several hundred items), any command that changes and re-displays the current item is slow. For example something like changing priority with Shift-Up/Down key, can take a second or two. Most of that time is spent in (org-agenda-finalize) call, which is responsible for putting finishes touches, such as fortifying [#A] as bold when you change priority from [#B]. It seems that even if only single line had changed, the (org-agenda-finalize) still processes entire agenda buffer, which is the cause of the slowness. Following patch changes (org-agenda-change-all-lines) to call (org-agenda-finalize) for each line changed, with agenda buffer narrowed to just that line, and it speeds up redisplay of current item a lot, the Shift-Up changing of priority can almost keep up with keyboard repeat rate on large agendas. I was running with this patch for a month, and did not noticed any problems so far. From 432293f3c55308f3f76b0c5284ca696fb11f10ea Mon Sep 17 00:00:00 2001 From: Max Mikhanosha m...@openchat.com Date: Fri, 28 Sep 2012 09:02:07 -0400 Subject: [PATCH] speedup redisplay of agenda item after change * lisp/org-agenda.el (org-agenda-change-all-lines): speedup refresh of a single line of agenda by narrowing the agenda buffer just that line before calling org-agenda-finalize- --- lisp/org-agenda.el | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index ea607eb..30dd5bf 100755 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -8079,9 +8079,11 @@ (defun org-agenda-change-all-lines (newhead hdmarker undone-face done-face (org-agenda-highlight-todo 'line) (beginning-of-line 1)) -(t (error Line update did not work - (beginning-of-line 0))) -(org-agenda-finalize))) +(t (error Line update did not work))) + (save-restriction + (narrow-to-region (point-at-bol) (point-at-eol)) + (org-agenda-finalize))) + (beginning-of-line 0) (defun org-agenda-align-tags (optional line) Align all tags in agenda items to `org-agenda-tags-column'. -- 1.7.11.rc0.100.g5498c5f
Re: [O] (no subject)
Neuwirth Erich writes: Perhaps this is useful information It would be more useful if the Org version you are trying to make was included, but since it's probably not installed in lispdir yet, your installed emacs would show a different version. So I've implemented a new target `config-version´ to make this easy to produce with make… org-mode make config-version = Org version make: Org-mode version 7.9.1 (release_7.9.1-442-g9ab8cb = /usr/local/share/emacs/site-lisp/org) Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
Re: [O] Feature request: v1 - v9
Hi John, John Wiegley jo...@newartisans.com writes: I can get an agenda report for the next 4 days using: M-: (org-agenda-change-time-span 4) RET But there seems to be no command for doing so. It would be nice if `v N', where N is a number 1-9, could give me a report for the next N days. I like this idea. On my TODO list for 8.0. But maybe you'll come up with something in the meanwhile :) Thanks, -- Bastien
Re: [O] Problem: Moving rows in a table changes vsum start and end
Carsten Dominik writes: I just pushed this: Org now sends a message when the formulas have been updated. Something less intrusive like a temporary overlay would be nice, though. Thorsten, if you look at the manual, there are ways to write this limits of vsum etc in a way that they are relative to the table boundaries or to horizontal lines. This is robust agains changes of rows. This would be easier to do if the formula editor didn't have the bug I've reported some time ago. Any chance that you or someone else could have a look at it? I've tried to find the culprit, but there's just too much going on at the same time in that part of the code and whatever I've fixed in one area would break something else in another… :-( Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves
Re: [O] Problem: Moving rows in a table changes vsum start and end
Hi Achim, Achim Gratz strom...@nexgo.de writes: This would be easier to do if the formula editor didn't have the bug I've reported some time ago. Any chance that you or someone else could have a look at it? I've tried to find the culprit, but there's just too much going on at the same time in that part of the code and whatever I've fixed in one area would break something else in another… :-( Can you point at this bug again? I might have a quick look. -- Bastien
Re: [O] Problem: Moving rows in a table changes vsum start and end
On 29.9.2012, at 11:57, Achim Gratz wrote: Carsten Dominik writes: I just pushed this: Org now sends a message when the formulas have been updated. Something less intrusive like a temporary overlay would be nice, though. Thorsten, if you look at the manual, there are ways to write this limits of vsum etc in a way that they are relative to the table boundaries or to horizontal lines. This is robust agains changes of rows. This would be easier to do if the formula editor didn't have the bug I've reported some time ago. Any chance that you or someone else could have a look at it? I've tried to find the culprit, but there's just too much going on at the same time in that part of the code and whatever I've fixed in one area would break something else in another… :-( I did have a look, and it is very difficult to fix, unfortunately. If I find enough time, I will rewrite the whole range parser, but that is totally non-trivial. Sorry about that. - Carsten Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves
Re: [O] Problem: Moving rows in a table changes vsum start and end
Bastien writes: This would be easier to do if the formula editor didn't have the bug I've reported some time ago. Any chance that you or someone else could have a look at it? I've tried to find the culprit, but there's just too much going on at the same time in that part of the code and whatever I've fixed in one area would break something else in another… :-( Can you point at this bug again? I might have a quick look. http://permalink.gmane.org/gmane.emacs.orgmode/52744 Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
Re: [O] Problem: Moving rows in a table changes vsum start and end
Carsten Dominik carsten.domi...@gmail.com writes: I did have a look, and it is very difficult to fix, unfortunately. If I find enough time, I will rewrite the whole range parser, but that is totally non-trivial. Sorry about that. Er... Achim, forget about my own proposal then :) (Still, the link would be useful for archiving's sake.) -- Bastien
Re: [O] Problem: Moving rows in a table changes vsum start and end
Carsten Dominik writes: I did have a look, and it is very difficult to fix, unfortunately. If I find enough time, I will rewrite the whole range parser, but that is totally non-trivial. Sorry about that. That explains my lack of luck… :-) Any chance that org-element might be helpful in a re-implementation? I'm still having that tableheadings branch un-merged since I decided that I didn't want to implement it for all the old exporters when they were already deprecated. But it is surely something I'd want to push for 8.0 and that will have to be taken into account for formulas just as well, so I'll have to familiarize myself with that part of the code anyway. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptation for Waldorf Blofeld V1.15B11: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
[O] A PHP library for exporting org syntax to HTML?
Hi all, For PHP hackers around... txt2tags is a well known lightweight markup tool and some of you may already be familiar with it: http://txt2tags.org A new PHP library has been developed which allows using t2t as a replacement for MarkDown / rst / you-name-it in websites. http://txt2tags.org/txt2tags.form.php The code is GPLv3 and maybe it is not too hard to adapt it and have an equivalent Org PHP library. Let us know if it does inspire you! Best, PS: French readers can read this: http://linuxfr.org/news/sortie-de-txt2tags-en-version-php -- Bastien
Re: [O] Problem: Moving rows in a table changes vsum start and end
On 29.9.2012, at 12:11, Achim Gratz wrote: Carsten Dominik writes: I did have a look, and it is very difficult to fix, unfortunately. If I find enough time, I will rewrite the whole range parser, but that is totally non-trivial. Sorry about that. That explains my lack of luck… :-) Any chance that org-element might be helpful in a re-implementation? I'm still having that tableheadings branch un-merged since I decided that I didn't want to implement it for all the old exporters when they were already deprecated. But it is surely something I'd want to push for 8.0 and that will have to be taken into account for formulas just as well, so I'll have to familiarize myself with that part of the code anyway. This time I do not remember what this was. Do you have a reminder link for me? Regards - Carsten Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ SD adaptation for Waldorf Blofeld V1.15B11: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
[O] new html exporter
Hi, I gave the new html exporter a try (org-e-html-to-file). The export obviously ignores my setup file, and so the path to my css and js files. Maybe with the new exporter everything has changed and I only miss a good tutorial? henry -- http://literaturlatenight.de
Re: [O] Problem: Moving rows in a table changes vsum start and end
Carsten Dominik writes: On 29.9.2012, at 12:11, Achim Gratz wrote: Any chance that org-element might be helpful in a re-implementation? I'm still having that tableheadings branch un-merged since I decided that I didn't want to implement it for all the old exporters when they were already deprecated. But it is surely something I'd want to push for 8.0 and that will have to be taken into account for formulas just as well, so I'll have to familiarize myself with that part of the code anyway. This time I do not remember what this was. Do you have a reminder link for me? The discussion is here: http://thread.gmane.org/gmane.emacs.orgmode/31402/focus=31443 Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables
[O] org-insert-link with HTML title as default description
Hi all. I'm new to the whole emacs/elisp/org-mode thing and I have to say I'm amazed by it. Thank you for all the hard work. That having been said, I've hacked together two functions that are useful to me. I was wondering what are your thoughts on including their idea (but with a better implementation) to org-mode? I've done some reasonable googling but haven't concluded that org-mode has something similar. 8 (defun my-org-insert-link () Insert org link where default description is set to html title. (interactive) (let* ((url (read-string URL: )) (title (get-html-title-from-url url))) (org-insert-link nil url title))) (defun get-html-title-from-url (url) Return content in title tag. (let (x1 x2 (download-buffer (url-retrieve-synchronously url))) (save-excursion (set-buffer download-buffer) (beginning-of-buffer) (setq x1 (search-forward title)) (search-forward /title) (setq x2 (search-backward )) (buffer-substring-no-properties x1 x2 --8 Cheers, Miro
Re: [O] [bug] COMMENT alone on heading ignored by new exporter
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Eric Fraga e.fr...@ucl.ac.uk writes: I often use COMMENT in headlines to block out text that I don't want exported. This works generally very well. However, sometimes I comment a headline that has no headline text, as in * COMMENT alone. These sections are ignored properly by the old exporter but not the new one. This is fixed. Thank you for the report. Thanks. Works fine now! -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.2.50.1 and Org release_7.9.1-412-g75820c
Re: [O] org-insert-link with HTML title as default description
Hi Miro, Miro Bezjak bezjak.m...@gmail.com writes: That having been said, I've hacked together two functions that are useful to me. I was wondering what are your thoughts on including their idea (but with a better implementation) to org-mode? Nice. I'm not really in favor of including this command because it depends on whether the web is accessible or not. When it is, I guess most people store links with C-c C-l (in w3m) or use a capture template -- but some might enjoy your hack. IMHO this is a good candidates for the hacks we add on this page: http://orgmode.org/worg/org-hacks.html If you want to contribute to Worg please send me your public key. Thanks! -- Bastien
Re: [O] org-insert-link with HTML title as default description
Hi Miro and Bastien, This can be done by setting the function `org-make-link-description-function'. However when set, the function is supposed to handle all type of links and return a string no matter what. There is no fallback mechanism. Here is a patch that fixes it: diff --git a/lisp/org.el b/lisp/org.el index bdb85de..3630623 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9527,10 +9527,12 @@ Use TAB to complete link prefixes, then RET for type-spe (setq desc path (if org-make-link-description-function - (setq desc (funcall org-make-link-description-function link desc)) - (if default-description (setq desc default-description) - (setq desc (or (and auto-desc desc) - (read-string Description: desc) + (setq desc (or (funcall org-make-link-description-function link desc) + desc))) + +(if default-description (setq desc default-description) + (setq desc (or (and auto-desc desc) +(read-string Description: desc (unless (string-match \\S- desc) (setq desc nil)) (if remove (apply 'delete-region remove)) For example my `org-make-link-description-function' is: (setq org-link-to-description '((\\`file:.*/\\([^/:]+\\)\\(::.*\\) . \\1) (\\`file:.*/\\([^/:]+\\) . \\1))) (setq org-make-link-description-function (lambda (link description) (let ((found (assoc-default link org-link-to-description 'string-match))) (cond ((stringp found) (match-substitute-replacement found t nil link)) HTH, Sylvain.
Re: [O] new html exporter
On 09/29/2012 01:36 PM, henry atting wrote: Hi, I gave the new html exporter a try (org-e-html-to-file). The export obviously ignores my setup file, and so the path to my css and js files. Maybe with the new exporter everything has changed and I only miss a good tutorial? henry Do you want to export a single file or do you want to publish a complete project? As for projects, the setup is very similar to the old exporter. I noticed however, I used some deprecated options or options not in the right way, so I did have my own problems getting publishing to work. Until recently you had to require org-e-html in your .emacs for publishing to work. Thanks to Nicolas great help this and some other obstacles are removed in recent git versions (master branch, not maint). I attached a description of an example project using the new exporter. The example isn't comprehensive, but it should get you started. Best regards Robert #+ -*- fill-column:75; coding: utf-8-unix; -*- #+TITLE: Using the new org exporter * Setting up org-mode /Note:/ You'll need a rather current version of the Org mode git master for everything to work. See [[http://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development]] on how to get a current version. See [[http://orgmode.org/worg/dev/org-build-system.html]] for more information about installing Org mode. To use the new exporter the autoloads for it have to be created. If you install Org mode with, e.g. =make= ensure you have something like the following line in your local.mk: #+begin_example ORG_ADD_CONTRIB = org-e-* org-md org-export #+end_example * helper function to save this files code as new-exporter.emacs This is simply a helper function for tangling this file. The helper function is included in the tangled file, so I don't have to C-x C-e it before use. Adjust file names and path for your own use. #+begin_src emacs-lisp (defun roklein/save-dotemacs () Save my emacs configuration as new-exporter.emacs (interactive) (let* ((source-directory ~/Documents/org/emacs) (source-filename newexporter.org) (destination-dir ~/Documents/org/emacs) (destination-filename new-exporter.emacs)) (org-babel-tangle-file (expand-file-name source-filename source-directory) (expand-file-name destination-filename destination-dir) emacs-lisp))) #+end_src * load org specific settings First I'm setting the load-path for org-mode including contrib. Depending on your Org mode setup you don't need to load-path the contrib directory. #+begin_src emacs-lisp ;;; ;;; org-mode and contrib ;;; (setq load-path (cons ~/.emacs.d/org-mode/lisp load-path)) (setq load-path (cons ~/.emacs.d/org-mode/contrib/lisp load-path)) (require 'org-install) #+end_src * Initializing the new exporter First I initialize the alist. Note, the alist has a different name than the alist for the old exporter. #+begin_src emacs-lisp (setq org-e-publish-project-alist nil) #+end_src * Configuring a project ** alist entry for the complete project The project is made up from two components, the part publishing the org files (example-html) and the part copying the static files. #+begin_src emacs-lisp (add-to-list 'org-e-publish-project-alist '(example :components (example-html example-extra))) #+end_src ** alist-entry for .org-files First I'm configuring setting up the alist entry for html publishing. #+begin_src emacs-lisp (add-to-list 'org-e-publish-project-alist '(example-html #+end_src The first for items are necessary for any publishing project. They are pretty much the same as for the old exporter. The publishing functions name has changed to =org-e-publish-org-to-html=. The =:base-directory= is where the file to be published are located; =:base-extension= tells the publishing function which files are to be published, =:publishing-directory= is the directory where the exported files are written to, and =:publishing-function= is the function used be the publisher to export the files as determined by the =:base-directory= and =:base-extension=. #+begin_src emacs-lisp :base-directory ~/Documents/org/example :base-extension org :publishing-directory ~/public_html/example.com :publishing-function org-e-publish-org-to-html #+end_src The publisher can invoke a function each before starting the publishing process and after finishing it. E.g. you can disable the confirmation prompt when evaluating babel code and enable it again after publishing is complete. #+begin_src emacs-lisp :preparation-function example-prepare :completion-function example-complete #+end_src Some information I don't want to have in every .org files header... #+begin_src emacs-lisp :author John Doe
Re: [O] new html exporter
Robert Klein klein...@mpip-mainz.mpg.de writes: On 09/29/2012 01:36 PM, henry atting wrote: Hi, I gave the new html exporter a try (org-e-html-to-file). The export obviously ignores my setup file, and so the path to my css and js files. Maybe with the new exporter everything has changed and I only miss a good tutorial? henry Do you want to export a single file or do you want to publish a complete project? Only a single file. I understand that something like this will no work anymore with the new exporter. #+SETUPFILE: /home/me/.setup.org whereby the content of the setup file is: #+STYLE: link rel=stylesheet type=text/css href=/home/me/.style.css / #+INFOJS_OPT: view:info toc:t path:/home/me/.org-info.js Besides I'm pretty happy with the old exporter and was only curious because I read that it will be replaced with the new one in a future stable version. I hope the old one will remain part of contrib (or antique or whatever) so I can choose to my liking. As for projects, the setup is very similar to the old exporter. I noticed however, I used some deprecated options or options not in the right way, so I did have my own problems getting publishing to work. Until recently you had to require org-e-html in your .emacs for publishing to work. Thanks to Nicolas great help this and some other obstacles are removed in recent git versions (master branch, not maint). I attached a description of an example project using the new exporter. The example isn't comprehensive, but it should get you started. Best regards Robert Best regards henry -- http://literaturlatenight.de
Re: [O] LaTeX beamer export: relative file links?
James Harkins jamshar...@gmail.com wrote: I'm writing presentations for my classes using beamer export from org-mode (which is working beautifully, btw -- it's faster than LibreOffice impress and I get a convenient plain text archive of my slide contents to boot). I'm authoring in Linux but I have to show the pdfs in windows. That's generally no problem, except... this week I wanted a link on one slide to an mp3 audio example. I entered the link in org-mode as a relative path ./blah.mp3, which either org or latex expanded to a UNIX-style full path. (I'm guessing org.) Obviously windows would not understand the UNIX path. The question, then: Is it possible to use relative paths for file links in latex export? (I admit, I haven't searched for customize variables before writing this- apologies if it's obvious. I spent most of my research time this week setting up a mingw build environment for SuperCollider, so I'm a bit search-fatigued I'm afraid.) Maybe this: , | org-link-file-path-type is a variable defined in `org.el'. | Its value is adaptive | | Documentation: | How the path name in file links should be stored. | Valid values are: | | relative Relative to the current directory, i.e. the directory of the file | into which the link is being inserted. | absolute Absolute path, if possible with ~ for home directory. | noabbrev Absolute path, no abbreviation of home directory. | adaptive Use relative path for files in the current directory and sub- | directories of it. For other files, use an absolute ` Nick
Re: [O] new html exporter
Hello, henry atting nsmp...@online.de writes: Only a single file. I understand that something like this will no work anymore with the new exporter. #+SETUPFILE: /home/me/.setup.org It's #+SETUP_FILE: in the new exporter. Besides I'm pretty happy with the old exporter and was only curious because I read that it will be replaced with the new one in a future stable version. I hope the old one will remain part of contrib (or antique or whatever) so I can choose to my liking. It would help to know what the new exporter is missing. Regards, -- Nicolas Goaziou
Re: [O] org-insert-link with HTML title as default description
Hi Sylvain, Bastien, I have indeed noticed `org-make-link-description-function'. Though, from its documentation I've somehow concluded that it makes the final (and not default) description. By rereading documentation and source code for `org-insert-link', it appears that with addition of Sylvain's patch I could indeed use `org-make-link-description-function' and not wrap around `org-insert-link'. Cheers, Miro P.S. I'm sending SSH public key in a separate mail. On Sat, Sep 29, 2012 at 5:09 PM, Sylvain Rousseau this...@gmail.com wrote: Hi Miro and Bastien, This can be done by setting the function `org-make-link-description-function'. However when set, the function is supposed to handle all type of links and return a string no matter what. There is no fallback mechanism. Here is a patch that fixes it: diff --git a/lisp/org.el b/lisp/org.el index bdb85de..3630623 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9527,10 +9527,12 @@ Use TAB to complete link prefixes, then RET for type-spe (setq desc path (if org-make-link-description-function - (setq desc (funcall org-make-link-description-function link desc)) - (if default-description (setq desc default-description) - (setq desc (or (and auto-desc desc) - (read-string Description: desc) + (setq desc (or (funcall org-make-link-description-function link desc) + desc))) + +(if default-description (setq desc default-description) + (setq desc (or (and auto-desc desc) +(read-string Description: desc (unless (string-match \\S- desc) (setq desc nil)) (if remove (apply 'delete-region remove)) For example my `org-make-link-description-function' is: (setq org-link-to-description '((\\`file:.*/\\([^/:]+\\)\\(::.*\\) . \\1) (\\`file:.*/\\([^/:]+\\) . \\1))) (setq org-make-link-description-function (lambda (link description) (let ((found (assoc-default link org-link-to-description 'string-match))) (cond ((stringp found) (match-substitute-replacement found t nil link)) HTH, Sylvain.
Re: [O] Caption and notes for images in latex export
By default, orgmode export to latex puts captions of images below the images. How to change the behaviour and make the captions appear at the top? You can use filters: #+begin_src emacs-lisp (defun my-latex-captions-above (link backend info) (when (and (memq backend '(e-latex e-beamer)) (string-match \\(^centering\nincludegraphics.*\n\\)\\(caption.*\n\\) link)) (replace-match \\2\\1 nil nil link))) (add-to-list 'org-export-filter-link-functions 'my-latex-captions-above) #+end_src Also, I would like to add Notes and Source below the image. What is the right way of doing that? You can use the same filter. This is left as an exercise. Thanks for responses. I am not sure if I should, at the moment, allow myself to get distracted into experimenting with the org-mode code. I am going to let it be, and leave it for later. Thanks again, Vikas
Re: [O] org-insert-link with HTML title as default description
Hi Sylvain, Sylvain Rousseau this...@gmail.com writes: This can be done by setting the function `org-make-link-description-function'. However when set, the function is supposed to handle all type of links and return a string no matter what. There is no fallback mechanism. Here is a patch that fixes it: Thanks for pointing at this -- I implemented a different fallback that interactively prompt for a description when the adhoc function fails (I also prevented an error in this function to stop the insertion of a link.) Let me know if this is okay for you. Best, -- Bastien
Re: [O] Feature request: v1 - v9
Hi John, * John Wiegley jo...@newartisans.com [27. Sep. 2012]: I can get an agenda report for the next 4 days using: M-: (org-agenda-change-time-span 4) RET But there seems to be no command for doing so. It would be nice if `v N', where N is a number 1-9, could give me a report for the next N days. How is this different to ^U 4 ^C a a ? Ciao, Gregor
[O] Org-mode release 7.9.2
Hi all, I've released Org 7.9.2. http://orgmode.org/org-7.9.2.zip http://orgmode.org/org-7.9.2.tar.gz See http://orgmode.org/Changes.html#sec-1 for the updated list of changes. Thanks again to all who contributed! Enjoy, -- Bastien
[O] Code Block Headers Appear in Export
I find that code block header arguments specified with `#+HEADERS:' consistently appear in the exported document. For example, exporting the following document to PDF or HTML will include the exports header in the output: * Manifestation of Problem Look, our headers appear in the export: #+headers: :exports both #+BEGIN_SRC R :results output sd(rnorm(50)) #+END_SRC How does one suppress the export of header arguments? For reference, I'm using Org-mode version 7.9.1.
Re: [O] org-insert-link with HTML title as default description
This is definitely better! Your version is actually more faithful to the original one as it ignores `default-description' when `org-make-link-description-function' is set (and succeed). Cheers, Sylvain.
Re: [O] Org-mode release 7.9.2
Bastien b...@altern.org writes: I've released Org 7.9.2. [...] See http://orgmode.org/Changes.html#sec-1 for the updated list of changes. Excellent release! Probably my favorite: , | * New special property CLOCKSUM_T to display today's clocked time | | You can use CLOCKSUM_T the same way you use CLOCKSUM. It will | display the time spent on tasks for today only. ` This is so *immensely* useful, thanks! Memnon
Re: [O] LaTeX beamer export: relative file links?
At Sat, 29 Sep 2012 12:34:05 -0400, Nick Dokos wrote: Maybe this: , | org-link-file-path-type is a variable defined in `org.el'. | Its value is adaptive No. That's about storage of links, but in my org file, the links *are* relative. They become absolute during export. Less search-fatigued this morning. It seems, from the section of org-export-latex-links pasted below, that file paths are always expanded and this is not configurable. My test: # export header stuff omitted except the really critical: #+TITLE: Applied Techniques for Digital Audio \newline Introduction to Filters #+AUTHOR:H. James Harkins #+DATE: 26 September 2012 * Section ** Slide *** Bullet with [[./1346482292091_2436.mp3][inline link]] C-c C-e l produces: \item Bullet with \href{file:///media/39ED-A99A/some/folders/omitted/1346482292091_2436.mp3}{inline link} hjh (path (cond ((member type '(coderef)) raw-path) ((member type '(http https ftp)) (concat type : raw-path)) ((and re-radio (string-match re-radio raw-path)) (setq radiop t)) ((equal type mailto) (concat type : raw-path)) ((equal type file) (if (and (org-file-image-p (expand-file-name raw-path) org-export-latex-inline-image-extensions) (or (get-text-property 0 'org-no-description raw-path) (equal desc full-raw-path))) (setq imgp t) (progn (when (string-match \\(.+\\)::.+ raw-path) (setq raw-path (match-string 1 raw-path))) (if (file-exists-p raw-path) ; hjh editorial comment: It's mandatory... oops! ; expand-file-name is a built-in function in `C source code'. ; (expand-file-name NAME optional DEFAULT-DIRECTORY) ; ***Convert filename NAME to absolute***, and canonicalize it. (concat type :// (expand-file-name raw-path)) (concat type :// (org-export-directory :LaTeX org-export-latex-options-plist) raw-path -- James Harkins /// dewdrop world jamshar...@dewdrop-world.net http://www.dewdrop-world.net Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal. -- Whitman blog: http://www.dewdrop-world.net/words audio clips: http://www.dewdrop-world.net/audio more audio: http://soundcloud.com/dewdrop_world/tracks