Re: [O] Use nomencl package with latex exporter?
Thanks, can you give some hints on how to customize it, or point me to some information? /Johan On Mon, Aug 6, 2012 at 9:35 PM, Nick Dokos nicholas.do...@hp.com wrote: Johan Ekh ekh.jo...@gmail.com wrote: Thank you Myles, I'm not that comfortable with cmake but I will give your solution a try and report My milage. / Johan Sent from my iPad On 6 aug 2012, at 14:14, Myles English mylesengl...@gmail.com wrote: Johan Ekh writes: Hi all, I use the default latex exporter in org-mode v7.8 to write documents using a custom latex class which is built on article. I would like to use the nomencl latex package if possible. From the shell I usually run something like makeindex filename.nlo -s nomencl.ist -o filename.nls followed by latex or pdflatex, but how can I get the exporter to do this? Customize the variable org-latex-to-pdf-process appropriately. Nick I don't know the answer to your question, but when I came across the same problem, I used a makefile-like solution because I felt that the building process was becoming sufficiently complicated to warrant using a specialised tool. If you are comfortable with CMake already it may be worth a look. Have a look for UseLatex.cmake. Basically you get emacs to export the .tex file from the .org file: add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mypaper.tex COMMAND emacs --batch --visit=${CMAKE_CURRENT_BINARY_DIR}/mypaper.org --load=/home/me/myfuncs.el --funcall org-export-as-latex-batch DEPENDS orgfile COMMENT Exporting orgmode file to LaTeX using emacs ) And then bibtex and nomenclature are asked to do their stuff, and a pdf is produced, with something like this directive: add_latex_document( mypaper.tex INPUTS tex/bibliography.tex texlib/mystyle.sty BIBFILES texlib/mylibrary.bib DEFAULT_PDF USE_NOMENCL ) I also get it to generate all my R plots. Other advantages are that you get an out-of-source build that is isolated (to some extent) in its own directory. And I think it is easier to diagnose the problems when things go wrong, better than staring at an elisp backtrace. Now if org would write my CMakeList.txt for me, that would be a fine thing. Myles
Re: [O] Use nomencl package with latex exporter?
Hello Johan, On Wed, Aug 8, 2012 at 2:40 AM, Johan Ekh ekh.jo...@gmail.com wrote: Thanks, can you give some hints on how to customize it, or point me to some information? To have makeindex run, try evaluating the following elisp: (setq org-latex-to-pdf-process '(pdflatex -interaction nonstopmode %b bibtex %b makeindex %b.nlo -s nomencl.ist -o %b.nls pdflatex -interaction nonstopmode %b pdflatex -interaction nonstopmode %b)) Alternatively, you can customize the variable org-latex-to-pdf-process as Nick suggests, to accomplish the same thing. Use the following command: M-x customize-variable org-latex-to-pdf-process More documentation is available through customize, and there is lots of great information available here: http://orgmode.org/worg/org-tutorials/org-latex-export.html Hope this helps, Andrew /Johan On Mon, Aug 6, 2012 at 9:35 PM, Nick Dokos nicholas.do...@hp.com wrote: Johan Ekh ekh.jo...@gmail.com wrote: Thank you Myles, I'm not that comfortable with cmake but I will give your solution a try and report My milage. / Johan Sent from my iPad On 6 aug 2012, at 14:14, Myles English mylesengl...@gmail.com wrote: Johan Ekh writes: Hi all, I use the default latex exporter in org-mode v7.8 to write documents using a custom latex class which is built on article. I would like to use the nomencl latex package if possible. From the shell I usually run something like makeindex filename.nlo -s nomencl.ist -o filename.nls followed by latex or pdflatex, but how can I get the exporter to do this? Customize the variable org-latex-to-pdf-process appropriately. Nick I don't know the answer to your question, but when I came across the same problem, I used a makefile-like solution because I felt that the building process was becoming sufficiently complicated to warrant using a specialised tool. If you are comfortable with CMake already it may be worth a look. Have a look for UseLatex.cmake. Basically you get emacs to export the .tex file from the .org file: add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mypaper.tex COMMAND emacs --batch --visit=${CMAKE_CURRENT_BINARY_DIR}/mypaper.org --load=/home/me/myfuncs.el --funcall org-export-as-latex-batch DEPENDS orgfile COMMENT Exporting orgmode file to LaTeX using emacs ) And then bibtex and nomenclature are asked to do their stuff, and a pdf is produced, with something like this directive: add_latex_document( mypaper.tex INPUTS tex/bibliography.tex texlib/mystyle.sty BIBFILES texlib/mylibrary.bib DEFAULT_PDF USE_NOMENCL ) I also get it to generate all my R plots. Other advantages are that you get an out-of-source build that is isolated (to some extent) in its own directory. And I think it is easier to diagnose the problems when things go wrong, better than staring at an elisp backtrace. Now if org would write my CMakeList.txt for me, that would be a fine thing. Myles
Re: [O] org-elements: list in drawer
Hello, Michael Brand michael.ch.br...@gmail.com writes: The drawer contains one list with one item, on one single long line before filling. I want to fill it into several lines, just like it happens when “:MYDRAWER:” and “:END:” are removed before. I get it now. It should be fixed. Thanks you for the detailed report. Why does `org-element-at-point' look wrong? The “drawer” is inside the list and I miss “item” and its “paragraph”: #+BEGIN_SRC emacs-lisp (plain-list (:type unordered :begin 32 :end 135 :contents-begin 32 :contents-end 134 :structure ((32 0 - nil nil nil 134)) :post-blank 1 :parent (drawer (:begin 21 :end 141 :drawer-name MYDRAWER :hiddenp nil :contents-begin 32 :contents-end 135 :post-blank 0 :parent nil #+END_SRC The drawer isn't inside the list, it is the value of its `:parent' property. Also, `org-element-at-point' doesn't parse contents, so there's no reason that there would be the item and the paragraph. Obviously, `org-element-at-point' output depends on the position of point. Try various positions in the same line and you will get, consistently, `plain-list', `item' and `paragraph' elements. Regards, -- Nicolas Goaziou
Re: [O] comment bug
Hello, Samuel Wales samolog...@gmail.com writes: comment-dwim works properly. However, when you use it in the middle of a list, it splits the list into two lists. Indeed. But I don't see any clean way to avoid this. You can wrap the item with #+begin_comment...#+end_comment, assuming you choose proper indentation. But it mean that the commented item will be inside the previous one. Regards, -- Nicolas Goaziou
Re: [O] org-capture: keeping window visible during date entry
Hi Christoph, Christoph Groth c...@falma.de writes: I would say that a proper solution would be to reserve delete-other-windows for interactive use and to replace it by something more sensible which ensures that a given window is well visible but tries to preserve the visibility and arrangement other windows if possible. That hypothetical function could be given the minimum required height for the current window. Does anyone know of such functionality already existing anywhere in the emacs world? There is `maximize-window'. If you want to work on a patch that uses `maximize-window' in places where you think it should replace `delete-other-windows', please do. But I think ̀delete-other-windows' is fine in most cases. If not, I believe it would be useful to think of something like this. Given current screen sizes, it would be good to replace most uses of delete-other-windows by something more gentle. But this is a topic for the general emacs mailing list. Yep, why not. I'm archiving Eric's patch for now. Let's raise this issue again if we can more precisely define what's wrong with the current behavior. -- Bastien
Re: [O] [Orgmode] Re: contact management in org-mode?
Russell Adams: Thus I pose the question: What is a valid contact manager for a console-mode user with sync, fast searching and update? Hallo Russell, I'm also searching for a contact manager since ages. What I want to try when I've time (tm): - GNU recutils - plain text database, avail. in Debian et al. http://www.gnu.org/software/recutils - http://www.nongnu.org/addressbook From the author of recutils but abandoned. Elisp, like lbdb but uses vcard3 format. Would be wonderful if somebody would update to [vx]card4. - Postgresql on the Desktop After having worked with Hadoop and looked into other NoSQL systems I'd like to have a closer look at old SQL stuff again. MySQL vulgarized me. ...But wouldn't it be better to use something semantic for contact management? Regards, Thomas Koch, http://www.koch.ro
Re: [O] [Orgmode] Re: contact management in org-mode?
Hi Thomas, Thomas Koch tho...@koch.ro writes: - http://www.nongnu.org/addressbook From the author of recutils but abandoned. Elisp, like lbdb but uses vcard3 format. Would be wonderful if somebody would update to [vx]card4. Jose is reading the list, so chances are that he will hear you :) -- Bastien
Re: [O] [OT] LWN article on Easybook
Nick Dokos nicholas.do...@hp.com writes: http://lwn.net/Articles/507653/ Quoting the author: I am not a huge fan of Markdown; in my experience its not-quite-HTML syntax requires just as much mental effort as HTML, but subsequently requires you to process your output before reading it. Precisely where Org has a point: ~0 markup, ~0 mental effort. Thanks for the link! -- Bastien
Re: [O] [PATCH] Translate refs to rc also in remote references
Hi Jose, jema...@gnu.org (Jose E. Marchesi) writes: Sure. Here is it. Coming back to this. From 37cc07cb5acd84c15216f0107936fe9367c53dca Mon Sep 17 00:00:00 2001 From: Jose E. Marchesi jema...@gnu.org Date: Wed, 11 Jul 2012 10:10:02 +0200 Subject: [PATCH] Transform the coordinates found in remote references into normalised @n$y. To: emacs-orgmode@gnu.org * org-table.el (org-table-convert-refs-to-rc): Convert references in remote(..) directives. --- lisp/org-table.el |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-table.el b/lisp/org-table.el index 16f2520..f3cce91 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -3229,7 +3229,7 @@ Parameters get priority. Works for single references, but also for entire formulas and even the full TBLFM line. (let ((start 0)) -(while (string-match ([a-zA-Z]+\\)\\([0-9]+|\\)\\|\\(;[^\r\n:]+\\|\\remote([^)]*)\\) s start) +(while (string-match ([a-zA-Z]+\\)\\([0-9]+|\\)\\|\\(;[^\r\n:]+\\|\\remote([^,]*[ \t]*\\|)\\) s start) I fail to see the meaning of ([^,]*[ \t]*\\|) replacing ([^)]*) The \\| is wrong, right? I think I need an example with such a remote reference, the way org-table-convert-refs-to-rc would have converted it, and the way it does with your patch. Thanks in advance! -- Bastien
Re: [O] The Quantified Shower
* Nick Dokos nicholas.do...@hp.com wrote: Nick Dokos nicholas.do...@hp.com wrote: Bastien b...@gnu.org wrote: I have long given up on reckoning how many I am (outside or inside), and I'm always amazed at those attempts to quantify one's own life. Here's something to either inspire you or turn you off completely: http://www.theatlantic.com/magazine/archive/2012/07/the-measured-man/9018/ TL;DR but what is it that worries you? -- Karl Voit
Re: [O] make test on Mac
After reinstalling fortran following the instructions for th R Tools implementation on http://www.webmo.net/support/fortran_osx.html The fortran test examples now woe. But I am getting another set or errors (after updating from git) 6 expected failures 10 unexpected results: FAILED test-org/auto-fill-function FAILED test-org/backward-element FAILED test-org/comment-dwim FAILED test-org/down-element FAILED test-org/drag-element-backward FAILED test-org/drag-element-forward FAILED test-org/fill-paragraph FAILED test-org/forward-element FAILED test-org/mark-subtree FAILED test-org/up-element How can I get more details error messages for these problems? On Aug 2, 2012, at 8:35 AM, Achim Gratz strom...@nexgo.de wrote: Neuwirth Erich erich.neuwirth at univie.ac.at writes: Are the tests supposed to work only from within Emacs? No, but you might be in a better position to tell us what went wrong, as you still haven't shown what error you are getting from the tests in question. So could you please go into the org directory and instead of make run: emacs -Q -L lisp -l ob-fortran testing/examples/ob-fortran-test.org Then just run one of the examples (C-c C-c on the #+begin_src line) and tell us what happens. There might be additional information in the *Messages* buffer. Regards, Achim.
Re: [O] Use nomencl package with latex exporter?
Johan Ekh ekh.jo...@gmail.com wrote: Thanks, can you give some hints on how to customize it, or point me to some information? C-h v org-latex-to-pdf-process should tell you everything you need: it's just a list of shell commands and they are executed in sequence. All you have to do is interpolate the makeindex command in there with the appropriate escapes. Nick /Johan On Mon, Aug 6, 2012 at 9:35 PM, Nick Dokos nicholas.do...@hp.com wrote: Johan Ekh ekh.jo...@gmail.com wrote: Thank you Myles, I'm not that comfortable with cmake but I will give your solution a try and report My milage. / Johan Sent from my iPad On 6 aug 2012, at 14:14, Myles English mylesengl...@gmail.com wrote: Johan Ekh writes: Hi all, I use the default latex exporter in org-mode v7.8 to write documents using a custom latex class which is built on article. I would like to use the nomencl latex package if possible. From the shell I usually run something like makeindex filename.nlo -s nomencl.ist -o filename.nls followed by latex or pdflatex, but how can I get the exporter to do this? Customize the variable org-latex-to-pdf-process appropriately. Nick I don't know the answer to your question, but when I came across the same problem, I used a makefile-like solution because I felt that the building process was becoming sufficiently complicated to warrant using a specialised tool. If you are comfortable with CMake already it may be worth a look. Have a look for UseLatex.cmake. Basically you get emacs to export the .tex file from the .org file: add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mypaper.tex COMMAND emacs --batch --visit=${CMAKE_CURRENT_BINARY_DIR}/mypaper.org --load=/home/me/myfuncs.el --funcall org-export-as-latex-batch DEPENDS orgfile COMMENT Exporting orgmode file to LaTeX using emacs ) And then bibtex and nomenclature are asked to do their stuff, and a pdf is produced, with something like this directive: add_latex_document( mypaper.tex INPUTS tex/bibliography.tex texlib/mystyle.sty BIBFILES texlib/mylibrary.bib DEFAULT_PDF USE_NOMENCL ) I also get it to generate all my R plots. Other advantages are that you get an out-of-source build that is isolated (to some extent) in its own directory. And I think it is easier to diagnose the problems when things go wrong, better than staring at an elisp backtrace. Now if org would write my CMakeList.txt for me, that would be a fine thing. Myles Alternatives:
Re: [O] The Quantified Shower
Nick Dokos nicholas.do...@hp.com writes: Here's something to either inspire you or turn you off completely: http://www.technologyreview.com/featured-story/426968/the-patient-of-the-future/ Another one: http://blog.stephenwolfram.com/2012/03/the-personal-analytics-of-my-life/ --
[O] Latest version of Org-mode 7.8.3?
I have a 'closed' thread going on here in regards to mobileorg-android: https://github.com/matburt/mobileorg-android/issues/264 I have been told to use the latest org-mode which is apparently 7.8.3? But if I follow the instructions: http://orgmode.org/worg/org-faq.html#How do I keep current with bleeding edge development? M-x org-version Org-mode version 6.33x (release_7.8.11.409.ga3778) Am I missing something with the installation or repository? Thanks, 'Mash
Re: [O] Latest version of Org-mode 7.8.3?
'Mash mash...@toshine.net writes: I have a 'closed' thread going on here in regards to mobileorg-android: https://github.com/matburt/mobileorg-android/issues/264 I have been told to use the latest org-mode which is apparently 7.8.3? But if I follow the instructions: http://orgmode.org/worg/org-faq.html#How do I keep current with bleeding edge development? M-x org-version Org-mode version 6.33x (release_7.8.11.409.ga3778) Am I missing something with the installation or repository? You are on 409 and I am on 414 i.e., Org.7.8.11-414.. Rest assured, you have the latest Org. Thanks, 'Mash --
Re: [O] Latest version of Org-mode 7.8.3?
Quoting Jambunathan K kjambunat...@gmail.com: 'Mash mash...@toshine.net writes: I have a 'closed' thread going on here in regards to mobileorg-android: https://github.com/matburt/mobileorg-android/issues/264 I have been told to use the latest org-mode which is apparently 7.8.3? But if I follow the instructions: http://orgmode.org/worg/org-faq.html#How do I keep current with bleeding edge development? M-x org-version Org-mode version 6.33x (release_7.8.11.409.ga3778) Am I missing something with the installation or repository? You are on 409 and I am on 414 i.e., Org.7.8.11-414.. Rest assured, you have the latest Org. OK thanks for the confirmation. I thought I was going a bit mad, especially after a google brought up this... I am using the latest cvs version of emacs and recently-updated version 7.8.3 of org-mode. http://lists.gnu.org/archive/html/emacs-orgmode/2012-01/msg00149.html
[O] starting value for ordered lists?
Hi, in the org manual (http://orgmode.org/manual/Plain-lists.html) i read that I can start an ordered list at a particular number using an [@20] syntax: If you want a list to start with a different value (e.g. 20), start the text of the item with [@20]4http://orgmode.org/manual/Plain-lists.html#fn-4. Those constructs can be used in any item of the list in order to enforce a particular numbering. I think I'm not understanding somehting though, as if I try this: [@13]. thirteenth item org doesn't seem to recognize the line as a list item. I'm running a pretty recent org 7.8.11 from git. I'm sure I'm just reading the manual wrong -- any hints? thanks Matt
Re: [O] starting value for ordered lists?
Hi Matt, You have to start the text of the item with [@13]. Try: 13. [@13] this is the 13th item Sincerely, Andrew On Wed, Aug 8, 2012 at 2:24 PM, Matt Price mopto...@gmail.com wrote: Hi, in the org manual (http://orgmode.org/manual/Plain-lists.html) i read that I can start an ordered list at a particular number using an [@20] syntax: If you want a list to start with a different value (e.g. 20), start the text of the item with [@20]4. Those constructs can be used in any item of the list in order to enforce a particular numbering. I think I'm not understanding somehting though, as if I try this: [@13]. thirteenth item org doesn't seem to recognize the line as a list item. I'm running a pretty recent org 7.8.11 from git. I'm sure I'm just reading the manual wrong -- any hints? thanks Matt
Re: [O] starting value for ordered lists?
Hello, On Wed, Aug 8, 2012 at 2:24 PM, Matt Price mopto...@gmail.com wrote: Hi, in the org manual (http://orgmode.org/manual/Plain-lists.html) i read that I can start an ordered list at a particular number using an [@20] syntax: If you want a list to start with a different value (e.g. 20), start the text of the item with [@20]4. Those constructs can be used in any item of the list in order to enforce a particular numbering. I think I'm not understanding somehting though, as if I try this: [@13]. thirteenth item The [@#] syntax has to come after the list item and before the item's text. The following was created using Alt+Enter on each line, and typing the content, the numbers automatically recalculate when you create the next entry with Alt+Enter. #+begin_src org 1. Test item 1 3. [@3] Item 3 4. 10. [@10] Item 10 11. #+end_src org doesn't seem to recognize the line as a list item. I'm running a pretty recent org 7.8.11 from git. I'm sure I'm just reading the manual wrong -- any hints? thanks Matt Regards, -- Jon
Re: [O] org-elements: list in drawer
Hi Nicolas On Wed, Aug 8, 2012 at 10:02 AM, Nicolas Goaziou n.goaz...@gmail.com wrote: I get it now. It should be fixed. Thanks you for the detailed report. I can confirm, thank you. #+BEGIN_SRC emacs-lisp (plain-list (:type unordered :begin 32 :end 135 :contents-begin 32 :contents-end 134 :structure ((32 0 - nil nil nil 134)) :post-blank 1 :parent (drawer (:begin 21 :end 141 :drawer-name MYDRAWER :hiddenp nil :contents-begin 32 :contents-end 135 :post-blank 0 :parent nil #+END_SRC The drawer isn't inside the list, it is the value of its `:parent' property. Oh, now I see. It seems that I have to not read over too many of the “details” of the output of `pp-to-string' (pretty print). Is there a way to pretty print so that a property value never starts a line and leaves its property name alone at the end of the previous line? Also, `org-element-at-point' doesn't parse contents, so there's no reason that there would be the item and the paragraph. Obviously, `org-element-at-point' output depends on the position of point. Try various positions in the same line and you will get, consistently, `plain-list', `item' and `paragraph' elements. Ok, clear. My wrong expectation was that it would return the element at point including the complete subtree of the structure. Michael
[O] Org, Mobile Org, DropBox
Hi, I'm interested in using Mobile Org (on 2 devices) DropBox. However, the mobile devices are read-only. Do I need to do the org-mobile-push and have the files move from ~/org to ~/Dropbox/MobileOrg, or can I just store all my org files in ~/Dropbox/MobileOrg and not worry about syncing, since the mobile apps are read-only? Thanks, -k.
Re: [O] Org, Mobile Org, DropBox
Hi Ken, Ken Mankoff mank...@gmail.com writes: Hi, I'm interested in using Mobile Org (on 2 devices) DropBox. However, the mobile devices are read-only. Do I need to do the org-mobile-push and have the files move from ~/org to ~/Dropbox/MobileOrg, or can I just store all my org files in ~/Dropbox/MobileOrg and not worry about syncing, since the mobile apps are read-only? Thanks, -k. For your use case, I think you would still probably want to run `org-mobile-push' and set up the `org-mobile-directory' variable to something inside your dropbox shared directory, because org-mobile-push is responsible for generating the agenda views (agendas.org) and index (index.org) upon which MobileOrg depends. Even in a read-only mode, MobileOrg will complain and not display your entries correctly if it can't find these. -- -WGG I use grml (http://grml.org/)
Re: [O] Templates for cloning
The comment about swapping lines and getting a nicer version was intended for the orgmode devs, just in case they want an easy way to support templates with minimal changes to the source code. My solution also works. Just copy the elisp definitions for org-p and org-g into your .emacs file. Then define a new template and you're set. In the template: - %(org-p varname) will prompt you for a value that is then stored as 'varname'. - %(org-g varname) will then insert the text you entered at the prompt. Sebastian On 08/05/12 08:35pm, Nathan Neff wrote: On Fri, Aug 3, 2012 at 9:40 PM, Sebastian Fischmeister sfisc...@uwaterloo.ca wrote: As an idea, this is how I use templates: %+begin_src (defun org-p (key) (let ((val (read-from-minibuffer (concat Define key : (plist-put org-store-link-plist (intern (concat : key)) val)) ) (defmacro org-g (key) (or (plist-get org-store-link-plist (intern (concat : key))) (concat MISSING-KEY- key))) (setq org-capture-templates (quote ((p4 Template: Bla plain (file+headline ~/.org/todo.org Projects) (file ~/.org/templates/bla.tmpl) %+end_src %+begin_src yasnippet %(org-p var1) %(org-p var2) ** Now copy here %(org-g var1) ** And here %(org-g var1) SCHEDULED: %^t %+end_src If you just swap the sequence of the buffer evaluation in org-capture-fill-template, then you would even have a nicer version of this. See this previous post for details: http://comments.gmane.org/gmane.emacs.orgmode/57248 Sebastian Sebastian, thanks for your suggestion, but I'm having trouble understanding how your solution works, and I don't know what you mean by If you just swap the sequence of the buffer evaluation. I only glanced at your suggestion and will review it later (hopefully). If you can point me to more documentation about what's going on in your solution, or perhaps enlighten me a bit more, I would appreciate it! Thanks, --Nate