[O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip

2013-11-30 Thread Miguel Ruiz
Hello, I use cygwin only cli, so I depend on html, pdf and odt MSWindows viewer. I could manage to add this code to my .emacs: (if (eq system-type 'cygwin)  (add-hook 'org-mode-hook       '(lambda ()          (delete '("\\.x?html?\\'" . default) org-file-apps)          (add-to-list 'org-file-app

Re: [O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip

2013-11-30 Thread Miguel Ruiz
Thank you, Jambunathan. 1/ I'm running Emacs 24.3.1 (i686-pc-cygwin) of 2013-08-14 on moufang; it's Windows Emacs built into cygwin, so you don't have to have X11 installed in cygwin for graphical Emacs. 2/ I forgot to say I'm a running mintty 1.1.3 so "open" is not available, I can use cygsta

Re: [O] How do I specify the language for a :results code block

2013-11-30 Thread Alan Schmitt
Hello Thomas and Charles, ccbe...@ucsd.edu writes: > A simple example: generate code in sh that is run in emacs-lisp This is almost what I want, with two differences: I don't want to run the generated code, but to pretty-print it, and I want to do this with another language than emacs-lisp. > #

[O] Cannot generate latex preview images (Was: imaxima babel)

2013-11-30 Thread Alan Schmitt
Hello, yggdra...@gmx.co.uk writes: > Alan Schmitt writes: > >> I tried previewing the fragment, but I got the error: >> >> , >> | Failed to create dvi file from >> /var/folders/68/fvntfrw92y50gkk_67rkhsfwgn/T/orgtex16220cbr.tex >> ` >> >> Looking at the tex file and the log file, it

Re: [O] Cannot generate latex preview images

2013-11-30 Thread Nicolas Goaziou
Hello, Alan Schmitt writes: > The reason I have xltxtra is because I add it to the latex packages to > use for export: > > (add-to-list 'org-latex-packages-alist '("" "xltxtra" t)) ^^^ With this t, you are asking to use it also for snip

Re: [O] Getting checkboxes in HTML output?

2013-11-30 Thread Rick Frankel
On Sat, Nov 30, 2013 at 07:54:42AM +0100, Carsten Dominik wrote: > I don't thing the partial ones work - we should just make then > unchecked in export if there is nothing better. the grey dos not > convey the right information. I agree, but couldn't think of any other way. There are 3 other uni

Re: [O] How do I specify the language for a :results code block

2013-11-30 Thread Thomas S. Dye
Alan Schmitt writes: > I tried this alternate approach, to directly generate the block: > > #+name: fetchcoq2 > #+BEGIN_SRC sh :exports none :results raw :var f="demo.v" > echo "#+BEGIN_SRC coq" > head $f > echo > echo "#+END_SRC" > #+END_SRC > > #+call: fetchcoq2("demo.v") > > But then I get a r

Re: [O] Babel support for the D language

2013-11-30 Thread Thomas S. Dye
Aloha Thierry, Thierry Banel writes: > Done ! > The first draft of > http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-D.html > has been committed. I pushed some minor edits. Looks good! All the best, Tom -- Thomas S. Dye http://www.tsdye.com

Re: [O] Getting checkboxes in HTML output?

2013-11-30 Thread Carsten Dominik
Hi Rick, On 30.11.2013, at 15:07, Rick Frankel wrote: > On Sat, Nov 30, 2013 at 07:54:42AM +0100, Carsten Dominik wrote: > >> I don't thing the partial ones work - we should just make then >> unchecked in export if there is nothing better. the grey dos not >> convey the right information. > >

Re: [O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip

2013-11-30 Thread Jambunathan K
Miguel Ruiz writes: Remove all your configurations and try this. This will use windows "open". (require 'org) ;; Make sure org is loaded (defun org-default-apps () "Return the default applications for this operating system." (cond ((eq system-type 'darwin) org-file-apps-defaults-m

Re: [O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip

2013-11-30 Thread Jambunathan K
Jambunathan K writes: > (eval-after-load 'org > '(when (eq system-type 'gnu/linux) ^ ^ 'cygwin > (setcdr (assq 'system org-file-apps-defaults-gnu ) "cygstart %s") >

Re: [O] Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip

2013-11-30 Thread Jambunathan K
Ignore my earlier suggestion. > (if (eq system-type 'cygwin) > (add-hook 'org-mode-hook > '(lambda () > (delete '("\\.x?html?\\'" . default) org-file-apps) > (add-to-list 'org-file-apps '("\\.x?html?\\'" . "cygstart %s")) > (delete '("\\.pdf\\'" . default) org-file-apps) > (add-to-list 'org-file-