[Orgmode] Questions about org-capture templates and usage
I apologize if I am breaking "netiquette* by posting multiple questions in a single posting. If so, please let me know, and I will pare the following down into "bite-sized" chunks. I have fallen in love with org-capture, from the start. I have had some problems, and questions. The following is a short list of some of my questions and issues . I'm sorry to do it this way, but perhaps it's a tradeoff: many messages, or one long one. Which is more annoying? 1. Eventually a tutorial will surely be available. I haven't found one. Useful tutorials for me would be 1. How to make general templates, and pitfalls. 2. Advanced usages of org-capture: using functions, etc. 3. Common errors and causes 2. Documentation is minimal, while the complexity of the system is great. 3. I have had to modify my usage to accomodate to changes in org-capture, relative to org-remember. Some differences devolve from explicit design features 1. It is no longer necessary to auto-save uncommitted items. As a consequence there seems (as I understand it) to no longer be a way to use a prefix key to allow one to visit the item in it's context AFTER committing it with C-c C-c. I have spend a good deal of time worrying over this, but haven't solved the problem. Probably 90% of the times I save (C-c C-c) the Captured item, I stumble over how to find it again to enhance or review the item. *Is there a way to do this, or can we request a way to do this?* 4. I would like to be able to capture to a non-orgmode file. My remember template saved some notes, a list of items from an agenda search, or any text was marked as a region, as a memo wrapped up as a latex memo, with a latex memo header and an \end{document. It is my understanding that this won't work anymore because capture will not save to a non-orgmode file. *Is this correct, and/or what, if anything can I do to make this work?* ` I have thought that it might be possible to make a custom agenda report for such searches, that could be edited before final export. I would want this to be printable as a memo. 5. Requests for Features: 1. An indication of the current target would be useful on either the modeline or the CAPTURE header line. 2. Likewise, an indicator or nestedness of unsaved capture items. (probably not worth the clutter). 3. Is there a way to go to the last captured item? Is there a ring that can be cycled through? *This would be useful* Thank you for this fantastic work. Alan Davis ___ 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: MORE: Using git via USB for personal org dir and other data files
[Thank you to Bernt for the *clear* explanation of using branches!] I seem to be moving out of the woods with this, and for the most part, the experiment has been going smoothly. However, I've run afoul of permissions, a bugaboo that was mentioned in an earlier post on this topic. I established a bare git repo on the USB drive, from a reasonably clean tree. Pushing changes went well later on. I cloned this repo onto the second machine, edited quite a bit, but was dismayed when I tried to push: an error message indicated that some file couldn't be written. So far, the problem seems to be permissions. Preliminary checking shows that the group and user IDs are numerical on the flash drive, corresponding to the ID of the user who originally cloned the repo. I have a tentative plan of action, but I know nothing about the use of permissions with git. 1. I have established a group "git" with a high group number, so I can set create the same group on the work machine, with the same group number. (I think it's too complicated to change user numbers at this point). My users on the two machine have different user names. It would be pretty complicated right now to change the user's ID number. 2. I am setting the group permissions as read and write. # chmod -R g+w /media/BLUE/org.git 3. Does this make sense? This is a great thing. I want to put a whole bunch of work in such a repo. Thank you for the help. Alan -- Alan Davis "An inviscid theory of flow renders the screw useless, but the need for one non-existent." ---Lord Raleigh (John WilliamStrutt), or else his son, who was also a scientist. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Questions about org-capture templates and usage
I said: , | I have org-capture assigned to C-c, so C-u C-u C-c c goes straight to | the last stored item. Perfect. ` Org-capture is indeed bound to C-c c on my system. This has indeed been a useful thread. Thank you one and all, 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
[Orgmode] org-table and formulas
Hi, Here's what I'm trying to do (without success) in my spreadsheet: I have a first table : #+TBLNAME: table1 | ... |... | |...|... and a second table: #+TBLNAME: table2 | line_reference | ... |... | |...|... The line_reference is the line number to get some information in the table1. So in a cell of the table2, I tried a formula like: remote(table1,@$1$3) ($1 = the line_reference) which of course, didn't work. then I tried to use elisp: remote(table1,'(concat "@" $1 "$3")') but no success anyway. after all, I decided to merge my 2 tables because it looks like I can use elisp inside a org function (remote). The last tried formula was: '(concat "@" $1 "$3")' ,($1 = the line_reference). The problem of this formula is only that I got the string "@2$3" inside the cell and it's not evaluated as a formula. Could anyone give me some hint to get done what I'm trying to do? regards, Alan -- Alan Boudreault Mapgears http://www.mapgears.com/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: org-table and formulas
Hi Sébastien and thank you for your answer. The problem with that technique is that I'll have to name ALL the cell for ALL the colomn. Here's an example of my table: #+TBLNAME: FOOD | Name| Brand | Amounts (g) | Calories | Protein | Carbohydrate | Fat | |-+---+-+--+-+--+--| | Poitrine Poulet | KirkLand | 100 | 100 | 24 |0 |1 | | Capeli d'angelo| Primo | 85 | 300 | 10 | 63 |1 | | Couscous | Clic | 62 | 220 | 8 | 46 |1 | | Fromage Cottage | Sealtest | 125 | 100 | 15 |8 |1 | | Ficello | Black Diamond | 21 | 60 | 6 |0 |4 | | Concombre cru| | 100 | 15 |0.65 | 3.63 | 0.11 | | Clementine cru| | 100 | 47 |0.85 |12.02 | 0.15 | In the table 2, I would like to be able to just set a column to ie. 2 (for "Poitrine Poulet"), then I'll be able to get all the info of the different columns I need to do my calculs. I see there is also a "_" option for row name, but I'm unsure on how to specify the column desired with that name and how to get it evaluated if I need to concat something... regards, Alan Sébastien Vauban wrote: Hi Alan, Alan Boudreault wrote: Here's what I'm trying to do (without success) in my spreadsheet: I have a first table : #+TBLNAME: table1 | ... |... | |...|... and a second table: #+TBLNAME: table2 | line_reference | ... |... | |...|... The line_reference is the line number to get some information in the table1. So in a cell of the table2, I tried a formula like: remote(table1,@$1$3) ($1 = the line_reference) which of course, didn't work. then I tried to use elisp: remote(table1,'(concat "@" $1 "$3")') but no success anyway. after all, I decided to merge my 2 tables because it looks like I can use elisp inside a org function (remote). The last tried formula was: '(concat "@" $1 "$3")' ,($1 = the line_reference). The problem of this formula is only that I got the string "@2$3" inside the cell and it's not evaluated as a formula. Could anyone give me some hint to get done what I'm trying to do? What I do, which works: - give a name to the cell in table1 - reference it (in table2) by its name #+TBLNAME: Eau | | Date | Relevé m3 | Consommation | Prix TVAC | |---+--+---+--+---| | | [2009-11-15 Sun] | 2072.6263 | 0. | 0.00 | | | [2009-11-22 Sun] | 2074.1774 | 1.5511 | 1.55 | | | [2009-11-29 Sun] | 2076.0834 | 1.9060 | 1.91 | | | [2009-12-06 Sun] | 2077.6757 | 1.5923 | 1.59 | | | [2009-12-13 Sun] | 2079.2140 | 1.5383 | 1.54 | | | [2009-12-20 Sun] | 2081.4222 | 2.2082 | 2.21 | | | [2009-12-27 Sun] | 2083.2146 | 1.7924 | 1.79 | | | [2010-01-03 Sun] | 2085.4916 | 2.2770 | 2.28 | | | [2010-01-10 Sun] | 2087.4283 | 1.9367 | 1.94 | | ^ | | | | Eau | #+TBLFM: $...@+0$-1-@-1$-1;%.4f::$5=$4*1;%.2f::@2$4=0;%.4f | Énergie | Prix TVAC | |-+---| | Eau | 1.94 | | Gaz |156.81 | | Électricité | 11.64 | |-+---| | Total |170.39 | #+TBLFM: @2$2=remote(Eau,$Eau)::@3$2=remote(Gaz,$Gaz)::@4$2=remote(Elec,$Elec)::@5$2=vsum(@-...@-ii);%.2f Best regards, Seb -- Alan Boudreault Mapgears http://www.mapgears.com/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: org-table and formulas
Thanks for your help Carsten, Stephan and Sébastien. I'm going to take a look at your suggestions and see what I can do. Alan On January 13, 2010 06:59:54 am Carsten Dominik wrote: > Hi Alan, > > I think what you would have to do is to build a lisp function that > creates the full reference by string manipulation, and then calls org- > table-get-remote-range directly to retrieve the result. > > That function returns a string or a list of strings, so conversion > might be needed depending on how you use the result. > > - Carsten > > On Jan 13, 2010, at 12:14 PM, Alan Boudreault wrote: > > Hi Sébastien and thank you for your answer. > > > > The problem with that technique is that I'll have to name ALL the > > cell for ALL the colomn. Here's an example of my table: > > > > #+TBLNAME: FOOD > > > > | Name| Brand | Amounts (g) | Calories | Protein > > | Carbohydrate | Fat | > > |-+---+-+--+- > > > > +--+--| > > > > | Poitrine Poulet | KirkLand | 100 | 100 > > | 24 |0 |1 | > > | Capeli d'angelo| Primo | 85 | 300 | > > > > 10 | 63 |1 | > > > > | Couscous | Clic | 62 | 220 > > | 8 | 46 |1 | > > | Fromage Cottage | Sealtest | 125 | 100 | 15 > > |8 |1 | > > | Ficello | Black Diamond | 21 | 60 > > | 6 |0 |4 | > > | Concombre cru| | 100 | 15 | > > > > 0.65 | 3.63 | 0.11 | > > > > | Clementine cru| | 100 | 47 | > > > > 0.85 |12.02 | 0.15 | > > > > In the table 2, I would like to be able to just set a column to ie. > > 2 (for "Poitrine Poulet"), then I'll be able to get all the info of > > the different columns I need to do my calculs. I see there is also a > > "_" option for row name, but I'm unsure on how to specify the column > > desired with that name and how to get it evaluated if I need to > > concat something... > > > > regards, > > Alan > > > > Sébastien Vauban wrote: > >> Hi Alan, > >> > >> Alan Boudreault wrote: > >>> Here's what I'm trying to do (without success) in my spreadsheet: > >>> > >>> I have a first table : > >>> > >>> #+TBLNAME: table1 > >>> > >>> | ... |... | |...|... > >>> > >>> and a second table: > >>> > >>> #+TBLNAME: table2 > >>> > >>> | line_reference | ... |... | |...|... > >>> > >>> The line_reference is the line number to get some information in > >>> the table1. > >>> So in a cell of the table2, I tried a formula like: remote(table1,@ > >>> $1$3) ($1 > >>> = the line_reference) which of course, didn't work. > >>> > >>> then I tried to use elisp: remote(table1,'(concat "@" $1 > >>> "$3")') but no > >>> success anyway. > >>> > >>> after all, I decided to merge my 2 tables because it looks like I > >>> can use > >>> elisp inside a org function (remote). The last tried formula was: > >>> '(concat > >>> "@" $1 "$3")' ,($1 = the line_reference). The problem of this > >>> formula is > >>> only that I got the string "@2$3" inside the cell and it's not > >>> evaluated as > >>> a formula. > >>> > >>> Could anyone give me some hint to get done what I'm trying to do? > >> > >> What I do, which works: > >> > >> - give a name to the cell in table1 > >> - reference it (in table2) by its name > >> > >> > >> #+TBLNAME: Eau > >> > >> | | Date | Relevé m3 | Consommation | Prix TVAC | > >> | > >> |---+--+---+--+---| > >> | > >> | | [2009-11-15 Sun] | 2072.6263 | 0. | 0.00 | > >> | | [2009-11-22 Sun] | 2074.1774 | 1.5511 | 1.55 | > >> | | [2009-11-29 Sun] | 2076.0834 | 1.9060 | 1.91 | > >> | | [2009-12-06 Sun] | 2077.6757 | 1.5923 | 1.59 | >
Re: [Orgmode] Bug: Impossible to have right bracket in footnotes [7.01trans]
On Thu, Sep 2, 2010 at 6:15 PM, Carsten Dominik wrote: > > On Sep 1, 2010, at 12:19 AM, Alan L Tyree wrote: > > On Tue, 31 Aug 2010 14:09:58 +0200 >> Carsten Dominik wrote: >> >> Hi Aidan, >>> >>> unfortunately this is difficult to fix in a good way. >>> I do want to go back to footnotes, because I think there are many >>> things that do not yet work satisfactorily. And then I also hope to >>> address the issue you raised. For the time being, unfortunately, I >>> do not have a solution for you. >>> >> >> I also have problems with footnotes. Jan Boecker kindly devised a >> work-around using non-printing spaces which is OK, but what I would like >> is: >> >> Disable footnotes like [2010], but keep footnotes like [fn:2010] >> > > Also on my list of things to fix when I get there.... > Carsten, Very low priority as far as I am concerned. Be nice, but it is hardly a deal breaker. Thanks for great software! Cheers, Alan > > - Carsten > > > >> The reason is that I write legal texts that have references to case law >> that look like: Marreco v Richardson [1908] 2 KB 584. The dates in >> square brackets are an essential part of the reference. >> >> f:nil in the Options seems to disable all footnotes rather than just >> the [2010] type. The documentation is slightly misleading on this. >> Under "Export options" it says: >> >> f: turn on/off footnotes like this[1]. >> >> I seem to be living more and more in org-mode. Thanks for such great >> software! >> >> Alan >> >> >> >>> - Carsten >>> >>> On Aug 31, 2010, at 10:38 AM, Aidan Gauland wrote: >>> >>> It is impossible to have closing brackets in a footnote, because >>>> they are treated as the closing bracket for the foot note. >>>> Example... >>>> >>>> * A heading >>>> This is a broken footnote.[fn:: Some book at [42-24].] >>>> >>>> This will export to (as ASCII, for example)... >>>>org-fn-bug-example >>>>== >>>> >>>> Author: Aidan Gauland >>>> Date: 2010-08-31 20:33:14 NZST >>>> >>>> >>>> Table of Contents >>>> = >>>> 1 A heading >>>> >>>> >>>> 1 A heading >>>> >>>> This is a broken footnote.[1].] >>>> >>>> This will export to (as ASCII, for example)... >>>> >>>> [1] Some book at [42-24 >>>> >>>> This is how I am required to cite books for my academic essays, so >>>> this >>>> is a pretty serious bug for me (and no doubt other students, as >>>> well). >>>> >>>> Regards, >>>> Aidan Gauland >>>> >>>> Emacs : GNU Emacs 24.0.50.6 (x86_64-unknown-linux-gnu, GTK+ >>>> Version 2.20.1) >>>> of 2010-08-29 on dimension8 >>>> Package: Org-mode version 7.01trans >>>> >>>> current state: >>>> == >>>> (setq >>>> org-export-latex-after-initial-vars-hook >>>> '(org-beamer-after-initial- vars) >>>> org-agenda-files '("~/uc-files/uc-work.org") >>>> org-agenda-include-diary t >>>> org-completion-use-iswitchb t >>>> org-completion-use-ido t >>>> org-metaup-hook '(org-babel-load-in-session-maybe) >>>> org-after-todo-state-change-hook '(org-clock-out-if-current) >>>> org-export-blocks-postblock-hook '(org-exp-res/src-name-cleanup) >>>> org-export-latex-format-toc-function 'org-export-latex-format-toc- >>>> default >>>> org-export-preprocess-hook '(org-export-blocks-preprocess) >>>> org-tab-first-hook '(org-hide-block-toggle-maybe >>>> org-babel-hide-result-toggle-maybe) >>>> org-src-mode-hook '(org-src-babel-configure-edit-buffer >>>> org-src-mode-configure-edit-buffer) >>>> org-confirm-shell-link-function 'yes-or-no-p >>>> org-export-first-hook '(org-beamer-initialize-open-trackers) >>>> org-agenda-before-write-hook '(org-agenda-add-entry-text) >>>> org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- >>>> drawers >>>> org-cycle-show-empty-lines >>>> >>>> org-optimize-window-af
Re: [Orgmode] Re: ePub and Org mode
On Sun, Feb 20, 2011 at 6:53 PM, Achim Gratz wrote: > Christian Moe writes: > > I agree exporting 'chapters' in a single Org document to separate html > > files would be a nice option to have. > > > > Pending someone writing an export function for this, you could > [...] > > That sort of already exists, I've been using that to some good > effect... from the documentation: > > --8<---cut here---start->8--- > When exporting only a single subtree by selecting it with `C-c @' > before calling an export command, the subtree can overrule some of the > file's export settings with properties `EXPORT_FILE_NAME', > `EXPORT_TITLE', `EXPORT_TEXT', `EXPORT_AUTHOR', `EXPORT_DATE', and > `EXPORT_OPTIONS'. > --8<---cut here---end--->8--- > > The only thing missing is a function to export all (not excluded) > subtrees one by one and honor the properties slapped onto each subtree. > > True. I also use the subtree export function often. I is easy to define a keyboard macro to deal with the problem. If I had to do it more than once, I'm sure that it is not too hard to write an elisp function to do it. I think that Christian is proably right: for ePub generation, there are other tools that do the job. Two ways that are easy: org -> html -> tidy -m -asxhtml -> (calibre || sigil) I have had trouble getting the calibre ePub to validate, but it is more straightforward than Sigil. On the other hand, Sigil is easier to use to add editing to the basic text and always seems to pass the validation tests. To get proper validation, I have found that the "tidy" step is necessary. Not sure why - tidy always replaces lots of characters, but I haven't had the time to work out what is going on. Cheers, Alan > > Achim. > -- > +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ > > SD adaptation for Waldorf microQ V2.22R2: > http://Synth.Stromeko.net/Downloads.html#WaldorfSDada > > > ___ > 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] Splitting mailing list
On Mon, Feb 28, 2011 at 7:48 PM, Julien Danjou wrote: > On Mon, Feb 28 2011, Alan L Tyree wrote: > > > The development list wouldn't be very interesting without the intense > > interaction that it now has with users. The org list seems unique in > > this, at least for the lists that I have sometimes monitored. > > No, really, it's not that unique. And many project still works correctly > with several mailing list. > I know that most projects work this way, and I am sure that Org would survive and prosper no matter what the decision is here. I still say, of the lists that I have monitored (not many - I am a retired Law Professor with only a slight knowledge of software development) the Org list is the most interesting. It's just a personal preference - I don't see any decisive argument for any of the possible decisions on splitting the list. Whatever happens, many thanks to all the Org developers for some great software. Cheers, Alan > > -- > Julien Danjou > ❱ http://julien.danjou.info > -- 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
[O] Org mode comment
Hello, Just started using org-mode and I love it already. The export to LaTeX feature is fantastic. Thanks for the great work! Alan.
[O] DevonThink links in org mode?
Hello, I discovered that "message:" links work great in org-mode (it opens the message in Mail.app). However, if I click on a link from DevonThink (which looks like this: x-devonthink-item://700A651C-E395-462C-873A-13FC92035FBD), I get a dialog which says "no match, create this as a new heading?". Is there a way to tell org-mode to pass the resolution of this link to the system? (For instance, if I do a "open x-devonthink-item://700A651C-E395-462C-873A-13FC92035FBD" in a terminal window, things work as expected.) Thanks a lot, Alan
Re: [O] DevonThink links in org mode?
On 16 juil. 2012, at 14:26, Bastien wrote: > Hi Alan, > > Alan Schmitt writes: > >> Is there a way to tell org-mode to pass the resolution of this link to the >> system? (For instance, if I do a "open >> x-devonthink-item://700A651C-E395-462C-873A-13FC92035FBD" in a terminal >> window, things work as expected.) > > You want to check the "A.3 Adding hyperlink types" section of > the manual: > > http://orgmode.org/manual/Adding-hyperlink-types.html Thanks a lot, that was most helpful. Here is what I ended up with, if it may help other people: (org-add-link-type "x-devonthink-item" 'org-devonthink-open) (defun org-devonthink-open (link) "Open the devonthink link." (start-process (concat "open " link) nil "open" (concat "x-devonthink-item:" link))) Alan
Re: [O] DevonThink links in org mode?
On 16 juil. 2012, at 20:22, John Wiegley wrote: > I created org-devonthink.el a long time ago: > >https://github.com/jwiegley/dot-emacs/blob/master/lisp/org-devonthink.el Really nice, thanks a lot! Alan
[O] [OT] Configuring bbdb 3
Hello, Since I'm spending more and more time in Emacs, mostly in org mode, I moved my email reading and writing there. Everything is happily configured (I'm using gnus), with one exception: email address completion. I've read a few things online and it seems that bbdb is the way to go, so I compiled and installed bbdb 3. Unfortunately I could not find any configuration example online (the ones I found were for bbdb 2, but things seem to have changed a lot, and the conversion guide in the emacswiki did not help). I know this is off topic for this list, but if someone would be willing to share his configuration, I would very much appreciate it. (I'm not aiming for much: I want the addresses of messages I read to be added automatically in bbdb, and to be able to complete from them when writing a message.) Thanks a lot, Alan
Re: [O] [OT] Configuring bbdb 3
Eric Abrahamsen writes: > For adding records automatically to BBDB, you say you're using gnus, but > also say you've moved your email reading to org. Where are you that > you'd like to automatically add the record? In gnus, I've bound ";" to > `bbdb-mua-edit-field-sender', and also have this: > > (setq bbdb-mua-update-interactive-p '(query . create)) > > If I hit ";" on a message, it will show me the records for all the > addresses in the To and CC headers (possibly headers too), and if I > don't have records for any of those headers, it will ask me if I want to > create records. That's the way I like it, you can look at the possible > values for `bbdb-mua-update-interactive-p' to get different behaviors. This was most helpful. I bound ';' to 'bbdb-mua-edit-field' and it works great. Thanks a lot, Alan
[O] local.mk and up2 (Was: [OT] Configuring bbdb 3)
François Allisson writes: > One should add "up2::" in local.mk (with a double-colon). I've just > done it, because I really like "make up2", and it's easier than ever: > "make" and that's it. Great ! It works great with one caveat: it's calling "sudo" to do the "make install". As I install locally, I don't want to use sudo. Is it possible to configure something in local.mk to do this? Thanks, Alan
Re: [O] local.mk and up2
Nick Dokos writes: > I said: > > , > | You can always redefine makefile variables on the command line: > | > | make SUDO= up2 > | > | will redefine SUDO to nothing for this run. > ` > > but I should also have added that you can redefine the variable in > local.mk as well for more permanence: > > SUDO = > > local.mk is included *after* default.mk, which is where the > > SUDO = sudo > > line originally defines the SUDO variable, so it overrides the > default. Thanks a lot, that worked wonderfully well. Now a single make keeps my org-mode up to date. Alan
[O] stable links to gnus messages?
Hello, I'm starting to play with org-store-link, and I've noticed that if I create a link to a gnus message, this link will be broken if I move the message to another mailbox. Is it possible to have a stable link that would survive such a move? Thanks, Alan
Re: [O] stable links to gnus messages?
Bastien writes: > Hi Alan, > > Alan Schmitt writes: > >> I'm starting to play with org-store-link, and I've noticed that if I >> create a link to a gnus message, this link will be broken if I move the >> message to another mailbox. Is it possible to have a stable link that >> would survive such a move? > > You might want to use gnus-registry and the nnregistry backend. Thanks, that worked great. The only part I'm still trying to figure out is to find in which group the mail is in (nnregistry is finding it, and displaying it, but the modeline mentions the old group and not the one where the message has been moved to). I guess this is also why displaying the thread does not work. For the record, here is the settings I've used: #+begin_src elisp ;; Registry, to allow the finding of messages ;; From http://www.gnu.org/software/emacs/manual/html_node/gnus/The-Gnus-Registry.html#The-Gnus-Registry (setq gnus-registry-split-strategy 'majority gnus-registry-ignored-groups '(("Junk" t) ("TrainSpam" t) ("notmuch" t) ("Trash" t) ("Chats" t) ("Contacts" t) ("Emailed Contacts" t) ("Notes" t)) gnus-registry-max-entries nil ;; this is the default gnus-registry-track-extra '(sender subject)) (gnus-registry-initialize) (setq gnus-refer-article-method '(current (nnregistry))) #+end_src
Re: [O] test fails
Bastien writes: > Hi Erich, > > Erich Neuwirth writes: > >> I am building org mode on 2 Macs with OSX 10.8.1 and Emacs 24.2.1 >> >> One one machine, this works. >> On the other machine, the build fails. > > Maybe you can run `make config-test' to see if the testing si > configured the same way on both machines: I'm having the same issue. Here is my config-test = Test configuration BTEST_PRE = BTEST_POST = BTEST_OB_LANGUAGES = awk C fortran maxima lilypond octave python sh BTEST_EXTRA = (Interestingly enough, the tests get stuck at the exact same point.) Alan
[O] repeater not working?
Hello, I'm starting to play with repeaters, and I cannot make them work. Here is a sample of a small file I have: *** Archive Mail [2/2] SCHEDULED: <2012-09-01 Sat +1m> DONE Read and archive all mail (orgmode, Sent) CLOSED: [2012-09-01 Sat 15:03] DONE Create monthly folder and move mail there CLOSED: [2012-09-01 Sat 15:06] As you can see, subtasks are done, and I have set a repeater for the scheduling for one month. If I go on the first line and close the entry, I get the following: *** DONE Archive Mail [2/2] CLOSED: [2012-09-01 Sat 15:13] SCHEDULED: <2012-09-01 Sat +1m> DONE Read and archive all mail (orgmode, Sent) CLOSED: [2012-09-01 Sat 15:03] DONE Create monthly folder and move mail there CLOSED: [2012-09-01 Sat 15:06] However no new entry appears scheduled for one month in the future. Am I doing something wrong or is this a bug? Thanks, Alan
Re: [O] repeater not working?
Memnon Anon writes: > http://doc.norang.ca/org-mode.html#ChecklistHandling describes a similar > case. Ah, interesting. I'll give it a try. > For minor (less than 5 minutes) subtasks like "Create folder, move mail > there", I would not want that to show up in my agenda, but only the > "real" task at hand: Archive Mail. > > #+BEGIN_SRC org > > * TODO Archive Mail [0/2] >SCHEDULED: <2012-09-01 Sat +1m> >:PROPERTIES: >RESET_CHECK_BOXES: t >:END: > >- [ ] Read and archive all mail (orgmode, Sent) >- [ ] Create monthly folder and move mail there > > #+END_SRC I tried it and it works great (small typo: there should be a colon at the beginning of "RESET_CHECK_BOXES"; I see that some colons are missing also on the above site). By the way, what is the canonical way to install contribs? The doc.norang.ca site says to simply add a "load_path" to the source directory of org-mode, but maybe there is another way. >>As you can see, subtasks are done, and I have set a repeater for the >>scheduling for one month. If I go on the first line and close the entry, >>I get the following: >> >>*** DONE Archive Mail [2/2] >>CLOSED: [2012-09-01 Sat 15:13] SCHEDULED: <2012-09-01 Sat +1m> > > The entry should go back to TODO and SCHEDULED: <2012-10-01 Mon +1m> > ... This is also what I was expecting. > What is your org-todo-keywords sequence? Stolen from Bastien ;-) #+BEGIN_SRC elisp (setq org-todo-keywords '((sequence "NEXT(/)" "TODO(t)" "STRT(s)" "WAIT(w@)") (sequence "|" "DONE(d)" "DELEGATED(D@)" "CANCELED(c@)"))) #+END_SRC > Did you set org-todo-repeat-to-state? (Should not be necessary...) No, it's nil. Thanks, Alan
Re: [O] repeater not working?
I found the problem, and it was me: my original entry does not have a "TODO" in the title. (My reasoning for not putting the TODO was that it's a project, so as such it should not appear in my agenda, only the tasks should appear.) So when I close it (change the state to DONE), the "choose a state window" remains open, which I hadn't noticed before. When I choose a state in this window, then the project becomes scheduled again. To reproduce: * Project SCHEDULED: <2012-09-02 Sun +1m> ** TODO task1 ** TODO task2 Changing the project status to DONE leaves the "choose a status" window open. I guess I'm too much into an OmniFocus way of organizing thing, and need to dig deeper in orgmode to find the canonical way of doing this. For repeating projects, do you use checklists like Memnon Anon? Best, Alan
Re: [O] repeater not working?
Memnon Anon writes: > My point was: > > TODO Items will pop up in your agenda, checklists will not. > If "Archive Mail" involves some ministeps you just want to make sure you > won't forget, which you don't want to log separately, checklists are > probably a better idea. But don't overuse them; as a general rule, if a > subtask takes more than 3 minutes, I make it a first class citizen in > the org cosmos, i.e. a TODO item. Most ministeps are not worth jotting > down in the first place, having them in my agenda would clutter everything: > > * TODO Return books to library [/] > ** TODO Search books > ** TODO Put books in bag > ** TODO Unlock bike > ** TODO Drive to library Is there a way for a TODO to be hidden from an agenda until all previous TODOs have been done? Here, there is no point in putting the books in the bag if you have not found them ... Alan
Re: [O] repeater not working?
"Sebastien Vauban" writes: > Hi Alan, > > Alan Schmitt wrote: >>> * TODO Return books to library [/] >>> ** TODO Search books >>> ** TODO Put books in bag >>> ** TODO Unlock bike >>> ** TODO Drive to library >> >> Is there a way for a TODO to be hidden from an agenda until all previous >> TODOs have been done? Here, there is no point in putting the books in >> the bag if you have not found them ... > > Look at the ORDERED property.[1] > > Best regards, > Seb > > [1] That makes me think that I'd find it useful to see that information as a > tag as well. Exactly like for Beamer where some properties have an associated > tag automatically created, purely for easier visualization. What do you think? > I would clearly use that feature more (I currently don't), if this would be > the case. Thanks, this was most helpful. Alan
[O] Compilation problem
Hello, I cannot compile the current version of org-mode (from git): something fails during testing: make test-dirty install -m 755 -d /var/folders/68/fvntfrw92y50gkk_67rkhsfwgn/T//tmp-orgtest TMPDIR=/var/folders/68/fvntfrw92y50gkk_67rkhsfwgn/T//tmp-orgtest /Applications/Emacs.app/Contents/MacOS/Emacs -batch -Q --eval '(add-to-list '"'"'load-path "./lisp")' --eval '(add-to-list '"'"'load-path "./testing")' -l org-install.el -l testing/org-test.el --eval '(require '"'"'ob-awk)' --eval '(require '"'"'ob-C)' --eval '(require '"'"'ob-fortran)' --eval '(require '"'"'ob-maxima)' --eval '(require '"'"'ob-lilypond)' --eval '(require '"'"'ob-octave)' --eval '(require '"'"'ob-python)' --eval '(require '"'"'ob-sh)' --eval '(setq org-confirm-babel-evaluate nil)' -f org-test-run-batch-tests Symbol's function definition is void: org-export-define-backend make[1]: *** [test-dirty] Error 255 Here is my local.mk EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs prefix=/Users/schmitta/.emacs.d/vendor SUDO = ORG_ADD_CONTRIB=org-checklist org-export org-e-* up2:: Is this a (known) bug? Alan
Re: [O] Compilation problem
Achim Gratz writes: > Alan Schmitt writes: >> EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs > > As with the problems John Hendy has: is that the actual Emacs binary or > a wrapper script? If it is a script, it seems that it doesn't correctly > feed all the options to Emacs. It's 14MB in size so I hope it's not a script ... Alan
Re: [O] Compilation problem
Bastien writes: > Achim Gratz writes: > >> Nick Dokos writes: >>> I can reproduce this. AFAIK, it's new - I stripped down the command >>> line above and kept getting the error until the -l org-install.el, so >>> it's clearly something in org-install.el. I modified the function >>> org-make-org-install in org-fixup.el to add >> >> That would be commit 830a0781a6 by Jambunathan, then. Autoloads really >> don't work that way, so could this please be reverted? > > Done. Thanks, it now compiles (and get stuck as usual on the line passed 90/192 test-ob-sh/dont-insert-spaces-on-expanded-bodies ), which was the previous behavior. Alan
Re: [O] [OT] Org spotted in the wild
Toke Høiland-Jørgensen writes: > "Loris Bennett" writes: > >> While looking for a solution to the problem of emacs hanging if the SSH >> connection to remote files goes down > > Did you find one (a solution, that is)? This has been bothering me for a > while as well... I've been using mosh for a couple weeks now, and I'm really happy about it: connections survive changing ip addresses and the laptop going to sleep. I find it quite robust. Alan
Re: [O] Compilation problem
Bastien writes: > Hi Alan, > > Alan Schmitt writes: > >> I cannot compile the current version of org-mode (from git): something >> fails during testing: > > did you find a workaround? There was a revert of a commit that fixed it, and I got back to the usual state of getting stuck on some test. (I tried finding which test is getting stuck, but I don't know how. I just know the last test to pass is test-ob-sh/dont-insert-spaces-on-expanded-bodies. Digging a bit more the stuck process is running "zsh -i". Killing it crashes the Emacs test process with a stack full of "mark_object" and "mark_vectorlike", as reported by the OS X crash reporter.) Alan
Re: [O] [OT] Org spotted in the wild
Toke Høiland-Jørgensen writes: > Alan Schmitt writes: > >> I've been using mosh for a couple weeks now, and I'm really happy >> about it: connections survive changing ip addresses and the laptop >> going to sleep. I find it quite robust. > > Does mosh work as a drop-in replacement for SSH in emacs (tramp) usage > as well? It does not seem to be the case yet, but it looks like tramp developers asked mosh developers about it: http://lists.gnu.org/archive/html/tramp-devel/2012-09/msg00019.html Alan
Re: [O] Compilation problem
Achim Gratz writes: > Alan Schmitt writes: >> There was a revert of a commit that fixed it, and I got back to the >> usual state of getting stuck on some test. (I tried finding which test >> is getting stuck, but I don't know how. I just know the last test to >> pass is test-ob-sh/dont-insert-spaces-on-expanded-bodies. Digging a bit >> more the stuck process is running "zsh -i". > > Then it certainly is the sh session test and Emacs doesn't know how to > interpret the prompt it gets from zsh and waits indefinately for the > shell to start or zsh tries to do session management, which doesn't work > in emacs' emulated terminal. This test is a bit fragile, I've seen it > do strange things on windows as well. If you have that on your system, > use posh as a shell for the invocation of emacs from the makefile, in > local.mk: > > EMACS = SHELL=posh /path/to/emacs > > Make sure the shell prompt you get ends with "$" and maybe some > whitespace, then emacs should know the shell is active. I don't have posh, but putting EMACS = SHELL=sh /path/to/emacs in my local.mk worked. Thanks for the hint. Alan
Re: [O] orgmode + evernote, anyone using it? Use cases?
Eden Cardim writes: > Links are the basis for decent planning, I spend half of my day in > planning mode where I write links for everything I'm gonna do while > I'm in "cranking mode". When I switch over to cranking mode, I just > open whatever the task is linking to (like source code, an email, a > document, a web article, etc.) and that's enough to switch my brain > over to the context of that task and I can just get to work. Do you have a reliable system to link to emails? I've been working on this and I'm not too satisfied yet. > I have no problem with writing, but sometimes I don't have writing > tools with me, but I always have my phone. I'm curious about this too: how do you integrate your phone in this setup? Thanks, Alan
Re: [O] orgmode + evernote, anyone using it? Use cases?
Eden Cardim writes: >>>>>> "Alan" == Alan Schmitt writes: > Alan> Do you have a reliable system to link to emails? I've been > Alan> working on this and I'm not too satisfied yet. > > Not sure what you mean by reliable. I use offlineimap to sync my mail > to a local dovecot which I access by tunneling gnus to it. This means > I can access emails anywhere, like on a plane. Sorry I wasn't clear. I have the same setup. My question is: how do you get a link from org to gnus that still works even if messages are moved around. I tried nnregistry but it stopped working after I upgraded to Emacs 24.2, so I'd be happy for other solutions. > Alan> I'm curious about this too: how do you integrate your phone > Alan> in this setup? > > I export an ical periodically, which my phone is subscribed to for > reminders. For evernote I'm subscribed to the rss feed of a notebook > via org. Basically, I only use evernote as a > capture/visualization/search tool. The management happens within org. So things that are captured in evernote stay there to be searched later? Do you link from org to evernote? And do you have data flow from org to evernote? (I'm asking all these questions because my current capture mode when I'm away from the computer is to send myself an email, which is not very efficient… so I'd be glad to understand other processes.) Thanks, Alan
Re: [O] orgmode + evernote, anyone using it? Use cases?
Thanks a lot to you and Robert for the tips. Alan
Re: [O] orgmode + evernote, anyone using it? Use cases?
Nick Dokos writes: > The message ID is preserved even if I move messages to other > folders. So as long as your search engine searches by message ID, you > should be all set, except that you might have to resync the database of > your search engine, if it uses one. I guess this is the crux of my problem: I don't know how to tell gnus to search some mail by message ID if it's not in the group it was initially. I'll dig into this and will report here when I find a solution. Thanks, Alan
Re: [O] orgmode + evernote, anyone using it? Use cases?
Alan Schmitt writes: > Nick Dokos writes: > >> The message ID is preserved even if I move messages to other >> folders. So as long as your search engine searches by message ID, you >> should be all set, except that you might have to resync the database of >> your search engine, if it uses one. > > I guess this is the crux of my problem: I don't know how to tell gnus to > search some mail by message ID if it's not in the group it was > initially. I'll dig into this and will report here when I find a > solution. Thanks to Memnon's advice (off list), I was able to track down the problem. For some reason, the nnregistry file would sometimes not be updated (it's the .gnus.registry.eioio file) and links would not work. Saving the file manually (using 's' in the *Group* buffer) fixes it. Alan
[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] Code Block Headers Appear in Export
Following up. Does anyone else see this behavior? Headers always appear in the export whenever my document includes a code block with a separate `#+HEADERS:' line. Alan Lue writes: > 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] Remembrance Agent and Orgmode
Dear all, I'm trying to set up the remembrance agent, but I'm not able to get the binaries to work. I'm on OS X Mountain Lion, and the binaries from http://www.remem.org/ tell me "bad CPU type". I tried building it from source, but I'm getting an error about strnlen. If someone knows how to build these binaries, I'd gladly use some help. Thanks a lot, Alan
Re: [O] Remembrance Agent and Orgmode
Alan Schmitt writes: > I'm trying to set up the remembrance agent, but I'm not able to get the > binaries to work. I'm on OS X Mountain Lion, and the binaries from > http://www.remem.org/ tell me "bad CPU type". I tried building it from > source, but I'm getting an error about strnlen. I've been able to build it, by commenting out the "strnlen" function in savutil/gbuf.c, as it's already define in OS X since Lion. Alan
Re: [O] Remembrance Agent and Orgmode
Benjamin Slade writes: > So do you have it working now? I don't run Macs, so I didn't have > anything to suggest earlier. Yes, it's working now. > That sounds like something which should > be documented somewhere (i.e. which now someone should document). Yes, probably. I don't know where, though, since it does not seem to be actively maintained. Alan
[O] Tangling to Multiple Files
Hi, how does one tangle a single code block to multiple files? I thought the following might work, but unfortunately it does not. Set the frame size. #+HEADERS: :tangle user-host-a.el user-host-b.el #+BEGIN_SRC emacs-lisp (setq initial-frame-alist '((width . 80) (height . 38))) #+END_SRC To provide some background, I'm using =org-babel-load-file= in my init.el file to load up my Emacs configuration from an Org file—call it "user.org." I'd like to use just one user.org file across multiple computers, however, meaning I'd like user.org to tangle into user-host-a.el and user-host-b.el, for instance. The configurations are only slightly different, so I'd like to be able to selectively indicate to Org-mode which code blocks to tangle into.
Re: [O] Tangling to Multiple Files
Thanks Eric, I didn't know that you could pass lisp code as header arguments. It looks like it'll be best to conditionally tangle. :tangle (if (string-match "myhost" system-name) "yes" "no") Eric Schulte writes: > Alan Lue writes: > >> Hi, how does one tangle a single code block to multiple files? >> >> I thought the following might work, but unfortunately it does not. >> >> Set the frame size. >> #+HEADERS: :tangle user-host-a.el user-host-b.el >> #+BEGIN_SRC emacs-lisp >> (setq initial-frame-alist '((width . 80) (height . 38))) >> #+END_SRC >> >> To provide some background, I'm using =org-babel-load-file= in my >> init.el file to load up my Emacs configuration from an Org file—call it >> "user.org." I'd like to use just one user.org file across multiple >> computers, however, meaning I'd like user.org to tangle into >> user-host-a.el and user-host-b.el, for instance. >> >> The configurations are only slightly different, so I'd like to be able >> to selectively indicate to Org-mode which code blocks to tangle >> into. >> >> > > You could try something like the following to tangle out to a different > file on each machine. > > :tangle (format "%s.el" system-name) > > or > > :tangle (format "%s.el" user-login-name) > > Hope this helps,
[O] org-beginning-of-line, org-end-of-line, and visual line mode
Hello, I'm using a very recent version of org-mode (compiled earlier today from git), and I see that using visual-line-mode, the "org-beginning-of-line" goes to the beginning of the visual line (it does not ignore soft line breaks), whereas "org-end-of-line" goes to the end of the real line (it ignores soft line breaks). The FAQ says that this used to be broken back in 2009, but does not mention this asymmetry. Is this a bug? Thanks, Alan
Re: [O] org-beginning-of-line, org-end-of-line, and visual line mode
Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> I'm using a very recent version of org-mode (compiled earlier today from >> git), and I see that using visual-line-mode, the "org-beginning-of-line" >> goes to the beginning of the visual line (it does not ignore soft line >> breaks), whereas "org-end-of-line" goes to the end of the real line (it >> ignores soft line breaks). The FAQ says that this used to be broken back >> in 2009, but does not mention this asymmetry. Is this a bug? > > This is a bug, which should be fixed now. Could you confirm it? Yes, it's working. > Thanks for reporting this. And thanks for fixing it so quickly! Alan
Re: [O] Extending org-koma-letter.el
Hello, Bastien writes: > Hi Luis, > > Luis Anaya writes: > >> Nicolas Goaziou writes: >> >>> >>> Code for org-koma-letter.el is at: >>> >>> http://permalink.gmane.org/gmane.emacs.orgmode/57547 > > I added a link to this in > > http://orgmode.org/worg/org-contrib/index.html I'm resurrecting this old thread because I need to write a recommendation letter, which is all ready in org mode. I have put the org-koma-letter.el in the contrib/lisp directory, compiled it, and required it. I created the association as suggested, but when I export to latex, I get some strange results. It seems that the association is used (as indicated by the documentclass), but there is no "\begin{letter} ... \end{letter}" generated. Here is the generated latex: #+BEGIN_SRC latex % Created 2012-11-06 Tue 16:23 \documentclass[% DIV=14, fontsize=10pt, parskip=half, subject=untitled, backaddress=true, fromalign=right, fromemail=true, fromphone=false, InriaRennesFR]{scrlttr2} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{soul} \usepackage{textcomp} \usepackage{marvosym} \usepackage{wasysym} \usepackage{latexsym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{hyperref} \author{Alan Schmitt} \date{\today} \title{Testing the letter} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Generated by Org mode 7.9.2 in Emacs 24.2.1.}} \begin{document} \maketitle \tableofcontents \vspace*{1cm} Hello world % Generated by Org mode 7.9.2 in Emacs 24.2.1. \end{document} #+END_SRC and the corresponding org source: #+BEGIN_SRC org #+LATEX_CLASS: my-inria-fr-letter #+TITLE: Testing the letter #+CLOSING: Yo, man Hello world #+END_SRC Finally, this is what I added to my init file: #+BEGIN_SRC elisp (require 'org-koma-letter) (add-to-list 'org-e-latex-classes '("my-inria-fr-letter" "\\documentclass\[% DIV=14, fontsize=10pt, parskip=half, subject=untitled, backaddress=true, fromalign=right, fromemail=true, fromphone=false, InriaRennesFR\]\{scrlttr2\} \[DEFAULT-PACKAGES] \[PACKAGES] \[EXTRA]" ("\\section\{%s\}" . "\\section*\{%s\}") ("\\subsection\{%s\}" . "\\subsection*\{%s\}") ("\\subsubsection\{%s\}" . "\\subsubsection*\{%s\}"))) #+END_SRC Any idea as to what I'm doing wrong? Thanks, Alan
[O] Removing the date in a subtree export using the new exporter
Hello, I'm using the new exporter to create a pdf (through latex) of a subtree of a huge file, and I want to remove some default information. I found out a way to do it, but I'm not sure it's the right way. Here it is. #+BEGIN_SRC org :PROPERTIES: :EXPORT_TITLE: Foo bar :EXPORT_OPTIONS: toc:nil author:nil :EXPORT_DATE: ~ :END: #+END_SRC The part about which I'm not sure is how to remove the date. I tried putting nothing instead of the '~' but it does not work. Maybe there could be an option for it? Alan
[O] How can I use xelatex with the new latex exporter?
Hello, I'm playing with the new latex exporter, and I'd like to use xelated with it. I used to follow the instructions from worg (http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export), but it seems that the hook org-export-latex-after-initial-vars-hook is not used for the new exporter. Is there a similar hook I can use? Thanks a lot, Alan
[O] Specifying multiple latex headers for export in properties block
Hello, If I've understood things correctly, the canonical way to change export options for a subtree export is to put them in a properties block. I noticed that if I put several "EXPORT_LATEX_HEADER" entries in the properties block, only the first one is taken into account. Is it supposed to work this way? Is there a way around it? Thanks a lot, Alan
Re: [O] Specifying multiple latex headers for export in properties block
Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> If I've understood things correctly, the canonical way to change export >> options for a subtree export is to put them in a properties block. I >> noticed that if I put several "EXPORT_LATEX_HEADER" entries in the >> properties block, only the first one is taken into account. >> >> Is it supposed to work this way? Is there a way around it? > > This is limitation from property drawers: each property can only appear > once. You may want to set a special latex_class (through > EXPORT_LATEX_CLASS property) for this subtree and fill its template with > the required headers. Yes, this is indeed a solution. It's a bit harder to tweak, but for that phase one can use a very long line with all the headers. Thanks for the suggestion, Alan
Re: [O] How can I use xelatex with the new latex exporter?
Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> I'm playing with the new latex exporter, and I'd like to use xelated >> with it. I used to follow the instructions from worg >> (http://orgmode.org/worg/org-faq.html#using-xelatex-for-pdf-export), but >> it seems that the hook org-export-latex-after-initial-vars-hook is not >> used for the new exporter. Is there a similar hook I can use? > > Before using this machinery, is it enough to customize > `org-e-latex-pdf-process'? Yes, this works. This is what I added: (setq org-e-latex-pdf-process '("latexmk -pdflatex='xelatex --shell-escape' -pdf -quiet %f")) (I need the "--shell-escape" to run minted) Thanks a lot! Alan
Re: [O] How can I use xelatex with the new latex exporter?
Suvayu Ali writes: >> Before using this machinery, is it enough to customize >> `org-e-latex-pdf-process'? >> > > This is pretty much what I do. > > > ;;; XeLaTeX customisations > ;; remove "inputenc" from default packages as it clashes with xelatex > (setf org-export-latex-default-packages-alist > (remove '("AUTO" "inputenc" t) org-export-latex-default-packages-alist)) > > (add-to-list 'org-export-latex-packages-alist '("" "xltxtra" t)) > ;; commented for now as preferable to set per file for now > ;; (add-to-list 'org-export-latex-packages-alist '("" "unicode-math" t)) > ;; (add-to-list 'org-export-latex-packages-alist > ;; "\\setmathfont{Linux Libertine O}" t) ; needed for unicode-math > > ;; org to latex customisations, -shell-escape needed for minted > (setq org-latex-to-pdf-process; for regular export > '("xelatex -shell-escape -interaction nonstopmode -output-directory %o > %f" > "xelatex -shell-escape -interaction nonstopmode -output-directory %o %f" > "xelatex -shell-escape -interaction nonstopmode -output-directory %o > %f") > org-export-dispatch-use-expert-ui t ; non-intrusive export dispatch > org-e-latex-pdf-process ; for experimental org-export > '("xelatex -shell-escape -interaction nonstopmode -output-directory %o > %f" > "xelatex -shell-escape -interaction nonstopmode -output-directory %o %f" > "xelatex -shell-escape -interaction nonstopmode -output-directory %o > %f")) > > > I do not use unicode-math anymore but the OP can try uncommenting some > of the lines above. Thank you, this is most helpful. Alan
Re: [O] Removing the date in a subtree export using the new exporter
Nicolas Goaziou writes: > Hello, > > Alan Schmitt writes: > >> I'm using the new exporter to create a pdf (through latex) of a subtree >> of a huge file, and I want to remove some default information. I found >> out a way to do it, but I'm not sure it's the right way. Here it is. >> >> #+BEGIN_SRC org >> :PROPERTIES: >> :EXPORT_TITLE: Foo bar >> :EXPORT_OPTIONS: toc:nil author:nil >> :EXPORT_DATE: ~ >> :END: >> #+END_SRC >> >> The part about which I'm not sure is how to remove the date. I tried >> putting nothing instead of the '~' but it does not work. Maybe there >> could be an option for it? > > Indeed, there could be a "date:nil" option. I'll add it later. Thanks > for suggesting it. I wanted to fix this and saw that you already did. However it seems that LaTeX still adds a date when a "\maketitle" happens with no date specified. This small patch should fix this. diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el index 64908b9..9534a79 100644 --- a/contrib/lisp/org-e-latex.el +++ b/contrib/lisp/org-e-latex.el @@ -1026,9 +1026,10 @@ holding export options." (format "\\author{%s\\thanks{%s}}\n" author email)) ((or author email) (format "\\author{%s}\n" (or author email) ;; Date. - (when (plist-get info :with-date) + (if (plist-get info :with-date) (let ((date (org-export-data (plist-get info :date) info))) -(and date (format "\\date{%s}\n" date +(and date (format "\\date{%s}\n" date))) + "\\date{}\n") ;; Title (format "\\title{%s}\n" title) ;; Hyperref options. (Please let me know if it's not the good format to send the patch.) Alan
Re: [O] Removing the date in a subtree export using the new exporter
On 9 nov. 2012, at 18:01, Nicolas Goaziou wrote: > It's better if you can provide a changelog entry and send it with "git > format-patch". Also, if you did not sign FSF papers, you will have to > add "TINYCHANGE" at the end of the change log. I'll do this when I get back near a computer. Also, about the FSF papers, is there a link for this procedure? Thanks, Alan
Re: [O] Removing the date in a subtree export using the new exporter
Nicolas Goaziou writes: > Alan Schmitt writes: > >> I'll do this when I get back near a computer. > > Great. Attached. With another question: should the patch be sent to the list, or just to you (or any other process)? >> Also, about the FSF papers, is there a link for this procedure? > > Certainly: http://orgmode.org/worg/org-contribute.html (in particular > the second section, but the whole page in interesting). > > It basically boils down to sending a text form to ass...@gnu.org. I'll look into it. Alan >From f11683e9de7b1073c6f474fd2236f584c44299e1 Mon Sep 17 00:00:00 2001 From: Alan Schmitt Date: Fri, 9 Nov 2012 19:12:37 +0100 Subject: [PATCH] org-export: Output "\date{}" in LaTeX export when :with-date is nil * contrib/lisp/org-e-latex.el (org-e-latex-template): output "\date{}" instead of nothing when :with-date is nil TINYCHANGE --- contrib/lisp/org-e-latex.el |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el index 64908b9..9534a79 100644 --- a/contrib/lisp/org-e-latex.el +++ b/contrib/lisp/org-e-latex.el @@ -1026,9 +1026,10 @@ holding export options." (format "\\author{%s\\thanks{%s}}\n" author email)) ((or author email) (format "\\author{%s}\n" (or author email) ;; Date. - (when (plist-get info :with-date) + (if (plist-get info :with-date) (let ((date (org-export-data (plist-get info :date) info))) - (and date (format "\\date{%s}\n" date + (and date (format "\\date{%s}\n" date))) + "\\date{}\n") ;; Title (format "\\title{%s}\n" title) ;; Hyperref options. -- 1.7.9.6 (Apple Git-31.1)
Re: [O] automating incrementing of date stamps
Michael Brand writes: >> in emacs >> org-mode 7.9.2 this key combination did not increment the date stamp. > > What tells “C-h c S-” in that place? Also check the manual > section “3.1 The built-in table editor” about S- saying “This key > is also used by shift-selection and related modes (see Conflicts).” or > try emacs -Q. I found out that the cursor position is important for this to work. For instance it works if it is after the date. Alan
Re: [O] Extending org-koma-letter.el
Nicolas Goaziou writes: > I cannot reproduce it. Also, I think Luis provided a better option for > letters with his Groff backend. You may want to try it. > > Anyway, for the record, I'm posting an updated version[1] of the file, > compatible with latest Org (master branch). It may solve your problem. > > > Regards, > > [1] I do not seriously maintain this file. It was a proof of concept. Thanks a lot. If there is no plan to maintain a Koma backend, I'll have a look ot Luis's Groff backend. Thanks again, Alan
[O] Literate programming of interactive proofs?
Hello, I want to use org-mode to write a paper about a development in Coq. Coq is an interactive proof system, which can be run (among other ways) interactively through emacs. The interactive part is very important, as doing or maintaining proofs often requires exploring many different direction. I'm wondering if it's still possible to use org-mode to write such a paper. I see two ways of doing it: - either be able to interactively interact with Coq from org-mode - or write the development separately, and have a way to include parts of the file (for instance identified by special markers in some comments) into the final paper. Is any of this possible? The second option would probably require some custom code, but I don't know if it would be very complex. Thanks a lot, Alan Schmitt
[O] org-agenda-ignore-scheduled not taken into account in custom agenda blocks?
Hello, I'm implementing some of the ideas of the great norang page (http://doc.norang.ca/org-mode.html), but there is one thing that is failing me. I can see that "org-agenda-ignore-scheduled" work for the global todo list, but it does not seem to be working when using a custom block. For instance, using the following definition: #+BEGIN_SRC elisp (tags-todo "-WAITING-CANCELLED/!NEXT" ((org-agenda-overriding-header "Next Tasks") (org-agenda-skip-function 'bh/skip-projects-and-habits-and-single-tasks) (org-agenda-todo-ignore-scheduled t) (org-agenda-todo-ignore-deadlines t) (org-agenda-todo-ignore-with-date t) (org-tags-match-list-sublevels t) (org-agenda-sorting-strategy '(todo-state-down effort-up category-keep #+END_SRC I still see scheduled tasks. Is it supposed to be working or am I doing it wrong? Thanks, Alan
Re: [O] Question re. Bernt's agenda setup
Viktor Rosenfeld writes: > Hi Manish, > > it's Shift-P and you need to bind the function bh/narrow-to-project to > the keycode. See the code blocks in the following two sections: > > http://doc.norang.ca/org-mode.html#SpeedCommands > http://doc.norang.ca/org-mode.html#NarrowToSubtree I managed to make this work, but if I run the command in the agenda I need to refresh it afterwards (using 'g'). Are you seeing the same thing? And I also want to say I have learned a lot implementing the suggestions in that document. Alan
Re: [O] subtree-export limitations
Philipp Kroos writes: > currently the support for subtree export is somewhat limited due to the > fact that individual EXPORT_* options are allowed only once. > I.e., in the following the second latex-header-property will be ignored: > > * Some subtree > :PROPERTIES: > :LATEX_CLASS: scrartcl > :EXPORT_OPTIONS: toc:nil > :EXPORT_LATEX_HEADER: \usepackage[ngerman]{babel} > :EXPORT_LATEX_HEADER: \usepackage{xcolor} > :END: We discussed this recently. A simple workaround is to create a new export class with the headers you need. Another workaround is to put all the headres in a very long line. Alan
Re: [O] subtree-export limitations
Nicolas Goaziou writes: > Nicolas Goaziou writes: > >> It might support "Property+" syntax, but it looks like this is >> Babel-specific (no sign of such syntax in org.el, where property API is >> defined). I will look into it (unless you want to do it). > > Well, scratch that: it already support :property+: syntax. I.e. try to > export subtree with: > > * Test export > :PROPERTIES: > :export_latex_header: header1 > :export_latex_header+: header2 > :END: > > Test This is quite useful. Thanks for the information! Alan
Re: [O] Question re. Bernt's agenda setup
Manish writes: > On Sat, Nov 17, 2012 at 6:25 PM, Manish wrote: > [snip (21 lines)] >> >> =F12 SPC= with =V= is so much better at doing project reviews than >> anything else I have ever seen. My only gripe is that functions called >> by =V= and =P= do not refresh the agenda. I am trying to understand >> enough elisp to be able to call org-agenda-redo and beginning-of-buffer >> in some right places.. > > My bad. While making the same setup from scratch in home laptop found > that everything works as advertised. My work setup must have something > interfering with it. I'd be really curious to know what it is. I'm in the same situation here where the agenda is not refreshed when doing a P or V from within it. (Doing a W works, though). Alan
Re: [O] Literate programming of interactive proofs?
Eric Schulte writes: > If you do end up writing any level of support for Coq code blocks please > consider contributing it to Org-mode. Thanks a lot for these suggestions. I'll explore these options, and will report back when I get something working. Alan
[O] refiling, ido-mode, and creating projects
Hello, I found out that using ido-mode is very useful for refiling. However there is one thing I don't know how to do: how to create a parent node in this setup. Here is my configuration (straight from the usual http://doc.norang.ca/org-mode.html) #+BEGIN_SRC elisp ; Use full outline paths for refile targets - we file directly with IDO (setq org-refile-use-outline-path t) ; Targets complete directly with IDO (setq org-outline-path-complete-in-steps nil) ; Allow refile to create parent tasks with confirmation (setq org-refile-allow-creating-parent-nodes (quote confirm)) ; Use IDO for both buffer and file completion and ido-everywhere to t (setq org-completion-use-ido t) (setq ido-everywhere t) (setq ido-max-directory-size 10) (ido-mode (quote both)) #+END_SRC Let's say I already have an entry "Work/Trips" and I want to refile some task to a new "Paris" project under "Trips". If I "C-c C-w" and type "Trips", I can see that the entry is selected. However, I don't know how to say "select this entry and let me type some more to add to it". If I continue typing "/Paris" I get a "no match" and an error "org-refile-check-position: Please save the buffer to a file before refiling" (which probably happens because I'm inside the agenda, and the refiling target "Trpis/Paris" makes no sense). I tried doing a "C-f" as when using ido with find-file, but it does not do anything. Any suggestion? Thanks, Alan
Re: [O] org-agenda-ignore-scheduled not taken into account in custom agenda blocks?
Eric Abrahamsen writes: > Alan Schmitt writes: > >> Hello, >> >> I'm implementing some of the ideas of the great norang page >> (http://doc.norang.ca/org-mode.html), but there is one thing that is >> failing me. I can see that "org-agenda-ignore-scheduled" work for the >> global todo list, but it does not seem to be working when using a custom >> block. For instance, using the following definition: >> >> #+BEGIN_SRC elisp >> (tags-todo "-WAITING-CANCELLED/!NEXT" >>((org-agenda-overriding-header "Next Tasks") >> (org-agenda-skip-function >> 'bh/skip-projects-and-habits-and-single-tasks) >> (org-agenda-todo-ignore-scheduled t) >> (org-agenda-todo-ignore-deadlines t) >> (org-agenda-todo-ignore-with-date t) >> (org-tags-match-list-sublevels t) >> (org-agenda-sorting-strategy >> '(todo-state-down effort-up category-keep >> #+END_SRC >> >> I still see scheduled tasks. >> >> Is it supposed to be working or am I doing it wrong? > > I can confirm that scheduled and deadlined TODOs still show up where > they shouldn't -- I tried putting the ignore statements both in the > individual block declarations, and in the declaration at the end of the > custom command. This is with org-version "7.9.2". > > Seems like a bug! I decided to dig into this, and it's not a bug. One should set: (setq org-agenda-tags-todo-honor-ignore-options t) The trick was that these blocks were tag searches. According to the documentation: Documentation: Non-nil means honor todo-list ...ignore options also in tags-todo search. The variables `org-agenda-todo-ignore-with-date', `org-agenda-todo-ignore-timestamp', `org-agenda-todo-ignore-scheduled', `org-agenda-todo-ignore-deadlines' make the global TODO list skip entries that have time stamps of certain kinds. If this option is set, the same options will also apply for the tags-todo search, which is the general tags/property matcher restricted to unfinished TODO entries only. Alan
Re: [O] org-agenda-ignore-scheduled not taken into account in custom agenda blocks?
Samuel Wales writes: > Partly to avoid trouble like this, I use the general search instead of > the specialized ones. What are those general searches? > On 11/20/12, Alan Schmitt wrote: >> I decided to dig into this, and it's not a bug. One should set: >> >> (setq org-agenda-tags-todo-honor-ignore-options t) >> >> The trick was that these blocks were tag searches. > > Then the variable should not apply. Bug? No: "todo" customization do not apply to "tag" searches, and a "tag-todo" search is actually a "tag" search. The org-agenda-tags-todo-honor-ignore-options variable says that "todo" customizations should apply to "tag" searches. Or I just misunderstood everything and got it to work by mistake ;-) Alan
Re: [O] org-agenda-ignore-scheduled not taken into account in custom agenda blocks?
Samuel Wales writes: >> Or I just misunderstood everything and got it to work by mistake ;-) > > That is my guess. :) > > tags-todo is not a general tag search. > > The manual shows the different search types. If I'm reading org-agenda.el correctly, tags-todo is a tags search restricted to todo items. In fact, if I had read the documentation for org-agenda-todo-ignore-scheduled, it would have spared me much testing. It says right there to use "org-agenda-tags-todo-honor-ignore-options". #+BEGIN_QUOTE org-agenda-todo-ignore-scheduled is a variable defined in `org-agenda.el'. Its value is nil Documentation: Non-nil means, ignore some scheduled TODO items when making TODO list. This applies when creating the global todo list. Valid values are: past Don't show entries scheduled today or in the past. future Don't show entries scheduled in the future. The idea behind this is that by scheduling it, you don't want to think about it until the scheduled date. all Don't show any scheduled entries in the global todo list. The idea behind this is that by scheduling it, you have already "taken care" of this item. tSame as `all', for backward compatibility. This variable can also have an integer as a value. See `org-agenda-todo-ignore-timestamp' for more details. See also `org-agenda-todo-ignore-with-date'. See also the variable `org-agenda-tags-todo-honor-ignore-options' if you want to make his option also apply to the tags-todo list. #+END_QUOTE Alan
[O] new exporter: remove postamble in html of export subtree
Hello, I'm trying to remove the postamble in the html-export of a subtree, and I don't know how to do it. This is what I tried: #+BEGIN_SRC org :PROPERTIES: :EXPORT_OPTIONS: html-postamble:nil :END: #+END_SRC (I found the name of the option in the org-e-html.el file.) How can I specify this option so that it only applies to a subtree? Thanks a lot, Alan
Re: [O] new exporter: remove postamble in html of export subtree
Jambunathan K writes: > Alan Schmitt writes: > >> Hello, >> >> I'm trying to remove the postamble in the html-export of a subtree, and >> I don't know how to do it. This is what I tried: > > C-h v org-e-html-postamble RET Yes, I had looked there as well (before going into the code). It does not tell me how to set it for a subtree, though. >> #+BEGIN_SRC org >> :PROPERTIES: >> :EXPORT_OPTIONS: html-postamble:nil >> :END: >> #+END_SRC >> >> >> (I found the name of the option in the org-e-html.el file.) >> >> How can I specify this option so that it only applies to a subtree? > > Nicolas can advise you in this regard. Why would you want to do it on > per-subtree basis? Because it's part of a much larger file containing many other things. For some of them I want a postamble when I export, but not for this one. Thanks, Alan
Re: [O] new exporter: remove postamble in html of export subtree
Nicolas Goaziou writes: > You can't specify this option at the subtree level, because you can't > specify it with neither a keyword nor an options item. > > The property :html-postamble is defined with the following line: > > (:html-postamble nil nil org-e-html-postamble) > > Its default value is `org-e-html-postamble'. The third element (nil) is > the place to define an option item. For example, with: > > (:html-postamble nil "html-postamble" org-e-html-postamble) > > your syntax should be valid, along with the global: > > #+OPTIONS: html-postamble:nil > > This is now the case in master (along with #+OPTIONS: html-preamble:nil). Ah, I understand better how properties are defined now. Thanks a lot. Alan
Re: [O] Extending org-koma-letter.el
Hello, Nicolas Goaziou writes: > Anyway, for the record, I'm posting an updated version[1] of the file, > compatible with latest Org (master branch). It may solve your problem. > > > Regards, > > [1] I do not seriously maintain this file. It was a proof of concept. I had to write yet another letter, so I digged into this and it's now working well enough for me. I made a few changes to the file (which I attach): - fixed bugs to the menu (export to pdf, open pdf), added "export to tex file" - put a default address "no address" instead of a blank line, otherwise compilation fails - moved the lco file input before the preamble, so that one can specify some additional information (like packages). (This may be questionable, don't hesitate to let me know.) I now have two questions: a technical one and a non-technical one. The technical one: I see that org-e-koma extends the latex exporter with some options: (org-export-define-derived-backend koma-letter e-latex :options-alist ((:closing "CLOSING" nil org-koma-letter-closing) (:from-address "FROM_ADDRESS" nil org-koma-letter-from-address newline) ... These options have 3 arguments instead of 4 in the definition of options in org-e-latex: :options-alist ((:date "DATE" nil org-e-latex-date-format t) (:latex-class "LATEX_CLASS" nil org-e-latex-default-class t) ... Is the missing argument the one that lets EXPORT_OPTIONS specify if some parts can be omitted for subtree export? Or is it something different? The non-technical question: I understand this exporter is just a proof of concept, but it is working quite well for me, and I'm ready to help tweaking this. If I do further modifications, should I send them to the list? Thanks, Alan org-koma-letter.el Description: application/emacs-lisp
Re: [O] [ANN] e-latex back-end: changes to attributes syntax
Nicolas Goaziou writes: > Hello, > > I've changed the attribute syntax for tables, images and lists in > e-latex back-end (new exporter). New this back-end conforms to the > syntax used by Babel and every other back-end. Hello, I think this has broken beamer export (new exporter). When I get back to commit 359b10b3070588e8b751935b3fbcc2c9d8885a6a everything works, but with this commit I have some error messages about the wrong number of arguments for (item contents info) or (headline contents info) (for a minimal test file). Alan
Re: [O] [ANN] e-latex back-end: changes to attributes syntax
Nicolas Goaziou writes: > Alan Schmitt writes: > >> I think this has broken beamer export (new exporter). When I get back to >> commit 359b10b3070588e8b751935b3fbcc2c9d8885a6a everything works, but >> with this commit I have some error messages about the wrong number of >> arguments for (item contents info) or (headline contents info) (for a >> minimal test file). > > Actually, this is due to a more recent commit. It should be fixed now. Yes, it now works. Thanks a lot. Alan
Re: [O] Extending org-koma-letter.el
Nicolas Goaziou writes: >> The non-technical question: I understand this exporter is just a proof >> of concept, but it is working quite well for me, and I'm ready to help >> tweaking this. If I do further modifications, should I send them to the >> list? > > I classified it as "proof of concept" because I was too lazy to dig into > Scrlttr2 documentation and provide a complete enough letter back-end. > I would be glad that someone maintains it. > > I think the simplest solution is to: > > 1. Ask for push access to Org. Done. > 2. Commit file in contrib/ directory. > 3. Add yourself as Maintainer in it (or Author, for that matter). As I really haven't done much, it should at most be maintainer ;-) > 4. Commit additional changes when you see fit, without sending the > file over and over to the ML. > > For point 1, see http://orgmode.org/worg/org-contribute.html (For Org > Developers) > > Also, it would be nice if you signed FSF papers. I've signed and sent them by sent mail, but I haven't heard back yet (they're supposed to send me a pdf with their signature added). Alan
Re: [O] [ANN] e-latex back-end: changes to attributes syntax
Nicolas Goaziou writes: > * Images (from manual) > > #+caption: The black-body emission of the disk around HR 4049 > #+name: fig:SED-HR4049 > #+attr_latex: :options "5cm,angle=90" > [[./img/sed-hr4049.pdf]] > > #+attr_latex: :float wrap :placement "{r}{0.4\\textwidth}" :options > "width=0.38\\textwidth" > [[./img/hst.png]] I just tried this (using current head on master), but the following #+begin_src org #+attr_latex: :options "0.9\linewidth" [[./objets.pdf]] #+end_src yields #+begin_src latex \includegraphics[(:options 0.9linewidth)]{./prototype.pdf} #+end_src latex The problem is that even if I remove the ":option", then I get "(0.9linewidth)" with extra parentheses and the backslash removed. This is for a beamer file. Is this a bug? Alan
Re: [O] [ANN] e-latex back-end: changes to attributes syntax
Nicolas Goaziou writes: > This is a bug which I fixed some hours ago. Though, you need to escape > the backslash. OK, it's working now. By the way, do I need to fully restart emacs after installing a new version of org-mode, or is there a simpler way to load it? Thanks, Alan
Re: [O] org-link and gnus-registry
"Sven Bretfeld" writes: > As was discussed before in this list, gnus-register is the way to do > this. Otherwise org-link will not find the message after it has gone to > another group. > > This is not working for me. It might have to do with how org-store-links > creates the link. For me the links look like this: > > [[gnus:Stuff#blu162-ds55e622a1ef424d0bd1f57c9...@phx.gbl][Email from > Yongbin: Re: Visit]] > > "Stuff" is the name of my INBOX. This means the message-ID contains the > name of the original group. If the message is moved to another group, it > won't be found. It seems that either org-store-link or org-follow-link > does not respect gnus-registry. > > I cannot find the mistake. Can somebody help me? I'm having very mixed results with gnus-registry, and I'm still looking for a better solution. In the meantime: - make sure the message is moved from inside gnus, it seems it's required to be tracked by the registry; - if you cannot get to the message, try to search for it (I use notmuch, which works nicely), figure out the mailbox name, and you can then manually fix the link by changing the mailbox name there. I use stable mailboxes for this: archive is for the current month, otherwise the message is in "old/year/month". Searches and links let me get to messages really easily. Alan
Re: [O] Extending org-koma-letter.el
Nicolas Goaziou writes: > OK. Keep us informed when the process is over. Note this step is not > mandatory to modify a file in contrib/, so you can do 1-3 meanwhile. I've added koma-letter to the repository, in contrib/lisp. Please let me know if I did something wrong. Alan
[O] running the new exporter asynchronously?
Hello, I'm compiling a fairly large set of slides, that also contain quite a bit of code that is executed (it's a course on JavaScript which shows some of the language peculiarities). Thus exporting these slides takes a while. Unfortunately, when it's compiling, it's completely locking my emacs. Would there be a way for the export process to be asynchronous and not lock emacs? Thanks, Alan PS: mandatory comics about compilation time http://xkcd.com/303/
Re: [O] running the new exporter asynchronously?
Eric Schulte writes: > In the interim it, one solution which I personally like for large > projects is to offload compilation into an external batch Emacs process. > I find this not only useful for compilation while working, but if you > place all relevant config into an init.el file loaded by the batch > Emacs, this also makes it possible to share and compile the project > separate of your personal Emacs config. > > Attached is a bare-bones Makefile supporting this sort of work-flow. This is really neat, thanks a lot! I'll definitely use this for my next course. Do you use a shell to run make or do you call it directly from emacs? Alan
[O] temporary directory for export
Hello, I have found how to set a temporary directory for org-babel export files (using org-babel-temporary-directory), but I cannot find how to specify that, by default (i.e., unless specified with a "file" option), files should be exported to a temporary directory. My motivation for this is that I keep a single folder with many org-mode files, some of them for presentations, papers, or letters. I regularly have to go in there and get rid of all the .tex, .log, .pdf, .aux, etc., that accumulate. Thanks, Alan
Re: [O] The statement on what is orgmode.
brian powell writes: > If I had to chose: I vote for #1 or something like: "Its your life > [organized] in plain text." There have been great suggestions on how to explain what is org-mode. But if we want a catch phrase I'd also vote for this. Orgmode: your life, in plain text. Alan
[O] export_file_name problem with new exporter
Hello, I have "#+EXPORT_FILE_NAME: ~/tmp/jsseccloud.tex" in an org file, but when I export it (either to beamer or to latex), it's using the name of the file instead of the given file name. Am I doing something wrong here? Thanks, Alan
Re: [O] export_file_name problem with new exporter
Suvayu Ali writes: > On Fri, Dec 07, 2012 at 11:27:40AM +0100, Alan Schmitt wrote: >> Hello, >> >> I have "#+EXPORT_FILE_NAME: ~/tmp/jsseccloud.tex" in an org file, but >> when I export it (either to beamer or to latex), it's using the name of >> the file instead of the given file name. >> >> Am I doing something wrong here? >> > > As far as I am aware, that works for subtree export only. Ah, this is problematic. I need to change the file name for two reasons: - the org file name has spaces in it, and latexmk fails when processing it - processing the file creates a bunch of files that clobber my org directory, so I want the created files to be out of the way If someone has suggestions on how to deal with these issues, I'd gladly try them. Thanks, Alan
Re: [O] export_file_name problem with new exporter
Suvayu Ali writes: > You could try the publishing facilities in Org. > > (info "(org)Publishing") I did not know about that, it's a very nice suggestion. I have one question that I did not see addressed in the documentation, though: is it possible to use it with the new exporter? Thanks a lot, Alan
Re: [O] export_file_name problem with new exporter
rg" :publishing-directory "~/tmp" :publishing-function org-e-beamer-publish-to-latex))) org-e-publish-projects((("jsseccloud" :base-directory "~/Documents/Org" :include "2012-12-05-Cprs-SecCloud-Formal_JavaScript_Semantics.org" :publishing-directory "~/tmp" :publishing-function org-e-beamer-publish-to-latex))) org-e-publish(("jsseccloud" :base-directory "~/Documents/Org" :include "2012-12-05-Cprs-SecCloud-Formal_JavaScript_Semantics.org" :publishing-directory "~/tmp" :publishing-function org-e-beamer-publish-to-latex) nil) call-interactively(org-e-publish record nil) command-execute(org-e-publish record) smex-read-and-run(("set-variable" "org-e-publish" "info" "gnus" "visual-line-mode" "org-export-dispatch" "turn-on-gnus-dired-mode" "erc" "gnus-group-mail" "auto-fill-mode" "eshell" "bbdb-save" "package-list-packages" "flyspell-mode" "calc" "dired" "compile" "grep" "flyspell-buffer" "load-theme" "bbdb-merge-records" "org-store-link" "ispell-change-dictionary" "ansi-term" "magit-status" "customize-face" "list-colors-display" "lld-notmuch-goto-message-in-gnus" "multi-term" "recover-file" "rename-buffer" "color-theme-solarized-light" "set-buffer-file-coding-system" "help" "svn-status" "list-packages" "customize-group" "eval-expression" "bbdb" "shell" "why-mode" "revert-buffer" "list-faces-display" "org-mode" "customize" "LaTeX-mode" "org-reload" "re-builder" "follow-mode" "org-version" ...)) smex() call-interactively(smex nil nil) I tried specifying the file with and without the ".org" and it does not change anything. Alan
[O] including the result of a block in several places?
Hello, I tried including the result of evaluation a block in several slides, but the second time it was not included. Here is the code I ran: #+begin_src org ** Prototype-based objects #+name: object_example #+begin_src js :results code output :exports both var f = function(a) { this.x = a } f.prototype = {y : 1} var o = new f (42) console.log("o.x = " + o.x + ", o.y = " + o.y) #+end_src Results #+results: object_example ** Prototype-based objects #+begin_src js var f = function(a) { this.x = a } f.prototype = {y : 1} var o = new f (42) console.log("o.x = " + o.x + ", o.y = " + o.y) #+end_src Results #+results: object_example (Some additional images added) #+end_src I cannot do a "\pause" because a slide will be inserted in the middle. Is it possible to have the results of the evaluation of a block in several places? Thanks, Alan
Re: [O] including the result of a block in several places?
"Sebastien Vauban" writes: > Hi Alan, > > Alan Schmitt wrote: >> I tried including the result of evaluation a block in several slides, >> but the second time it was not included. >> >> Is it possible to have the results of the evaluation of a block in >> several places? > > OOTB, I don't think so. However, you could have a code block which simply > copies the results. > > See `echo' in the `library-of-babel.org'. Nice suggestion, thanks a lot. According to the documentation, I can "call" functions from the library of babel from anywhere, but when I try this: #+begin_src org #+name: test #+begin_src perl for (my $i = 0; $i != 10; ++i) { print "hello, world!\n"; } #+end_src #+call: echo(test) #+end_src I get a "org-babel-ref-resolve: Reference 'echo' not found in this buffer". Do I need to do something special to load the library? Alan
Re: [O] export_file_name problem with new exporter
Suvayu Ali writes: >> > That said, publishing is fully supported by the new exporter, just >> > change the publishing function names to the functions provided by the >> > new exporter. >> > >> > Here is an improperly tested example from one of my tests: >> > >> > (setq org-e-publish-project-alist >> > '(("thesis" :components ("thesis-tex" "thesis-html")) >> >("thesis-tex" :base-directory "/path/PhD-thesis" >> > :publishing-directory "/path/PhD-thesis/latex" >> > :publishing-function org-e-publish-org-to-latex >> > ))) >> > >> > Hope this helps. >> >> It does, but for some reason I can't make it work. It seems that it has >> issues getting the base file. Here is my setup: >> >> (setq org-e-publish-project-alist >> '(("jsseccloud" >> :base-directory "~/Documents/Org" >> :include "2012-12-05-Cprs-SecCloud-Formal_JavaScript_Semantics.org" >> :publishing-directory "~/tmp" >> :publishing-function org-e-beamer-publish-to-latex >> ))) >> >> and with this I get an error: >> > > I believe that is because org-e-beamer does not support publishing yet. > Nicolas can confirm. Well, replacing "org-e-beamer-publish-to-latex" by "org-e-latex-publish-to-latex" results in the same error. I looked at the code, and my problem was that ":include" expects a list, so I'm able to make this . I'll try to see if adding beamer support is difficult. Alan
Re: [O] export_file_name problem with new exporter
Alan Schmitt writes: > Well, replacing "org-e-beamer-publish-to-latex" by > "org-e-latex-publish-to-latex" results in the same error. I looked at > the code, and my problem was that ":include" expects a list, so I'm able > to make this . I forgot one word: "work". > I'll try to see if adding beamer support is difficult. It was trivial to add. Please find a patch attached. Should I push this commit myself, or let someone else do it? Alan >From ce787823cec892d8cfb8391145ae374adad7dc59 Mon Sep 17 00:00:00 2001 From: Alan Schmitt Date: Sat, 8 Dec 2012 12:09:22 +0100 Subject: [PATCH] * contrib/lisp/org-e-beamer.el (Publishing): added publishing functions org-e-beamer-publish-to-latex and org-e-beamer-publish-to-pdf TINYCHANGE --- contrib/lisp/org-e-beamer.el | 27 +++ 1 file changed, 27 insertions(+) diff --git a/contrib/lisp/org-e-beamer.el b/contrib/lisp/org-e-beamer.el index bab655e..9333a7a 100644 --- a/contrib/lisp/org-e-beamer.el +++ b/contrib/lisp/org-e-beamer.el @@ -1145,6 +1145,33 @@ aid, but the tag does not have any semantic meaning." (insert "#+COLUMNS: " org-e-beamer-column-view-format "\n")) (insert "#+PROPERTY: BEAMER_col_ALL " org-e-beamer-column-widths "\n"))) +;;;###autoload +(defun org-e-beamer-publish-to-latex (plist filename pub-dir) + "Publish an Org file to a Beamer presentation (LaTeX). + +FILENAME is the filename of the Org file to be published. PLIST +is the property list for the given project. PUB-DIR is the +publishing directory. + +Return output file name." + (org-e-publish-org-to 'e-beamer filename ".tex" plist pub-dir)) + +;;;###autoload +(defun org-e-beamer-publish-to-pdf (plist filename pub-dir) + "Publish an Org file to a Beamer presentation (PDF, via LaTeX). + +FILENAME is the filename of the Org file to be published. PLIST +is the property list for the given project. PUB-DIR is the +publishing directory. + +Return output file name." + ;; Unlike to `org-e-beamer-publish-to-latex', PDF file is generated + ;; in working directory and then moved to publishing directory. + (org-e-publish-attachment + plist + (org-e-latex-compile (org-e-publish-org-to 'e-beamer filename ".tex" plist)) + pub-dir)) + (provide 'org-e-beamer) ;;; org-e-beamer.el ends here -- 1.7.12
Re: [O] export_file_name problem with new exporter
Achim Gratz writes: > Alan Schmitt writes: >> TINYCHANGE > > As much as you would wish it wasn't so, your patch exceeds the tiny > change limit (not even counting your previous contributions) and you'll > need signed copyright papers for this to go into Org and Emacs. OK, there's something I'm missing here. First, the patch is a copy of the same functions in org-e-latex with about 100 characters modified (by repeatedly renaming "latex" into "beamer" in several places). I thought it would qualify for a "TINYCHANGE", but I guess this just proves I'm not a lawyer ;-) Second, I was under the impression that commits to contrib did not participate to the 20 lines limit, as this directory is not included in emacs. I put "TINYCHANGE" because Nicolas asked me when I did a small change to org-e-latex. I have actually signed and sent the papers to the FSF, I'm waiting to get them back. Nevertheless it may be good to clarify whether the TINYCHANGE restriction applies to files in contrib. Best, Alan
Re: [O] including the result of a block in several places?
t...@tsdye.com (Thomas S. Dye) writes: > I've had these in my .emacs for quite a while and they seem to work: > > ** ON Load Standard Library of Babel > #+begin_src emacs-lisp :tangle yes > (org-babel-lob-ingest > "~/.emacs.d/src/org-mode/contrib/babel/library-of-babel.org") > #+end_src Thanks a lot, I'm now able to call the "echo" function. Unfortunately it does not exactly do what I want (but I was not really clear about what I wanted first). Here is the code I have (don't worry about the code inside the blocks, the idea is that I want a source block and its results on two different slides, without having to duplicate them): #+begin_src org ** Prototype-based objects #+name: object_example #+begin_src js :results code output :exports both var f = function(a) { this.x = a } f.prototype = {y : 1} var o = new f (42) console.log("o.x = " + o.x + ", o.y = " + o.y) #+end_src Results #+results: object_example ** Prototypes resolution #+BEGIN_SRC coq Inductive proto : heap -> field -> loc -> loc -> Prop := | proto_null : forall h f, proto h f loc_null loc_null | proto_here : forall h l f, indom h l f -> proto h f l l | proto_next : forall h l f l' l'', ~ indom h l f -> binds h l field_proto l' -> proto h f l' l'' -> proto h f l l''. #+END_SRC ** Prototype-based objects #+call: echo(object_example) :results code output :exports both #+end_src My problem is twofold. - The code from "object_example" is not repeated. I guess that here what I want is to be able to export a source code block in several places. Is it possible? - The highlighting of the results in the "#+call:" line is not in javascript syntax, and I don't know how to tell the call that the result will be javascript. Thanks again, Alan
Re: [O] including the result of a block in several places?
"Sebastien Vauban" writes: > In a hurry, to repeat the code: > > - use named blocks > - use Noweb expansion > > That is: > > #+name: mycode > #+begin_src coq > ... > #+end_src > > Inserted a first time here: > > #+begin_src coq :noweb yes > <> > #+end_src > > and another one here: > > #+begin_src coq :noweb yes > <> > #+end_src Thanks a lot, that worked perfectly. Alan
Re: [O] including the result of a block in several places?
Eric Schulte writes: > Alan Schmitt writes: > >> "Sebastien Vauban" writes: >> >>> In a hurry, to repeat the code: >>> >>> - use named blocks >>> - use Noweb expansion >>> > > Another option would be, > > 1. use named blocks > 2. use call lines Thanks for the suggestion. I tried using a call line, but it does not allow me to include the source code again (it's great to re-run the code once more, though). Alan
Re: [O] including the result of a block in several places?
Eric Schulte writes: > Alan Schmitt writes: > >> "Sebastien Vauban" writes: >> >>> In a hurry, to repeat the code: >>> >>> - use named blocks >>> - use Noweb expansion >>> > > Another option would be, > > 1. use named blocks > 2. use call lines Thanks for the suggestion. I tried using a call line, but it does not allow me to include the source code again (it's great to re-run the code once more, though). Alan
Re: [O] including the result of a block in several places?
Thomas S. Dye writes: > Alan Schmitt writes: > >> Eric Schulte writes: >> >>> Alan Schmitt writes: >>> >>>> "Sebastien Vauban" writes: >>>> >>>>> In a hurry, to repeat the code: >>>>> >>>>> - use named blocks >>>>> - use Noweb expansion >>>>> >>> >>> Another option would be, >>> >>> 1. use named blocks >>> 2. use call lines >> >> Thanks for the suggestion. I tried using a call line, but it does not >> allow me to include the source code again (it's great to re-run the code >> once more, though). > > What call line did you try? This is what I tried #+begin_src org ** Prototype-based objects #+name: object_example #+begin_src js :results code output :exports both var f = function(a) { this.x = a } f.prototype = {y : 1} var o = new f (42) console.log("o.x = " + o.x + ", o.y = " + o.y) #+end_src Results #+results: object_example ** Prototypes resolution Some other slide ** Prototype-based objects #+call: echo(object_example) :results code output :exports both #+end_src My problem with this was twofold: the code from "object_example" is not repeated, and the highlighting of the results in the "#+call:" line is not in javascript syntax. Using a "noweb" approach solves both issues. Alan
Re: [O] export_file_name problem with new exporter
Nicolas Goaziou writes: > There is no #+EXPORT_FILE_NAME: keyword. But there is > an :EXPORT_FILE_NAME: node-property for subtree export. There could be > a #+FILE_NAME: keyword (much like :EXPORT_AUTHOR: and #+AUTHOR). Though, > it is too dangerous to my liking. > > For example, publishing expects the output file to be generated in the > working directory. Using a different export path per file could lead to > much confusion. > > Hence I'd rather not implement it. I understand it. What I actually would like is to be able to specify a different "working directory". Right now it defaults to the directory where the org file is, but it's often not satisfactory (especially when compilation creates additional files). Would this be difficult to add? Thanks, Alan
Re: [O] export_file_name problem with new exporter
Nicolas Goaziou writes: > Alan Schmitt writes: > >> I understand it. What I actually would like is to be able to specify a >> different "working directory". Right now it defaults to the directory >> where the org file is, but it's often not satisfactory (especially when >> compilation creates additional files). Would this be difficult to add? > > That is the purpose of publishing, as discussed in this thread. Not really: looking at the code, publishing does all its work in the current directory, then moves the final file to its place (leaving all the mess compilation made behind). I understand the reason for such a thing: publishing should only publish the final result. In other words, I see three places of interest: - where the org file is - where export and compilation occurs - where the final result is put Publishing lets us deal with the last one, but I don't think there is a way to distinguish between the first two. > Btw, please commit your changes to org-e-beamer.el when you have > validated your FSF papers. By "validating", do you mean that I have received them back signed from the FSF? (I signed and sent them a few weeks ago, still waiting to get them back ...) Alan