Re: [O] [PATCH] Bury calendar buffer after C-c .?
On Mar 30, 2011, at 1:12 AM, Ben North wrote: Hi, I've been using org-mode for a little while now, and finding it very useful --- thanks! Would you consider a patch along the lines of the attached, to bury the calendar buffer once you've chosen a date via C-c .? I often want to do switch-to-other-buffer to check something in the most recently used buffer, and find myself looking at the calendar instead. This patch has been accepted, thanks. - Carsten
[O] [LaTeX Export] Question: How to export one section as an Appendix and choosing a way to crossreference
Dear Org-mode list members: I am using org-mode to write a research paper. I am very pleased with the way org-mode works for LaTeX export. However I am stuck and I can't seem to find the solution using google (I am sure I am missing something). Could you please help me with the following: 1. How can I import the Appendix with a different section number. Presently, the Appendix section has the number following the previous section number. Instead I want to have no number of Appendix and the sections of Appendix with numbers like A.1 (for 1st section of Appendix), A.2 (for 2nd section of Appendix). Similarly, sub-sections should be numbered like A.1.1 ... (I could not find a solution for this issue in the well-written worg tutorial by Dr. Dye. This may be solely because I am a beginner and could not formulate how to achieve this numbering scheme.) 2. For cross-referencing, currently I use \ref{CUSTOM_ID}. If there is a way of achieving the numbering scheme in 1., would the current cross referencing method work for Appendix too? Thank you in advance for your help. Best Regards, S.
Re: [O] insert picture feature request.
Sorry for the late response! I forgot about this thread. On Mon, May 9, 2011 at 07:35, Mark S. throa...@yahoo.com wrote: Note to Aankhen: To get inline images to work, you need to install the PNG and JPEG libraries from http://gnuwin32.sourceforge.net/ . Then put the resulting C:...gnuwin32/bin directory in your windows system path. Maybe everyone here already knew this, but I had to spend a bit of time to work it out. My local copy of Emacs has all the libraries in place. The problem seems to be the path: the directory has spaces in it, and the final call is: i_view32.exe /capture=2 /convert=Z:/Foo bar/baz.png In other words, the entire argument is quoted rather than just the path. I fixed this by only passing the file name, as it runs in the same directory. Dunno whether there’s a way to disable quoting for part of an argument. Aankhen
[O] Options for into exporting both LaTeX and HTML
emacs23.2 org-mode 7.4 I would like to export an org file into both LaTeX and HTML. In order to do so, it is important to add appropriate options for both. #+ATTR_HTML: alt=apples image title=How many? align=right width=200 #+ATTR_LaTeX: width=200 [[./images/apples.jpg]] The HTML export gives an outcome as I desire. But this does not seem to work well for LaTeX export. I want to show the image in TeX as similarly as HTML. First of all, can I simply list the options like this? Should I wrap them like... #+Begin_... #+End_... ? Thank you in advance. soichi
Re: [O] [LaTeX Export] Question: How to export one section as an Appendix and choosing a way to crossreference
On Mon, 16 May 2011 04:18:32 -0400 Sunny Srivastava research.b...@gmail.com wrote: 1. How can I import the Appendix with a different section number. Presently, the Appendix section has the number following the previous section number. Instead I want to have no number of Appendix and the sections of Appendix with numbers like A.1 (for 1st section of Appendix), A.2 (for 2nd section of Appendix). Similarly, sub-sections should be numbered like A.1.1 ... (I could not find a solution for this issue in the well-written worg tutorial by Dr. Dye. This may be solely because I am a beginner and could not formulate how to achieve this numbering scheme.) You have two options: 1. With some customisations, this will provide you a clean option http://thread.gmane.org/gmane.emacs.orgmode/41582/focus=41583 2. No customisations required but somewhat inconvenient to manage http://thread.gmane.org/gmane.emacs.orgmode/41582/focus=41636 GL -- Suvayu Open source is the future. It sets us free.
Re: [O] [LaTeX Export] Question: How to export one section as an Appendix and choosing a way to crossreference
Dear Suvayu: Thank you for the help. I appreciate it. I think the solution no 2. gives the appropriate numbering for Appendix that I need. Could you pls enlighten me how to do the cross-referencing ? Thanks again! Best Regards, S. On Mon, May 16, 2011 at 4:54 AM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote: On Mon, 16 May 2011 04:18:32 -0400 Sunny Srivastava research.b...@gmail.com wrote: 1. How can I import the Appendix with a different section number. Presently, the Appendix section has the number following the previous section number. Instead I want to have no number of Appendix and the sections of Appendix with numbers like A.1 (for 1st section of Appendix), A.2 (for 2nd section of Appendix). Similarly, sub-sections should be numbered like A.1.1 ... (I could not find a solution for this issue in the well-written worg tutorial by Dr. Dye. This may be solely because I am a beginner and could not formulate how to achieve this numbering scheme.) You have two options: 1. With some customisations, this will provide you a clean option http://thread.gmane.org/gmane.emacs.orgmode/41582/focus=41583 2. No customisations required but somewhat inconvenient to manage http://thread.gmane.org/gmane.emacs.orgmode/41582/focus=41636 GL -- Suvayu Open source is the future. It sets us free.
Re: [O] [beamer] blank outline slide?
zwz zhangwe...@gmail.com writes: [...] I found the problem. In fact I forgot there's a hook (add-hook 'org-mode-hook (lambda () (org-set-local 'yas/trigger-key [tab]) (define-key yas/keymap [tab] 'yas/next-field) (if (member XeTeX org-todo-keywords-1) (setq org-latex-to-pdf-process '(xelatex -interaction nonstopmode -output-directory %o %f) As org-latex-to-pdf-process is not a buffer-local variable, the value is changed after the first exporting. Now to get the outline slide, I just (setq org-latex-to-pdf-process '(xelatex -interaction nonstopmode -output-directory %o %f xelatex -interaction nonstopmode -output-directory %o %f)) Ah ha! Excellent. Glad you solved it. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.284.g2a8fb)
Re: [O] tables: is it possible to use a comma instead of a period as a number delimiter
Hi Izzie The only direct solution I can think of now is with Emacs Lisp for number/string conversion and ./, replacement: #+begin_src emacs-lisp :results silent (defun com2num (com) convert number string with comma like \2,3\ to number like 2.3 (string-to-number (replace-regexp-in-string , . com))) (defun num2com (fmt num) convert number like 2.31 to number string with comma like \2,3\, formatted with fmt like \%.1f\ (replace-regexp-in-string \\. , (format fmt num))) #+end_src | r | |--| | 10,2 | | 3,0 | | 5,6 | |--| | 18,8 | #+TBLFM: @5='(num2com %.1f (apply '+ (mapcar 'com2num '(@2..@4 Michael On Mon, May 16, 2011 at 01:12, Izzie ml_orgmode.kap...@antichef.net wrote: I started using org tables including a column of numbers formatted the European way with a comma instead of a period, for example 127,43 for 127.43. When I use a formula to sum the whole column it expect a period and ends up with a false calculation. I'd revert my numbers to the American format but this table is used for accounting so it's not an option. Going through the manual didn't provide any help. Is there a way to have org use the european format or am I to ditch the formula and make use of C-c + to manually calculate the sum ?
Re: [O] tables: is it possible to use a comma instead of a period as a number delimiter
Hi, This seems to be a limitation in Emacs Calc, on which Org table spreadsheet functions are based. Calc accepts only the dot as decimal point for number *entry*. However, you can have it *display* the point as you like by customizing calc-point-char (that's `d .' in a Calc buffer). In Org, you *could* try this: (setq org-calc-default-modes (append org-calc-default-modes '(calc-point-char ,))) However, it looks like this creates more problems than it's worth. Commas remain useless for data entry, including entry from Org table cells, so you would need to keep a source column with dots, and copy the numbers over to the column you want to display. And you could only do math on the source column. E. g., the following would work for a column of numbers to be summed at the bottom line: | Point | Comma | |---+---| | 2.3 | | | 11.3 | | | 2.1 | | |---+---| | | | #+TBLFM: $2=$1+0::@5$2=vsum(@I$1..@II$1) ... But would you want to do this? Probably not. So something like Michael's solution seems to be the best option. Or are we missing something here? This is not unlike the hour-minutes-seconds time format hack we discussed a while ago. http://orgmode.org/worg/org-hacks.html#time-computation Org tables with Calc is the greatest invention since buttered toast, but user-friendly localizable formats for non-scientific uses may not be its strong side. Yours, Christian On 5/16/11 12:05 PM, Michael Brand wrote: Hi Izzie The only direct solution I can think of now is with Emacs Lisp for number/string conversion and ./, replacement: #+begin_src emacs-lisp :results silent (defun com2num (com) convert number string with comma like \2,3\ to number like 2.3 (string-to-number (replace-regexp-in-string , . com))) (defun num2com (fmt num) convert number like 2.31 to number string with comma like \2,3\, formatted with fmt like \%.1f\ (replace-regexp-in-string \\. , (format fmt num))) #+end_src |r | |--| | 10,2 | | 3,0 | | 5,6 | |--| | 18,8 | #+TBLFM: @5='(num2com %.1f (apply '+ (mapcar 'com2num '(@2..@4 Michael On Mon, May 16, 2011 at 01:12, Izzieml_orgmode.kap...@antichef.net wrote: I started using org tables including a column of numbers formatted the European way with a comma instead of a period, for example 127,43 for 127.43. When I use a formula to sum the whole column it expect a period and ends up with a false calculation. I'd revert my numbers to the American format but this table is used for accounting so it's not an option. Going through the manual didn't provide any help. Is there a way to have org use the european format or am I to ditch the formula and make use of C-c + to manually calculate the sum ?
Re: [O] [BABEL] BUG: Can't pass format string (-F) to ledger
Viktor Rosenfeld listuse...@googlemail.com writes: Hi, I'm having trouble passing format strings (-F) to ledger using org-babel. When I pass -F to :cmdline, I get the following error: Not enough arguments for format string. yes, sorry, this is an error in formatting a message which doesn't actually do anything. Can somebody please apply the attached patch? Thanks, eric diff --git a/lisp/ob-ledger.el b/lisp/ob-ledger.el index e2709a7..e678137 100644 --- a/lisp/ob-ledger.el +++ b/lisp/ob-ledger.el @@ -52,7 +52,7 @@ called by `org-babel-execute-src-block'. (in-file (org-babel-temp-file ledger-)) (out-file (org-babel-temp-file ledger-output-))) (with-temp-file in-file (insert body)) -(message (concat ledger +(message %s (concat ledger -f (org-babel-process-file-name in-file) cmdline)) (with-output-to-string -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.284.g2a8fb.dirty)
Re: [O] tables: is it possible to use a comma instead of a period as a number delimiter
On May 16, 2011, at 1:26 PM, Christian Moe wrote: Hi, This seems to be a limitation in Emacs Calc, on which Org table spreadsheet functions are based. Calc accepts only the dot as decimal point for number *entry*. However, you can have it *display* the point as you like by customizing calc-point-char (that's `d .' in a Calc buffer). In Org, you *could* try this: (setq org-calc-default-modes (append org-calc-default-modes '(calc-point-char ,))) However, it looks like this creates more problems than it's worth. Commas remain useless for data entry, including entry from Org table cells, so you would need to keep a source column with dots, and copy the numbers over to the column you want to display. And you could only do math on the source column. E. g., the following would work for a column of numbers to be summed at the bottom line: | Point | Comma | |---+---| | 2.3 | | | 11.3 | | | 2.1 | | |---+---| | | | #+TBLFM: $2=$1+0::@5$2=vsum(@I$1..@II$1) ... But would you want to do this? Probably not. So something like Michael's solution seems to be the best option. Or are we missing something here? This is not unlike the hour-minutes-seconds time format hack we discussed a while ago. http://orgmode.org/worg/org-hacks.html#time-computation Org tables with Calc is the greatest invention since buttered toast, but user-friendly localizable formats for non-scientific uses may not be its strong side. I also think that it would be more trouble than useful to try to change this. After all, you want to keep the tables functional. When the OP says he needs this for accounting, I guess he is exporting this data somehow? How about changing from dot to comma only in one of the export hooks? (add-hook 'org-export-preprocess-hook 'org-use-comma-in-exported-tables) (defun org-use-comma-in-exported-tables () (goto-char (point-min)) (while (re-search-forward \\([0-9]\\)\\.\\([0-9]\\) nil t) (org-if-unprotected (when (save-match-data (org-at-table-p)) (replace-match \\1,\\2 t nil) - Carsten Yours, Christian On 5/16/11 12:05 PM, Michael Brand wrote: Hi Izzie The only direct solution I can think of now is with Emacs Lisp for number/string conversion and ./, replacement: #+begin_src emacs-lisp :results silent (defun com2num (com) convert number string with comma like \2,3\ to number like 2.3 (string-to-number (replace-regexp-in-string , . com))) (defun num2com (fmt num) convert number like 2.31 to number string with comma like \2,3\, formatted with fmt like \%.1f\ (replace-regexp-in-string \\. , (format fmt num))) #+end_src |r | |--| | 10,2 | | 3,0 | | 5,6 | |--| | 18,8 | #+TBLFM: @5='(num2com %.1f (apply '+ (mapcar 'com2num '(@2..@4 Michael On Mon, May 16, 2011 at 01:12, Izzieml_orgmode.kap...@antichef.net wrote: I started using org tables including a column of numbers formatted the European way with a comma instead of a period, for example 127,43 for 127.43. When I use a formula to sum the whole column it expect a period and ends up with a false calculation. I'd revert my numbers to the American format but this table is used for accounting so it's not an option. Going through the manual didn't provide any help. Is there a way to have org use the european format or am I to ditch the formula and make use of C-c + to manually calculate the sum ? - Carsten
Re: [O] tables: is it possible to use a comma instead of a period as a number delimiter
On 5/16/11 2:20 PM, Carsten Dominik wrote: When the OP says he needs this for accounting, I guess he is exporting this data somehow? How about changing from dot to comma only in one of the export hooks? Ah... sanity. Yes. And just in time, too, as I was ready to unleash on Izzie the ultimate accountant's nightmare -- a fragile with-comma macro to allow using comma as decimal separator in Org spreadsheets with Lisp formulas. Yours, Christian
Re: [O] org-bbdb-anniversaries gives error 'bad sexp'
Roland Winkler wink...@gnu.org writes: On Sun May 15 2011 Matt Lundin wrote: I'd be happy to take this on. AFAICT, there are three functions in org-bbdb that no longer exist in bbdb v3. bbdb-name bbdb-company bbdb-record-getprop The first two can easily be defaliased to bbdb-search-organization and bbdb-search-name. (For a while, we should probably support bbdb v2 and v3 simultaneously.) Things might be a bit more subtle. The new organization field is a list, not a single string. Thanks. That's good to know. AFAICT, bbdb-search-organization already accommodates for this fact. That is, if you give it a regexp, it will return all records matching the regexp in the organization field. Since org-bbdb calls bbdb-company with a string as an argument, wouldn't a defalias be sufficient for the time being? The other major change that breaks compatibility is the order of the parameters in bbdb-split. It has been reversed in the new bbdb: i.e., one used to call (bbdb-split string separator), whereas now one must call (bbdb-split separator string). Is there a compelling reason to change this order in the new bbdb? The change is not only with respect to the order of arguments that could be reverted in BBDB v3. More importantly, I tried to get rid of hard-coded separators. Most often the separator arg is now the name of the field that is split. Then the actual separator is looked up in bbdb-separator-alist. While I do not know yet a good strategy for the upgrade of org-mode's BBDB interface, I'd find it unfortunate if such a feature was lost in org-mode to preserve backward compatibility. Thanks for the explanation. For the time being, I'll add a workaround to accommodate both versions. Best, Matt
Re: [O] org-bbdb-anniversaries gives error 'bad sexp'
On Sat May 14 2011 Johnny wrote: I have set up an org-agenda that includes anniversaries in the agenda view from the bbdb database, but this breaks with bbdb 3.02 giving the error 'bad sexp'. I set up the agenda file using (from org-mode 6.33x info section 10.3.1): * Anniversaries :PROPERTIES: :CATEGORY: Anniv :END %%(org-bbdb-anniversaries) Any ideas? I need to say that I do not know how org-mode interfaces with BBDB. I am CC'ing this email also to emacs-orgmode@gnu.org. If org-mode is set up to work with BBDB v2.x, (most likely) this does not work with BBDB v3. Defining aliases for the old BBDB functions in terms of the new ones would work only in a few cases. Of course, this depends first of all on how org-mode is supposed to work with BBDB. Yet we are trying to make the new BBDB part of GNU Emacs. So it would be great if org-mode could be updated to provide (also) an interface for the new BBDB. While I'd like to declare soon that BBDB v3 has reached a beta stage, it was probably good if someone familiar with org-mode's interface to BBDB could take a look into this so that we could try to make sure that the new BBDB can work with org-mode as smoothly as possible. (Various add-ons for BBDB v2 had to go through some pain to work as intended by advicing BBDB functions and things like that. With BBDB v3 I tried to clean up and simplify these things; and various add-ons for BBDB v2 are already incorporated into v3 in one or the other way. It would probably be good if the needs of org-mode could be incorporated into the new BBDB before we declare that BBDB v3 has reached a beta stage.) Roland
Re: [O] org-bbdb-anniversaries gives error 'bad sexp'
On Sun May 15 2011 Matt Lundin wrote: I'd be happy to take this on. AFAICT, there are three functions in org-bbdb that no longer exist in bbdb v3. bbdb-name bbdb-company bbdb-record-getprop The first two can easily be defaliased to bbdb-search-organization and bbdb-search-name. (For a while, we should probably support bbdb v2 and v3 simultaneously.) Things might be a bit more subtle. The new organization field is a list, not a single string. What is the new name of bbdb-record-getprop (the function that retrieves the value of a given label in a record)? My best guess is bbdb-record-note, but I want to confirm this. That's mostly true. bbdb-record-getprop also retrieved the company field. The other major change that breaks compatibility is the order of the parameters in bbdb-split. It has been reversed in the new bbdb: i.e., one used to call (bbdb-split string separator), whereas now one must call (bbdb-split separator string). Is there a compelling reason to change this order in the new bbdb? The change is not only with respect to the order of arguments that could be reverted in BBDB v3. More importantly, I tried to get rid of hard-coded separators. Most often the separator arg is now the name of the field that is split. Then the actual separator is looked up in bbdb-separator-alist. While I do not know yet a good strategy for the upgrade of org-mode's BBDB interface, I'd find it unfortunate if such a feature was lost in org-mode to preserve backward compatibility. Roland
Re: [O] org-bbdb-anniversaries gives error 'bad sexp'
On Sun May 15 2011 Roland Winkler wrote: It would probably be good if the needs of org-mode could be incorporated into the new BBDB before we declare that BBDB v3 has reached a beta stage.) I forgot to say: It is an item on the todo list for BBDB v3 to provide a more complete list for how things have changed from BBDB v2 to v3. Roland
[O] Problems with LaTeX export
Hi there, Last week I made a customised latex class for generating the LaTeX version of my thesis (as a displacement activity for actually writing said thesis). It all worked fine about last Wednesday, but today it's not working very well at all. Coincidentally (by which I mean not to imply causality) I updated my org-mode git repository this morning. I have an org-export-latex-class defined: (add-to-list 'org-export-latex-classes '(thesis \\documentclass[11pt,a4paper]{report} \\usepackage[T1]{fontenc} \\usepackage{fontspec} \\usepackage{graphicx} \\defaultfontfeatures{Mapping=tex-text} \\setromanfont{Gentium} \\setromanfont [BoldFont={Gentium Basic Bold}, ItalicFont={Gentium Basic Italic}]{Gentium Basic} \\setsansfont{Charis SIL} \\setmonofont[Scale=0.8]{DejaVu Sans Mono} \\usepackage{geometry} \\geometry{a4paper, textwidth=6.5in, textheight=10in, marginparsep=7pt, marginparwidth=.6in} \\pagestyle{empty} \\title{} [NO-DEFAULT-PACKAGES] [NO-PACKAGES] (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s}))) (It used to be called rjl/thesis, but then when I tried to export this morning it said it couldn't find the class rjl so I changed the name.) This class is mainly taken from emacsfu (http://emacs-fu.blogspot.com/2011/04/nice-looking-pdfs-with-org-mode-and.html) The problem I am experiencing now is that the TeX source that it outputs looks like this: \documentclass[11pt,a4paper]{report} \usepackage[T1]{fontenc} \usepackage{fontspec} \usepackage{graphicx} \defaultfontfeatures{Mapping=tex-text} \setromanfont{Gentium} \setromanfont [BoldFont={Gentium Basic Bold}, ItalicFont={Gentium Basic Italic}]{Gentium Basic} \setsansfont{Charis SIL} \setmonofont[Scale=0.8]{DejaVu Sans Mono} \usepackage{geometry} \geometry{a4paper, textwidth=6.5in, textheight=10in, marginparsep=7pt, marginparwidth=.6in} \pagestyle{empty} \title{} [NO-DEFAULT-PACKAGES] [NO-PACKAGES] \title{Foo Bar} \author{Richard Lewis} \date{16 May 2011} \begin{document} I'm sure it's not supposed to contain that empty \title{} environment, or the [NO-DEFAULT-PACKAGES] thing. Any ideas why this might be happening? Thanks, Richard
Re: [O] org-bbdb-anniversaries gives error 'bad sexp'
Leo sdl@gmail.com writes: On 2011-05-16 00:58 +0800, Matt Lundin wrote: I'd be happy to take this on. AFAICT, there are three functions in org-bbdb that no longer exist in bbdb v3. If you want you can build on top of my version. The anniversaries is still broken since I don't use BBDB-anniv.el. The rest works well for the past few weeks. Thanks Leo! This is very helpful. I have anniversaries working in my own setup, so between the two sets of modifications, I should be able to provide a full set of fixes. More soon... Best, Matt
Re: [O] [LaTeX Export] Question: How to export one section as an Appendix and choosing a way to crossreference
Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Mon, 16 May 2011 04:18:32 -0400 Sunny Srivastava research.b...@gmail.com wrote: 1. How can I import the Appendix with a different section number. Presently, the Appendix section has the number following the previous section number. Instead I want to have no number of Appendix and the sections of Appendix with numbers like A.1 (for 1st section of Appendix), A.2 (for 2nd section of Appendix). Similarly, sub-sections should be numbered like A.1.1 ... (I could not find a solution for this issue in the well-written worg tutorial by Dr. Dye. This may be solely because I am a beginner and could not formulate how to achieve this numbering scheme.) You have two options: 1. With some customisations, this will provide you a clean option http://thread.gmane.org/gmane.emacs.orgmode/41582/focus=41583 2. No customisations required but somewhat inconvenient to manage http://thread.gmane.org/gmane.emacs.orgmode/41582/focus=41636 I get the impression that the OP is asking a simpler question: not so much an org question as a LaTeX question. If I'm right, the following should help (and the references should take care of themselves): --8---cut here---start-8--- * Chapter ** Section foo ** Section bar * Chapter ** Section baz ** Section hunoz #+LaTeX: \appendix * Appendix ** Section appfoo ** Section appbar --8---cut here---end---8--- Nick
Re: [O] [LaTeX Export] Question: How to export one section as an Appendix and choosing a way to crossreference
On Mon, 16 May 2011 10:28:18 -0400 Nick Dokos nicholas.do...@hp.com wrote: I get the impression that the OP is asking a simpler question: not so much an org question as a LaTeX question. If I'm right, the following should help (and the references should take care of themselves): --8---cut here---start-8--- * Chapter ** Section foo ** Section bar * Chapter ** Section baz ** Section hunoz #+LaTeX: \appendix * Appendix ** Section appfoo ** Section appbar --8---cut here---end---8--- I should not have posted so late in the night. :-p I think you are correct, I over analysed the OP's request. Nick -- Suvayu Open source is the future. It sets us free.
Re: [O] Query for tags, and bring results into headline?
Nathan Neff nathan.n...@gmail.com writes: I keep a lot of headlines tagged question that I want to review before a daily meeting. Currently I keep questions tagged with question, and can easily do an agenda search for them. No problem. Before a daily meeting, I create a daily meeting headline like this: * Daily Mtg 05/11/2011 Then, I do an agenda search for questions. What I'm looking for is a way to query for headlines tagged question, and bring the results of that query into the Daily Mtg 05/11/2011 headline -- preferably with links to the questions to easily jump to them. This way, I have a record that I asked certain questions, and I can easily stay within my Daily Mtg headine, and not jump to / from agenda and back to the daily mtg headline, which tends to break my concentration. Essentially, it would be a clock report, with links, except it would not need to filter by any time/clocking information. Edit I just found that I can copy the results of the agenda into my headline, and simply surround the headings with [[ and ]], which turns them into links. This will work for the time being. I suspect that another answer is a dynamic block. Anyone else doing something similar? Here's one implementation: --8---cut here---start-8--- (defun org-dblock-write:insert-links (params) Dblock function to insert links to headlines that match tags/properties search string specified by :match. (let ((match (plist-get params :match)) links) (unless match (error Must specify :match parameter)) (org-map-entries (lambda () (let ((heading (nth 4 (org-heading-components (add-to-list 'links (format - [[file:%s::*%s][%s]]\n (abbreviate-file-name (buffer-file-name)) heading heading match 'agenda) (apply #'insert links))) --8---cut here---end---8--- You could then create a dblock by typing C-c C-c on the following #+begin: insert-links :match questions #+end: This would still need to be refined, as there are problems when a headline contains a link, but it's meant to provide a quick proof of concept. Best, Matt
Re: [O] Query for tags, and bring results into headline?
Matt Lundin m...@imapmail.org writes: You could then create a dblock by typing C-c C-c on the following #+begin: insert-links :match questions #+end: Correction: this should be: --8---cut here---start-8--- #+begin: insert-links :match questions #+end: --8---cut here---end---8--- Best, Matt
Re: [O] [BABEL] BUG: Can't pass format string (-F) to ledger
Hi Eric, I applied your patch locally and can confirm that it works. Thank you, Viktor Eric S Fraga wrote: Viktor Rosenfeld listuse...@googlemail.com writes: Hi, I'm having trouble passing format strings (-F) to ledger using org-babel. When I pass -F to :cmdline, I get the following error: Not enough arguments for format string. yes, sorry, this is an error in formatting a message which doesn't actually do anything. Can somebody please apply the attached patch? Thanks, eric diff --git a/lisp/ob-ledger.el b/lisp/ob-ledger.el index e2709a7..e678137 100644 --- a/lisp/ob-ledger.el +++ b/lisp/ob-ledger.el @@ -52,7 +52,7 @@ called by `org-babel-execute-src-block'. (in-file (org-babel-temp-file ledger-)) (out-file (org-babel-temp-file ledger-output-))) (with-temp-file in-file (insert body)) -(message (concat ledger +(message %s (concat ledger -f (org-babel-process-file-name in-file) cmdline)) (with-output-to-string -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.5 (release_7.5.284.g2a8fb.dirty)
Re: [O] tables: is it possible to use a comma instead of a period as a number delimiter
On 16.5.2011, at 15:23, Christian Moe wrote: On 5/16/11 2:20 PM, Carsten Dominik wrote: When the OP says he needs this for accounting, I guess he is exporting this data somehow? How about changing from dot to comma only in one of the export hooks? Ah... sanity. Yes. And just in time, too, as I was ready to unleash on Izzie the ultimate accountant's nightmare -- a fragile with-comma macro to allow using comma as decimal separator in Org spreadsheets with Lisp formulas. :) Interesting! But maybe not really practical. We can start a file on worg, org-madness.org, next to org-hacks.org...? Cheers - Carsten
Re: [O] tables: is it possible to use a comma instead of a period as a number delimiter
Carsten Dominik carsten.domi...@gmail.com wrote: On 16.5.2011, at 15:23, Christian Moe wrote: On 5/16/11 2:20 PM, Carsten Dominik wrote: When the OP says he needs this for accounting, I guess he is exporting this data somehow? How about changing from dot to comma only in one of the export hooks? =20 Ah... sanity. Yes. =20 And just in time, too, as I was ready to unleash on Izzie the ultimate = accountant's nightmare -- a fragile with-comma macro to allow using = comma as decimal separator in Org spreadsheets with Lisp formulas. :) Interesting! But maybe not really practical. We can start a file on worg, org-madness.org, next to org-hacks.org...? ... with a prize for the craziest idea: maybe a t-shirt with an Escher-like impossible unicorn[fn:1]. To your infinite relief, I'll let Bastien's artist friend design it :-) Nick Footnotes: [fn:1] impossible unicorn - hmm...
[O] print booklet from orgmode
I do not know how to do this but it struck me as useful: Easily print your to-do list as a foldable booklet that you can put in your pocket. Each booklet contains your hotlist, your top 110 most important tasks, and a section for written notes. Assembly of the booklet is as simple as one cut with a scissors and a few folds. http://www.toodledo.com/booklet.php Does org mode have such a feature? Thanks, marc -- Freedom is nothing but a chance to be better. --Albert Camus The problem with socialism is that eventually you run out of other people's money. --Margaret Thatcher
[O] Cloning tasks subtrees when repeating?
Folks: I am looking for a nice org-mode-ish way to manage a task check list that repeats regularly. I would like to log, then archive, which items actually are completed when I close the task. (It isn't uncommon to have a few open.) Here is the situation: Every couple of weeks, I have an opportunity to work through a checklist of about 40-50 system maintenance tasks, organized under a repeating TODO-task item. At the end of the maintenance time period, I close the task (which reschedules nicely), then cut-n-paste the partly-marked list to the LOGBOOK drawer (as well as any additional notes I want to log). Then I manually clear out the check list... This is not too much work, but of course it would be nice if the checklist could automatically be saved, then cleared. But there is another problem: my LOGBOOK drawer is getting very large, and checklist processing has been slowing (I can no longer use it). What would be nice is if I could close the task, the repeated entry would be an entirely new task. Perhaps it is a clone of the task I just closed (with a new date), or perhaps it is populated from some sort of template. The important thing is I need a new task entry, so I can archive the old entry, and still have a new entry with a new date. Has anyone else had a similar use-case that could suggest an approach they've used? Thanks! /Lindsay
Re: [O] Cloning tasks subtrees when repeating?
Have you looked into: C-c C-x c (org-clone-subtree-with-time-shift) Clone a subtree by making a number of sibling copies of it. You will be prompted for the number of copies to make, and you can also specify if any timestamps in the entry should be shifted. This can be useful, for example, to create a number of tasks related to a series of lectures to prepare. For more details, see the docstring of the command org-clone-subtree-with-time-shift. Your usecase may need some modification or adding this to a custom function for it to work. On Mon, May 16, 2011 at 1:35 PM, Lindsay Todd rltodd@gmail.com wrote: Folks: I am looking for a nice org-mode-ish way to manage a task check list that repeats regularly. I would like to log, then archive, which items actually are completed when I close the task. (It isn't uncommon to have a few open.) Here is the situation: Every couple of weeks, I have an opportunity to work through a checklist of about 40-50 system maintenance tasks, organized under a repeating TODO-task item. At the end of the maintenance time period, I close the task (which reschedules nicely), then cut-n-paste the partly-marked list to the LOGBOOK drawer (as well as any additional notes I want to log). Then I manually clear out the check list... This is not too much work, but of course it would be nice if the checklist could automatically be saved, then cleared. But there is another problem: my LOGBOOK drawer is getting very large, and checklist processing has been slowing (I can no longer use it). What would be nice is if I could close the task, the repeated entry would be an entirely new task. Perhaps it is a clone of the task I just closed (with a new date), or perhaps it is populated from some sort of template. The important thing is I need a new task entry, so I can archive the old entry, and still have a new entry with a new date. Has anyone else had a similar use-case that could suggest an approach they've used? Thanks! /Lindsay
Re: [O] print booklet from orgmode
Marc Spitzer mspit...@gmail.com writes: I do not know how to do this but it struck me as useful: Easily print your to-do list as a foldable booklet that you can put in your pocket. Each booklet contains your hotlist, your top 110 most important tasks, and a section for written notes. Assembly of the booklet is as simple as one cut with a scissors and a few folds. http://www.toodledo.com/booklet.php Does org mode have such a feature? Here's an old post with a script to generate something similar. I have no idea whether it still works: http://permalink.gmane.org/gmane.emacs.orgmode/3910 Best, Matt
Re: [O] Options for into exporting both LaTeX and HTML
Aloha ishi soichi, LaTeX probably wants a unit of measure, something like this #+ATTR_LaTeX: width=200mm Does this solve your problem? Tom ishi soichi soichi...@gmail.com writes: emacs23.2 org-mode 7.4 I would like to export an org file into both LaTeX and HTML. In order to do so, it is important to add appropriate options for both. #+ATTR_HTML: alt=apples image title=How many? align=right width=200 #+ATTR_LaTeX: width=200 [[./images/apples.jpg]] The HTML export gives an outcome as I desire. But this does not seem to work well for LaTeX export. I want to show the image in TeX as similarly as HTML. First of all, can I simply list the options like this? Should I wrap them like... #+Begin_... #+End_... ? Thank you in advance. soichi emacs23.2org-mode 7.4I would like to export an org file into both LaTeX and HTML.In order to do so, it is important to add appropriate options for both. #+ATTR_HTML: alt=apples image title=How many? align=right width=200#+ATTR_LaTeX: width=200[[./images/apples.jpg]] The HTML export gives an outcome as I desire. But this does not seem to work well for LaTeX export. I want to show the image in TeX as similarly as HTML.First of all, can I simply list the options like this? Should I wrap them like... #+Begin_...#+End_...?Thank you in advance.soichi -- Thomas S. Dye http://www.tsdye.com
[O] Weird bug when babel used in a macro
Sample ORG file: #+MACRO: test src_emacs-lisp[:results raw]{(let (mRef) (progn (if (string= $2 1) (setq mRef A) (if (string= $2 2) (setq mRef B) (setq mRef C))) (concat Test $1 mRef : )))} * *Hello World* {{{test(1,1)}}} Desired HTML export: Test 1.A Actual HTML export: The babel macro takes the 2nd argument and maps it to the following: 1 = A, 2 = B, Everything else = C. Yeah, it may be convoluted, but it gets the job done i.e., the actual HTML file is fine. HOWEVER, I get this error during the export process: No match - create this as a new heading? (y or n) If you select y, it adds an extra heading to the file. This heading is * Hello World* (same heading minus the *) If you un-bold the heading (change the heading to * Hello World), it exports fine. For some reason when the actual heading starts with a * character, it is throwing something off... Using 7.4 (I'm in a production environment, so I can't upgrade right now).
Re: [O] tables: is it possible to use a comma instead of a period as a number delimiter
On 16.5.2011, at 20:08, Nick Dokos wrote: Carsten Dominik carsten.domi...@gmail.com wrote: On 16.5.2011, at 15:23, Christian Moe wrote: On 5/16/11 2:20 PM, Carsten Dominik wrote: When the OP says he needs this for accounting, I guess he is exporting this data somehow? How about changing from dot to comma only in one of the export hooks? =20 Ah... sanity. Yes. =20 And just in time, too, as I was ready to unleash on Izzie the ultimate = accountant's nightmare -- a fragile with-comma macro to allow using = comma as decimal separator in Org spreadsheets with Lisp formulas. :) Interesting! But maybe not really practical. We can start a file on worg, org-madness.org, next to org-hacks.org...? ... with a prize for the craziest idea: maybe a t-shirt with an Escher-like impossible unicorn[fn:1]. To your infinite relief, I'll let Bastien's artist friend design it :-) Nick Footnotes: [fn:1] impossible unicorn - hmm... awesome!
[O] Confused about org-log-into-drawer
Hi, I thought that org-log-into-drawer would also log scheduled/deadline/closed timestamps into a drawer, or is this not the case? I have it set like so: ,--- | (setq org-log-into-drawer t) `--- But only clocked data goes into :LOGBOOK:, not any of the other meta-data about the TODO. Is this normal, and is there a way to get that stuff in the drawer as well? Or is something off on my setup? Thanks, John
Re: [O] Confused about org-log-into-drawer
John Hendy jw.he...@gmail.com writes: I thought that org-log-into-drawer would also log scheduled/deadline/closed timestamps into a drawer, or is this not the case? I have it set like so: ,--- | (setq org-log-into-drawer t) `--- But only clocked data goes into :LOGBOOK:, not any of the other meta-data about the TODO. Is this normal, and is there a way to get that stuff in the drawer as well? Or is something off on my setup? Org-mode does not currently place SCHEDULED, DEADLINE, or CLOSED timestamps in a drawer. This email from a recent thread describes the historical reasons for the behavior and the changes that would be necessary to turn those timestamps into properties. http://permalink.gmane.org/gmane.emacs.orgmode/40872 Best, Matt
Re: [O] Confused about org-log-into-drawer
Hi John As far as I understood logging and its drawers: - CLOCK: [2011-05-17 Tue 23:00... relates to org-clock-into-drawer - - State DONE from TODO ... relates to org-log-repeat and org-log-into-drawer - CLOSED: relates to org-log-done(-with-time); it can not be put into a drawer, see http://thread.gmane.org/gmane.emacs.orgmode/40571 Michael On Mon, May 16, 2011 at 23:39, John Hendy jw.he...@gmail.com wrote: I thought that org-log-into-drawer would also log scheduled/deadline/closed timestamps into a drawer, or is this not the case? I have it set like so: ,--- | (setq org-log-into-drawer t) `--- But only clocked data goes into :LOGBOOK:, not any of the other meta-data about the TODO. Is this normal, and is there a way to get that stuff in the drawer as well? Or is something off on my setup?
Re: [O] Options for into exporting both LaTeX and HTML
Thanks! It did solve the problem. soichi 2011/5/17 Thomas S. Dye t...@tsdye.com Aloha ishi soichi, LaTeX probably wants a unit of measure, something like this #+ATTR_LaTeX: width=200mm Does this solve your problem? Tom ishi soichi soichi...@gmail.com writes: emacs23.2 org-mode 7.4 I would like to export an org file into both LaTeX and HTML. In order to do so, it is important to add appropriate options for both. #+ATTR_HTML: alt=apples image title=How many? align=right width=200 #+ATTR_LaTeX: width=200 [[./images/apples.jpg]] The HTML export gives an outcome as I desire. But this does not seem to work well for LaTeX export. I want to show the image in TeX as similarly as HTML. First of all, can I simply list the options like this? Should I wrap them like... #+Begin_... #+End_... ? Thank you in advance. soichi emacs23.2org-mode 7.4I would like to export an org file into both LaTeX and HTML.In order to do so, it is important to add appropriate options for both. #+ATTR_HTML: alt=apples image title=How many? align=right width=200#+ATTR_LaTeX: width=200[[./images/apples.jpg]] The HTML export gives an outcome as I desire. But this does not seem to work well for LaTeX export. I want to show the image in TeX as similarly as HTML.First of all, can I simply list the options like this? Should I wrap them like... #+Begin_...#+End_...?Thank you in advance.soichi -- Thomas S. Dye http://www.tsdye.com
Re: [O] [LaTeX Export] Question: How to export one section as an Appendix and choosing a way to crossreference
Thanks Nick and Suvayu. Nick's solution works fine! I knew something simple would be the solution! S. On Mon, May 16, 2011 at 11:20 AM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote: On Mon, 16 May 2011 10:28:18 -0400 Nick Dokos nicholas.do...@hp.com wrote: I get the impression that the OP is asking a simpler question: not so much an org question as a LaTeX question. If I'm right, the following should help (and the references should take care of themselves): --8---cut here---start-8--- * Chapter ** Section foo ** Section bar * Chapter ** Section baz ** Section hunoz #+LaTeX: \appendix * Appendix ** Section appfoo ** Section appbar --8---cut here---end---8--- I should not have posted so late in the night. :-p I think you are correct, I over analysed the OP's request. Nick -- Suvayu Open source is the future. It sets us free.
[O] Include headings in export, but exclude from TOC?
:NOEXPORT: removes a heading from export and the TOC. Is there a tag that will only exclude a heading from appearing in the TOC? -Luke
Re: [O] Include headings in export, but exclude from TOC?
On Mon, May 16, 2011 at 6:38 PM, Luke Crook l...@balooga.com wrote: :NOEXPORT: removes a heading from export and the TOC. Is there a tag that will only exclude a heading from appearing in the TOC? For LaTeX export the following header option should take care of this: #+OPTIONS: H:4 num:3 H:4 says export up to level 4 headlines num:3 says only number up to level 3 headlines I am not sure whether this works for the other export backends. -Luke -- Suvayu Open source is the future. It sets us free.
[O] Org mode articles
Hello Everyone, I just started publishing a series of articles about org-mode, describing my personal setup from start to finish. Thought I'd mention it here in case anyone's interested. The entire article is written in org-mode, published using org2blog and is bootstrappable as-is, in order to mimic my emacs/org-mode setup. -- Eden Cardim Software Engineer edencardim.com +55 73 9986-3963
Re: [O] Org mode articles
Eden Cardim edencar...@gmail.com wrote: I just started publishing a series of articles about org-mode, describing my personal setup from start to finish. Thought I'd mention it here in case anyone's interested. The entire article is written in org-mode, published using org2blog and is bootstrappable as-is, in order to mimic my emacs/org-mode setup. OK, but don't keep it a secret: tell us where we can read it ;-) Thanks, Nick
Re: [O] Org mode articles
On Tue, May 17, 2011 at 10:22 AM, Nick Dokos nicholas.do...@hp.com wrote: Eden Cardim edencar...@gmail.com wrote: I just started publishing a series of articles about org-mode, describing my personal setup from start to finish. Thought I'd mention it here in case anyone's interested. The entire article is written in org-mode, published using org2blog and is bootstrappable as-is, in order to mimic my emacs/org-mode setup. OK, but don't keep it a secret: tell us where we can read it ;-) :-) I found it here [1] . Came here from the url in Eden's signature. [1] - http://blog.edencardim.com -- Puneeth
Re: [O] Org mode articles
It was there on the signature :-) -- regards Shyam On Tue, May 17, 2011 at 10:22 AM, Nick Dokos nicholas.do...@hp.com wrote: Eden Cardim edencar...@gmail.com wrote: I just started publishing a series of articles about org-mode, describing my personal setup from start to finish. Thought I'd mention it here in case anyone's interested. The entire article is written in org-mode, published using org2blog and is bootstrappable as-is, in order to mimic my emacs/org-mode setup. OK, but don't keep it a secret: tell us where we can read it ;-) Thanks, Nick