emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Vladimir Lomov <lomov.vl@gmail.com>
Cc: General discussions about Org-mode <emacs-orgmode@gnu.org>
Subject: Re: CDLaTeX in Org document
Date: Sun, 27 Oct 2013 09:12:09 +0100	[thread overview]
Message-ID: <6785B119-D003-4D94-89BE-A8B04744F465@gmail.com> (raw)
In-Reply-To: <20131026064758.GD874@smoon>


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.
> 

      reply	other threads:[~2013-10-27  8:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-26  6:47 CDLaTeX in Org document Vladimir Lomov
2013-10-27  8:12 ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6785B119-D003-4D94-89BE-A8B04744F465@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=lomov.vl@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).