Re: [O] Opening an Org file slowed down
Achim Gratz strom...@nexgo.de writes: I've had a brief look at this. It seems that some of the differences are due to elp instrumenting a much larger range of functions when org-mode has already initialized vs. when only org-version had been called. Once that is out of the equation, there isn't any difference to speak of. I can confirm that is the same for me. So the difference was just elp doing its work on a larger codebase ? Great. -- Nico.
[O] Bug: LaTeX block above first heading ignored by latex exporter [8.2.3c (release_8.2.3c-308-gc811bb @ /home/rob/sw/org-mode/lisp/)]
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. I have a simple orgmode document that has a #+BEGIN_LATEX .. #+END_LATEX block before the first heading Introduction. When this heading is not exported, i.e. there are no headings, then the LaTeX block is properly exported. When this heading is exported, the LaTeX block is omitted from the exported document. DOCUMENT: #+LaTeX_CLASS: article #+TITLE: My Title #+AUTHOR: Joe Bloggs #+OPTIONS: H:5 #+BEGIN_LATEX \begin{abstract} This is my abstract. \end{abstract} #+END_LATEX #+TOC: headlines 2 * Introduction :export: Hello. EXPECTED: \documentclass[11pt]{article} \author{Joe Bloggs} \date{\today} \title{My Title} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 24.3.1 (Org mode 8.2.3c)}} \begin{document} \maketitle \tableofcontents \begin{abstract} This is my abstract. \end{abstract} \setcounter{tocdepth}{2} \tableofcontents \section{Introduction} \label{sec-1} Hello. % Emacs 24.3.1 (Org mode 8.2.3c) \end{document} ACTUAL: \documentclass[11pt]{article} \author{Joe Bloggs} \date{\today} \title{My Title} \hypersetup{ pdfkeywords={}, pdfsubject={}, pdfcreator={Emacs 24.3.1 (Org mode 8.2.3c)}} \begin{document} \maketitle \tableofcontents \section{Introduction} \label{sec-1} Hello. % Emacs 24.3.1 (Org mode 8.2.3c) \end{document} Emacs : GNU Emacs 24.3.1 (i686-redhat-linux-gnu, GTK+ Version 3.8.2) of 2013-08-14 on buildvm-06.phx2.fedoraproject.org Package: Org-mode version 8.2.3c (release_8.2.3c-308-gc811bb @ /home/rob/sw/org-mode/lisp/) current state: == (setq org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-latex-format-headline-function 'org-latex-format-headline-default-function org-html-format-inlinetask-function 'ignore org-export-with-drawers nil org-export-copy-to-kill-ring t org-export-date-timestamp-format %Y-%m-%d org-export-with-tags 'not-in-toc org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-babel-pre-tangle-hook '(save-buffer) org-occur-hook '(org-first-headline-recenter) org-export-latex-after-blockquotes-hook '(org-special-blocks-convert-latex-special-cookies) org-html-format-headline-function 'ignore org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-latex-classes '((phd \\documentclass{hwthesis} (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s})) (article \\documentclass[11pt]{article} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s})) (report \\documentclass[11pt]{report} (\\part{%s} . \\part*{%s}) (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})) (book \\documentclass[11pt]{book} (\\part{%s} . \\part*{%s}) (\\chapter{%s} . \\chapter*{%s}) (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s})) ) org-latex-format-drawer-function '(lambda (name contents) contents)
[O] freemind export bug
Hi, using the freemind exporter I got the error : org-freemind-export-to-freemind: Symbol's function definition is void: \, so I removed the , in this function. :org-export-to-file 'freemind ,file to :org-export-to-file 'freemind file Now it does work. Best Jan-Mark -- Jan-Mark Batke bad...@gmx.net FON +49 511 33 64 800 FAX +49 511 22 09 521
Re: [O] freemind export bug
Hello, Jan-Mark Batke bad...@gmx.net writes: Hi, using the freemind exporter I got the error : org-freemind-export-to-freemind: Symbol's function definition is void: \, so I removed the , in this function. :org-export-to-file 'freemind ,file to :org-export-to-file 'freemind file Now it does work. Fixed. Thank you. Regards, -- Nicolas Goaziou
Re: [O] Bug when cycling
Hello, Bastien b...@gnu.org writes: Bastien b...@gnu.org writes: with latest master and the file below, hitting TAB at the beginning of the headline will produce the attached backtrace. I just fixed this: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=c811bb Thank you. Regards, -- Nicolas Goaziou
Re: [O] Bug: LaTeX block above first heading ignored by latex exporter [8.2.3c (release_8.2.3c-308-gc811bb @ /home/rob/sw/org-mode/lisp/)]
Hello, Rob Stewart robstewar...@gmail.com writes: I have a simple orgmode document that has a #+BEGIN_LATEX .. #+END_LATEX block before the first heading Introduction. When this heading is not exported, i.e. there are no headings, then the LaTeX block is properly exported. When this heading is exported, the LaTeX block is omitted from the exported document. Thank you for your report. Unfortunately, I'm unable to reproduce the problem. Anyway, it sounds like you're using somehow the old export framework. Could you double check your installation and the function you're calling to export that buffer ? Regards, -- Nicolas Goaziou
Re: [O] Bug when cycling
Nicolas Goaziou n.goaz...@gmail.com writes: I just fixed this: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=c811bb Thank you. PS: This is a rather crude fix, don't hesitate to proofread the patch just in case. Thanks! -- Bastien
Re: [O] Bug when cycling
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Bastien b...@gnu.org writes: PS: This is a rather crude fix, don't hesitate to proofread the patch just in case. Thanks! Actually, I'm rather surprised this problem happens (I wasn't able to reproduce it FWIW). See the bug in action in this video: https://vimeo.com/80541405 In `org-cycle-hide-drawers, END is, at the bare minimum, the next headline. The error happens with the last line (goto-char (org-element-property :end drawer)) Though, according to Org syntax, a drawer cannot go past a headline (IOW it cannot contain the headline). Therefore, there's no reason for (org-element-property :end drawer) to be greater than END. I think END is just one char before the point when the (goto-char ...) expression above is evaluated. This patch may fix something, but I tend to think that the problem is elsewhere. Either the parser is wrong (but then, I would have been able to reproduce the bug), or there's a cache error. Assuming you remove your fix for a while, do you have a reproducible recipe from a fresh Org buffer available? Also, does it happen with `org-element-use-cache' set to nil? Yes -- with both nil and t the bug is there. Thanks for double-checking! -- Bastien
Re: [O] Bug when cycling
Nicolas Goaziou n.goaz...@gmail.com writes: Bastien b...@gnu.org writes: PS: This is a rather crude fix, don't hesitate to proofread the patch just in case. Thanks! Actually, I'm rather surprised this problem happens (I wasn't able to reproduce it FWIW). In `org-cycle-hide-drawers, END is, at the bare minimum, the next headline. The error happens with the last line (goto-char (org-element-property :end drawer)) Though, according to Org syntax, a drawer cannot go past a headline (IOW it cannot contain the headline). Therefore, there's no reason for (org-element-property :end drawer) to be greater than END. This patch may fix something, but I tend to think that the problem is elsewhere. Either the parser is wrong (but then, I would have been able to reproduce the bug), or there's a cache error. Assuming you remove your fix for a while, do you have a reproducible recipe from a fresh Org buffer available? Also, does it happen with `org-element-use-cache' set to nil? Nevermind. I mixed (org-end-of-subtree t) and (org-end-of-subtree t t). (org-element-property :end drawer) will always go past empty headlines at the end of the drawer, but `org-end-of-subtree' won't. Anyway the patch is correct, or we can use (org-end-of-subtree t t) instead of (max (point) end). The difference is negligible in practice. Regards, -- Nicolas Goaziou
Re: [O] Bug when cycling
Hello, Nicolas Goaziou n.goaz...@gmail.com writes: Anyway the patch is correct, or we can use (org-end-of-subtree t t) instead of (max (point) end). The difference is negligible in practice. Okay, thanks for confirming! -- Bastien
Re: [O] Bug: LaTeX block above first heading ignored by latex exporter [8.2.3c (release_8.2.3c-308-gc811bb @ /home/rob/sw/org-mode/lisp/)]
On 28 November 2013 10:49, Nicolas Goaziou n.goaz...@gmail.com wrote: Unfortunately, I'm unable to reproduce the problem. Anyway, it sounds like you're using somehow the old export framework. I'm not entirely sure how I do this. But here's a shot at it: org-version Org-mode version 8.2.1 (release_8.2.1-190-g228ea6 @ /home/rob/sw/org-mode/lisp/) list-load-path-shadows https://gist.github.com/robstewart57/7690515 Interestingly, org-export-as-latex does not work: org-export-as-latex: Symbol's value as variable is void: org-export-latex-default-packages-alist But org-latex-export-to-latex does work, generating the unexpected latex output. So there may be a problem with using an old exporter. But both the output of org-version and list-load-path-shadows would have me believe that my org-mode installation at ~/sw/org-mode is the presiding org-mode setup. This directory tracks HEAD, and is up to date. Regards, -- Rob
[O] LaTeX export with documentclass ltugboat
Hi, How can I export an org file to LaTeX with a document class of ltugboat? I've seen the example linked below but it doesn't appear to work in 8.2.1 and in fact states its for org 8.0. http://orgmode.org/worg/org-tutorials/org-latex-export.html Is this documented somewhere for versions 8.0? Any pointers would be appreciated. Thanks, Jason -- Jason Lewis http://emacstragic.net signature.asc Description: OpenPGP digital signature
Re: [O] LaTeX export with documentclass ltugboat
Hello Jason, On Thu, Nov 28, 2013 at 11:02:31PM +1100, Jason Lewis wrote: Hi, How can I export an org file to LaTeX with a document class of ltugboat? I've seen the example linked below but it doesn't appear to work in 8.2.1 and in fact states its for org 8.0. http://orgmode.org/worg/org-tutorials/org-latex-export.html Is this documented somewhere for versions 8.0? All exporter related community documentation for 8.0 can be found here: http://orgmode.org/worg/exporters/. Also the manual is upto date. Cheers, -- Suvayu Open source is the future. It sets us free.
Re: [O] LaTeX export with documentclass ltugboat
Jason, On 11/28/2013 7:02 AM, Jason Lewis wrote: Hi, How can I export an org file to LaTeX with a document class of ltugboat? I've seen the example linked below but it doesn't appear to work in 8.2.1 and in fact states its for org 8.0. http://orgmode.org/worg/org-tutorials/org-latex-export.html Is this documented somewhere for versions 8.0? Any pointers would be appreciated. Thanks, Jason I just started LaTeX export recently and referred to that page. I added (require 'ox-latex) to my .emacs and the custom classes example (as modified for my purposes) worked fine. Charlie Millar --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
[O] Filter for recursive counting (org-hierarchical-todo-statistics)
Dear community, My org-hierarchical-todo-statistics variable is set to nil in order to obtain a recursive count of my TODO items in subtrees. However, I would like to know if it is possible to filter this count to include only some TODO keywords. A real-life example : I use the TODO/DONE keywords for actions on which I can act directly, and the TOCOMPLETE/COMPLETED keywords for actions that will be instantly done when all their children are done (no direct action required). What I would like in that case is having a recursive count only for the TODO/DONE keywords, by not taking into account the TOCOMPLETE/COMPLETED keywords in the cookie. Thank you very much for your help, FC
Re: [O] Getting checkboxes in HTML output?
On Wed, Nov 27, 2013 at 01:20:59PM -0500, Peter Davis wrote: On Wed, Nov 27, 2013 at 11:03:38AM -0500, Nick Dokos wrote: Peter Davis p...@pfdstudio.com writes: I noticed that HTML output contains [ ] and [X], just like the mark-up. Wouldn't it make sense to use actual unchecked or checked checkboxes in HTML? Is there a simple way to do this that I've overlooked? A cursory glance through ox-html.el uncovered this: --8---cut here---start-8--- (defun org-html-checkbox (checkbox) Format CHECKBOX into HTML. (case checkbox (on code[X]/code) (off code[#xa0;]/code) (trans code[-]/code) (t ))) --8---cut here---end---8--- Maybe you can redefine this function to do what you want? Yes, this works: --8---cut here---start-8--- (defun org-html-checkbox (checkbox) Format CHECKBOX into HTML. (case checkbox (on input type=\checkbox\ checked /) (off input type=\checkbox\ /) (trans code[-]/code) (t ))) --8---cut here---end---8--- For xhtml compatibility, it would need to be 'checked=checked'. I've done a quick look at the html dtd, and i does look like input elements are allowed outside of forms, but i would need to double check... Also, the fallback to [-] for the partially checked state is a bit inconsistent, perhaps changing background color or other attributre of the checkbox would be better. I would be willing to make this change (as an option?) to the html exporter if others agree. rick
Re: [O] Getting checkboxes in HTML output?
On 11/28/13, 8:33 AM, Rick Frankel wrote: On Wed, Nov 27, 2013 at 01:20:59PM -0500, Peter Davis wrote: On Wed, Nov 27, 2013 at 11:03:38AM -0500, Nick Dokos wrote: Peter Davis p...@pfdstudio.com writes: I noticed that HTML output contains [ ] and [X], just like the mark-up. Wouldn't it make sense to use actual unchecked or checked checkboxes in HTML? Is there a simple way to do this that I've overlooked? A cursory glance through ox-html.el uncovered this: --8---cut here---start-8--- (defun org-html-checkbox (checkbox) Format CHECKBOX into HTML. (case checkbox (on code[X]/code) (off code[#xa0;]/code) (trans code[-]/code) (t ))) --8---cut here---end---8--- Maybe you can redefine this function to do what you want? Yes, this works: --8---cut here---start-8--- (defun org-html-checkbox (checkbox) Format CHECKBOX into HTML. (case checkbox (on input type=\checkbox\ checked /) (off input type=\checkbox\ /) (trans code[-]/code) (t ))) --8---cut here---end---8--- For xhtml compatibility, it would need to be 'checked=checked'. I've done a quick look at the html dtd, and i does look like input elements are allowed outside of forms, but i would need to double check... Also, the fallback to [-] for the partially checked state is a bit inconsistent, perhaps changing background color or other attributre of the checkbox would be better. I would be willing to make this change (as an option?) to the html exporter if others agree. Thanks, Rick. Adding a value for the checked attribute is no problem. I didn't have a good solution for the partially checked state. One possibility would be adding the 'disabled=disabled' attribute, which would make it appear gray. However, I've considered adding that attribute in all cases, since the HTML output is really for display and not input. I'd love to see this as an option in the main code, so I don't have to keep retrofitting it into succeeding versions. -pd -- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com
Re: [O] Getting checkboxes in HTML output?
fyi, this feature is heavily requested in Github for their markup project: https://github.com/github/markup/issues/208 So +1 on changing this behavior in Org mode markup itself, since there is already user demand which would validate this usage. On Thu, Nov 28, 2013 at 12:45 AM, Peter Davis p...@pfdstudio.com wrote: I noticed that HTML output contains [ ] and [X], just like the mark-up. Wouldn't it make sense to use actual unchecked or checked checkboxes in HTML? Is there a simple way to do this that I've overlooked? Thanks, -pd
Re: [O] Getting checkboxes in HTML output?
By the way TL;DR; from that Github thread: It seems that Markdown by default does not support read only checkboxes, and Github would not implement this behavior because they want to keep compatibility with other implementations of Markdown: https://github.com/github/markup/issues/208#issuecomment-24927799 I think that Org mode markup syntax is still in the stage where we can be liberal enough to change this kind of behavior which would be gladly received by many people (I hope!), specially since this would change only the HTML output. Some feedback on that thread on a feature like this: - +1 for readonly (checkboxes). It cannot be that hard... = https://github.com/github/markup/issues/208#issuecomment-27712872 - +1, i cannot live without checkboxes in readme! = https://github.com/github/markup/issues/208#issuecomment-27713464 - I'll die; Please add checkboxes = https://github.com/github/markup/issues/208#issuecomment-28001693 Cheers! - Waldemar On Thu, Nov 28, 2013 at 11:30 PM, Waldemar Quevedo waldemar.quev...@gmail.com wrote: fyi, this feature is heavily requested in Github for their markup project: https://github.com/github/markup/issues/208 So +1 on changing this behavior in Org mode markup itself, since there is already user demand which would validate this usage. On Thu, Nov 28, 2013 at 12:45 AM, Peter Davis p...@pfdstudio.com wrote: I noticed that HTML output contains [ ] and [X], just like the mark-up. Wouldn't it make sense to use actual unchecked or checked checkboxes in HTML? Is there a simple way to do this that I've overlooked? Thanks, -pd
[O] rmail: difficulty
Hi, Org people. In one of my Org files, I have: - rmail:~/ubity/Mail/admin Of course, ~/ubity/Mail/admin is an mbox format email folder. Whenever I mouse-click on it (or use C-c C-o), I get this error: Debugger entered--Lisp error: (wrong-type-argument arrayp nil) org-add-angle-brackets(nil) org-rmail-follow-link(#(~/ubity/Mail/admin 0 17 (wrap-prefix #( 0 4 (face org-indent)) line-prefix #( 0 2 (face org-indent)) keymap (keymap (down-mouse-3 . org-mouse-move-tree-start) (drag-mouse-3 . org-mouse-move-tree) (C-down-mouse-1 . org-mouse-move-tree-start) (C-drag-mouse-1 . org-mouse-move-tree) (follow-link . mouse-face) (mouse-3) (mouse-2 . org-open-at-mouse)) htmlize-link (:uri rmail:~/ubity/Mail/admin) face org-link mouse-face highlight org-category Ubity fontified t) 17 18 (wrap-prefix #( 0 4 (face org-indent)) line-prefix #( 0 2 (face org-indent)) rear-nonsticky (mouse-face highlight keymap invisible intangible help-echo org-linked-text htmlize-link) keymap (keymap (down-mouse-3 . org-mouse-move-tree-start) (drag-mouse-3 . org-mouse-move-tree) (C-down-mouse-1 . org-mouse-move-tree-start) (C-drag-mouse-1 . org-mouse-move-tree) (follow-link . mouse-face) (mouse-3) (mouse-2 . org-open-at-mouse)) htmlize-link (:uri rmail:~/ubity/Mail/admin) face org-link mouse-face highlight org-category Ubity fontified t)) nil) org-rmail-open(#(~/ubity/Mail/admin 0 17 (fontified t org-category Ubity mouse-face highlight face org-link htmlize-link (:uri rmail:~/ubity/Mail/admin) keymap (keymap (down-mouse-3 . org-mouse-move-tree-start) (drag-mouse-3 . org-mouse-move-tree) (C-down-mouse-1 . org-mouse-move-tree-start) (C-drag-mouse-1 . org-mouse-move-tree) (follow-link . mouse-face) (mouse-3) (mouse-2 . org-open-at-mouse)) line-prefix #( 0 2 (face org-indent)) wrap-prefix #( 0 4 (face org-indent))) 17 18 (fontified t org-category Ubity mouse-face highlight face org-link htmlize-link (:uri rmail:~/ubity/Mail/admin) keymap (keymap (down-mouse-3 . org-mouse-move-tree-start) (drag-mouse-3 . org-mouse-move-tree) (C-down-mouse-1 . org-mouse-move-tree-start) (C-drag-mouse-1 . org-mouse-move-tree) (follow-link . mouse-face) (mouse-3) (mouse-2 . org-open-at-mouse)) rear-nonsticky (mouse-face highlight keymap invisible intangible help-echo org-linked-text htmlize-link) line-prefix #( 0 2 (face org-indent)) wrap-prefix #( 0 4 (face org-indent) ad-Orig-org-open-at-point(nil nil) org-open-at-point() org-open-at-mouse((mouse-2 (#window 12 on Ubity.org 33203 (93 . 575) 15998773 nil 33203 (11 . 34) nil (5 . 14) (8 . 17 call-interactively(org-open-at-mouse nil nil) The problem seems to be related to the fact a #message-id is not given in the link, which is (happily!) allowed as per the Org manual. I also have two little suggestions in the same area. If message-id (in the #message-id suffix) has the form of a decimal number, maybe it could be taken as the message number to display? This is surely ill-designed and flaky, yet #1 would mean the first message. If a #message-id suffix is not given, there is no reason to prominently display a particular message, so org-rmail might use rmail-summary to show a summary of all messages. This seems the useful thing to do. François
Re: [O] Getting checkboxes in HTML output?
Hi Rick, Rick Frankel r...@rickster.com writes: I would be willing to make this change (as an option?) to the html exporter if others agree. FWIW I do agree this is a good change. -- Bastien
Re: [O] multiple agenda custom commands causes tag-filter-preset not to work?
Any ideas? On Wed, Nov 27, 2013 at 11:23 AM, Miro Bezjak bezjak.m...@gmail.com wrote: Forgot to mention. I'm using org-mode 8.2.2. Regards, Miro On Wed, Nov 27, 2013 at 11:23 AM, Miro Bezjak bezjak.m...@gmail.comwrote: Hi all, consider the following configuration: (setq org-agenda-custom-commands '((h home ((agenda ((org-agenda-span 'day) (org-agenda-tag-filter-preset '(-work (alltodo) It appears that `org-agenda-tag-filter-preset' does not work when I define multiple commands under one. The agenda is rendered as if filter was never set. On the other hand, if I remove `(alltodo)', thus defining only the agenda, then the filter works without problems. Any ideas? Regards, Miro
Re: [O] Getting checkboxes in HTML output?
On Thu, Nov 28, 2013 at 11:08 AM, Bastien b...@gnu.org wrote: Hi Rick, Rick Frankel r...@rickster.com writes: I would be willing to make this change (as an option?) to the html exporter if others agree. FWIW I do agree this is a good change. not that this opinion really matters, but I've been wanting this option for a while, e.g. for exporting hoping lists and the like. -- Bastien
[O] Babel support for the D language
emacs-orgmode@gnu.org * Hi all Org fans. I added support in Org-Babel for executing Digital Mars D code. This is derived from the code in ob-C.el, by Eric Schulte (thanks Eric). I release it under the same GPL license as Emacs and Org-mode. Comments and enhancements are welcome ! * Example. The following source block: #+begin_src D import std.stdio; void main() { foreach (i; 0..9) writefln (i= %4d, i); } #+end_src will result in: #+results: : i=0 : i=1 : i=2 : i=3 : i=4 : i=5 : i=6 : i=7 : i=8 * About Digital Mars D Language (http://dlang.org/) D is (imo) quite an interesting language: - C++ syntax - Built-in garbage collector - Strong type system - Meta-programming - Seamless assembler support - Usable as a scripting language - C binary compatibility - and much more. * Installation: - Install D be sure to have the rdmd compiler in the path - add ob-D.el in the lisp/org/ source tree - in the org.el file, find a line which says: (const :tag C C) add a similar line for D: (const :tag D D) - byte-compile the 2 modified *.el - customize the variable org-babel-load-languages enabling D - either through M-x customize-variable (you may need a restart of Emacs prior to customization) - or in your .emacs -8--(ob-D.el file to put in lisp/org/)---8 ;;; ob-D.el --- org-babel functions for the D language ;; Copyright (C) 2013 Thierry Banel ;; Author: Thierry Banel, derived from the Eric Schulte work ;; Keywords: literate programming, reproducible research ;; This file is NOT (yet) part of GNU Emacs. ;; ob-D.el is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or ;; (at your option) any later version. ;; ob-D.el is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; the GNU General Public License can be obtained here: ;; http://www.gnu.org/licenses/. ;;; Commentary: ;; Org-Babel support for evaluating Digital Mars D Language code. ;; The D language home page is here: ;; http://dlang.org/ ;;; Code: (require 'ob) (require 'ob-eval) ;;(require 'd-mode) (declare-function org-entry-get org (pom property optional inherit literal-nil)) (defvar org-babel-tangle-lang-exts) (add-to-list 'org-babel-tangle-lang-exts '(D . D)) (defvar org-babel-default-header-args:D '()) (defvar org-babel-D-compiler rdmd Command used to compile and run a D source code file into an executable.) (defun org-babel-execute:D (body params) Execute a block of D code with org-babel. This function is called by `org-babel-execute-src-block'. (org-babel-D-execute body params)) (defun org-babel-D-execute (body params) This function should only be called by `org-babel-execute:D' (let* ((tmp-src-file (org-babel-temp-file Dsrc .d)) (cmdline (cdr (assoc :cmdline params))) (flags (cdr (assoc :flags params))) (rdmd (format %s %s %s org-babel-D-compiler (mapconcat 'identity (if (listp flags) flags (list flags)) ) ;; On Unix, keep directory separator (org-babel-process-file-name tmp-src-file))) ;; On Windows, directory separator must be fixed ;;(replace-regexp-in-string ;;/ ;;(org-babel-process-file-name tmp-src-file (full-body (org-babel-D-expand body params))) (with-temp-file tmp-src-file (insert full-body)) ;; add path to D binaries if not already there ;;(let ((bin c:/DLang/dmd2/windows/bin;) ;; (path (getenv PATH))) ;; (unless (string-match bin path) ;;(setenv PATH (concat bin path (org-babel-eval rdmd ))) (defun org-babel-D-expand (body params) Expand a block of D code with org-babel according to its header arguments. (let ((vars (mapcar #'cdr (org-babel-get-header params :var))) (colname-names (cdr (car (org-babel-get-header params :colname-names (main-p (not (string= (cdr (assoc :main params)) no))) (imports (mapcar #'cdr (org-babel-get-header params :import (mapconcat 'identity (list module aaa;\n ;; imports (mapconcat (lambda (inc) (format import %s; inc)) imports \n) ;; variables (mapconcat 'org-babel-D-var-to-D vars \n) (mapconcat 'org-babel-D-colnames-to-D colname-names \n) ;; body (if main-p (org-babel-D-ensure-main-wrap body) body) \n) \n))) (defun org-babel-D-ensure-main-wrap (body) Wrap body in a \main\
Re: [O] Opening an Org file slowed down
Hi Achim On Wed, Nov 27, 2013 at 11:06 PM, Achim Gratz strom...@nexgo.de wrote: I've had a brief look at this. It seems that some of the differences are due to elp instrumenting a much larger range of functions when org-mode has already initialized vs. when only org-version had been called. Thank you for pointing this out. So I judged wrongly before when the roughly squared call counters were missing due to the sometimes incompletely instrumented Org. Sorry, I correct myself below. Another difference is that when org-mode gets initialized before, org-startup-folded is true, which introduces another slight difference. lisp/org-mode time emacs --batch -Q -L lisp -l testing/org-batch-test-init.el -l org-loaddefs 400.org 3.748u 0.096s 0:04.22 90.7% lisp/org-mode time emacs --batch -Q -L lisp -l testing/org-batch-test-init.el -l org-loaddefs 800.org 13.880u 0.068s 0:14.47 96.3% lisp/org-mode time emacs --batch -Q -L lisp -l testing/org-batch-test-init.el -l org-loaddefs -f org-version 400.org 3.764u 0.072s 0:04.08 93.8% lisp/org-mode time emacs --batch -Q -L lisp -l testing/org-batch-test-init.el -l org-loaddefs -f org-version 800.org 13.956u 0.072s 0:14.51 96.6% lisp/org-mode time emacs --batch -Q -L lisp -l testing/org-batch-test-init.el -l org-loaddefs -f org-mode 400.org OVERVIEW 3.736u 0.092s 0:04.16 91.8% lisp/org-mode time emacs --batch -Q -L lisp -l testing/org-batch-test-init.el -l org-loaddefs -f org-mode 800.org OVERVIEW 13.872u 0.056s 0:14.51 95.9% Once that is out of the equation, there isn't any difference to speak of. I can confirm: When I re-evaluate, now without elp and by comparing 400.org with 800.org: org-mode and org-version in step #2 of my recipe are the same, both quadratic. Also make uncompiled and make compile are the same, both quadratic. This means that I can still not get the linear relation expected by Nicolas Goaziou between the number of elements in an entry and the processing time. Michael
Re: [O] multiple agenda custom commands causes tag-filter-preset not to work?
Hi Miro, Miro Bezjak bezjak.m...@gmail.com writes: Any ideas? Please be patient -- your first post is 30 hours old, people are not ignoring it, they seem just too busy right now. -- Bastien
Re: [O] Babel support for the D language
Aloha Thierry, Thanks for this contribution. Have you looked at http://orgmode.org/worg/org-contrib/babel/languages.html#develop? It describes how language support is added to the Org mode core or to contrib/ and the choices an author has in the process. Also, it contains a link for a documentation template. It would be great if your Example section below could be expanded into ob-doc-d.org. If you do decide to write ob-doc-d.org, I'm happy to proof-read, edit, etc. All the best, Tom Thierry Banel tbanelweb...@free.fr writes: emacs-orgmode@gnu.org * Hi all Org fans. I added support in Org-Babel for executing Digital Mars D code. This is derived from the code in ob-C.el, by Eric Schulte (thanks Eric). I release it under the same GPL license as Emacs and Org-mode. Comments and enhancements are welcome ! * Example. The following source block: #+begin_src D import std.stdio; void main() { foreach (i; 0..9) writefln (i= %4d, i); } #+end_src will result in: #+results: : i=0 : i=1 : i=2 : i=3 : i=4 : i=5 : i=6 : i=7 : i=8 * About Digital Mars D Language (http://dlang.org/) D is (imo) quite an interesting language: - C++ syntax - Built-in garbage collector - Strong type system - Meta-programming - Seamless assembler support - Usable as a scripting language - C binary compatibility - and much more. * Installation: - Install D be sure to have the rdmd compiler in the path - add ob-D.el in the lisp/org/ source tree - in the org.el file, find a line which says: (const :tag C C) add a similar line for D: (const :tag D D) - byte-compile the 2 modified *.el - customize the variable org-babel-load-languages enabling D - either through M-x customize-variable (you may need a restart of Emacs prior to customization) - or in your .emacs -8--(ob-D.el file to put in lisp/org/)---8 ;;; ob-D.el --- org-babel functions for the D language ;; Copyright (C) 2013 Thierry Banel ;; Author: Thierry Banel, derived from the Eric Schulte work ;; Keywords: literate programming, reproducible research ;; This file is NOT (yet) part of GNU Emacs. ;; ob-D.el is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or ;; (at your option) any later version. ;; ob-D.el is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; the GNU General Public License can be obtained here: ;; http://www.gnu.org/licenses/. ;;; Commentary: ;; Org-Babel support for evaluating Digital Mars D Language code. ;; The D language home page is here: ;; http://dlang.org/ ;;; Code: (require 'ob) (require 'ob-eval) ;;(require 'd-mode) (declare-function org-entry-get org (pom property optional inherit literal-nil)) (defvar org-babel-tangle-lang-exts) (add-to-list 'org-babel-tangle-lang-exts '(D . D)) (defvar org-babel-default-header-args:D '()) (defvar org-babel-D-compiler rdmd Command used to compile and run a D source code file into an executable.) (defun org-babel-execute:D (body params) Execute a block of D code with org-babel. This function is called by `org-babel-execute-src-block'. (org-babel-D-execute body params)) (defun org-babel-D-execute (body params) This function should only be called by `org-babel-execute:D' (let* ((tmp-src-file (org-babel-temp-file Dsrc .d)) (cmdline (cdr (assoc :cmdline params))) (flags (cdr (assoc :flags params))) (rdmd (format %s %s %s org-babel-D-compiler (mapconcat 'identity (if (listp flags) flags (list flags)) ) ;; On Unix, keep directory separator (org-babel-process-file-name tmp-src-file))) ;; On Windows, directory separator must be fixed ;;(replace-regexp-in-string ;;/ ;;(org-babel-process-file-name tmp-src-file (full-body (org-babel-D-expand body params))) (with-temp-file tmp-src-file (insert full-body)) ;; add path to D binaries if not already there ;;(let ((bin c:/DLang/dmd2/windows/bin;) ;; (path (getenv PATH))) ;; (unless (string-match bin path) ;;(setenv PATH (concat bin path (org-babel-eval rdmd ))) (defun org-babel-D-expand (body params) Expand a block of D code with org-babel according to its header arguments. (let ((vars (mapcar #'cdr (org-babel-get-header params :var))) (colname-names (cdr (car (org-babel-get-header
Re: [O] Babel support for the D language
Thomas S. Dye tsd at tsdye.com writes: Aloha Thierry, Thanks for this contribution. Have you looked at http://orgmode.org/worg/org-contrib/babel/languages.html#develop? It describes how language support is added to the Org mode core or to contrib/ and the choices an author has in the process. Also, it contains a link for a documentation template. It would be great if your Example section below could be expanded into ob-doc-d.org. If you do decide to write ob-doc-d.org, I'm happy to proof-read, edit, etc. All the best, Tom Aloha Thomas ! This is exactly the place I was looking for. I am new to Worg and I missed it. By the way, are you aware of a location to store a *.el in Worg ? I happily accept your help for proof-reading the yet-to-be-written documentation. Regards Thierry
[O] Bug: The foreground color of List of stuck projects: in agenda cannot be change seperately. [8.2.3c (8.2.3c-dist @ /home/kuanyui/.emacs.d/lisps/org-8.2.3c/lisp/)]
The foreground color of List of stuck projects: in agenda cannot be change separately. One screenshot to explain: https://dl.dropboxusercontent.com/u/1776218/org-agenda-column-dateline.png 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. Emacs : GNU Emacs 24.2.1 (x86_64-suse-linux-gnu, GTK+ Version 3.6.4) of 2013-02-21 on build16 Package: Org-mode version 8.2.3c (8.2.3c-dist @ /home/kuanyui/.emacs.d/lisps/org-8.2.3c/lisp/)
Re: [O] Getting checkboxes in HTML output?
Rick Frankel writes: For xhtml compatibility, it would need to be 'checked=checked'. I've done a quick look at the html dtd, and i does look like input elements are allowed outside of forms, but i would need to double check... Also, the fallback to [-] for the partially checked state is a bit inconsistent, perhaps changing background color or other attributre of the checkbox would be better. I'd much prefer if you'd be using character entities for that since you can't do any input on the HTML anyway (WHITE MEDIUM SQUARE, SQUARE WITH LOWER RIGHT DIAGONAL BLACK and BLACK MEDIUM SQUARE look like good candidates). That probably makes it UTF-8 only since I don't think these symbols are defined for plain (X)HTML, so for other encodings things should probably stay as they are. Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
Re: [O] Babel support for the D language
Thierry Banel tbanelweb...@free.fr writes: By the way, are you aware of a location to store a *.el in Worg ? poto:worg dk$ find . -name *.el -print ./.dir-locals.el ./.dir-settings.el ./code/elisp/davidam.el ./code/elisp/dto-org-gtd.el ./code/elisp/org-collector.el ./code/elisp/org-effectiveness.el ./code/elisp/org-exchange-capture.el ./code/elisp/org-issue.el ./code/elisp/org-license.el ./code/elisp/org-player.el ./code/elisp/worg-fortune.el ./code/elisp/worg.el ./color-themes/color-theme-folio.el ./color-themes/color-theme-manoj.el ./color-themes/color-theme-railscast.el ./color-themes/color-theme-tangotango.el ./color-themes/color-theme-zenash.el ./color-themes/color-theme-zenburn.el ./org-contrib/babel/ob-template.el ./org-tests/ert-publish-test.el ./org-tests/tools/el-expectations.el ./org-tests/tools/el-mock.el ./org-tests/tools/ert.el ./worgtest-init.el I happily accept your help for proof-reading the yet-to-be-written documentation. Great. Let me know when you've pushed a draft to Worg. All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Getting checkboxes in HTML output?
Achim Gratz wrote: Rick Frankel writes: For xhtml compatibility, it would need to be 'checked=checked'. I've done a quick look at the html dtd, and i does look like input elements are allowed outside of forms, but i would need to double check... Also, the fallback to [-] for the partially checked state is a bit inconsistent, perhaps changing background color or other attributre of the checkbox would be better. I'd much prefer if you'd be using character entities for that since you can't do any input on the HTML anyway (WHITE MEDIUM SQUARE, SQUARE WITH LOWER RIGHT DIAGONAL BLACK and BLACK MEDIUM SQUARE look like good candidates). That probably makes it UTF-8 only since I don't think these symbols are defined for plain (X)HTML, so for other encodings things should probably stay as they are. FWIW, here's what I do for the HTML export: In JS: #+begin_src js $(function () { $('li code:contains([X])') .parent() .addClass('checked') .end() .remove(); $('li code:contains([-])') .parent() .addClass('halfchecked') .end() .remove(); $('li code:contains([ ])') .parent() .addClass('unchecked') .end() .remove(); }); #+end_src In CSS: #+begin_src css li.checked { list-style-image: url('../images/checked.png'); } li.halfchecked { list-style-image: url('../images/halfchecked.png'); } li.unchecked { list-style-image: url('../images/unchecked.png'); } #+end_src with 3 nice pictures of green V, red X, and blue || (line pause on recorders). Best regards, Seb -- Sebastien Vauban
Re: [O] [bug] [babel] repeated exports w/ inline src blocks yield different results
Hello, Yasushi SHOJI ya...@atmark-techno.com writes: At Sun, 24 Nov 2013 04:18:38 + (UTC), Charles Berry wrote: [...] and you see the extra '#+END_SRC' line. And if you keep repeating those keystrokes, the second result again appears. However, sometimes a minor change and then an erasure (perhaps 'a a C-x u') followed by the export keystrokes yields the correct result. It seems like a cache issue. `org-element-cache-reset' before exporting corrects the result on my system. still learning how the cache works... The problem should be fixed in master. Thank you for the report. Regards, -- Nicolas Goaziou
Re: [O] Getting checkboxes in HTML output?
On Thu, Nov 28, 2013 at 4:26 PM, Sebastien Vauban sva-n...@mygooglest.com wrote: Achim Gratz wrote: Rick Frankel writes: For xhtml compatibility, it would need to be 'checked=checked'. I've done a quick look at the html dtd, and i does look like input elements are allowed outside of forms, but i would need to double check... Also, the fallback to [-] for the partially checked state is a bit inconsistent, perhaps changing background color or other attributre of the checkbox would be better. I'd much prefer if you'd be using character entities for that since you can't do any input on the HTML anyway (WHITE MEDIUM SQUARE, SQUARE WITH LOWER RIGHT DIAGONAL BLACK and BLACK MEDIUM SQUARE look like good candidates). That probably makes it UTF-8 only since I don't think these symbols are defined for plain (X)HTML, so for other encodings things should probably stay as they are. FWIW, here's what I do for the HTML export: In JS: #+begin_src js $(function () { $('li code:contains([X])') .parent() .addClass('checked') .end() .remove(); $('li code:contains([-])') .parent() .addClass('halfchecked') .end() .remove(); $('li code:contains([ ])') .parent() .addClass('unchecked') .end() .remove(); }); #+end_src In CSS: #+begin_src css li.checked { list-style-image: url('../images/checked.png'); } li.halfchecked { list-style-image: url('../images/halfchecked.png'); } li.unchecked { list-style-image: url('../images/unchecked.png'); } #+end_src with 3 nice pictures of green V, red X, and blue || (line pause on recorders). so, I don't know if I'm the only one here who feels this way, but I would like to be able to export to an HTML file with ACTUAL HECKBOXES that I cna check off, say on a phone, when I put the milk in the shopping art, or pack the swim goggles in the vacation bag, or whatever. Maybe though I should be thinking in terms of some other export application, remember the milk or something. Am I describing a different use case than other users here, perhaps?
[O] exporting a shopping list to my android phone?
I just asked this question I guess, but: I do most everything in org, including composing shopping and packing lists, and so forth. Occasionally I would like to access these on my phone. From what I can tell, org-mobile doesn't do quite what I want which is to let me toggle the state of a checkbox with my thumb as I throw something into a shopping cart, or pack a piece of clothing or rock climbing gear, or whatever. Does someone else out there have a workflow for this task they can recommend? If so I'd appreciate it! Thanks, Matt
Re: [O] Babel support for the D language
Thierry Banel tbanelweb...@free.fr writes: By the way, are you aware of a location to store a *.el in Worg ? The .el file should probably end up in contrib/lisp, rather than on Worg. -- Nick
Re: [O] Getting checkboxes in HTML output?
Sebastien Vauban sva-n...@mygooglest.com writes: Achim Gratz wrote: Rick Frankel writes: For xhtml compatibility, it would need to be 'checked=checked'. I've done a quick look at the html dtd, and i does look like input elements are allowed outside of forms, but i would need to double check... Also, the fallback to [-] for the partially checked state is a bit inconsistent, perhaps changing background color or other attributre of the checkbox would be better. I'd much prefer if you'd be using character entities for that since you can't do any input on the HTML anyway (WHITE MEDIUM SQUARE, SQUARE WITH LOWER RIGHT DIAGONAL BLACK and BLACK MEDIUM SQUARE look like good candidates). That probably makes it UTF-8 only since I don't think these symbols are defined for plain (X)HTML, so for other encodings things should probably stay as they are. FWIW, here's what I do for the HTML export: In JS: #+begin_src js $(function () { $('li code:contains([X])') .parent() .addClass('checked') .end() .remove(); $('li code:contains([-])') .parent() .addClass('halfchecked') .end() .remove(); $('li code:contains([])') .parent() .addClass('unchecked') .end() .remove(); }); #+end_src In CSS: #+begin_src css li.checked { list-style-image: url('../images/checked.png'); } li.halfchecked { list-style-image: url('../images/halfchecked.png'); } li.unchecked { list-style-image: url('../images/unchecked.png'); } #+end_src with 3 nice pictures of green V, red X, and blue || (line pause on recorders). This seems like a much nicer solution -- JS seems semantically more right, since what you're doing is toggling display state, not actually preparing content to input to a form...
[O] orgtble and flyspell interaction causing mem exhaustion error?
When I try to create an table using org-table-create, the table outline shows up and upon writing any word in any cell, it causes Emacs to freeze up with an error like 95% physical mem used. When I disable flyspell mode and try it again, the issue does not happen. Anyone else experiencing this or is it only me? sivaram --
Re: [O] orgtble and flyspell interaction causing mem exhaustion error?
Sivaram Neelakantan nsivaram@gmail.com writes: When I try to create an table using org-table-create, the table outline shows up and upon writing any word in any cell, it causes Emacs to freeze up with an error like 95% physical mem used. When I disable flyspell mode and try it again, the issue does not happen. Anyone else experiencing this or is it only me? Worked fine here. -- Nick
Re: [O] commit 5ea0228 has problem opening big org-mode file
It could have (depending on what other files you might have had there, not from the Git repo). May happen in theory, but never in real life, at least never happen on me. It certainly muddied the waters w.r.t. your bug report. I had provided a reproducer proved to be straightforward and effective, period. For the rest of your post: no need to get defensive. I certainly had perceived offensive atmosphere from your post, be friendly please. Thanks, York
Re: [O] exporting a shopping list to my android phone?
would also be very interested in such a workflow! z On Fri, Nov 29, 2013 at 12:19 AM, Matt Price mopto...@gmail.com wrote: I just asked this question I guess, but: I do most everything in org, including composing shopping and packing lists, and so forth. Occasionally I would like to access these on my phone. From what I can tell, org-mobile doesn't do quite what I want which is to let me toggle the state of a checkbox with my thumb as I throw something into a shopping cart, or pack a piece of clothing or rock climbing gear, or whatever. Does someone else out there have a workflow for this task they can recommend? If so I'd appreciate it! Thanks, Matt
Re: [O] LaTeX export with documentclass ltugboat
Hi Charles, Thanks for your suggestion. I've tried it out it doesn't work for me. I ran this elisp to add the export class (require 'org-latex) (unless (boundp 'org-export-latex-classes) (add-to-list 'org-export-latex-classes '(ltugboat \\documentclass{ltugboat} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s}))) made an org file: #+LaTeX_CLASS: ltugboat TEST but when I export it gives an error: user-error: Unknown LaTeX class `ltugboat' Thanks, Jason Charles Millar wrote, On 28/11/2013 11:37 PM: Jason, On 11/28/2013 7:02 AM, Jason Lewis wrote: Hi, How can I export an org file to LaTeX with a document class of ltugboat? I've seen the example linked below but it doesn't appear to work in 8.2.1 and in fact states its for org 8.0. http://orgmode.org/worg/org-tutorials/org-latex-export.html Is this documented somewhere for versions 8.0? Any pointers would be appreciated. Thanks, Jason I just started LaTeX export recently and referred to that page. I added (require 'ox-latex) to my .emacs and the custom classes example (as modified for my purposes) worked fine. Charlie Millar --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- Jason Lewis http://emacstragic.net signature.asc Description: OpenPGP digital signature
Re: [O] orgtble and flyspell interaction causing mem exhaustion error?
On Fri, Nov 29 2013,Nick Dokos wrote: Sivaram Neelakantan nsivaram@gmail.com writes: When I try to create an table using org-table-create, the table outline shows up and upon writing any word in any cell, it causes Emacs to freeze up with an error like 95% physical mem used. When I disable flyspell mode and try it again, the issue does not happen. Anyone else experiencing this or is it only me? Worked fine here. sorry, forgot to mention, mine is win32 Emacs 24.3 on win 7 with aspell from cygwin and the latest git snapshot of org. sivaram --
Re: [O] LaTeX export with documentclass ltugboat
Jason Lewis ja...@dickson.st writes: (require 'org-latex) (unless (boundp 'org-export-latex-classes) (add-to-list 'org-export-latex-classes '(ltugboat \\documentclass{ltugboat} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s}))) It looks like you are using 8.0 functions. Try something like this: (require 'ox-latex) (add-to-list 'org-latex-classes '(ltugboat \\documentclass{ltugboat} (\\section{%s} . \\section*{%s}) (\\subsection{%s} . \\subsection*{%s}) (\\subsubsection{%s} . \\subsubsection*{%s}) (\\paragraph{%s} . \\paragraph*{%s}) (\\subparagraph{%s} . \\subparagraph*{%s}))) Note: org-latex - ox-latex org-export-latex-classes - org-latex-classes hth, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Babel support for the D language
Nick Dokos ndokos at gmail.com writes: Thierry Banel tbanelwebmin at free.fr writes: By the way, are you aware of a location to store a *.el in Worg ? The .el file should probably end up in contrib/lisp, rather than on Worg. Thanks Nick ! Probably there is some kind of agreement process to put a package in contrib/lisp. I have to find out. If someone knows ? Thierry
[O] auto-creating checkbox list items
I think an older version of org-mode had the behavior where if I am making a list like this: * Some list + [ ] and I then make a new item by pressing ESC+RET + [ ] the + and [] are auto-magically created. The current version only populates the +, not the [ ]. Does anyone else recall this feature? Is there a preference to set it, or was it removed for some reason? Thanks, -k.