[O] How to use texi2dvi for export to LaTeX?
Hi, I found http://orgmode.org/worg/org-dependencies.html and proceeded as described there to set up texi2dvi for LaTeX export. I don't have the egrep bug mentioned, so all I had to do was: 1) put this in ~/.emacs: (setq org-latex-to-pdf-process texi2dvi -p %f); use texi2dvi; see http://orgmode.org/worg/org-dependencies.html 2) put this in ~/.profile: PDFLATEX=pdflatex --shell-escape export PDFLATEX texi2dvi is installed on my system (Ubuntu 12.04; Emacs 24; MacBook Air 4,1) and works. However, if I export an org-mode file via 'C-c C-e p' to LaTeX, I obtain an error. *Messages* shows: , | call-interactively: Wrong type argument: listp, texi2dvi -p %f ` Why? Something I'm wondering: Doesn't %f stand for the base file name with ending .ps? Shouldn't it be texi2dvi -p %t? Trying this led to the same error, though. Cheers, Marius
Re: [O] How to use texi2dvi for export to LaTeX?
Thanks for helping, Achim and Nick, exactly what I was looking for. Cheers, Marius
Re: [O] How to escape spaces after full stops?
Dear Nicolas, many thanks for pointing this out. \nbsp{} leads to ~, which is correct in this case. Is there also a way to get \? [there is a slight but sometimes important difference]. Cheers, Marius Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Marius Hofert marius.hof...@math.ethz.ch writes: If I create a .org file containing this line... ,[ minimal_example.org ] | This is just some text on p. 17. Some more text. ` ... and then export it to pdf via C-c C-e p, you can see from the output that the space after p. is too large. In a standard .tex file one would escape the space via p.\ 17. But this leads to a backslash in the .pdf (when exported). How can this space be escaped? You can use Org entities, i.e.: This is just some text on p.\nbsp{}17. Some more text. Regards,
Re: [O] How to escape spaces after full stops?
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Marius Hofert marius.hof...@math.ethz.ch writes: Is there also a way to get \? [there is a slight but sometimes important difference]. Do you mean \ ? yes. Not out of the box, but you can add your own entities in `org-entities-user'. For example, you can have: (add-to-list 'org-entities-user '(spc \\ nil)) And then use p.\spc{}17 I have put the above line in ~/.emacs and restarted emacs. It writes now as p.17, so without space at all. Do you know why? Regards,
[O] How to escape spaces after full stops?
Dear org-mode experts, If I create a .org file containing this line... ,[ minimal_example.org ] | This is just some text on p. 17. Some more text. ` ... and then export it to pdf via C-c C-e p, you can see from the output that the space after p. is too large. In a standard .tex file one would escape the space via p.\ 17. But this leads to a backslash in the .pdf (when exported). How can this space be escaped? Cheers, Marius
[O] How to get Wrap at Window Edge in org-mode?
Hi, I am working with Xubuntu 12.04 on a MacBook Air (4,1) with org-mode version 7.8.09. I use the following code to get Wrap at Window Edge in org-agenda-mode: , | (add-hook 'org-agenda-mode-hook | '(lambda() |(if truncate-lines (toggle-truncate-lines -1)) |)) ` How can I get Wrap at Window Edge in all .org files? The only idea I found is https://plus.google.com/u/0/113859563190964307534/posts/RVBN7KvQtB7 but that unfortunately did not work. Cheers, Marius
Re: [O] How to get Wrap at Window Edge in org-mode?
Dear Russell, I thought so, too, but it does not properly wrap standard .org files (including sections etc.). Instead of Wrap at Window Edge, I still obtain Truncate Long Lines mode in .org files. Cheers, Marius
Re: [O] How to get Wrap at Window Edge in org-mode?
Dear Russell, thanks for helping. Yes. I even removed ~/.emacs.desktop and restarted. Still, a standard .org file is shown in Truncate Long Lines mode instead of (the overall emacs default) Wrap at Window Edge. Cheers, Marius -- ETH Zurich Dr. Marius Hofert RiskLab, Department of Mathematics HG E 65.2 Rämistrasse 101 8092 Zurich Switzerland Phone +41 44 632 2423 http://www.math.ethz.ch/~hofertj
Re: [O] How to get Wrap at Window Edge in org-mode?
Hi Bastien, Many thanks, that's exactly what I was looking for! Cheers, Marius 05/22/2012 07:21 PM, Bastien wrote: Hi Marius, Marius Hofertmarius.hof...@math.ethz.ch writes: I am working with Xubuntu 12.04 on a MacBook Air (4,1) with org-mode version 7.8.09. I use the following code to get Wrap at Window Edge in org-agenda-mode: , | (add-hook 'org-agenda-mode-hook | '(lambda() |(if truncate-lines (toggle-truncate-lines -1)) |)) ` How can I get Wrap at Window Edge in all .org files? (setq org-startup-truncated nil) HTH,
Re: [O] Frequent crashes of Emacs 24 on Mac OS X 10.7.3 due to org-mode
There was another crash this morning, here is the report (as from Console.app): Process: Emacs [6378] Path:/Applications/Emacs.app/Contents/MacOS/Emacs Identifier: org.gnu.Emacs Version: Version 24.0.95 (9.0) Code Type: X86-64 (Native) Parent Process: launchd [117] Date/Time: 2012-04-17 11:57:41.796 +0200 OS Version: Mac OS X 10.7.3 (11D50) Report Version: 9 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Codes: KERN_INVALID_ADDRESS at 0x0018 VM Regions Near 0x18: -- __TEXT 0001-000100203000 [ 2060K] r-x/rwx SM=COW /Applications/Emacs.app/Contents/MacOS/Emacs Application Specific Information: objc[6378]: garbage collection is OFF abort() called Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x7fff9801a82a __kill + 10 1 org.gnu.Emacs 0x0001000a824b fatal_error_signal + 347 2 libsystem_c.dylib 0x7fff981cecfa _sigtramp + 26 3 libsystem_kernel.dylib 0x7fff9801ace2 __pthread_kill + 10 4 libsystem_c.dylib 0x7fff9817c7d2 pthread_kill + 95 5 libsystem_c.dylib 0x7fff9816da7a abort + 143 6 org.gnu.Emacs 0x000100191f41 ns_term_shutdown + 81 7 org.gnu.Emacs 0x0001000a8217 fatal_error_signal + 295 8 libsystem_c.dylib 0x7fff981cecfa _sigtramp + 26 9 libobjc.A.dylib 0x7fff9a22d3af objc_msgSend_vtable14 + 47 10 org.gnu.Emacs 0x000100196268 x_free_frame_resources + 216 11 org.gnu.Emacs 0x0001001963e9 x_destroy_window + 25 12 org.gnu.Emacs 0x0001000115bc delete_frame + 828 13 org.gnu.Emacs 0x000100123c55 Ffuncall + 1125 14 org.gnu.Emacs 0x00010011fff6 Fcall_interactively + 6374 15 org.gnu.Emacs 0x000100123c42 Ffuncall + 1106 16 org.gnu.Emacs 0x000100123e26 call3 + 38 17 org.gnu.Emacs 0x0001000bc16e command_loop_1 + 1134 18 org.gnu.Emacs 0x000100122285 internal_condition_case + 293 19 org.gnu.Emacs 0x0001000b1787 command_loop_2 + 55 20 org.gnu.Emacs 0x000100122389 internal_catch + 217 21 org.gnu.Emacs 0x0001000b1f0c recursive_edit_1 + 364 22 org.gnu.Emacs 0x0001000b2082 Frecursive_edit + 290 23 org.gnu.Emacs 0x0001000a8f4e main + 3262 24 org.gnu.Emacs 0x000122f4 start + 52 Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem_kernel.dylib 0x7fff9801b7e6 kevent + 10 1 libdispatch.dylib 0x7fff931885be _dispatch_mgr_invoke + 923 2 libdispatch.dylib 0x7fff9318714e _dispatch_mgr_thread + 54 Thread 2: 0 libsystem_kernel.dylib 0x7fff9801b192 __workq_kernreturn + 10 1 libsystem_c.dylib 0x7fff9817c594 _pthread_wqthread + 758 2 libsystem_c.dylib 0x7fff9817db85 start_wqthread + 13 Thread 3: 0 libsystem_kernel.dylib 0x7fff9801b192 __workq_kernreturn + 10 1 libsystem_c.dylib 0x7fff9817c594 _pthread_wqthread + 758 2 libsystem_c.dylib 0x7fff9817db85 start_wqthread + 13 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x rbx: 0x0006 rcx: 0x7fff5fbfe628 rdx: 0x rdi: 0x18ea rsi: 0x0006 rbp: 0x7fff5fbfe660 rsp: 0x7fff5fbfe628 r8: 0x0001 r9: 0x0010 r10: 0x7fff9801ad0a r11: 0xff80002d8220 r12: 0x0006 r13: 0x00010058a688 r14: 0x7fff7f356960 r15: 0x00010058a79c rip: 0x7fff9801a82a rfl: 0x0202 cr2: 0x7fff7f34da28 Logical CPU: 0 Binary Images: 0x1 -0x100202fef +org.gnu.Emacs (Version 24.0.95 - 9.0) 7C48528A-6CE3-F9D3-AECA-8F5120471764 /Applications/Emacs.app/Contents/MacOS/Emacs 0x100b29000 -0x100b2dff7 libFontRegistryUI.dylib (??? - ???) 46FDC6A3-EF17-3E57-AACD-8B36AB1F00E9 /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Resources/libFontRegistryUI.dylib 0x100e69000 -0x100e6ffef libcldcpuengine.dylib (1.50.69 - compatibility 1.0.0) C0C4CC37-F2FD-301C-A830-EC54D86612D5 /System/Library/Frameworks/OpenCL.framework/Libraries/libcldcpuengine.dylib 0x100e76000 -0x100e79ff7 libCoreFSCache.dylib (??? - ???) 0E2C3D54-7D05-35E8-BA10-2142B7C03946
Re: [O] Frequent crashes of Emacs 24 on Mac OS X 10.7.3 due to org-mode
Dear Martyn, thanks for helping. 3) 7.7: As far as I remember, I've been there. 2) 24.0.94.1: I've definitely been there -- didn't sort it out. I even wanted to build Emacs on my own to see if that has an influence. But I obtained some errors due to missing tools (starting with libgif/libungif but after I installed that many other things appeared) and others also reported that it is not too easy under Lion (http://readystate4.com/2011/04/19/installing-latest-command-line-emacs-on-mac-os-x/). 1) .emacs: I've never seen .emacs in org-babel, sounds interesting. What I typically do is some kind of bisection procedure to find the the bug (comment out half of the code, test, find the buggy half...). The part of my .emacs that concerns org-mode is (of course the problem could be elsewhere but my suspicion would be it's in here): ,[ org-mode part of .emacs: ] | ;; basics | (require 'org-install); use org-mode | (setq org-startup-indented 1); use indentation in org mode | (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode)); open all .org files in org-mode | (setq org-agenda-files | (list ~/org/agenda.org)); set up org agenda file | (setq org-default-notes-file ~/org/agenda.org); set up org notes file (stores captured events -- also use agenda.org) | (setq org-agenda-start-on-weekday nil); start agenda view on current day | (setq org-agenda-span 14); agenda view: show 14 days by default | (setq calendar-week-start-day 1); start week on Monday | | ;; suggested global org keys | (global-set-key (kbd C-c l) 'org-store-link) | (global-set-key (kbd C-c c) 'org-capture); for capturing new TODO | (global-set-key (kbd C-c a) 'org-agenda); for viewing your agenda | | ;; define capture templates (for C-c c) | ;; see 9.1.3.1 in the org-mode manual | ;; order: | ;; 1) key: trigger of the capture task | ;; 2) description: description to be shown during selection | ;; 3) type: - entry: org-mode node with headline; put in as a child of the target | ;; - ..., see org-manual | ;; 4) target: where the captured item should be placed | ;;- file+headline path-to-file [empty defaults to org-default-notes-file] node name where to put in | ;; 5) template: string which specifies the look of the template | ;; %? # place the point here after template insertion | ;; \n # newline | ;; %^T # prompt for date and time | ;; %U # inactive time stamp with date and time | ;; %(org-contacts-template-name) # tries to determine the name from Gnus | ;; %^g # prompt for tag | ;; %(org-contacts-template-email) # tries to determine the email address from Gnus | (setq org-capture-templates | '((t TODO in ~/org/agenda.org - Tasks entry (file+headline ~/org/agenda.org Tasks) | * TODO %?\nSCHEDULED: %^T\n%U) | (c Contact in ~/org/contacts.org - Contact entry (file+headline ~/org/contacts.org Contact) | * %?%(org-contacts-template-name)%(org-contacts-template-email) %^g | :PROPERTIES: | :WORK: | :HOME: | :MOBILE: | :LOCATION: | :NOTE: | :URL: | :END:))) | | ;; set up org-contacts | (require 'diary-lib); for making org-contacts anniversaries work | (setq load-path (cons ~/.emacs.d/contacts load-path)) | (require 'org-contacts) | (setq org-contacts-files (quote (~/org/contacts.org))); set up org-contacts file | | ;; make org-mode play nicely together with yasnippets | ;; http://eschulte.me/emacs-starter-kit/starter-kit-org.html | (defun yas/org-very-safe-expand () | (let ((yas/fallback-behavior 'return-nil)) (yas/expand))) | (add-hook 'org-mode-hook | (lambda () | ;; yasnippet (using the new org-cycle hooks) | (make-variable-buffer-local 'yas/trigger-key) | (setq yas/trigger-key [tab]) | (add-to-list 'org-tab-first-hook 'yas/org-very-safe-expand) | (define-key yas/keymap [tab] 'yas/next-field) | )) ` Just a remark: The problem has nothing to do with Sweave (I just use Sweave for some weeks now and the crashes I had long before). Last week a colleague wanted to use my laptop and as soon as he hit the first button, Emacs crashed (-- very annoying -- this was when I decided to try to track the problem down). That's why I have trouble figuring out what it is (and I was quite happy to see org-mode popping up through Console.app as a reason -- at least that gives a chance to track it down). I'll further explore and get back to you (and the guys from Emacs bug tracker who also are interested in this). Cheers, Marius PS: I used the same .emacs on Ubuntu 11.10, only one line was changed (the default font being changed from Menlo -- which is Mac-specific). I never experienced a crash (although I just tried it for some hours, so I can't tell for sure).
[O] Frequent crashes of Emacs 24 on Mac OS X 10.7.3 due to org-mode
| org-src-native-tab-command-maybe | org-babel-hide-result-toggle-maybe) | org-contacts-files '(~/org/contacts.org) | org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) | org-occur-hook '(org-first-headline-recenter) | org-metaup-hook '(org-babel-load-in-session-maybe) | org-agenda-start-on-weekday nil | org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) | org-confirm-shell-link-function 'yes-or-no-p | org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc | org-beamer-auto-fragile-frames | org-beamer-place-default-actions-for-lists) | org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) | org-default-notes-file ~/org/agenda.org | org-startup-indented 1 | org-after-todo-state-change-hook '(org-clock-out-if-current) | org-from-is-user-regexp \\Marius Hofert\\ | org-src-mode-hook '(org-src-babel-configure-edit-buffer |org-src-mode-configure-edit-buffer) | org-agenda-before-write-hook '(org-agenda-add-entry-text) | org-babel-pre-tangle-hook '(save-buffer) | org-mode-hook '((lambda nil (make-variable-buffer-local (quote yas/trigger-key)) | (setq yas/trigger-key [tab]) | (add-to-list (quote org-tab-first-hook) | (quote yas/org-very-safe-expand)) | (define-key yas/keymap [tab] (quote yas/next-field))) |#[nil \300\301\302\303\304$\207 | [org-add-hook change-major-mode-hook org-show-block-all append | local] | 5] |#[nil \300\301\302\303\304$\207 | [org-add-hook change-major-mode-hook org-babel-show-result-all | append local] | 5] |org-babel-result-hide-spec org-babel-hide-all-hashes |(lambda nil (if truncate-lines (toggle-truncate-lines -1 | org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) | org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers | org-cycle-show-empty-lines | org-optimize-window-after-visibility-change) | org-export-latex-format-toc-function 'org-export-latex-format-toc-default | org-export-blocks '((src org-babel-exp-src-block nil) |(export-comment org-export-blocks-format-comment t) |(ditaa org-export-blocks-format-ditaa nil) |(dot org-export-blocks-format-dot nil)) | org-export-first-hook '(org-beamer-initialize-open-trackers) | org-export-interblocks '((src org-babel-exp-non-block-elements)) | org-agenda-span 14 | org-confirm-elisp-link-function 'yes-or-no-p | org-metadown-hook '(org-babel-pop-to-session-maybe) | org-agenda-mode-hook '((lambda nil (if truncate-lines (toggle-truncate-lines -1 | org-agenda-files '(~/org/agenda.org) | org-clock-out-hook '(org-clock-remove-empty-clock-drawer) | ) ` Process: Emacs [68923] Path:/Applications/Emacs.app/Contents/MacOS/Emacs Identifier: org.gnu.Emacs Version: Version 24.0.95 (9.0) Code Type: X86-64 (Native) Parent Process: launchd [114] Date/Time: 2012-04-15 22:15:30.204 +0200 OS Version: Mac OS X 10.7.3 (11D50) Report Version: 9 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Codes: KERN_INVALID_ADDRESS at 0x00a7 VM Regions Near 0xa7: -- __TEXT 0001-000100203000 [ 2060K] r-x/rwx SM=COW /Applications/Emacs.app/Contents/MacOS/Emacs Application Specific Information: objc[68923]: garbage collection is OFF abort() called Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x7fff8e52182a __kill + 10 1 org.gnu.Emacs 0x0001000a824b fatal_error_signal + 347 2 libsystem_c.dylib 0x7fff8e6d5cfa _sigtramp + 26 3 libsystem_kernel.dylib 0x7fff8e521ce2 __pthread_kill + 10 4 libsystem_c.dylib 0x7fff8e6837d2 pthread_kill + 95 5 libsystem_c.dylib 0x7fff8e674a7a abort + 143 6 org.gnu.Emacs 0x000100191f41 ns_term_shutdown + 81 7 org.gnu.Emacs 0x0001000a8217 fatal_error_signal + 295 8 libsystem_c.dylib 0x7fff8e6d5cfa _sigtramp + 26 9 org.gnu.Emacs 0x000100023db0 remember_mouse_glyph + 64 10 org.gnu.Emacs 0x000100190af3 ns_mouse_position + 547 11 org.gnu.Emacs 0x0001eb87 Fmouse_pixel_position + 151 12 org.gnu.Emacs 0x000100123c70 Ffuncall + 1152 13 org.gnu.Emacs 0x00010015f3bc
[O] How to define repeating events that do not show up after there dates are passed?
Hi, Recently, Jan explained to me the difference about a date and a SCHEDULED: date; see http://osdir.com/ml/emacs-orgmode-gnu/2011-11/msg00200.html I'm wondering about what is the best way to put in repeating events in org-mode. For example, image you visit your friends every Thursday at 16:00. Now putting the event in as TODO Visit friends SCHEDULED: 2011-11-10 Thu +1w Now if I fire up C-c a L, I see that visit/meeting for this Thursday and also for the following Thursday. However, it also appears when doing C-c a a on Friday, namely as an event that happened in the past (on Thu) and which is still scheduled. So for this repeating event, I don't want it to appear on Friday as something I forgot on Thursday. Well, then one shouldn't (?) use SCHEDULED. Okay, so just put it in like this: TODO Visit friends 2011-11-10 Thu +1w Now on Friday it does not appear anymore. However, if I fire up C-c a L it also disappeared showing [... 12 empty days omitted] although on the Thursdays within the 12 days, there's clearly the meeting with the friends So getting 12 empty days is not right, since I actually have a meeting on Thursdays... How can I put in repeating events so that they show up on C-c a L but they shouldn't show up after the corresponding date passed? Cheers, Marius
Re: [O] How to define repeating events that do not show up after there dates are passed?
The timeline functionality is, if not obsolete, a second-class citizen in org. see Carsten's history lesson at http://thread.gmane.org/gmane.emacs.orgmode/39368/focus=40038 Very interesting link, thanks Nick. Cheers, Marius
Re: [O] How to set up anniversaries/birthdays with org-contacts-anniversaries?
see here: http://stackoverflow.com/questions/8036948/how-to-set-up-birthdays-with-org-contacts-error-bad-sexp On 2011-11-06, at 12:05 , Marius Hofert wrote: How can I set up anniversaries with org-contact? My agend.org file contains the following, as mentioned on the bottom of http://julien.danjou.info/org-contacts.html #+STARTUP: showeverything * Birthdays %%(org-contacts-anniversaries) My contacts.org file contains (e.g.): * My contact :my.tag: :PROPERTIES: :EMAIL: my.cont...@my.address.org :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY: 2000-01-01 :NOTE: :END: When I access agenda view via C-c a a, I obtain: Bad sexp at line 3 in /Users/myusername/org/agenda.org: (org-contacts-anniversaries) [7 times] Note that line three corresponds to %%(org-contacts-anniversaries) Cheers, Marius
Re: [O] org-capture-template: How to correctly capture email addresses?
see here: http://stackoverflow.com/questions/8037953/org-mode-how-to-correctly-capture-email-addresses On 2011-11-06, at 11:49 , Marius Hofert wrote: Hi, I would like to capture contacts (name, email,..) with org-mode and thus setup the following in .emacs: (setq org-capture-templates '((t TODO in ~/org/agenda.org - Tasks entry (file+headline ~/org/agenda.org Tasks) * TODO %?\nSCHEDULED: %^t\n%U %a) (c Contact in ~/org/contacts.org - Contact entry (file+headline ~/org/contacts.org Contact) * %?%(org-contacts-template-name) %^g :PROPERTIES: :EMAIL: %(org-contacts-template-email) :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY: :NOTE: :END:))) I can easily capture contacts with C-c c c, it prompts for the name, a tag, and the email address. However, instead of an output like * My contact :my.tag: :PROPERTIES: :EMAIL: my.cont...@my.mail.com :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY: :NOTE: :END: I obtain: * My contact :my.tag: :PROPERTIES: :EMAIL: :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY: :NOTE: :EMAIL: my.cont...@my.mail.com :END: So the problem is that the first :EMAIL: is ignored and instead a second :EMAIL: is inserted before :END:. How can I obtain the correct output (as described above)? Cheers, Marius
Re: [O] How to set up anniversaries/birthdays with org-contacts-anniversaries?
The org sexp handler issues this message whenever an error is signalled when trying to evaluate the sexp. In this case (as in most of these cases), the error is probably because org-contacts-anniversaries is not defined, for whatever reason. Try to eval (org-contacts-anniversaries) manually - what do you get? I get via M-x org-contacts-anniversaries? I get No match , | Debugger entered--Lisp error: (void-function org-contacts-anniversaries) | (org-contacts-anniversaries) | eval((org-contacts-anniversaries) nil) | eval-last-sexp-1(nil) | eval-last-sexp(nil) | call-interactively(eval-last-sexp nil nil) ` Then load org-contacts with (require 'org-contacts) Yes, I already had this in .emacs (and obtained No match) or similar, and try the eval again. I get nil as a result, but more importantly, no error. Assuming that you get no error either, try the agenda again. Nick I found out that the error happens due to either one of two reasons: 1) I have a :BIRTHDAY: tag which is 1970 or 2037 2) I have an empty :BIRTHDAY: tag Have you seen my link to stackoverflow above? I got help there and finally realized that it's linked to the problem discussed here (involving posts of you, too): http://thread.gmane.org/gmane.emacs.orgmode/39206 Is that solved? Will it be (automatically) solved if Emacs (for Mac) learns how to use the Mac's 64 bit architecture? Cheers, Marius
Re: [O] How to set up anniversaries/birthdays with org-contacts-anniversaries?
Okay, ESC ESC : (org-contacts-anniversaries) gives: Debugger entered--Lisp error: (void-function diary-anniversary) diary-anniversary(10 25 1970) apply(diary-anniversary (10 25 1970)) (and anniv (apply (quote diary-anniversary) anniv)) (if (and anniv (apply (quote diary-anniversary) anniv)) (progn (push (format-spec format (\` ((108 \, (org-with-point-at ... ...)) (104 \, (car contact)) (121 \, (- ... ...)) (89 \, (let ... ...) --cl-var--))) (while (consp --cl-var--) (setq contact (car --cl-var--)) (setq anniv (let ((anniv (cdr (assoc-string (or field org-contacts-birthday-property) (caddr contact) (when anniv (calendar-gregorian-from-absolute (org-time-string-to-absolute anniv) (if (and anniv (apply (quote diary-anniversary) anniv)) (progn (push (format-spec format (\` ((108 \, ...) (104 \, ...) (121 \, ...) (89 \, ... --cl-var--))) (setq --cl-var-- (cdr --cl-var--))) (let* ((--cl-var-- (org-contacts-filter)) (contact nil) (anniv nil) (--cl-var-- nil)) (while (consp --cl-var--) (setq contact (car --cl-var--)) (setq anniv (let ((anniv (cdr (assoc-string ... ... (when anniv (calendar-gregorian-from-absolute (org-time-string-to-absolute anniv) (if (and anniv (apply (quote diary-anniversary) anniv)) (progn (push (format-spec format (\` (... ... ... ...))) --cl-var--))) (setq --cl-var-- (cdr --cl-var--))) (nreverse --cl-var--)) (catch (quote --cl-block-nil--) (let* ((--cl-var-- (org-contacts-filter)) (contact nil) (anniv nil) (--cl-var-- nil)) (while (consp --cl-var--) (setq contact (car --cl-var--)) (setq anniv (let ((anniv (cdr ...))) (when anniv (calendar-gregorian-from-absolute (org-time-string-to-absolute anniv) (if (and anniv (apply (quote diary-anniversary) anniv)) (progn (push (format-spec format (\` ...)) --cl-var--))) (setq --cl-var-- (cdr --cl-var--))) (nreverse --cl-var--))) (cl-block-wrapper (catch (quote --cl-block-nil--) (let* ((--cl-var-- (org-contacts-filter)) (contact nil) (anniv nil) (--cl-var-- nil)) (while (consp --cl-var--) (setq contact (car --cl-var--)) (setq anniv (let ((anniv ...)) (when anniv (calendar-gregorian-from-absolute ... (if (and anniv (apply (quote diary-anniversary) anniv)) (progn (push (format-spec format ...) --cl-var--))) (setq --cl-var-- (cdr --cl-var--))) (nreverse --cl-var-- (block nil (let* ((--cl-var-- (org-contacts-filter)) (contact nil) (anniv nil) (--cl-var-- nil)) (while (consp --cl-var--) (setq contact (car --cl-var--)) (setq anniv (let ((anniv (cdr ...))) (when anniv (calendar-gregorian-from-absolute (org-time-string-to-absolute anniv) (if (and anniv (apply (quote diary-anniversary) anniv)) (progn (push (format-spec format (\` ...)) --cl-var--))) (setq --cl-var-- (cdr --cl-var--))) (nreverse --cl-var--))) (loop for contact in (org-contacts-filter) for anniv = (let ((anniv (cdr (assoc-string (or field org-contacts-birthday-property) (caddr contact) (when anniv (calendar-gregorian-from-absolute (org-time-string-to-absolute anniv if (and anniv (apply (quote diary-anniversary) anniv)) collect (format-spec format (\` ((108 \, (org-with-point-at (cadr contact) (org-store-link nil))) (104 \, (car contact)) (121 \, (- (calendar-extract-year date) (calendar-extract-year anniv))) (89 \, (let ((years ...)) (format %d%s years (diary-ordinal-suffix years (let ((calendar-date-style (quote american)) (entry )) (unless format (setq format org-contacts-birthday-format)) (loop for contact in (org-contacts-filter) for anniv = (let ((anniv (cdr (assoc-string (or field org-contacts-birthday-property) (caddr contact) (when anniv (calendar-gregorian-from-absolute (org-time-string-to-absolute anniv if (and anniv (apply (quote diary-anniversary) anniv)) collect (format-spec format (\` ((108 \, (org-with-point-at (cadr contact) (org-store-link nil))) (104 \, (car contact)) (121 \, (- (calendar-extract-year date) (calendar-extract-year anniv))) (89 \, (let (...) (format %d%s years ... org-contacts-anniversaries() eval((org-contacts-anniversaries) nil) eval-expression((org-contacts-anniversaries) nil) call-interactively(eval-expression nil nil)
Re: [O] How to set up anniversaries/birthdays with org-contacts-anniversaries?
Thanks for the explanation. Is there also an equivalent solution by just adjusting .emacs? On 2011-11-08, at 23:33 , Jambunathan K wrote: Debugger entered--Lisp error: (void-function diary-anniversary) There is a universal solution to this problem M-x load-library RET diary TAB and choose which of the options make most sense or try each one of them in turn. Note that in the above load-library you are using diary because it is the prefix of function (or variable) which reported as void. The load-library call unvoids the void things.
Re: [O] How to set up anniversaries/birthdays with org-contacts-anniversaries?
On 2011-11-08, at 23:33 , Jambunathan K wrote: Debugger entered--Lisp error: (void-function diary-anniversary) There is a universal solution to this problem M-x load-library RET diary TAB and choose which of the options make most sense or try each one of them in turn. I have: 1) diary-lib 2) diary-loaddefs I chose the first one. After that, I could define a :BIRTHDAY: with year 1970 and it correctly showed up in the agenda view! Seems to work! :-) Thanks a lot, Marius Note that in the above load-library you are using diary because it is the prefix of function (or variable) which reported as void. The load-library call unvoids the void things.
Re: [O] How to set up anniversaries/birthdays with org-contacts-anniversaries?
On 2011-11-09, at 00:06 , Nick Dokos wrote: Marius Hofert marius.hof...@math.ethz.ch wrote: Thanks for the explanation. Is there also an equivalent solution by just adjusting .emacs? If you are going to use emacs extensively, you probably should read the emacs reference manual and maybe the emacs lisp introduction as well. M-x foo RET is entirely equivalent to evaluating (foo) which is a call to function foo. (foo) is the more general mechanism: it works for any lisp function, M-x foo works iff foo is a command (aka an interactive function). The form (foo) can be added to .emacs. load-library is a command that takes an argument: the name of the library to load. See its doc string for details. M-x load-library RET diary RET is entirely equivalent to evaluating (load-library diary) This calls the function load-library with the string argument diary. This form can be added to .emacs. Alternatively, you can use the require form that I posted: (require 'diary) I obtain (also for (load-library diary) ): File error: Cannot open load file, diary I assume I'm missing some diary.el (?). I'm wondering why diary is needed anyway? Julien does not specifically mention it: http://julien.danjou.info/org-contacts.html Cheers, Marius Note that load-library takes a string as argument, whereas require takes a symbol. Nick On 2011-11-08, at 23:33 , Jambunathan K wrote: Debugger entered--Lisp error: (void-function diary-anniversary) There is a universal solution to this problem M-x load-library RET diary TAB and choose which of the options make most sense or try each one of them in turn. Note that in the above load-library you are using diary because it is the prefix of function (or variable) which reported as void. The load-library call unvoids the void things.
Re: [O] How to set up anniversaries/birthdays with org-contacts-anniversaries?
Okay, I assume it's (require 'diary-lib) then. On 2011-11-09, at 00:13 , Marius Hofert wrote: On 2011-11-09, at 00:06 , Nick Dokos wrote: Marius Hofert marius.hof...@math.ethz.ch wrote: Thanks for the explanation. Is there also an equivalent solution by just adjusting .emacs? If you are going to use emacs extensively, you probably should read the emacs reference manual and maybe the emacs lisp introduction as well. M-x foo RET is entirely equivalent to evaluating (foo) which is a call to function foo. (foo) is the more general mechanism: it works for any lisp function, M-x foo works iff foo is a command (aka an interactive function). The form (foo) can be added to .emacs. load-library is a command that takes an argument: the name of the library to load. See its doc string for details. M-x load-library RET diary RET is entirely equivalent to evaluating (load-library diary) This calls the function load-library with the string argument diary. This form can be added to .emacs. Alternatively, you can use the require form that I posted: (require 'diary) I obtain (also for (load-library diary) ): File error: Cannot open load file, diary I assume I'm missing some diary.el (?). I'm wondering why diary is needed anyway? Julien does not specifically mention it: http://julien.danjou.info/org-contacts.html Cheers, Marius Note that load-library takes a string as argument, whereas require takes a symbol. Nick On 2011-11-08, at 23:33 , Jambunathan K wrote: Debugger entered--Lisp error: (void-function diary-anniversary) There is a universal solution to this problem M-x load-library RET diary TAB and choose which of the options make most sense or try each one of them in turn. Note that in the above load-library you are using diary because it is the prefix of function (or variable) which reported as void. The load-library call unvoids the void things. ETH Zurich Dr. Marius Hofert RiskLab, Department of Mathematics HG E 65.2 Rämistrasse 101 8092 Zurich Switzerland Phone +41 44 632 2423 marius.hof...@math.ethz.ch http://www.math.ethz.ch/~hofertj
Re: [O] How to set up anniversaries/birthdays with org-contacts-anniversaries?
(load-library diary) This calls the function load-library with the string argument diary. This form can be added to .emacs. Alternatively, you can use the require form that I posted: (require 'diary) I obtain (also for (load-library diary) ): File error: Cannot open load file, diary I assume I'm missing some diary.el (?). Nope, I'm wrong: diary-anniversary is in diary-lib, so the correct form is (load-library diary-lib) or (require 'diary-lib) okay, that's also what I tried and it worked. However, I still see the Bad sexp... error when there is a BIRTHDAY tag *without* date, so just a line containing :BIRTHDAY: But that's of course not a big issue.
Re: [O] org-capture-template: SCHEDULED: obsolete?
Thanks a lot, Jan, that explained it very well. Cheers, Marius On 2011-11-06, at 11:30 , Jan Böcker wrote: On 11/05/2011 11:35 PM, Marius Hofert wrote: Apparently, the string SCHEDULED: is not required for an entry to appear in agenda view. Hi Marius, the difference between date and SCHEDULED: date is that date will cause the entry to appear in the agenda only on the given day, whereas SCHEDULED: date will also cause the entry to be displayed on the current day if it is scheduled in the past and has not been marked DONE yet. To see what I mean, put the following entries into an agenda file: * Test 1 SCHEDULED: 2011-11-05 Sat * DONE Test 2 SCHEDULED: 2011-11-05 Sat * Test 3 2011-11-05 Sat Because Test 1 it is not marked done, if you refresh your agenda view today, you will see something like this: Sched. 2x: Test 1 Test 2 does not show up because it is marked DONE and Test 3 does not show up because it does not contain the SCHEDULED keyword. (Note that Test 1 will only show up on the agenda view for today and the day it was scheduled for when you look at the agenda view for a day in the past or future, for example by using the weekly or monthly view or going forward/backward with the f and b keys. For more information, please refer to Section 8.3, Deadlines and scheduling, in the Org manual. Hope this helps, Jan
[O] org-capture-template: How to correctly capture email addresses?
Hi, I would like to capture contacts (name, email,..) with org-mode and thus setup the following in .emacs: (setq org-capture-templates '((t TODO in ~/org/agenda.org - Tasks entry (file+headline ~/org/agenda.org Tasks) * TODO %?\nSCHEDULED: %^t\n%U %a) (c Contact in ~/org/contacts.org - Contact entry (file+headline ~/org/contacts.org Contact) * %?%(org-contacts-template-name) %^g :PROPERTIES: :EMAIL: %(org-contacts-template-email) :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY: :NOTE: :END:))) I can easily capture contacts with C-c c c, it prompts for the name, a tag, and the email address. However, instead of an output like * My contact :my.tag: :PROPERTIES: :EMAIL: my.cont...@my.mail.com :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY: :NOTE: :END: I obtain: * My contact :my.tag: :PROPERTIES: :EMAIL: :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY: :NOTE: :EMAIL: my.cont...@my.mail.com :END: So the problem is that the first :EMAIL: is ignored and instead a second :EMAIL: is inserted before :END:. How can I obtain the correct output (as described above)? Cheers, Marius
[O] How to set up anniversaries/birthdays with org-contacts-anniversaries?
How can I set up anniversaries with org-contact? My agend.org file contains the following, as mentioned on the bottom of http://julien.danjou.info/org-contacts.html #+STARTUP: showeverything * Birthdays %%(org-contacts-anniversaries) My contacts.org file contains (e.g.): * My contact :my.tag: :PROPERTIES: :EMAIL: my.cont...@my.address.org :URL: :WORK: :HOME: :MOBILE: :LOCATION: :BIRTHDAY: 2000-01-01 :NOTE: :END: When I access agenda view via C-c a a, I obtain: Bad sexp at line 3 in /Users/myusername/org/agenda.org: (org-contacts-anniversaries) [7 times] Note that line three corresponds to %%(org-contacts-anniversaries) Cheers, Marius
[O] #+STARTUP: content: How to expand only some sections on startup?
Hi, as described on http://orgmode.org/manual/Visibility-cycling.html one can set #+STARTUP: content to start an .org file with all headlines shown, the default is overview. I tried to put #+STARTUP: content in some sections hoping that they will be expanded on startup while other sections will not be expanded (so following overview). Is something like this possible? Cheers, Marius
Re: [O] #+STARTUP: content: How to expand only some sections on startup?
Okay, I figured it out. There's a visibility property for that, e.g.: :PROPERTIES: :VISIBILITY: content :END: Cheers, Marius On 2011-11-06, at 15:27 , Marius Hofert wrote: Hi, as described on http://orgmode.org/manual/Visibility-cycling.html one can set #+STARTUP: content to start an .org file with all headlines shown, the default is overview. I tried to put #+STARTUP: content in some sections hoping that they will be expanded on startup while other sections will not be expanded (so following overview). Is something like this possible? Cheers, Marius
[O] org-capture-template: SCHEDULED: obsolete?
Hi I set up org-capture-templates like this: (setq org-capture-templates '((t TODO in ~/org/agenda.org - Tasks entry (file+headline Tasks) * TODO %?\n%^t\n%a))) If I fire up C-c a a in ~/org/agenda.org, I'll see the entries created via C-c c. They are displayed in the foreground color. I am wondering if I should adjust the above template to insert the date as SCHEDULED: date instead of just date? Apparently, the string SCHEDULED: is not required for an entry to appear in agenda view. However, a difference I saw was that SCHEDULED: date entries appeard in a different color ( a light green on my black background). An advantage of using the shorter version is, that the string Scheduled: does not appear in agenda view which creates more space for the Todo's heading. Cheers, Marius
[O] How to install contributions to org-mode such as org-contacts?
Hi, I downloaded and successfully installed the latest version org-mode (M-x org-version shows 7.7). I was hoping to get org-contacts with it, too, but when putting (require 'org-contacs) in .emacs, I obtain: Warning (initialization): An error occurred while loading `/Users/mhofert/.emacs': File error: Cannot open load file, org-contacts To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace. Org-contacts is one of the contributions and can be found in org-7.7/contrib. How can I install this org-mode contribution (on Mac OS X 10.7.2 with GNU Emacs 23.3 (9.0))? I installed the latest org-mode version by setting (in ./Makefile): EMACS=/Applications/Emacs.app/Contents/MacOS//emacs lispdir=/Applications/Emacs.app/Contents/Resources/lisp/ infodir=/Applications/Emacs.app/Contents/Resources/info I checked the contribution README, but that didn't tell me how to install org-mode ocntributions. Cheers, Marius
Re: [O] How to install contributions to org-mode such as org-contacts?
Dear Brian, thanks a lot. It's working now. I followed the instructions, but (erroneously) thought that the copying to some folder and using load-path is not required. Cheers, Marius On 2011-10-28, at 14:23 , Brian van den Broek wrote: On 28 October 2011 14:07, Marius Hofert marius.hof...@math.ethz.ch wrote: Hi, I downloaded and successfully installed the latest version org-mode (M-x org-version shows 7.7). I was hoping to get org-contacts with it, too, but when putting (require 'org-contacs) in .emacs, I obtain: Warning (initialization): An error occurred while loading `/Users/mhofert/.emacs': File error: Cannot open load file, org-contacts To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace. Org-contacts is one of the contributions and can be found in org-7.7/contrib. How can I install this org-mode contribution (on Mac OS X 10.7.2 with GNU Emacs 23.3 (9.0))? I installed the latest org-mode version by setting (in ./Makefile): EMACS=/Applications/Emacs.app/Contents/MacOS//emacs lispdir=/Applications/Emacs.app/Contents/Resources/lisp/ infodir=/Applications/Emacs.app/Contents/Resources/info I checked the contribution README, but that didn't tell me how to install org-mode ocntributions. Cheers, Marius Marius, Do you do what the fine manual suggests?: If you plan to use code from the contrib subdirectory, do a similar step for this directory: (setq load-path (cons ~/path/to/orgdir/contrib/lisp load-path)) http://orgmode.org/manual/Installation.html#Installation Best, Brian vdB
Re: [O] How to get numbered lists (1), (2), … ?
I'm 100% with Eric, just that I would say - and (1) are enough. On 2011-10-15, at 16:14 , Eric S Fraga wrote: Carsten Dominik carsten.domi...@gmail.com writes: On 14.10.2011, at 13:31, Nicolas Goaziou wrote: [...] I have nothing against (1) as item bullets, as it doesn't interfere with any existing Org syntax. That is not the only criterion. Adding new syntax elements make more ASCII sequences special. The Org markup is a heuristic set of special elements, and there is merrit in keeping it small. We already have more bullets and in particular numbered types - and so far I have not seen a compelling reason to add more. - Carsten I am in the keep it simple school. So long as org allows me to distinguish between numbered and unnumbered itemised lists, I am happy. I actually would prefer less choices than there are currently because I would like to get to my choice more quickly when I do use C-c - to change the type! To me, org is about information and time management, not about formatting. YMMV, of course! To be blunt, I would be happy with - and 1. in org, knowing that I can customise upon export if necessary! I'm not suggesting we go this far, however ;-) -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.90.1 : using Org-mode version 7.7 (release_7.7.381.g05ea) ETH Zurich Dr. Marius Hofert RiskLab, Department of Mathematics HG E 65.2 Rämistrasse 101 8092 Zurich Switzerland Phone +41 44 632 2423 marius.hof...@math.ethz.ch http://www.math.ethz.ch/~hofertj
Re: [O] How to get numbered lists (1), (2), … ?
Hi all, I am quite impressed by this discussion, thanks a lot. I am an org-mode user for just a couple of days, and an emacs user for four weeks today. Needless to say, I can't contribute anything useful to this discussion. The only thing(s) I would like to say is/are: (1) If it is not too complicated from a technical point of view, I would strongly recommend to enable lists like (1), (2), etc. I gave some reasons in one of my earlier e-mails in this thread. There are many more (from a typography point of view, but also from a technical point of view [e.g., if you have auto-pairing of parentheses enabled, it's just more convenient.]). (2) From a LaTeX point of view, I am sure the experts here (and I mean everyone in this thread except me) know the LaTeX package enumitem. It gives the greatest flexibility of creating lists I know of and behaves better in many circumstances than other enumerate-like environments. So I can only recommend using this approach for making lists (in which way this is possible/desirable I can't tell since I'm not an org-mode expert). I will certainly become a heavy org-mode user in the next months/years. Lists like (1), (2),... I would definitely use a lot. Cheers, Marius On 2011-10-14, at 14:05 , Jambunathan K wrote: What about letting go those two variables and create `org-list-bullet-types', which would be a list of strings like: '(- + * 1. 1) (1) a. a) A) A.) It would be hard-coded but every bullet type could be opt-in or opt-out via customize. The default value should be as short as possible like '(- + * 1. a.). I can work it out in a few days if we agree. What percentage of users (OK, not percentage of users but numbers of users) you think will *actually* exercise the opt-in and opt-out configuration if provided? If the number of hands raised is in single digits, I would assume that it is more of a niche feature and let go of it. Is it psychologically very taxing to see 1. instead of a (1) in an Org buffer. Could it be so taxing that a user's productivity will be impacted by it? Or Is it that more varieties of bullets is needed for creating rich deeply nested lists so that each level of the list can take on a different bullet for better differentiation. --
[O] How to get numbered lists (1), (2), … ?
Dear all, In the manual, I found that numbered lists can be created with 1), 2), ... or 1., 2., ... How can I get numbered lists like this: (1), (2),...? I found org-list-demote-modify-bullet, but the help (and a google search) did not help me in finding a solution to this. Cheers, Marius
Re: [O] How to get numbered lists (1), (2), … ?
Dear Suvayu, thanks. It would be good to know how latex export can be customized to achieve this. Cheers, Marius On 2011-10-13, at 11:37 , suvayu ali wrote: On Thu, Oct 13, 2011 at 11:11 AM, Marius Hofert marius.hof...@math.ethz.ch wrote: Dear all, In the manual, I found that numbered lists can be created with 1), 2), ... or 1., 2., ... How can I get numbered lists like this: (1), (2),...? I found org-list-demote-modify-bullet, but the help (and a google search) did not help me in finding a solution to this. I don't think you can. But you can customise latex export (maybe even html export, but I don't know) to show lists like that in the exported file. I hope this helps. Cheers, Marius -- Suvayu Open source is the future. It sets us free.
Re: [O] How to get numbered lists (1), (2), … ?
Dear Nick, thanks for helping. What do you mean by better solution? As far as I can tell, your approach is precisely what Suvayu pointed to. Using your approach, of course much more is possible, please look at the create enumitem package with all its customizations. But this approach is a no-go for me (at least at the moment) mainly due to the following reasons (please let me know if I'm wrong, I'm a total newbie to org-mode): 1) I have about 40 lists in one file. Having to put in special LaTeX commands is not an option (maybe on only has to type it in once, but then it can easily get overseen, e.g., when you move lists around and the one containing the LaTeX commands is not the first one in the document anymore) 2) org-mode is basically a better text-mode. I don't want to have LaTeX code in there if I print it as a .txt file. Is there a solution without having to put #+LATEX_HEADER: \usepackage{enumerate} before each list? Can this be set anywhere in the preferences? But I assume that I still have to put in lists in org-mode like this: 1.,2.,... or 1),2),... and can't put them in like this (1),(2),...? Hmm... this is indeed a drawback. The latter lists a far better visible, they are more consistent with respect to other list types such as (i), (ii), etc., and ultimately also with respect to numbering of equations. There are probably even more typographic reasons to display lists like this. For example, if you refer to a list within a theorem environment (which has a label itself) and you use 1., 2.,... lists, then this looks like this: Theorem 1.2 2. shows that ... The eye hardly sees that one means Theorem 1.2 Part (2). Even worse, when reading this, one thinks that the sentence stops after 2.. It's really a bad thing, and not getting much better with right-sided parentheses. Cheers, Marius On 2011-10-13, at 21:10 , Nick Dokos wrote: [ I started this earlier but I guess I didn't send it out. Suvayu has replied in the meantime with a pointer to a better solution than this one, but this might be of some minor interest to some people as well - besides, I spent a whole 20 minutes on it, half of it trying to figure out why my mail was not working :-( : why let that effort go to waste?:-) ] Marius Hofert marius.hof...@math.ethz.ch wrote: Dear Suvayu, thanks. It would be good to know how latex export can be customized to achieve this. Depends on how much customization you are willing to go through: there is an enumerate.sty package in LaTeX that can do that: --8---cut here---start-8--- ... \usepackage{enumerate} ... \begin{enumerate}[(1)] \item foo \item bar \end{enumerate} ... --8---cut here---start-8--- Inserting the \usepackage from the org file is no problem: --8---cut here---end---8--- #+LATEX_HEADER: \usepackage{enumerate} ... --8---cut here---end---8--- Getting the argument to the enumerate environment in the right place is another matter. I think the only way is to redefine org-list-generic-to-latex like this (add this to your initialization file, .emacs or whatever, after you load org): --8---cut here---start-8--- (require 'org-list) (defun org-list-to-latex (list optional params) Convert LIST into a LaTeX list. LIST is as returned by `org-list-parse-list'. PARAMS is a property list with overruling parameters for `org-list-to-generic'. (org-list-to-generic list (org-combine-plists '(:splice nil :ostart \\begin{enumerate}[(1)]\n :oend \\end{enumerate} :ustart \\begin{itemize}\n :uend \\end{itemize} :dstart \\begin{description}\n :dend \\end{description} :dtstart [ :dtend ] :istart \\item :iend \n :icount (let ((enum (nth depth '(i ii iii iv (if enum ;; LaTeX increments counter just before ;; using it, so set it to the desired ;; value, minus one. (format \\setcounter{enum%s}{%s}\n\\item enum (1- counter)) \\item )) :csep \n :cbon \\texttt{[X]} :cboff \\texttt{[ ]} :cbtrans $\\boxminus$) params))) --8---cut here---end---8--- The only change is the definition of :ostart. Not a very flexible method, but it will serve in a pinch. ngz et al. might have better ideas. I should say that there are other ways to customize enumeration labels in LaTeX - see e.g. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=enumerate - but afaict they would all require some rewiring of the above function, similar to the above. Nick Cheers, Marius On 2011-10-13, at 11