Re: [O] CDLaTeX in Org document

2013-10-27 Thread Carsten Dominik

On 26.10.2013, at 08:47, Vladimir Lomov  wrote:

> Hello,
> I'm using CDLaTeX with Org documents and with LaTeX ones (AUCTeX major
> mode). I configured cdlatex to insert closing brackets and dollar (
> '$({[' ) and this works fine in AUCTeX major mode. Is it possible to use
> similar feature in combination Org+cdlatex?

Hi Vladimir,

this is not supported currently.  Overwriting the key bindings
for ([{ and $ would cause other problems, because Org already
does other stuff with self-insert characters (see the function
org-self-insert-command) like speed commands and automatic
adjustments in tables.  So there is not simple fix, would
require a more complex fix.

- Carsten

> 
> I tested with following settings
>  8< 
> (add-to-list 'load-path "/usr/share/emacs/site-lisp/org")
> (add-to-list 'load-path "/usr/share/emacs/site-lisp/auctex")
> (setq cdlatex-simplify-sub-super-scripts nil)
> (setq cdlatex-paired-parens "$([{")
> (require 'org)
> (add-hook 'org-mode-hook 'turn-on-org-cdlatex)
> (setq org-use-sub-superscripts '{})
>  8< 
> 
> And it didn't work.
> 
> ---
> WBR, Vladimir Lomov
> 
> -- 
> 
> There's no heavier burden than a great potential.
> 




[O] CDLaTeX in Org document

2013-10-25 Thread Vladimir Lomov
Hello,
I'm using CDLaTeX with Org documents and with LaTeX ones (AUCTeX major
mode). I configured cdlatex to insert closing brackets and dollar (
'$({[' ) and this works fine in AUCTeX major mode. Is it possible to use
similar feature in combination Org+cdlatex?

I tested with following settings
 8< 
(add-to-list 'load-path "/usr/share/emacs/site-lisp/org")
(add-to-list 'load-path "/usr/share/emacs/site-lisp/auctex")
(setq cdlatex-simplify-sub-super-scripts nil)
(setq cdlatex-paired-parens "$([{")
(require 'org)
(add-hook 'org-mode-hook 'turn-on-org-cdlatex)
(setq org-use-sub-superscripts '{})
 8< 

And it didn't work.

---
WBR, Vladimir Lomov

-- 

There's no heavier burden than a great potential.