[Orgmode] Re: [LaTeX-Export] Longtable and Caption
Hi Carsten, Carsten Dominik carsten.domi...@gmail.com wrote: On Dec 3, 2009, at 4:22 PM, Ulf Stegemann wrote: Carsten Dominik carsten.domi...@gmail.com wrote: it was my understanding that the caption command in longtable is different from the caption command in normal tables, in that it is a line that is printed over the table on each page - so I thought it always needs to be there. Is that not correct? yes, treatment is different but nevertheless the caption is not mandatory for longtable. I never had any problems with longtable tables without \caption{}. sorry for being so slow to process this request. I believe this works now as you requested, please verify. thanks for having a look at it (no need to apologise for the delay, it's certainly not an urgent matter). Captions are now suppressed for longtables without caption definition. However, I've noticed that the extra linebreak (\\) is still inserted in longtable environments regardless of the presence of a caption. That linebreak leads to undesired effects when using longtable without a caption but with vertical lines. This should fix it: --- org-latex.el.orig 2009-12-17 08:10:19.0 +0100 +++ org-latex.el 2009-12-17 08:49:02.0 +0100 @@ -1538,7 +1538,7 @@ \\caption{%s%s} (if label (concat \\\label{ label }) ) (or caption ))) -(if longtblp \n \n) +(if (and longtblp caption) \n \n) (if (and org-export-latex-tables-centered (not longtblp)) \\begin{center}\n) (if (not longtblp) (concat \\begin{tabular}{ align }\n)) Ulf ___ 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] Obscure Bug with HTML Export if Directory Starts with an Underscore
Carsten Dominik wrote: Hi Ian, thank you for your report. This has nothing to do with the directory starting with an underscore. What is happening here is that Org-mode uses the first line in the buffer, - in your case as the title of the document since no other title is defined. Of course, the body-only export then discards the title, and you end up without your first line. You could fix this with a dummy #+TITLE: line, or by putting anything at all in a earlier line, even above #+STARTUP, or by setting the :title option in your publishing setup. Another way would be #+STARTUP: showall indent #+STARTUP: hidestars #+OPTIONS: H:2 num:nil tags:nil toc:1 timestamps:t #+TITLE: ADSL Connection Problems. #+BEGIN_HTML --- layout: post title: {{{title}}} tags: [gadgets, linux, test] excerpt: Problems, problems! --- #+END_HTML Main text of post goes here. i.e using the {{{title}}} macro to insert the title into the right place while having #+TITLE around to stop Org from grabbing the first line. One could also question if it makes sense to grab the title from the buffer if body-only is set, and I have now changed it so that in this case it will *not* take the title from buffer text. Thanks for the explanation and list of fixes. Hope something here will help you - these are murky waters. It's a good job that you have X-ray vision:) Ian. ___ 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 Entities (was: Add \EUR to `org-html-entities')
Hi Carsten, Carsten Dominik carsten.domi...@gmail.com wrote: I have added your symbols. thanks, works great. I was wondering if there's a more general problem lurking behind this (thus the change of subject): the problem of encoding entities in org for various export formats, namely HTML, LaTeX, plain ASCII text (and maybe plain unicode text). As an example, let's assume we have an org file that should eventually be available as HTML, PDF and plain text. Let's assume further, that for whatever reasons (e.g. ugly double quotes in the needed font) the document should use French quoting. Ideally `\SomeMagicOrgEncoding{}Quote\AnotherMagicOrgEncoding{}' in the org file would export to HTML - laquo;Quoteraquo; LaTeX - \flqq{}Quote\frqq{} ASCII - Quote (Unicode- «Quote») Resorting to `org-html-entities' we could use --8--snip--8--- #+LATEX_HEADER: \newcommand{\laquo}{\flqq} \newcommand{\raquo}{\frqq} [...] \laquo{}Quote\raquo{} --8--snap--8--- to get the HTML and LaTeX output right but this leaves us with `\laquo{}' in ASCII export and is generally a rather cumbersome approach. Maybe there's a simpler solution to address this but I haven't come across it, yet (Note that `Use unicode!' isn't an option sometimes.). Quoting is just one example that strikes my quite often, but the same applies for all sorts of special characters; think of arrows, accented characters etc. This is certainly not a very pressing issue but it might be worth thinking about how to handle this. What do you think? Ulf ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [babel] Tiny problems
Hi Eric, Eric Schulte wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Eric Schulte wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com writes: [...] - *after* =C-c '= forth and back, all the blank lines in my source block (in my example, the one between SET NOCOUNT ON and SELECT TOP 10) are filled with an amount of whitespaces (and, in my Emacs config, highlighted as useless spaces). - the condition block is not indented properly in the tangled output file; only the first line is: Maybe the above two issues could be fixed by setting the `org-src-preserve-indentation' variable's value to t. Since I only need this in some org-mode buffers I set it as a buffer local variable by placing a line like the following at the top of these buffers. # -*- org-src-preserve-indentation: t -*- again this should/will be in the documentation somewhere... That's not it (already tried before posting). That variable, when set, makes Org removes the minimum common number of whitespaces. That does not fix the problem of useless whitespaces in blank lines, and has no impact on the indentation of tangled blocks: I misunderstood your indentation issue earlier. Currently I don't think we support indentation to the level of the noweb reference in the original source-code block. At first glance that does however seem to be a better default behavior. I'll look into this. As a work-around you may want to try the attached version of your file [...] which results in this following sql file [...] It indeed could be some sort of workaround. Though, the first line remains badly placed according to all the other lines of the source block... So, the only solution would be to indent the inserted block by the number of spaces in front of the `code here' sequence. Will be interested having that fixed, even if that's (only) medium priority. Best regards, Seb PS- Did you take a look at the comparison I made between Org and Nuweb (with the results in PDF)? -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Feature request: org-export-format-source-code-or-example and srcname
Hi Carsten and Nicolas, (BTW, Nicolas, excellent modifications made to the agenda look feel!) Carsten Dominik wrote: when using the listings LaTeX package, it would be very useful if the value of srcname was added to the output. For instance, #+srcname: my_code_chunk #+begin_src latex :results latex :exports code :tangle no \usepackage{fontspec,xunicode,xltxtra} #+end_src would give: \lstset{language=TeX}[caption={my\_code\_chunk}] \begin{lstlisting} \usepackage{fontspec,xunicode,xltxtra} \end{lstlisting} (note the added [caption={my\_code\_chunk}]) Is there anyone besides Nicolas what would like to see the source name in the exported listing? Yes! This is not only desired, but -- for me -- completely required: without it, you simply can't do real literate programming documentation... An example of how it would be nice to be (using NoWeb): http://www.mygooglest.com/sva/ecm-noweb.pdf See my (unanswered) thread of 2009-12-04 at 12:13: [babel] Org-babel vs NoWeb (and the like). Is that something that should be done in org-babel, or in the normal export stuff? I would answer Org-babel, but if there is one thing I'm sure of, is that I don't understand all the implications of my answer. So, take it with low consideration. Best regards, Seb -- Sébastien Vauban ___ 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] feature-request: colorize diary entries in agenda
Hi, should be great to be able to colorize diary entries in agenda. I didn't find customisation for that apart modifying: , | (defun org-get-entries-from-diary (date) | Get the (Emacs Calendar) diary entries for DATE. | | [...] | | (org-add-props x (text-properties-at (1- (length x)) x) |'type diary 'date date 'face 'tv-org-diary)) |entries) ` Did i miss something? -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France ___ 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] problem with export of verbatim code
At Thu, 17 Dec 2009 00:17:22 +0100, Carsten Dominik wrote: Hi Eric, thanks for the bug report, this is now fixed. - Carsten On Dec 2, 2009, at 10:38 AM, Eric S Fraga wrote: Hello, the attached files illustrate a bug in the export of verbatim code to LaTeX that replaces a sequence of [[x]] with [[section-label][x]]. Actually, this happens when exporting to html as well so it may be a generic problem. Thanks Carsten! Much appreciated. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Bug: Emacs opens a new instance for each file in agenda list on org-mobile-push
Hi All, can I bump this please? I've tried everything I can to resolve this with no luck at all. Thank you, Steve On 19/11/2009 11:29, Steve Brown wrote: Good morning Charles, here's the bug reported as promised. I run Emacs from a pendrive on a Windows XP Pro box. My site-start.el contains the following to map home todrive letter:home on Emacs start. The first line has no line break after the defvar so there are only two lines of code. Otherwise the Emacs is 'vanilla' - I use it for writing and not coding so I try to keep things simple ;-) If you need anything else please let me know. Thank you, Steve = site-start.el === (defvar usb-drive-letter (substring data-directory 0 3)) (defvar usb-home-dir (concat usb-drive-letter home/)) (setenv HOME usb-home-dir) = site-start.el === === Bug Report Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. On executing org-mobile-push Emacs opens one frame per file listed in the agenda file list. I have deleted refences to specific files and replaced them with DELETED, all punctuation etc. will remain 'as is'. I will also follow this with my full .emacs suitably edited for personal information. Emacs : GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on BREPNB Package: Org-mode version 6.33c current state: == (setq org-log-done 'time org-agenda-files '(~/Orgfiles/DELETED.org ~/Orgfiles/work.org ~/Orgfiles/DELETED.org ~/Orgfiles/trial.org ~/Orgfiles/busdev.org ~/Orgfiles/home.org ~/Orgfiles/main.org ~/Orgfiles/DELETED.org) org-agenda-include-diary t org-export-with-sub-superscripts nil org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-todo-keywords '((sequence TODO STARTED WAITING | DONE DELEGATED) ) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-default-notes-file ~/.notes.org org-directory ~/Orgfiles/ org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] ) org-confirm-elisp-link-function 'yes-or-no-p org-occur-hook '(org-first-headline-recenter) ) === Bug Report === .emacs (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(appt-display-duration 59) '(appt-display-format (quote window)) '(diary-mail-addr ) '(display-battery-mode t) '(display-time-mode t) '(emacsw32-max-frames t) '(org-agenda-files (quote (~/Orgfiles/DELETED.org ~/Orgfiles/work.org ~/Orgfiles/DELETED.org ~/Orgfiles/trial.org ~/Orgfiles/busdev.org ~/Orgfiles/home.org ~/Orgfiles/main.org ~/Orgfiles/DELETED.org))) '(org-mobile-directory ~/stage) '(org-mobile-inbox-for-pull ~/Orgfiles/mobileinbox.org) '(show-paren-mode t) '(text-mode-hook (quote (turn-on-auto-fill text-mode-hook-identify))) '(view-diary-entries-initially t)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) ;; emacs start up file (setq inhibit-splash-screen t) (setq make-backup-files nil) (setq auto-save-mode nil) ;; diary customisation (add-hook 'diary-display-hook 'fancy-diary-display) (add-hook 'list-diary-entries-hook 'sort-diary-entries t) (setq european-calendar-style t) ;;; show date in status bar (setq display-time-day-and-date t display-time-24hr-format t) (display-time) (appt-activate 1) (setq appt-display-mode-line t) (setq appt-display-format 'window) ;; Org Mode (setq load-path (cons ~/org/lisp load-path)) (setq load-path (cons ~/org/contrib/lisp load-path)) (require 'org-install) (global-set-key \C-cl
Re: [Orgmode] Re: [LaTeX-Export] Longtable and Caption
Applied, thanks. - Carsten On Dec 17, 2009, at 8:59 AM, Ulf Stegemann wrote: Hi Carsten, Carsten Dominik carsten.domi...@gmail.com wrote: On Dec 3, 2009, at 4:22 PM, Ulf Stegemann wrote: Carsten Dominik carsten.domi...@gmail.com wrote: it was my understanding that the caption command in longtable is different from the caption command in normal tables, in that it is a line that is printed over the table on each page - so I thought it always needs to be there. Is that not correct? yes, treatment is different but nevertheless the caption is not mandatory for longtable. I never had any problems with longtable tables without \caption{}. sorry for being so slow to process this request. I believe this works now as you requested, please verify. thanks for having a look at it (no need to apologise for the delay, it's certainly not an urgent matter). Captions are now suppressed for longtables without caption definition. However, I've noticed that the extra linebreak (\\) is still inserted in longtable environments regardless of the presence of a caption. That linebreak leads to undesired effects when using longtable without a caption but with vertical lines. This should fix it: --- org-latex.el.orig 2009-12-17 08:10:19.0 +0100 +++ org-latex.el2009-12-17 08:49:02.0 +0100 @@ -1538,7 +1538,7 @@ \\caption{%s%s} (if label (concat \\\label{ label }) ) (or caption ))) -(if longtblp \n \n) +(if (and longtblp caption) \n \n) (if (and org-export-latex-tables-centered (not longtblp)) \\begin{center}\n) (if (not longtblp) (concat \\begin{tabular} { align }\n)) Ulf ___ 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 - Carsten ___ 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] change default pdf reader for link
I am on a Ubuntu box. When I link to a pdf file on my computer, it opens in Xpdf. I would like pdf files to open in Document Viewer. How can I change the default viewer for pdf links from Xpdf to Document Viewer? I have read the Org-Mode manual and googled for an answer but the answer remains elusive - that, or I cannot read very well. Thank you. Shawn ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Shift keys when you have multiple todo sets in one file
Mueen Nawaz mu...@nawaz.org writes: From the docs: S-left and S-right and walk through all keywords from all sets What I would /really/ like is for S-left and S-right to _stay_ within the same set, with me using C-S-left (or right) to _switch_ to another set. What I have (so far) on the top of the file is: #+TODO: TODO | DONE #+TODO: WAITING | DONE The reason I kept it as separate sets is that I anticipate WAITING to be infrequent compared to TODO. So I don't want to put TODO and WAITING in the same set. I think there's another (more standard) way of setting the TODO state (I forget the shortcut), but for me the S-Left/Right is really, really convenient. I understand that you prefer S-left/right. However, I believe cycling with C-c C-t will stay within the same set. (I proofread that keybinding couple of times.) :) As an aside, I've found that it's very fast to use the new speed commands to change todo states. If org-use-speed-commands is turned on, all one needs to do is hit t at the start of a headline. And incidentally, the S-Left/Right doesn't seem to do as advertised. It jumps from one set to the other only once (haven't tested with 3 sets). I believe the presence of duplicate DONEs above is interfering with the cycling from state to state. If I get rid of the second DONE or change it to a different state, the cycling from set to set works as expected, TODO -- DONE -- WAITING -- nil -- TODO. E.g. #+TODO: TODO | DONE #+TODO: WAITING Best, Matt ___ 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: FR: org-remember shortcut to customize-option org-remember-templates
On Wed, Dec 16, 2009 at 05:33:44PM +0100, Tassilo Horn wrote: Adam Spiers orgm...@adamspiers.org writes: I really like the way `M-x org-agenda C' takes you straight to the *Customize Option: Org Agenda Custom Commands* buffer. Similarly, it would be nice if `M-x org-remember C' took you straight to the *Customize Option: Org Remember Templates* buffer. But what if I have a org-remember-template assigned to the ?C character? I addressed that in the sentence you chopped from the end of your quote :-) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: change default pdf reader for link
Shawn Koons srko...@gmail.com writes: I am on a Ubuntu box. When I link to a pdf file on my computer, it opens in Xpdf. I would like pdf files to open in Document Viewer. How can I change the default viewer for pdf links from Xpdf to Document Viewer? Org uses system defaults for following hyperlinks. Thus, you should be able to change the default by adding the following line to your ~/.mailcap file: application/pdf; /usr/bin/evince %s If you'd prefer not to tinker with system-wide settings, you can specify evince just for org links by customizing the variable org-file-apps. Simply type M-x customize-variable [RET] org-file-apps [RET] Best, Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Org Entities (was: Add \EUR to `org-html-entities')
Hi Ulf, feel free to send me a modified version of the definitions of org-html-entities which contains an ASCII element as the third element of a list. I would then use this element for ASCII export. - Carsten On Dec 17, 2009, at 10:04 AM, Ulf Stegemann wrote: Hi Carsten, Carsten Dominik carsten.domi...@gmail.com wrote: I have added your symbols. thanks, works great. I was wondering if there's a more general problem lurking behind this (thus the change of subject): the problem of encoding entities in org for various export formats, namely HTML, LaTeX, plain ASCII text (and maybe plain unicode text). As an example, let's assume we have an org file that should eventually be available as HTML, PDF and plain text. Let's assume further, that for whatever reasons (e.g. ugly double quotes in the needed font) the document should use French quoting. Ideally `\SomeMagicOrgEncoding{}Quote\AnotherMagicOrgEncoding{}' in the org file would export to HTML - laquo;Quoteraquo; LaTeX - \flqq{}Quote\frqq{} ASCII - Quote (Unicode- «Quote») Resorting to `org-html-entities' we could use --8--snip--8--- #+LATEX_HEADER: \newcommand{\laquo}{\flqq} \newcommand{\raquo}{\frqq} [...] \laquo{}Quote\raquo{} --8--snap--8--- to get the HTML and LaTeX output right but this leaves us with `\laquo{}' in ASCII export and is generally a rather cumbersome approach. Maybe there's a simpler solution to address this but I haven't come across it, yet (Note that `Use unicode!' isn't an option sometimes.). Quoting is just one example that strikes my quite often, but the same applies for all sorts of special characters; think of arrows, accented characters etc. This is certainly not a very pressing issue but it might be worth thinking about how to handle this. What do you think? Ulf ___ 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 - Carsten ___ 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] Average of best- and worst-case time estimates
Dear, Org-mode gurus. Please see my attached example file. I wonder if it is easily possible to calculate the average of two time formatted (hh:mm) columns. Do you know how I can express that with the :COLUMNS: attribute? If that is not possible, do you know how to express that as a #+TBLFM: specification? Any help is appreciated. -- Sincerely yours, Martin Thorsen Ranang ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Average of best- and worst-case time estimates
And, of course I had to forget the attachment: estimate-example.org Description: Binary data On to., des. 17 2009, Martin Thorsen Ranang wrote: Dear, Org-mode gurus. Please see my attached example file. I wonder if it is easily possible to calculate the average of two time formatted (hh:mm) columns. Do you know how I can express that with the :COLUMNS: attribute? If that is not possible, do you know how to express that as a #+TBLFM: specification? Any help is appreciated. -- Vennlig hilsen, Martin Thorsen Ranang ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [babel] Tiny problems
Hi Eric, Sébastien Vauban wrote: Eric Schulte wrote: [...] Currently I don't think we support indentation to the level of the noweb reference in the original source-code block. At first glance that does however seem to be a better default behavior. I'll look into this. [...] So, the only solution would be to indent the inserted block by the number of spaces in front of the `code here' sequence. Will be interested having that fixed, even if that's (only) medium priority. In fact, a better specification is: copy whatever (any character) is in front of `code here' in front of every line of the referenced block (same amount of characters, be it spaces or something else). That way, a commented SQL source block like the following would be correctly outputted: --8---cut here---start-8--- -- -- set flag -- UPDATE dossier -- SET DossierSentToSector = @now -- WHERE ID -- IN (SELECT actID_fk -- FROM actions -- WHERE (actID = 338 AND actEtat = 3)) -- AND F1SignDate @firstDayOfThisMonth -- AND DossierSentToSector IS NULL -- AND -- ConditionForSector --8---cut here---end---8--- Currently, the first line of the condition block is commented, the others not, resulting in incorrect code being tangled. With the above spec, I guess all cases are covered. What do you think? Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Org Entities
Hi Carsten, Carsten Dominik carsten.domi...@gmail.com wrote: feel free to send me a modified version of the definitions of org-html-entities which contains an ASCII element as the third element of a list. I would then use this element for ASCII export. okay, great! I will work on that as soon as I have a little bit of spare time. Stay tuned. Ulf ___ 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: [babel] Tiny problems
Hi Sébastien, Sébastien Vauban wxhgmqzgw...@spammotel.com writes: [...] In fact, a better specification is: copy whatever (any character) is in front of `code here' in front of every line of the referenced block (same amount of characters, be it spaces or something else). That way, a commented SQL source block like the following would be correctly outputted: -- -- set flag -- UPDATE dossier -- SET DossierSentToSector = @now -- WHERE ID -- IN (SELECT actID_fk -- FROM actions -- WHERE (actID = 338 AND actEtat = 3)) -- AND F1SignDate @firstDayOfThisMonth -- AND DossierSentToSector IS NULL -- AND -- ConditionForSector Currently, the first line of the condition block is commented, the others not, resulting in incorrect code being tangled. With the above spec, I guess all cases are covered. What do you think? I like it a lot, I'll add this to the TODO. Thanks -- Eric Best regards, Seb ___ 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: [babel] Tiny problems
I just pushed up a commit which should implement your idea mentioned below. Please try it out and let me know if it doesn't work as expected. Best -- Eric Eric Schulte schulte.e...@gmail.com writes: Hi Sébastien, Sébastien Vauban wxhgmqzgw...@spammotel.com writes: [...] In fact, a better specification is: copy whatever (any character) is in front of `code here' in front of every line of the referenced block (same amount of characters, be it spaces or something else). That way, a commented SQL source block like the following would be correctly outputted: -- -- set flag -- UPDATE dossier -- SET DossierSentToSector = @now -- WHERE ID -- IN (SELECT actID_fk -- FROM actions -- WHERE (actID = 338 AND actEtat = 3)) -- AND F1SignDate @firstDayOfThisMonth -- AND DossierSentToSector IS NULL -- AND -- ConditionForSector Currently, the first line of the condition block is commented, the others not, resulting in incorrect code being tangled. With the above spec, I guess all cases are covered. What do you think? I like it a lot, I'll add this to the TODO. Thanks -- Eric Best regards, Seb ___ 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] [babel] Idiomatic handling of quotes
Aloha all, In the example below, note that the R representation of the directory listing escapes the quotes in the original and encloses it all in a second set of quotes, e.g. \theta-1.csv\. This must come up a lot. Is there an idiomatic way to change \theta-1.csv\ to theta-1.csv so that it could be assigned to x and the following statement would yield a valid path? afile - paste(r/,x,sep=) I'm aware the answer might be R code, but it is to tightly tied to org- babel I figure it makes sense to ask the question here. All the best, Tom --- Example --- *** Dated events #+srcname: thetas() #+begin_src shell cd r ls theta* #+end_src #+results: thetas | theta-1.csv | | theta-2.csv | ... #+srcname: test-list(x = thetas) #+begin_src R :session str(x) x #+end_src #+results: test-list | theta-1.csv | | theta-2.csv | ... tdye str(x) 'data.frame': 8 obs. of 1 variable: $ V1: chr \theta-1.csv\ \theta-2.csv\ \theta-3.csv\ \theta-4.csv\ ... Thomas S. Dye, Ph.D. T. S. Dye Colleagues, Archaeologists, Inc. Phone: (808) 529-0866 Fax: (808) 529-0884 http://www.tsdye.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
[Orgmode] Bug: Problems with missing newline on last line of narrowd subtree [6.33trans (release_6.33f.129.g904a)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. If you narrow the buffer to a subtree, insert some content and widen again the content below the subtree moves into the subtree if there was no newline on the last line of the narrowed subtree. example.org , | * Headline 1 | | * Headline 2 ` Narrow the buffer to Headline 1, entere some text and remove all empty lines below the entered text. example.org (narrowd) , | * Headline 1 | Hello World! ` example.org (widened again) , | * Headline 1 | Hello World!* Headline 2 ` I do know that this behaviour makes absolutely sense as removing the newlines in the narrowed subtree equals to removing the newlines in the whole buffer. But as you can imagine this behaviour can be disastrous in Orgmode: I stumpled upon this just because I remembered to have a todo item on my list but Orgmode didn't know about it -- it was sucked into another item. Maybe Orgmode should use a function `org-widen' that ensures a newline at the end of a narrowed buffer before calling the Emacs' `widen'. Regards, -- David Emacs : GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-11-28 on elegiac, modified by Debian Package: Org-mode version 6.33trans (release_6.33f.129.g904a) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Emacs opens a new instance for each file in agenda list on org-mobile-push
Hi Steve, I have no idea why this might be happening. I know that AquaEmacs on the Mac has a default setting that will visit any new files in a new frame - maybe you Windows Emacs has a similar setting. But I don't know how to help you find it. - Carsten On Dec 17, 2009, at 11:14 AM, Steve Brown wrote: Hi All, can I bump this please? I've tried everything I can to resolve this with no luck at all. Thank you, Steve On 19/11/2009 11:29, Steve Brown wrote: Good morning Charles, here's the bug reported as promised. I run Emacs from a pendrive on a Windows XP Pro box. My site-start.el contains the following to map home todrive letter:home on Emacs start. The first line has no line break after the defvar so there are only two lines of code. Otherwise the Emacs is 'vanilla' - I use it for writing and not coding so I try to keep things simple ;-) If you need anything else please let me know. Thank you, Steve = site-start.el === (defvar usb-drive-letter (substring data-directory 0 3)) (defvar usb-home-dir (concat usb-drive-letter home/)) (setenv HOME usb-home-dir) = site-start.el === === Bug Report Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. On executing org-mobile-push Emacs opens one frame per file listed in the agenda file list. I have deleted refences to specific files and replaced them with DELETED, all punctuation etc. will remain 'as is'. I will also follow this with my full .emacs suitably edited for personal information. Emacs : GNU Emacs 23.1.50.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on BREPNB Package: Org-mode version 6.33c current state: == (setq org-log-done 'time org-agenda-files '(~/Orgfiles/DELETED.org ~/Orgfiles/work.org ~/Orgfiles/DELETED.org ~/Orgfiles/trial.org ~/Orgfiles/busdev.org ~/Orgfiles/home.org ~/Orgfiles/main.org ~/Orgfiles/DELETED.org) org-agenda-include-diary t org-export-with-sub-superscripts nil org-after-todo-state-change-hook '(org-clock-out-if-current) org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-todo-keywords '((sequence TODO STARTED WAITING | DONE DELEGATED) ) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-default-notes-file ~/.notes.org org-directory ~/Orgfiles/ org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-mode-hook '(#[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] ) org-confirm-elisp-link-function 'yes-or-no-p org-occur-hook '(org-first-headline-recenter) ) === Bug Report === .emacs (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(appt-display-duration 59) '(appt-display-format (quote window)) '(diary-mail-addr ) '(display-battery-mode t) '(display-time-mode t) '(emacsw32-max-frames t) '(org-agenda-files (quote (~/Orgfiles/DELETED.org ~/Orgfiles/work.org ~/Orgfiles/DELETED.org ~/Orgfiles/trial.org ~/Orgfiles/busdev.org ~/Orgfiles/home.org ~/Orgfiles/main.org ~/Orgfiles/DELETED.org))) '(org-mobile-directory ~/stage) '(org-mobile-inbox-for-pull ~/Orgfiles/mobileinbox.org) '(show-paren-mode t) '(text-mode-hook (quote (turn-on-auto-fill text-mode-hook- identify))) '(view-diary-entries-initially t)) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) ;; emacs start up file (setq inhibit-splash-screen t) (setq make-backup-files nil) (setq auto-save-mode nil) ;; diary customisation (add-hook 'diary-display-hook 'fancy-diary-display) (add-hook 'list-diary-entries-hook 'sort-diary-entries t) (setq european-calendar-style t) ;;; show date in status bar (setq display-time-day-and-date t
Re: [Orgmode] feature-request: colorize diary entries in agenda
On Dec 17, 2009, at 10:25 AM, Thierry Volpiatto wrote: Hi, should be great to be able to colorize diary entries in agenda. I didn't find customisation for that apart modifying: , | (defun org-get-entries-from-diary (date) | Get the (Emacs Calendar) diary entries for DATE. | | [...] | | (org-add-props x (text-properties-at (1- (length x)) x) |'type diary 'date date 'face 'tv-org-diary)) |entries) ` Did i miss something? Hmm, maybe that is overwritten later by Org? Quite possible. But you code *looks* ok. I will work better if you put a function into org-finalize-agenda-hook that will search for entries with the right category and add the face then. - Carsten ___ 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: Question about searches (ultimately for agenda)
On Dec 17, 2009, at 5:53 AM, Mueen Nawaz wrote: On 12/16/09 03:37, Carsten Dominik wrote: This is what skip conditions are for. Here is an entry for org-agenda-custom-commands which does this for the specific Jack example: (X Tags match ignoring done stuff tags Jack ((org-agenda-skip-function '(and (org-entry-is-done-p) (outline-next-heading) (point) Almost. It worked if I exclude (outline-next-heading). Was there a reason you had that? Yes, so that the search only continues after that entry. But yes, you are right, this can fail for the final entry in a file. Try '(when (org-entry-is-done) (outline-next-heading) (point)) Also, I'm pretty weak with Emacs Lisp. What does (point) do? Google's no help (obviously). Point returns the buffer position of he cursor, in this case the position where the next entry starts. HTH - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: Incorrect escaping of braces on LaTeX export [6.33trans (release_6.33f.122.g7062a.dirty)]
Hi Mark, what is the error you are getting? - Carsten On Dec 17, 2009, at 1:05 AM, Mark Elston wrote: Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. While attempting to generate some notes for a class I give I ran into an error in the generated latex file. I use memoir for my notes since this package gives me the particular formatting I like without any hassle so I created an org-export-latex-class to make use of it. Since my boilerplate for my notes includes a number of lines after the \begin{document} line I have added these to #+TEXT entries in the org file. I use the memoir titlingpage facility as it gives me the control and look I want without a lot of code. However, this causes a problem with org export since the \maketitle line must be inside a titlingpage environment. To accomplish this I have set the #+TITLE: directive to an empty value and put the entire titlingpage environment (3 lines) in #+TEXT lines. I have included a simple ErrorSample latex class in my configuration which demonstrates the problem without as much being generated. A sample org file looks like this: --- #+TITLE: #+OPTIONS: toc:nil #+LaTeX_CLASS: ErrorSample #+TEXT: \title{ABC Class Notes} #+TEXT: \begin{titlingpage} #+TEXT: \maketitle #+TEXT: \end{titlingpage} #+TEXT: \maxtocdepth{subsection} #+TEXT: \pagenumbering{roman} #+TEXT: \cleartooddpage #+TEXT: \tableofcontents #+TEXT: \cleartooddpage #+TEXT: \chapterstyle{companion} #+TEXT: \pagestyle{companion} #+TEXT: \aliaspagestyle{part}{companion} #+TEXT: \aliaspagestyle{chapter}{headings} #+TEXT: \aliaspagestyle{cleared}{companion} #+TEXT: \include{Preface} #+TEXT: \pagenumbering{arabic} * Simple First Heading Some text. * Simple Second Heading Other text. --- The generated tex file is shown next. Notice the escaped closing brace on the \title{} instruction: --- % Created 2009-12-16 Wed 15:54 \documentclass[letter,twoside,openright]{memoir} \usepackage{varioref} \usepackage{shorttoc} \usepackage{color} \usepackage{graphicx} \usepackage{bbding} \setlength{\parindent}{0pt} \setlength{\parskip}{1ex} \title{} \author{Mark Elston} \date{16 December 2009} \begin{document} \title{ABC Class Notes\} \begin{titlingpage} \maketitle \end{titlingpage} \maxtocdepth{subsection} \pagenumbering{roman} \cleartooddpage \tableofcontents \cleartooddpage \chapterstyle{companion} \pagestyle{companion} \aliaspagestyle{part}{companion} \aliaspagestyle{chapter}{headings} \aliaspagestyle{cleared}{companion} \include{Preface} \pagenumbering{arabic} \chapter{Simple First Heading} \label{sec-1} Some text. \chapter{Simple Second Heading} \label{sec-2} Other text. \end{document} --- Emacs : GNU Emacs 23.1.1 (i386-mingw-nt6.0.6002) of 2009-07-29 on SOFT-MJASON Package: Org-mode version 6.33trans (release_6.33f.122.g7062a.dirty) current state: == (setq org-log-done 'time org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- vars) org-agenda-custom-commands '((S Schedule for the week ((agenda ) (todo TODO org-agenda-files '(~/org) org-agenda-include-diary t org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent org-block-todo-from-checkboxes) org-list-demote-modify-bullet '((- . +) (+ . -)) org-fontify-whole-heading-line t org-metaup-hook '(org-babel-load-in-session-maybe) org-agenda-skip-timestamp-if-done t org-after-todo-state-change-hook '(org-clock-out-if-current) org-babel-interpreters '(R asymptote dot ditaa python sh emacs-lisp) org-export-latex-format-toc-function 'org-export-latex-format-toc- default org-protocol-protocol-alist '((Fireforg get bibtex entry: fireforg- bibtex-entry://bibtex entry (encoded) :protocol fireforg-bibtex- entry :function org-fireforg-receive-bibtex-entry) (Fireforg show annotation: fireforg- show-annotation://file (encoded)/header (encoded) :protocol fireforg-show-annotation :function org-fireforg-show-annotation) ) org-agenda-skip-scheduled-if-done t org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(yas/org-very-safe-expand org-babel-hide-result- toggle-maybe org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-before-write-hook
Re: [Orgmode] Bug: Incorrect escaping of braces on LaTeX export [6.33trans (release_6.33f.122.g7062a.dirty)]
Carsten, Notice the title line in the generated latex code. It looks like: \title{ABC Class Notes\} ^^ The closing brace is escaped. Mark Carsten Dominik wrote: Hi Mark, what is the error you are getting? - Carsten On Dec 17, 2009, at 1:05 AM, Mark Elston wrote: Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. While attempting to generate some notes for a class I give I ran into an error in the generated latex file. I use memoir for my notes since this package gives me the particular formatting I like without any hassle so I created an org-export-latex-class to make use of it. Since my boilerplate for my notes includes a number of lines after the \begin{document} line I have added these to #+TEXT entries in the org file. I use the memoir titlingpage facility as it gives me the control and look I want without a lot of code. However, this causes a problem with org export since the \maketitle line must be inside a titlingpage environment. To accomplish this I have set the #+TITLE: directive to an empty value and put the entire titlingpage environment (3 lines) in #+TEXT lines. I have included a simple ErrorSample latex class in my configuration which demonstrates the problem without as much being generated. A sample org file looks like this: --- #+TITLE: #+OPTIONS: toc:nil #+LaTeX_CLASS: ErrorSample #+TEXT: \title{ABC Class Notes} #+TEXT: \begin{titlingpage} #+TEXT: \maketitle #+TEXT: \end{titlingpage} #+TEXT: \maxtocdepth{subsection} #+TEXT: \pagenumbering{roman} #+TEXT: \cleartooddpage #+TEXT: \tableofcontents #+TEXT: \cleartooddpage #+TEXT: \chapterstyle{companion} #+TEXT: \pagestyle{companion} #+TEXT: \aliaspagestyle{part}{companion} #+TEXT: \aliaspagestyle{chapter}{headings} #+TEXT: \aliaspagestyle{cleared}{companion} #+TEXT: \include{Preface} #+TEXT: \pagenumbering{arabic} * Simple First Heading Some text. * Simple Second Heading Other text. --- The generated tex file is shown next. Notice the escaped closing brace on the \title{} instruction: --- % Created 2009-12-16 Wed 15:54 \documentclass[letter,twoside,openright]{memoir} \usepackage{varioref} \usepackage{shorttoc} \usepackage{color} \usepackage{graphicx} \usepackage{bbding} \setlength{\parindent}{0pt} \setlength{\parskip}{1ex} \title{} \author{Mark Elston} \date{16 December 2009} \begin{document} \title{ABC Class Notes\} \begin{titlingpage} \maketitle \end{titlingpage} \maxtocdepth{subsection} \pagenumbering{roman} \cleartooddpage \tableofcontents \cleartooddpage \chapterstyle{companion} \pagestyle{companion} \aliaspagestyle{part}{companion} \aliaspagestyle{chapter}{headings} \aliaspagestyle{cleared}{companion} \include{Preface} \pagenumbering{arabic} \chapter{Simple First Heading} \label{sec-1} Some text. \chapter{Simple Second Heading} \label{sec-2} Other text. \end{document} --- Emacs : GNU Emacs 23.1.1 (i386-mingw-nt6.0.6002) of 2009-07-29 on SOFT-MJASON Package: Org-mode version 6.33trans (release_6.33f.122.g7062a.dirty) current state: == (setq org-log-done 'time org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-agenda-custom-commands '((S Schedule for the week ((agenda ) (todo TODO org-agenda-files '(~/org) org-agenda-include-diary t org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent org-block-todo-from-checkboxes) org-list-demote-modify-bullet '((- . +) (+ . -)) org-fontify-whole-heading-line t org-metaup-hook '(org-babel-load-in-session-maybe) org-agenda-skip-timestamp-if-done t org-after-todo-state-change-hook '(org-clock-out-if-current) org-babel-interpreters '(R asymptote dot ditaa python sh emacs-lisp) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-protocol-protocol-alist '((Fireforg get bibtex entry: fireforg-bibtex-entry://bibtex entry (encoded) :protocol fireforg-bibtex-entry :function org-fireforg-receive-bibtex-entry) (Fireforg show annotation: fireforg-show-annotation://file (encoded)/header (encoded) :protocol fireforg-show-annotation :function org-fireforg-show-annotation) ) org-agenda-skip-scheduled-if-done t org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(yas/org-very-safe-expand org-babel-hide-result-toggle-maybe org-hide-block-toggle-maybe) org-src-mode-hook