emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* CDLaTeX in Org document
@ 2013-10-26  6:47 Vladimir Lomov
  2013-10-27  8:12 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Lomov @ 2013-10-26  6:47 UTC (permalink / raw)
  To: General discussions about Org-mode

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: CDLaTeX in Org document
  2013-10-26  6:47 CDLaTeX in Org document Vladimir Lomov
@ 2013-10-27  8:12 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2013-10-27  8:12 UTC (permalink / raw)
  To: Vladimir Lomov; +Cc: General discussions about Org-mode


On 26.10.2013, at 08:47, Vladimir Lomov <lomov.vl@gmail.com> 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.
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-27  8:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-26  6:47 CDLaTeX in Org document Vladimir Lomov
2013-10-27  8:12 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).