[Orgmode] Refile cache expire
Caching of refile targets is great, however, I usually have my computer and emacs running for several days (I use hibernation), so sometimes I need to clear the cache manually to have it rebuilt. How about adding an option to set an expiration time for the refile cache after which it is cleared automatically and rebuilt again? For example, I could set the cache to expire after and hour (or a day, etc.) and then it would be cleared and rebuilt automatically, but only when the computer is idle for, say, 5 seconds. This way one could have a pretty up-to-date refile cache all the time and the rebuilding would happen when emacs is idle, so the use wouldn't even have to notice the updating process. ___ 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] [CODE] Stuck projects and unbacked priorities
Hello, I would like to offer some code to find *unbacked priorities* in ones projects. Let me explain. It is well known, that orgmode supports (but does not enforce) David Allens GTD-approach. One aspect of this approach is to make sure, that every project (which translates to a toplevel TODO-entry in orgmode), has at least one subentry in state NEXT. Now, if someone tries to advance his projects, he simply draws one of those NEXT-entries and starts to work on it. And of course, this is supported by orgmode, which makes it very easy to generate such a list of NEXT-entries as part of a custom agenda. This is how I, and probably many more people, do their daily work. However things are not so clear, if one tries to work with priorities too. Probably one would try to assign priorities (lets say "A" to "D") to projects (i.e. toplevel TODO-entries); but those priorities (assigned to TODO-entries) are not visible in the list of NEXT-entries, which is the basis for daily work. Inheritance would be an option, giving each NEXT-entry the priority of its parent TODO-entry; that however would give the same priority to *all* NEXT-entries within a given project, making it impossible to differentiate between them. And if a project has many NEXT-entries, than each one would have the same priority. So (in my opinion) one needs to assign individual priorities to each NEXT-entry, or at least to one of them. This priority assigned to the NEXT-entry should then not be less than the priority of its project (the toplevel TODO-entry), because if the project is important, than it should be important too, to work on one of its pieces. This check ("Is there any project, which has no NEXT-entries of equal priority ?") is done by the function "org-unbacked-priorities", which you find below and which I would like to present here for discussion. A small example. Lets assume that you have two projects (project 1 and 2), each with some NEXT-entries (task 1 to 5): * TODO [#A] project 1 ** NEXT [#A] task 1 ** NEXT [#B] task 2 * TODO [#B] project 2 ** NEXT [#C] task 3 ** NEXT [#D] task 4 ** WAIT task 5 Now, you may see, that neither of these two projects is stuck, because they both have NEXT-entries ready to be worked upon. Project 2 however, has (as I would like to call it) an *unbacked priority*: The project itself has priority "B", but none of its NEXT-entries matches this overall priority; the highest ranking entry is task 3 with priority of only "C". To spot such a situation, one could use the function "org-unbacked priorities". For the given example it would produce a list with project 2 as a single entry: * TODO [#B] project 2 With such a list, one could then decide, either to increase the priority of a NEXT-entry (lets say from "C" to "B") or (just the other way around) to decrease the overall priority of project 2 from "B" to "C". Okay, I hope, that describes the case. Please find the named function below. Currently it is far from perfect and has no options to be customized (and takes no arguments either). However, if people think it could be useful, I would be grateful for any suggestions for improvements. with kind regards, Marc-Oliver Ihm (defun org-unbacked-priorities () "Find toplevel entries, that do not have at least one child in state NEXT and of priority equal or higher" (interactive) (let ((level-1-prio 0) (level-other-highest-prio 0) level-1-heading level-1-state level-1-marker insert-helper result-buffer) (setq result-buffer (get-buffer-create "*Unbacked priorities*")) (save-excursion (set-buffer result-buffer) (erase-buffer) (insert "These TODO-entries have a higher priority than any of its subentries\nin state NEXT (or they have no such subentry).\n\n") ) (setq insert-helper (lambda () (when (and (string= level-1-state "TODO") (< level-other-highest-prio level-1-prio)) (org-add-props level-1-heading nil 'org-marker level-1-marker) (save-excursion (set-buffer result-buffer) (end-of-buffer) (insert level-1-heading "\n") (org-map-entries (lambda () (let (this-heading this-prio this-level this-todo) (setq this-heading (org-get-heading)) (setq this-prio (org-get-priority this-heading)) (setq this-level (org-current-level)) (setq this-todo (org-get-todo-state)) (if (> this-level 1) (if (and (> this-prio level-other-highest-prio) (member
Re: [Orgmode] Links to datestamped headings broken?
At Sat, 26 Feb 2011 18:01:27 +0100, Bastien wrote: > > The description of the link is right, the link isn't, because Org > removes the timestamp. > Two simple workarounds: either load the org-id module, which takes care > of creating unique targets for internal links - or don't put timestamps > at the beginning of the heading. > > If you see a place in the documentation where we need to be more acurate > please tell us! Hi Bastien, Thanks for the explanation. I think the info file section 4.4. Handling Links would benefit from a note on the fact that Org removes the timestamp, and how to work around this. cheers, Simon ___ 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] any CSS examples for org-export-as-html?
Thank you for the info. It looks nice. soichi 2011/2/27 Puneeth Chaganti > Hi, > > On Sun, Feb 27, 2011 at 5:10 AM, ishi soichi wrote: > > Hi. I am looking for some CSS examples for org-export-as-html outputs. > > After implementing the command, "org-export-as-html", org files give an > html > > output, which will be shown neatly in browser. > > But it is not good enough for viewers. I can write CSS from scratch but > it > > is better if there is some examples from which I can start. > > Could anyone give me URLs or whatever? > > Both Orgmode's main page and the wiki, Worg, are published from > org-mode files. I guess this might be a good place to start, > > http://orgmode.org/org.css > http://orgmode.org/worg/style/worg.css > http://orgmode.org/worg/style/worg-classic.css > http://orgmode.org/worg/style/worg-zenburn.css > > -- > Puneeth > ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] any CSS examples for org-export-as-html?
Hi, On Sun, Feb 27, 2011 at 5:10 AM, ishi soichi wrote: > Hi. I am looking for some CSS examples for org-export-as-html outputs. > After implementing the command, "org-export-as-html", org files give an html > output, which will be shown neatly in browser. > But it is not good enough for viewers. I can write CSS from scratch but it > is better if there is some examples from which I can start. > Could anyone give me URLs or whatever? Both Orgmode's main page and the wiki, Worg, are published from org-mode files. I guess this might be a good place to start, http://orgmode.org/org.css http://orgmode.org/worg/style/worg.css http://orgmode.org/worg/style/worg-classic.css http://orgmode.org/worg/style/worg-zenburn.css -- Puneeth ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Startup page
Matthew Sauer writes: > As a relatively newer emacs and org-mode user I have found it very > interesting to see what people have in their .emacs file. This has spawned > my curiosity, what do you have for a startup page? eshell (nevertheless, I do use bash terminals outside emacs much more than eshell) Dan > Do you just have it go > to the scratch buffer, the standard page or something else? Maybe a custom > designed page with links or something else? Might be something interesting > to share on worg as well if you have a unique start page for emacs. > > Just a thought/curiosity as I am working on designing one for my emacs for > my use as a student/father/employee. > > Matthew Sauer > ___ > 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 cause Emacs to hang
Perhaps add one line at a time and see which one is the culprit? John On Sat, Feb 26, 2011 at 8:47 PM, Marvin Doyley wrote: > Hi Bastien, > > I tried a simple org file without any header and works fine; however, when > I include the following header it crashes. Is there something that shouldn't > be there ? > > Thanks > M > > #+STARTUP: overview > #+STARTUP: hidestars > #+STARTUP: logdone > #+DRAWERS: HIDDEN hidden extra details > #+STARTUP: lognotedone lognoteclock-out > #+STARTUP: indent > #+PROPERTY: Effort_ALL 0 0:10 0:20 0:45 1:00 2:00 4:00 6:00 8:00 > #+COLUMNS: %38ITEM %30SCHEDULED %7TODO %5Effort(Time){:} %6CLOCKSUM{Total} > %12TAGS > #+EXPORT_SELECT_TAGS: export > #+EXPORT_SELECT_TAGS: noexport > #+STYLE: http://orgmode.org/worg/worg.css"; /> > #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:1 path: > http://orgmode.org/org-info.js > #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t > #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc > #+Tags: review_article this_week article teaching research MSR SJ MMD LW > HS MK > #+Tags: home personal > #+PROPERTY: Effort_ALL 0 0:30 0:45 1:00 3:00 4:00 5:00 6:00 10:00 12:00 24: > 00 > > On Sat, Feb 26, 2011 at 4:59 PM, Bastien wrote: > >> Marvin Doyley writes: >> >> > I am using carbon emacs 23 and the latest version of org that I pull >> > this morning. >> >> Can you provide a minimal example file? A way to reproduce your >> problem? >> >> -- >> Bastien >> > > > ___ > 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 cause Emacs to hang
Hi Bastien, I tried a simple org file without any header and works fine; however, when I include the following header it crashes. Is there something that shouldn't be there ? Thanks M #+STARTUP: overview #+STARTUP: hidestars #+STARTUP: logdone #+DRAWERS: HIDDEN hidden extra details #+STARTUP: lognotedone lognoteclock-out #+STARTUP: indent #+PROPERTY: Effort_ALL 0 0:10 0:20 0:45 1:00 2:00 4:00 6:00 8:00 #+COLUMNS: %38ITEM %30SCHEDULED %7TODO %5Effort(Time){:} %6CLOCKSUM{Total} %12TAGS #+EXPORT_SELECT_TAGS: export #+EXPORT_SELECT_TAGS: noexport #+STYLE: http://orgmode.org/worg/worg.css"; /> #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:1 path: http://orgmode.org/org-info.js #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc #+Tags: review_article this_week article teaching research MSR SJ MMD LW HS MK #+Tags: home personal #+PROPERTY: Effort_ALL 0 0:30 0:45 1:00 3:00 4:00 5:00 6:00 10:00 12:00 24: 00 On Sat, Feb 26, 2011 at 4:59 PM, Bastien wrote: > Marvin Doyley writes: > > > I am using carbon emacs 23 and the latest version of org that I pull > > this morning. > > Can you provide a minimal example file? A way to reproduce your > problem? > > -- > Bastien > ___ 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] Startup page
As a relatively newer emacs and org-mode user I have found it very interesting to see what people have in their .emacs file. This has spawned my curiosity, what do you have for a startup page? Do you just have it go to the scratch buffer, the standard page or something else? Maybe a custom designed page with links or something else? Might be something interesting to share on worg as well if you have a unique start page for emacs. Just a thought/curiosity as I am working on designing one for my emacs for my use as a student/father/employee. Matthew Sauer ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-table formulas with missing values
Thorsten writes: > Hello, > how do I best enter missing values in an org-tabel (just empty cells or NaN?) > and how do I use that missing values in formulas? Ok, trial and error suggests that missing values in numeric columns can be represented as 0 in formulas, in string columns as "". Is there something like NaN in calc/org-table? ___ 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 cause Emacs to hang
Hi Bastien, This was a simple todo like * TODO apples * TODO pears When try change the item todo state to done emacs hangs. I try to install a fresh copy of to see If this fix the problem Cheers M Sent from my iPhone On Feb 26, 2011, at 4:59 PM, Bastien wrote: > Marvin Doyley writes: > >> I am using carbon emacs 23 and the latest version of org that I pull >> this morning. > > Can you provide a minimal example file? A way to reproduce your > problem? > > -- > Bastien ___ 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] any CSS examples for org-export-as-html?
Hi. I am looking for some CSS examples for org-export-as-html outputs. After implementing the command, "org-export-as-html", org files give an html output, which will be shown neatly in browser. But it is not good enough for viewers. I can write CSS from scratch but it is better if there is some examples from which I can start. Could anyone give me URLs or whatever? soichi ___ 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] Stuck projects and unbacked priorities
Hello, It is well known, that orgmode supports (but does not enforce) David Allens GTD-approach. One aspect of this approach is to make sure, that every project (which translates to a toplevel TODO-entry in orgmode), has at least one subentry in state NEXT. Now, if someone tries to advance his projects, he simply draws one of those NEXT-entries and starts to work on it. And of course, this is supported by orgmode, which makes it very easy to generate such a list of NEXT-entries as part of a custom agenda. This is how I, and probably many more people, do their daily work. However things are not so clear, if one tries to work with priorities too. Probably one would try to assign priorities (lets say "A" to "D") to projects (i.e. toplevel TODO-entries); but those priorities (assigned to TODO-entries) are not visible in the list of NEXT-entries, which is the basis for daily work. Inheritance would be an option, giving each NEXT-entry the priority of its parent TODO-entry; that however would give the same priority to *all* NEXT-entries within a given project, making it impossible to differentiate between them. And if a project has many NEXT-entries, than each one would have the same priority. So (in my opinion) one needs to assign individual priorities to each NEXT-entry, or at least to one of them. This priority assigned to the NEXT-entry should then not be less than the priority of its project (the toplevel TODO-entry), because if the project is important, than it should be important too, to work on one of its pieces. This check ("Is there any project, which has no NEXT-entries of equal priority ?") is done by the function "org-unbacked-priorities", which you find below and which I would like to present here for discussion. A small example. Lets assume that you have two projects (project 1 and 2), each with some NEXT-entries (task 1 to 5): * TODO [#A] project 1 ** NEXT [#A] task 1 ** NEXT [#B] task 2 * TODO [#B] project 2 ** NEXT [#C] task 3 ** NEXT [#D] task 4 ** WAIT task 5 Now, you may see, that neither of these two projects is stuck (because they both have NEXT-entries ready to be worked upon). Project 2 however, has (as I would like to call it) an *unbacked priority*. The project itself has priority "B", but none of its NEXT-entries matches this overall priority; the highest ranking entry is task 3 with priority of only "C". To spot such a situation, one could use the function "org-unbacked priorities". For the given example it would produce a list with project 2 as a single entry: * TODO [#B] project 2 With such a list, one could then decide, either to increase the priority of a NEXT-entry (lets say from "C" to "B") or (just the other way around) to decrease the overall priority of project 2 from "B" down to "C". Okay, I hope, that describes the case. Please find the named function below. Currently it is far from perfect and has no options to be customized (and takes no arguments either). However, if people think it could be useful, I would be glad for any suggestions for improvements. with kind regards, Marc-Oliver Ihm (defun org-unbacked-priorities () "Find toplevel entries, that do not have at least one child in state NEXT and of priority equal or higher" (interactive) (let ((level-1-prio 0) (level-other-highest-prio 0) level-1-heading level-1-state level-1-marker insert-helper result-buffer) (setq result-buffer (get-buffer-create "*Unbacked priorities*")) (save-excursion (set-buffer result-buffer) (erase-buffer) (insert "These TODO-entries have a higher priority than any of its subentries\nin state NEXT (or they have no such subentry).\n\n") ) (setq insert-helper (lambda () (when (and (string= level-1-state "TODO") (< level-other-highest-prio level-1-prio)) (org-add-props level-1-heading nil 'org-marker level-1-marker) (save-excursion (set-buffer result-buffer) (end-of-buffer) (insert level-1-heading "\n") (org-map-entries (lambda () (let (this-heading this-prio this-level this-todo) (setq this-heading (org-get-heading)) (setq this-prio (org-get-priority this-heading)) (setq this-level (org-current-level)) (setq this-todo (org-get-todo-state)) (if (> this-level 1) (if (and (> this-prio level-other-highest-prio) (member (org-get-todo-state) '("NEXT" "WAIT")))
Re: [Orgmode] Changing star character
On Sat, 26 Feb 2011 11:02:23 -1000 "Thomas S. Dye" wrote: > Aloha Javier, > > On Feb 26, 2011, at 10:54 AM, Javier M Mora wrote: > > > On 26/02/11 16:36, Bastien wrote: > >> Hi Javier, > >> > >> Javier M Mora writes: > >> > >>> If I can change star symbol from "*" char to "%" char (comment > >>> mark in > >>> LaTeX). It become possible. > >>> Hi Javier, Do you really need org mode for what you want to do? Simple outline mode is a good "idea processor" and you can change the '*' to '%'. Outline mode can run as a minor mode under auctex. Cheers, Alan > > > > ___ > > 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 > -- Alan L Tyreehttp://www2.austlii.edu.au/~alan Tel: 04 2748 6206 ___ 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 cause Emacs to hang
Marvin Doyley writes: > I am using carbon emacs 23 and the latest version of org that I pull > this morning. Can you provide a minimal example file? A way to reproduce your problem? -- Bastien ___ 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] a question about fontification and org-emphasis-alist
On Fri, 25 Feb 2011 22:11:16 -0500 Nick Dokos wrote: > This is with hindsight 20/20 but here is a method for finding such > things, using only emacs: C-h v org- then switch to the > *Completions* buffer and search for ``emphasis''. The third hit is > org-hide-emphasis-markers - and you don't have to guess the "hide" > part... With Emacs 23 and above, one can also do: C-h v org--emphasis to match org-*emphasis* and shorten the list. ;) -- Suvayu Open source is the future. It sets us free. ___ 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] Unable to select source code blocks
Il giorno 26/feb/2011, alle ore 17:05, Eric Schulte ha scritto: > […] > > You could also try executing the function directly by calling > `eval-expression' M-: (org-babel-src-block-names) within the Org-mode > buffer. I get the same results. > > also, make sure you have the latest version of Org-mode. I’m using version 7.4 with emacs 23.2. Do you think I should use the development version? I’d have no problem using it but Org has become such an important tool (my thanks to all the contributors, btw!) that I’m reluctant switching to a non-official version. Grazie -- Giorgio Valoti ___ 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] Changing star character
Aloha Javier, On Feb 26, 2011, at 10:54 AM, Javier M Mora wrote: On 26/02/11 16:36, Bastien wrote: Hi Javier, Javier M Mora writes: If I can change star symbol from "*" char to "%" char (comment mark in LaTeX). It become possible. Is it possible? No. Is there a variable to change star symbol? Is "*" so hardcoded that it is impossible change behavior? Yes. Besides, I don't really get what you are trying to achieve, an example would be better - but this example won't make it easier to change what you suggest ;) I like org-mode, and I like Auctex mode and both are major modes so it's not possible use both simultaneous. You can use both. You can edit LaTeX source code blocks in Org-mode using the AucTeX major mode, then tangle the LaTeX code. All the best, Tom I'd like to write scientific text in LaTeX using org-mode way: % Section: Importance of This \section{Importance of This} %% What is it "This" To talk about \emph{this} is important look to several factors: %%% "This" depends on "That" \emph{That} is very important in \emph{this} and bla, bla, bla... %%% This depends on "These" Also, \emph{These} is another. bla bla bla... %%% This is not "another". And don't forget another has anything. SubIdea blablabla % is the comment in LaTeX and is the outline of my ideas. And the text associated to every headline is the text of the article. With org-mode, I can sort ideas (and lines of text associated) moving subtrees. org-mode relate ideas with text. % char is LaTeX comment so LaTeX ignores until the end of line. The problem is org-mode only works with star '*' character to mark headlines and LaTeX would print lots of star in the text. org-mode LaTeX export is not enough good for this idea, because every headline in org-mode becomes a headline in LaTeX and as you can see in my example this is not always the better. The export org-mode to LaTeX of this example is: \section{Section: Importance of This} \section{Importance of This} \subsection{What is it "This"} To talk about \emph{this} is important look to several factors: \subsubsection{"This" depends on "That"} \emph{That} is very important in \emph{this} and bla, bla, bla... \subsubsection{This depends on "These"} Also, \emph{These} is another. bla bla bla... \subsubsection{This is not "another".} And don't forget another has anything. \paragraph{SubIdea} blablabla When the desired objetive is put everything in a paragraph: \section{Importance of This} To talk about \emph{this} is important look to several factors: \emph{That} is very important in \emph{this} and bla, bla, bla... Also, \emph{These} is another. bla bla bla... And don't forget another has anything. blablabla etc. Before and after of send email to org-mode mail list, I read source code and I thought star character was hard coded in it. (IMHO star char must be a configuration var). But I wanted to hear the opinion of experts from the maillist before doing anything. So, I created two elisp functions to make a translation.: (defun org2latex () "Convert star to comments in LaTeX" (interactive) (save-excursion (goto-char (point-min)) (while (search-forward-regexp "^\*+" nil t) ; (while (search-backward "*" (beginning-of-line) t) ; (replace-match "%" nil t)) (let ((finalsearch (point))) (move-beginning-of-line nil) (while (search-forward "*" finalsearch t) (replace-match "%" nil t)) ) ) ) (latex-mode) ) (defun latex2org () "Convert comments in LaTeX to stars in org-mode" (interactive) (save-excursion (goto-char (point-min)) (while (search-forward-regexp "^%+" nil t) ; (while (search-backward "%" (beginning-of-line) t) ; (replace-match "*" nil t)) (let ((finalsearch (point))) (move-beginning-of-line nil) (while (search-forward "%" finalsearch t) (replace-match "*" nil t)) ) ) ) ;doesn't work. I want open/see the currently (sub)tree (let ((position (point))) (org-mode) (goto-char position) ) ) I'm a newbie with elisp. This works but: 1.- I don't spend to much time with search-backward, and didn't work for me. So, I had to make a detour with search-forward. 2.- From Latex2org when I start org-mode, All trees are closed. I'd like keep open the tree in the cursor. That all. I hope these functions can help someone or inspire to solve a similar problem. To make programs? Again, I'm not in maillist. Please send me a copy to my email. ___ 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] view in browser
I don't know what I changed but I used to be able to do C-x C-e b to view the org file in a browser. Now it just generates the file but not open the browser. Same with PDF. ___ 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] Changing star character
On 26/02/11 16:36, Bastien wrote: Hi Javier, Javier M Mora writes: If I can change star symbol from "*" char to "%" char (comment mark in LaTeX). It become possible. Is it possible? No. Is there a variable to change star symbol? Is "*" so hardcoded that it is impossible change behavior? Yes. Besides, I don't really get what you are trying to achieve, an example would be better - but this example won't make it easier to change what you suggest ;) I like org-mode, and I like Auctex mode and both are major modes so it's not possible use both simultaneous. I'd like to write scientific text in LaTeX using org-mode way: % Section: Importance of This \section{Importance of This} %% What is it "This" To talk about \emph{this} is important look to several factors: %%% "This" depends on "That" \emph{That} is very important in \emph{this} and bla, bla, bla... %%% This depends on "These" Also, \emph{These} is another. bla bla bla... %%% This is not "another". And don't forget another has anything. SubIdea blablabla % is the comment in LaTeX and is the outline of my ideas. And the text associated to every headline is the text of the article. With org-mode, I can sort ideas (and lines of text associated) moving subtrees. org-mode relate ideas with text. % char is LaTeX comment so LaTeX ignores until the end of line. The problem is org-mode only works with star '*' character to mark headlines and LaTeX would print lots of star in the text. org-mode LaTeX export is not enough good for this idea, because every headline in org-mode becomes a headline in LaTeX and as you can see in my example this is not always the better. The export org-mode to LaTeX of this example is: \section{Section: Importance of This} \section{Importance of This} \subsection{What is it "This"} To talk about \emph{this} is important look to several factors: \subsubsection{"This" depends on "That"} \emph{That} is very important in \emph{this} and bla, bla, bla... \subsubsection{This depends on "These"} Also, \emph{These} is another. bla bla bla... \subsubsection{This is not "another".} And don't forget another has anything. \paragraph{SubIdea} blablabla When the desired objetive is put everything in a paragraph: \section{Importance of This} To talk about \emph{this} is important look to several factors: \emph{That} is very important in \emph{this} and bla, bla, bla... Also, \emph{These} is another. bla bla bla... And don't forget another has anything. blablabla etc. Before and after of send email to org-mode mail list, I read source code and I thought star character was hard coded in it. (IMHO star char must be a configuration var). But I wanted to hear the opinion of experts from the maillist before doing anything. So, I created two elisp functions to make a translation.: (defun org2latex () "Convert star to comments in LaTeX" (interactive) (save-excursion (goto-char (point-min)) (while (search-forward-regexp "^\*+" nil t) ; (while (search-backward "*" (beginning-of-line) t) ; (replace-match "%" nil t)) (let ((finalsearch (point))) (move-beginning-of-line nil) (while (search-forward "*" finalsearch t) (replace-match "%" nil t)) ) ) ) (latex-mode) ) (defun latex2org () "Convert comments in LaTeX to stars in org-mode" (interactive) (save-excursion (goto-char (point-min)) (while (search-forward-regexp "^%+" nil t) ; (while (search-backward "%" (beginning-of-line) t) ; (replace-match "*" nil t)) (let ((finalsearch (point))) (move-beginning-of-line nil) (while (search-forward "%" finalsearch t) (replace-match "*" nil t)) ) ) ) ;doesn't work. I want open/see the currently (sub)tree (let ((position (point))) (org-mode) (goto-char position) ) ) I'm a newbie with elisp. This works but: 1.- I don't spend to much time with search-backward, and didn't work for me. So, I had to make a detour with search-forward. 2.- From Latex2org when I start org-mode, All trees are closed. I'd like keep open the tree in the cursor. That all. I hope these functions can help someone or inspire to solve a similar problem. To make programs? Again, I'm not in maillist. Please send me a copy to my email. ___ 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 cause Emacs to hang
Hi there, I am using carbon emacs 23 and the latest version of org that I pull this morning. Thanks M Sent from my iPhone On Feb 26, 2011, at 3:06 PM, Bastien wrote: > Marvin Doyley writes: > >> Emacs hang whenever I try to switch todo state. Do anybody no how to >> fix this ? > > Can you be more specific? Which version of Emacs? Of Org? Minimal > example file? > > Thanks, > > -- > Bastien ___ 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 cause Emacs to hang
Marvin Doyley writes: > Emacs hang whenever I try to switch todo state. Do anybody no how to > fix this ? Can you be more specific? Which version of Emacs? Of Org? Minimal example file? Thanks, -- Bastien ___ 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 cause Emacs to hang
Hi there, Emacs hang whenever I try to switch todo state. Do anybody no how to fix this ? cheers M ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [BUG] ? Stray \end{LIST} in latex export
I've had the following issue with recent org-mode builds (since early January, I think). A document with an itemized list in it does not export properly to latex: the export process inserts/leaves behind a stray \end{LIST} statement which breaks the .tex file. For example, doing C-c C-e l on this document: #+TITLE: Example #+AUTHOR: Example ** Example - Lorem ipsum dolor sit amet - Lorem ipsum dolor sit amet The end. gives the following relevant bit of output: > \Section{Example} > \label{sec-1} > > \begin{itemize} > \item Lorem ipsum dolor sit amet > \item Lorem ipsum dolor sit amet > \end{itemize} > \end{LIST} > > The end. I initially assumed this was some error in my own org-mode export setup, as list export is so common I thought it surely would have been reported. But I can reproduce this on a default org-mode install, so now I'm wondering whether it is in fact a bug. -- Kieran Healy :: http://www.kieranhealy.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
[Orgmode] org-table formulas with missing values
Hello, how do I best enter missing values in an org-tabel (just empty cells or NaN?) and how do I use that missing values in formulas? Thanks Thorsten ___ 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] org-macs: store evaluated version of pom
On Sat, Feb 26 2011, Bastien wrote: >> * lisp/org-macs.el (org-with-point-at): Store evaluated version of pom. This >> fixes a potential bug when using (org-with-point-at (func) …), where (func) >> would be evaluated multiple times > > I'm not sure I understand this patch. > > Can you show an actual use of org-with-point-at as the one you describe? > > Maybe that's related to some code your are working on? Yes it is. This patch just fix one problem. Without it, what is set with pom is evaluated multiple times: (org-with-point-at (function-that-return-some-marker) (do-stuff)) (function-that-return-some-marker) will be called several times, which can causes a lot of problem, as you imagine just by reading the current code. This patch evalute the function, store it to `pom' and use this variable instead. -- Julien Danjou ❱ http://julien.danjou.info pgpRQy35eQkWq.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Announcing org-contacts, a bbdb-like contact manager for Org
Julien Danjou writes: > On Sat, Feb 12 2011, Bastien wrote: > >> I'm willing to add this to contrib/lisp/ - would that be okay for you? > > Since I plan to continue working and improving it soon, it seems like it > would be too much work getting it update for now since I couldn't commit > directly. So maybe it's best to wait a bit, and I'll ask for its > inclusion later? Yes, let's do that. Thanks! -- Bastien ___ 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] org-macs: store evaluated version of pom
Hi Julien, Julien Danjou writes: > * lisp/org-macs.el (org-with-point-at): Store evaluated version of pom. This > fixes a potential bug when using (org-with-point-at (func) …), where (func) > would be evaluated multiple times I'm not sure I understand this patch. Can you show an actual use of org-with-point-at as the one you describe? Maybe that's related to some code your are working on? Thanks, -- Bastien ___ 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: unicode chars in org-emphasis-regexp-components
Hi Eric, Eric Abrahamsen writes: > I don't think I've changed this from the default: > > org-emphasis-regexp-components: > ("('\"{" "- .,:!?;'\")}\\" "\n,\"'" "." 5) > > org-version: > Org-mode version 7.4 (release_7.4.400.gc7700) > > emacs-version: > GNU Emacs 23.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of > 2010-10-19 > > I'd kind of suspect the customize interface here, Maybe -- don't hesitate to report it to Emacs developers. > but I really don't know how to go about setting this variable properly > with setq. Well, C-h v org-emphasis-regexp-components RET is quite informative. Don't be afraid by this meduse-like list of strings... these are just four strings and a number :) Best, -- Bastien ___ 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
[Accepted] [Orgmode] Re: [PATCH] fix a bug in org-open-at-point
Patch 624 (http://patchwork.newartisans.com/patch/624/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C8739nk1jmd.fsf%40gmail.com%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [Orgmode] Re: [PATCH] fix a bug in org-open-at-point > Date: Sat, 19 Feb 2011 14:03:38 - > From: Nicolas Goaziou > X-Patchwork-Id: 624 > Message-Id: <8739nk1jmd@gmail.com> > To: emacs-orgmode@gnu.org > > My bad, wrong manipulation. Here is the patch. > > To reproduce the error, you can type the following in a fresh Org > #+begin_src org > target some text <<>> another text target > #+end_src > > Using C-c C-o on any of the two links will return an error. > Regards, > > > >From f7738f3e9239fc4fddccc7850dad7a0936087a58 Mon Sep 17 00:00:00 2001 > From: Nicolas Goaziou > Date: Sat, 19 Feb 2011 09:37:48 +0100 > Subject: [PATCH] Fix bug with link to radio target at beginning or end of > buffer > > * lisp/org.el (org-open-at-point): if a link to a radio target is the > first, (resp. the last), element of a buffer, function cannot find > the property change required to get its boundaries, and > `buffer-substring' is called with an invalid nil argument. > --- > lisp/org.el |6 -- > 1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/lisp/org.el b/lisp/org.el > index b92186a..bfe9296 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -9214,8 +9214,10 @@ application the system uses for this file type." > pos (if (get-text-property (1+ (point)) 'org-linked-text) > (1+ (point)) (point)) > path (buffer-substring > - (previous-single-property-change pos 'org-linked-text) > - (next-single-property-change pos 'org-linked-text))) > + (or (previous-single-property-change pos 'org-linked-text) > + (point-min)) > + (or (next-single-property-change pos 'org-linked-text) > + (point-max > (throw 'match t)) > > (save-excursion > -- > 1.7.4.1 > > ___ 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: TODO state change from TODO to DONE blocked
Hi Sébastien, >> I've a really weird exception occurring: change state from TODO to DONE is >> blocked... while I'm on a leaf of the Org tree!? >> >> Debugger entered--Lisp error: (error #("TODO state change from TODO to >> DONE blocked" 23 27 (face org-todo) 31 35 (face org-done))) Are you using `org-blocker-hook' or `org-trigger-hook'? Maybe you can try to `edebug-defun' the `org-todo' function and follow it's execution step by step. Let us know. -- Bastien ___ 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] Links to datestamped headings broken?
Hi Simon, Simon Guest writes: > I have an Org mode file with some date-stamped headers, e.g. > ** <2011-04-06 Wed> National Bank It's better to put timestamps outside of the heading. > When I org-store-link (C-c l) on that line, I get > Stored: <2011-04-06 Wed> National Bank > which seems right. The description of the link is right, the link isn't, because Org removes the timestamp. > When I org-insert-link in another org-mode file, I get > > [[file:~/share/notes/maths-competitions.org::*%20National%20Bank][<2011-04-06 > Wed> National Bank]] > which looks wrong, and doesn't work. > > I expected to see the date in the URL part of the link. > > Am I confused, or is something broken? Two simple workarounds: either load the org-id module, which takes care of creating unique targets for internal links - or don't put timestamps at the beginning of the heading. If you see a place in the documentation where we need to be more acurate please tell us! HTH, -- Bastien ___ 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: [PATCH] Markup on same line as text
Hi Roland, Roland Kaufmann writes: > And, as you point out, it is probably better to deal with the problem by > removing the formatting on the newlines (probably right after > font-lock-fontify-buffer in org-export-format-source-code-or-example) in > the temporary buffer that is htmlize'd, reducing the chance of any > unintended consequences. > > I'll try this approach and see how it turns out (i.e. proposal for change > in htmlize dropped). Thank you for the feedback! Please let us know if there is a useful way to generalize the workaround presented earlier in the thread. Thanks, -- Bastien ___ 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] a question about fontification and org-emphasis-alist
I wish all the groups I was involved with suffered this "problem." :-) Cheers. Fil On 26 February 2011 11:00, Bastien wrote: > Hi Filippo, > > "Filippo A. Salustri" writes: > > > yeah, right, make me feel even dumber > > ...wait, let me just wipe the egg off my face :-) > > Well, the real "problem" here is that the community is so prompt to > reply that it doesn't encourage people not to be lazy :) > > Best, > > -- > Bastien > -- Filippo A. Salustri, Ph.D., P.Eng. Mechanical and Industrial Engineering Ryerson University 350 Victoria St, Toronto, ON M5B 2K3, Canada Tel: 416/979-5000 ext 7749 Fax: 416/979-5265 Email: salus...@ryerson.ca http://deseng.ryerson.ca/~fil/ ___ 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: Go to today in Calendar
Hi Sébastien, Sébastien Vauban writes: > Is it because of some order to respect in the different allowed timestamps > (active, inactive, scheduled, deadline) Yes, SCHEDULED (or DEADLINE) should come first. In general, I tend to avoid mixing several timestamps format for the same entry (I just allow myself to use both SCHEDULED and DEADLINE, since that makes sense.) HTH, -- Bastien ___ 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] new babel latex feature :imagemagick
Andreas Leha writes: > It's on the way. > Wonderful, in that case I'll apply your patch immediately. Thanks -- Eric > > Am 26.02.2011 01:13, schrieb Eric Schulte: >> Hi Andreas, >> >> This patch looks like a great idea and a clean implementation. Thanks >> for sharing. Would you be willing to sign the FSF copyright assignment >> papers? If not I probably can not apply your patch as it changes over >> 10 lines -- which I'm pretty sure is the copyright assignment cutoff. >> >> For more information on contributing to Org-mode see the following >> http://orgmode.org/worg/org-contribute.html >> >> Thanks! -- Eric >> >> Andreas Leha writes: >> >> >>> Hi all, >>> >>> Just a small patch that might make life easier for >>> LaTeX (and esp. tikz) users. It enables the output of graphics in a >>> lot of formats using imagemagick. See below for an example. >>> >>> This is my first patch, I have never programmed emacs lisp before, and >>> my common lisp experiences have been short and a while ago. So please >>> excuse a (possibly) bad patch. >>> >>> Details: >>> LaTeX source blocks now have three new options: >>> - :imagemagick >>> When not nil the source block is processed to pdf and the pdf is >>> converted with imagemagick to whatever is given as :file >>> Thus, the format is not limited to png. >>> - :iminoptions >>> This is passed to imagemagick before the pdf file >>> - :imoutoptions >>> This is passed to imagemagick before the output file >>> >>> Small Example: >>> #+begin_src latex ... :file test.jpg :imagemagick yes :iminoptions >>> -density 300 :imoutoptions -geometry 400 ... >>> will use this command for conversion: >>> convert -density 300 -geometry 400 test.jpg >>> >>> Full example: >>> Export this to pdf and to html to see the effect. >>> === >>> * Test >>> #+begin_src R :session :exports both :results silent >>> library("tikzDevice") >>> #+end_src >>> #+srcname: test_plot >>> #+begin_src R :session :exports code :results output latex >>> tikz(console=TRUE, width=4, height=4) >>> plot(rnorm(100), rnorm(100)) >>> dummy <- dev.off() >>> #+end_src >>> >>> #+srcname: test_plot_png >>> #+begin_src latex :exports (if (and (boundp 'backend) (eq backend >>> 'latex)) "none" "results") :file test.png :imagemagick yes :iminoptions >>> -density 600 :imoutoptions -geometry 400 :fit yes :noweb yes :headers >>> '("\\usepackage{tikz}") >>> <> >>> #+end_src >>> >>> #+srcname: test_plot_tikz >>> #+begin_src latex :noweb yes >>> <> >>> #+end_src >>> >>> * Latex Options :noexport: >>> #+LATEX_HEADER: \usepackage{tikz} >>> === >>> >>> Regards, >>> Andreas >>> >>> ___ >>> 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 >> > > -- > Universitätsmedizin Göttingen > Abteilung Medizinische Statistik > Humboldtallee 32 > 37073 Göttingen > > Tel: +49 (0)551 39-10710 > Fax: +49 (0)551 39-4995 > > http://www.ams.med.uni-goettingen.de/amsneu/leha.html > > > > University Medical Center Göttingen > Department for Medical Statistics > Humboldtallee 32 > 37073 Göttingen > Germany > > Phone: +49 (0) 551 39-10710 > Fax: +49 (0) 551 39-4995 > > http://www.ams.med.uni-goettingen.de/amsneu/leha-en.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] [PATCH] new babel latex feature :imagemagick
Andreas Leha writes: > It's on the way. > Wonderful, in that case I'll apply your patch immediately. Thanks -- Eric > > Am 26.02.2011 01:13, schrieb Eric Schulte: >> Hi Andreas, >> >> This patch looks like a great idea and a clean implementation. Thanks >> for sharing. Would you be willing to sign the FSF copyright assignment >> papers? If not I probably can not apply your patch as it changes over >> 10 lines -- which I'm pretty sure is the copyright assignment cutoff. >> >> For more information on contributing to Org-mode see the following >> http://orgmode.org/worg/org-contribute.html >> >> Thanks! -- Eric >> >> Andreas Leha writes: >> >> >>> Hi all, >>> >>> Just a small patch that might make life easier for >>> LaTeX (and esp. tikz) users. It enables the output of graphics in a >>> lot of formats using imagemagick. See below for an example. >>> >>> This is my first patch, I have never programmed emacs lisp before, and >>> my common lisp experiences have been short and a while ago. So please >>> excuse a (possibly) bad patch. >>> >>> Details: >>> LaTeX source blocks now have three new options: >>> - :imagemagick >>> When not nil the source block is processed to pdf and the pdf is >>> converted with imagemagick to whatever is given as :file >>> Thus, the format is not limited to png. >>> - :iminoptions >>> This is passed to imagemagick before the pdf file >>> - :imoutoptions >>> This is passed to imagemagick before the output file >>> >>> Small Example: >>> #+begin_src latex ... :file test.jpg :imagemagick yes :iminoptions >>> -density 300 :imoutoptions -geometry 400 ... >>> will use this command for conversion: >>> convert -density 300 -geometry 400 test.jpg >>> >>> Full example: >>> Export this to pdf and to html to see the effect. >>> === >>> * Test >>> #+begin_src R :session :exports both :results silent >>> library("tikzDevice") >>> #+end_src >>> #+srcname: test_plot >>> #+begin_src R :session :exports code :results output latex >>> tikz(console=TRUE, width=4, height=4) >>> plot(rnorm(100), rnorm(100)) >>> dummy <- dev.off() >>> #+end_src >>> >>> #+srcname: test_plot_png >>> #+begin_src latex :exports (if (and (boundp 'backend) (eq backend >>> 'latex)) "none" "results") :file test.png :imagemagick yes :iminoptions >>> -density 600 :imoutoptions -geometry 400 :fit yes :noweb yes :headers >>> '("\\usepackage{tikz}") >>> <> >>> #+end_src >>> >>> #+srcname: test_plot_tikz >>> #+begin_src latex :noweb yes >>> <> >>> #+end_src >>> >>> * Latex Options :noexport: >>> #+LATEX_HEADER: \usepackage{tikz} >>> === >>> >>> Regards, >>> Andreas >>> >>> ___ >>> 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 >> > > -- > Universitätsmedizin Göttingen > Abteilung Medizinische Statistik > Humboldtallee 32 > 37073 Göttingen > > Tel: +49 (0)551 39-10710 > Fax: +49 (0)551 39-4995 > > http://www.ams.med.uni-goettingen.de/amsneu/leha.html > > > > University Medical Center Göttingen > Department for Medical Statistics > Humboldtallee 32 > 37073 Göttingen > Germany > > Phone: +49 (0) 551 39-10710 > Fax: +49 (0) 551 39-4995 > > http://www.ams.med.uni-goettingen.de/amsneu/leha-en.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] [PATCH] Allow inclusion of author's email in LaTeX export
Hi Hsiu-Khuern, Hsiu-Khuern Tang writes: > I noticed that special characters in the email, such as an underscore, > are not escaped. This causes LaTeX errors. > > To reproduce, put this line at the top of an org file and try to > export to PDF via LaTeX: > > #+EMAIL: first_l...@example.com Fixed, thanks. -- Bastien ___ 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] Unable to select source code blocks
Giorgio Valoti writes: > Il giorno 26/feb/2011, alle ore 01.08, Eric Schulte ha scritto: > […] >>> >>> The problem doesn’t seem related to the autocomplete system, it’s the >>> org-babel-src-block-names function that returns an empty list. I don’t >>> know why, the org-babel-src-name-w-name-regexp used by that function >>> seems ok at a cursory look. >>> >> >> Could you attach a small file with named code blocks which aren't caught >> by this function? I just ran the following in by file of scraps of >> code examples and got 60 names returned >> >> #+begin_src emacs-lisp >> (length (org-babel-src-block-names)) >> #+end_src > > How embarrassing! I used this > > #+begin_src emacs-lisp > (org-babel-src-block-names) > #+end_src > Hm this should work as well... > > which returns nil or so I thought. I was expecting to see the list of > source blocks in the results. > > Using your snippet on the same file: > > #+begin_src emacs-lisp > (length (org-babel-src-block-names)) > #+end_src > > #+results: > : 19 > > However, using eval-last-sexp I get a list with nil items. Is it correct? > That is weird, this should result in the insertion of an Org-mode list containing the names of the named code blocks in your file. #+begin_src emacs-lisp :results list (org-babel-src-block-names) #+end_src If not, then I'm not sure what exactly is being returned by `org-babel-src-block-names' on your system -- it should be a list of strings. You could also try executing the function directly by calling `eval-expression' M-: (org-babel-src-block-names) within the Org-mode buffer. also, make sure you have the latest version of Org-mode. Best -- Eric > > > Ciao > -- > Giorgio Valoti > > > ___ > 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] HTML export options are being ignored
Jason Dunsmore wrote: > Cássio Koshikumo writes: > > > Hi all, > > > > I think there's a bug with the html exporter. With this OPTIONS line: > > > > #+OPTIONS: num:nil author:nil creator:nil timestamp:nil toc:nil > > > > I get rid of the numbering and the TOC, but still get the creator, the > > timestamp and the author lines at the end of the page. Exporting to ASCII > > seem > > to exclude them properly. > > > > Does anyone else experience this? > > I'm also having issues with HTML export. The :email-info, :preamble, > and :postamble publishing options are being ignored. > [This is based on a very quick look, so take it with the appropriate grain of salt.] The preamble/postamble issue may be a doc bug. The code seems to expect :html-preamble and :html-postamble. 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] 2nd clone of Org-mode for Vim
Hi Jan, Jan Christoph Ebersbach writes: > If you are interested, you can access the code at > https://github.com/jceb/vim-orgmode or send an e-mail if you have any > further questions. I haven't tested it yet, but it's great to have so many clones. What would be useful for us poor emacs-only users would be to have a screencast demonstrating the functionalities you implemented. It will let us know where you are and where you go. Herbert's screencasts were quite useful in that regard. Thanks! -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] BUG? Exporting "missing level" to LaTeX fails
Hi Rainer, Rainer M Krug writes: > Well - agreed on the "not properly structured" part, but that limitation > cost me more then an hour work to figure out why my longish document > does not export one heading. > > Would it be possible, to print a warning when that happens? Sorry, it's not that easy. I added a note to the manual in the first paragraph of the "LaTeX and PDF export" section. Hope it's informative enough. -- Bastien ___ 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] Missing prompt label in capture template expansion
Hi Puneeth, Puneeth Chaganti writes: > Bar has the properties of a LINK associated with it and hence is not > being displayed in the mini-buffer. Here is a possible fix, but I'm > not sure if it's the best fix. I think it's a good one -- applied, thanks. And thanks to Aankhen for reporting this problem. -- Bastien ___ 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] Exporting COMMENT blocks?
"Eric Schulte" writes: > Thanks for the bug report, I've just pushed up a fix for this issue. Thanks Eric! -- Bastien ___ 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-contacts.el
Hi Tobias, Tobias Riedling writes: > The following message is a courtesy copy of an article > that has been posted to gmane.emacs.orgmode as well. yes, the first message made it through the list. I guess Julian might have a look soon. Best, -- Bastien ___ 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: convert orgmode to docx
Hi Fabian, Fabian Braennstroem writes: > Do you have a hint, how I could do the export in batchmode from the console > in Linux? What did you try? -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: org-clock-display should mention how to remove times [6.33x]
Hi Rainer, Reiner Steib writes: >>From the code, I guess it is `org-clock-remove-overlays'... > > 2011-02-25 Reiner Steib > > * org-clock.el (org-clock-display): Document how to remove subtree > times. Applied against latest git Org, thanks. -- Bastien ___ 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] Closing #+results: with #+end declaration?
Hi Eric, "Eric Schulte" writes: > #+begin_src sh :results list > echo "eric schulte" > echo "dan davison" > echo "seb vauban" > #+end_src > > #+results: > - ("eric" "schulte") > - ("dan" "davison") > - ("seb" "vauban") reading this, I wonder if we should consider use this instead: #+results: - ("eric" "schulte") - ("dan" "davison") - ("seb" "vauban") #+end or better: #+begin_results - ("eric" "schulte") - ("dan" "davison") - ("seb" "vauban") #+end_results Looks more consistent with the rest of the #+begin* statements. More generally, I've sometimes wondered why we need to use #+begin_* #+end_* instead of just #+begin_* #+end Unless we allow nested #+begin blocks (and AFAIK we don't), there is no real need for being specific about what #+end ends. What do you think? -- Bastien ___ 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] a question about fontification and org-emphasis-alist
Hi Filippo, "Filippo A. Salustri" writes: > yeah, right, make me feel even dumber > ...wait, let me just wipe the egg off my face :-) Well, the real "problem" here is that the community is so prompt to reply that it doesn't encourage people not to be lazy :) Best, -- Bastien ___ 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] [annoyance] Inserted headlines are immediately folded
Hi Sébastien, Sébastien Vauban writes: > Before, when inserting such a node, it stayed expanded, which my preferred way > of viewing the file. Can you tell when was "before"? Thanks, -- Bastien ___ 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] Changing star character
Hi Javier, Javier M Mora writes: > If I can change star symbol from "*" char to "%" char (comment mark in > LaTeX). It become possible. > > Is it possible? No. > Is there a variable to change star symbol? > Is "*" so hardcoded that it is impossible change behavior? Yes. Besides, I don't really get what you are trying to achieve, an example would be better - but this example won't make it easier to change what you suggest ;) Best, -- Bastien ___ 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: (no subject)
Hi, Bernt Hansen writes: > Please provide a sample task and a description of what you get and what > you expected. AFAIK SCHEDULE and -3d is not intended to work - this is > for DEADLINES: only to specify the number of days before the deadline > that you want the entry to show up in your agenda. I don't think it has > any meaning for SCHEDULED: entries. Thanks Bernt. I confirm this: -3d only make sense for deadlines. Vincent, please provide a use-case with your detailed need and problems. Thanks, -- Bastien ___ 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: Bytecompiler is unhappy...
Nicolas writes: > This is what I thought at first, but, in org.el, no function was > declared already, and a whole package (gnus-sum) was required when > compiling. So, I hesitated. > > Anyway, that part is done now. Thanks for this Nicolas, and thanks to Achim for reporting this. -- Bastien ___ 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] A way to export agenda with links into org-files to html ?
Hi Hrvoje, thanks for your reply. Hrvoje Niksic writes: > I was thinking in a more general way. Yes, that'd be better. > Maybe applications such as orgmode could mark hyperlinks with text > properties and htmlize could recognize them and convert them to real > links, without fragile (and slow) regexp magic. This are the typical text properties for an Org-mode link: face org-link help-echo"LINK: http://bonjour.fr"; mouse-face highlight HTH, -- Bastien ___ 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] how to filter CATEGORY entries in org-agenda-custom command (agenda)?
Hi Rainer, Rainer Stengele writes: > Hi Bastien, > > I am in the middle of my org file, having a > > #+CATEGORY: TEST > > in line 1 of the file. Putting the code > > (org-entry-get (point) "CATEGORY") As Sebastian said please use CATEGORY as a property instead of a general metadata. org-entry-get will match properties in :PROPERTIES:. Thanks, -- Bastien ___ 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] How-to access org-mode data
Hi Torsten, Torsten Wagner writes: > I try to extract certain information which are processed by org-mode. > As an example the compiled agenda-list. Basically, I want to have certain > parts of the agenda in a variable (or an array) instead of a buffer. The easiest way might be to recreate this data with org-map-entries instead of trying to get them from the agenda itself. > I could run e.g., > (org-agenda list nil nil 1) > however, this always end up in a buffer, which I could start parsing and > closing afterwards, but maybe there is a more smart way? A clean rewriting of the agenda would put every agenda information in a list, then display this info in a buffer. This way you could well fetch information directly in the list, not in the buffer. That would be a nice improvement indeed -- don't expect this to happen soon thought. Best, -- Bastien ___ 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] Uncover bullet points with BEAMER_env: ignoreheading
It seems that with the options you suggested, the "[<+->]" argument is passed to the \columns environment instead of the \itemize environment within the column. Beamer doesn't accept this argument for the columns environment. Is there a way to pass the argument to \itemize? Thanks, Derek On Fri, Feb 25, 2011 at 4:17 PM, Eric S Fraga wrote: > Derek Thomas writes: > >> I've been using BEAMER_env: ignoreheading to generate columns of >> bulleted lists as follows >> #+begin_src org >> * hidden heading 1 :BMCOL:B_ignoreheading: >> :PROPERTIES: >> :BEAMER_col: 0.5 >> :BEAMER_env: ignoreheading >> :BEAMER_envargs: [<+->] >> :END: >> ** Item 1 >> ** Item 2 >> * hidden heading 2 :BMCOL:B_ignoreheading: >> :PROPERTIES: >> :BEAMER_col: 0.5 >> :BEAMER_env: ignoreheading >> :BEAMER_envargs: [<+->] >> :END: >> ** Item 3 >> ** Item 4 >> #+begin_src org >> >> But the "[<+->]" is not included in the LaTeX export so the bullets >> are not revealed sequentially. Is there a way to include this flag in >> the export? Thanks, > > To answer your explicit question, you need to specify either "c" or "C" > for a column envargs setting, as in "c[<+->]" or "C[<+->]", the > difference being that with lower case c, the argument applies to the > column and with upper case C, it applies to the columns environment. > You need one of these to get the export to work. > > Having said this, I have no idea how to get beam to do automatic > column overlays, as you seem to want. I have always had to use <1-> > etc. So I would have envargs for the first column set to "c<1->" (note, > no square brackets) and "c<2->" for the second. > > HTH, > eric > -- > : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 > : using Org-mode version 7.4 (release_7.4.532.g7b21.dirty) > ___ 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] HTML export options are being ignored
Jason Dunsmore writes: > Cássio Koshikumo writes: > >> Hi all, >> >> I think there's a bug with the html exporter. With this OPTIONS line: >> >> #+OPTIONS: num:nil author:nil creator:nil timestamp:nil toc:nil >> >> I get rid of the numbering and the TOC, but still get the creator, the >> timestamp and the author lines at the end of the page. Exporting to ASCII >> seem >> to exclude them properly. >> >> Does anyone else experience this? > > I'm also having issues with HTML export. The :email-info, :preamble, > and :postamble publishing options are being ignored. I found the commit that broke things: http://orgmode.org/w/org-mode.git/commitdiff/da8dc7bba7261 1) :preamble was renamed :html-preamble 2) :postamble was renamed :html-postamble 3) org-export-email-info is no longer checked before attempting export of email address. For the first two, the manual needs to be updated. The third change seems like a bug. Also, I have no title when I set the title with "#+TITLE: " on the first line. I'm not sure if this has to do with org-export-html-title-format being removed. Regards, Jason ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Bug: org-clock-display should mention how to remove times [6.33x]
Hi, | runs the command | org-clock-display, which is an interactive compiled Lisp function in | `org-clock.el'. | | It is bound to C-c C-x C-d,. | | (org-clock-display &optional TOTAL-ONLY) | | Show subtree times in the entire buffer. | If TOTAL-ONLY is non-nil, only show the total time for the entire file | in the echo area. The doc string of `org-clock-display' should mention how to get rid of the subtree times. >From the code, I guess it is `org-clock-remove-overlays'... --8<---cut here---start->8--- 2011-02-25 Reiner Steib * org-clock.el (org-clock-display): Document how to remove subtree times. --8<---cut here---end--->8--- --8<---cut here---start->8--- --- lisp/org/org-clock.el Fri Feb 25 14:27:00 2011 +++ lisp/org/org-clock.el~ Sat Jan 08 12:45:14 2011 @@ -1282,9 +1282,7 @@ (defun org-clock-display (&optional total-only) "Show subtree times in the entire buffer. If TOTAL-ONLY is non-nil, only show the total time for the entire file -in the echo area. - -Use \\[org-clock-remove-overlays] to remove the subtree times." +in the echo area." (interactive) (org-clock-remove-overlays) (let (time h m p) --8<---cut here---end--->8--- Emacs : GNU Emacs 23.2.93.1 (i386-mingw-nt6.0.6002) of 2011-02-01 on 3249CTO Package: Org-mode version 6.33x current state: == (setq org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(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-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-mode-hook '(#[nil "..." [org-add-hook change-major-mode-hook org-show-block-all append local] 5] org-indent-mode show-all ruv-org-mode-hook) org-confirm-elisp-link-function 'yes-or-no-p org-indent-indentation-per-level 1 org-occur-hook '(org-first-headline-recenter) ) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/ ___ 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] xemacs21: void-variable macro-declaration-function
Hi, I had a working org-mode version 6.33trans with XEmacs 21.4.22 and wanted to move to a newer version. I installed org-mode 7.01g-1 0 coming with debian squeeze. But now org-mode doesn't work any more. When I open any org-mode file I get: File mode specification error: (void-variable macro-declaration-function) I tried to get some more information by setting debug-on-error, but there is no additional debugging info when I trigger the error above. I went back to my old org-mode - only to find out, that the old version isn't working any more either :-( Any help? Andreas Gösele -- Omnis enim res, quae dando non deficit, dum habetur et non datur, nondum habetur, quomodo habenda est. Augustinus, De doctrina christiana ___ 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] Changing star character
Hi, I want to use org-mode as an ideas-processor to write articles/thesis with LaTeX. I've tried export from org to LaTeX but I don't like results: Every org headline become in a latex headline. I want more granularity using org to classify my ideas inside a paragraph. My idea is be able to use the same file as a valid org file and a valid LaTeX file and select in which major mode I want to work (org or Auctex) depending on my needs. If I can change star symbol from "*" char to "%" char (comment mark in LaTeX). It become possible. Is it possible? Is there a variable to change star symbol? Is "*" so hardcoded that it is impossible change behavior? Thanks, Javier M Mora. I'm not member of org-mode list. Please, send me a copy to my personal email. ___ 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] HTML export options are being ignored
Cássio Koshikumo writes: > Hi all, > > I think there's a bug with the html exporter. With this OPTIONS line: > > #+OPTIONS: num:nil author:nil creator:nil timestamp:nil toc:nil > > I get rid of the numbering and the TOC, but still get the creator, the > timestamp and the author lines at the end of the page. Exporting to ASCII seem > to exclude them properly. > > Does anyone else experience this? I'm also having issues with HTML export. The :email-info, :preamble, and :postamble publishing options are being ignored. ___ 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? :cache yes ignored when :noweb yes
Hi Eric, thanks for testing this. It works for me when executing as well. But not when exporting. Does that work for you? I have tested this on two computers with the latest git version. Cheers, Andreas Am 26.02.2011 01:29, schrieb Eric Schulte: > Hi Andreas, > > This exact example worked for me -- that is the results were returned > without executing the "sleep 5" code. > > Maybe you are using an old version of Org, or you have non-standard > default header argument values? > > Best -- Eric > > Andreas Leha writes: > > >> Hi all, >> >> When ':noweb yes' is in the header, ':cache yes' is ignored during >> export. (At least when I export the sample file below.) >> >> To me this seems to be a bug. Or am I missing something? >> >> Regards, >> Andreas >> >> PS: Example: >> >> * Test >> #+srcname: test_sleep >> #+begin_src R :session :exports code >> Sys.sleep(time=5) >> 1:10 >> #+end_src >> >> #+srcname: test_sleep >> #+begin_src R :session :exports results :noweb yes :cache yes >> <> >> #+end_src >> >> #+results[e2c9e6c2f84563b590a765502057d92463e50182]: test_sleep >> | 1 | >> | 2 | >> | 3 | >> | 4 | >> | 5 | >> | 6 | >> | 7 | >> | 8 | >> | 9 | >> | 10 | >> == >> >> >> ___ >> 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 > <> smime.p7s Description: S/MIME Cryptographic Signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH] new babel latex feature :imagemagick
It's on the way. Am 26.02.2011 01:13, schrieb Eric Schulte: > Hi Andreas, > > This patch looks like a great idea and a clean implementation. Thanks > for sharing. Would you be willing to sign the FSF copyright assignment > papers? If not I probably can not apply your patch as it changes over > 10 lines -- which I'm pretty sure is the copyright assignment cutoff. > > For more information on contributing to Org-mode see the following > http://orgmode.org/worg/org-contribute.html > > Thanks! -- Eric > > Andreas Leha writes: > > >> Hi all, >> >> Just a small patch that might make life easier for >> LaTeX (and esp. tikz) users. It enables the output of graphics in a >> lot of formats using imagemagick. See below for an example. >> >> This is my first patch, I have never programmed emacs lisp before, and >> my common lisp experiences have been short and a while ago. So please >> excuse a (possibly) bad patch. >> >> Details: >> LaTeX source blocks now have three new options: >> - :imagemagick >> When not nil the source block is processed to pdf and the pdf is >> converted with imagemagick to whatever is given as :file >> Thus, the format is not limited to png. >> - :iminoptions >> This is passed to imagemagick before the pdf file >> - :imoutoptions >> This is passed to imagemagick before the output file >> >> Small Example: >> #+begin_src latex ... :file test.jpg :imagemagick yes :iminoptions >> -density 300 :imoutoptions -geometry 400 ... >> will use this command for conversion: >> convert -density 300 -geometry 400 test.jpg >> >> Full example: >> Export this to pdf and to html to see the effect. >> === >> * Test >> #+begin_src R :session :exports both :results silent >> library("tikzDevice") >> #+end_src >> #+srcname: test_plot >> #+begin_src R :session :exports code :results output latex >> tikz(console=TRUE, width=4, height=4) >> plot(rnorm(100), rnorm(100)) >> dummy <- dev.off() >> #+end_src >> >> #+srcname: test_plot_png >> #+begin_src latex :exports (if (and (boundp 'backend) (eq backend >> 'latex)) "none" "results") :file test.png :imagemagick yes :iminoptions >> -density 600 :imoutoptions -geometry 400 :fit yes :noweb yes :headers >> '("\\usepackage{tikz}") >> <> >> #+end_src >> >> #+srcname: test_plot_tikz >> #+begin_src latex :noweb yes >> <> >> #+end_src >> >> * Latex Options :noexport: >> #+LATEX_HEADER: \usepackage{tikz} >> === >> >> Regards, >> Andreas >> >> ___ >> 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 > -- Universitätsmedizin Göttingen Abteilung Medizinische Statistik Humboldtallee 32 37073 Göttingen Tel: +49 (0)551 39-10710 Fax: +49 (0)551 39-4995 http://www.ams.med.uni-goettingen.de/amsneu/leha.html University Medical Center Göttingen Department for Medical Statistics Humboldtallee 32 37073 Göttingen Germany Phone: +49 (0) 551 39-10710 Fax: +49 (0) 551 39-4995 http://www.ams.med.uni-goettingen.de/amsneu/leha-en.html <> smime.p7s Description: S/MIME Cryptographic Signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Unable to select source code blocks
Il giorno 26/feb/2011, alle ore 01.08, Eric Schulte ha scritto: >>> […] >> >> The problem doesn’t seem related to the autocomplete system, it’s the >> org-babel-src-block-names function that returns an empty list. I don’t >> know why, the org-babel-src-name-w-name-regexp used by that function >> seems ok at a cursory look. >> > > Could you attach a small file with named code blocks which aren't caught > by this function? I just ran the following in by file of scraps of > code examples and got 60 names returned > > #+begin_src emacs-lisp > (length (org-babel-src-block-names)) > #+end_src How embarrassing! I used this #+begin_src emacs-lisp (org-babel-src-block-names) #+end_src which returns nil or so I thought. I was expecting to see the list of source blocks in the results. Using your snippet on the same file: #+begin_src emacs-lisp (length (org-babel-src-block-names)) #+end_src #+results: : 19 However, using eval-last-sexp I get a list with nil items. Is it correct? Ciao -- Giorgio Valoti ___ 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