emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: Cdlatex questions
Date: Wed, 19 Oct 2011 09:30:53 +0200	[thread overview]
Message-ID: <031A7D1E-5785-46B9-9727-AC7168AD01A6@gmail.com> (raw)
In-Reply-To: <87lisjpf4o.fsf@gmail.com>


On 17.10.2011, at 21:55, Rasmus wrote:

> Hi, 
> 
> I would like to add to cdlatex.  However, it does not seem to work.
> This is probably the best place to ask. 
> 
> First, I want to add \mathbb{·} to cdlatex-math-modify-alist. 
> 
> Second, I want to change \mathbf{·} to \boldsymbol{·}, which is nicer
> and works with greek letters.
> 
> I have tried to add the following code:
> 
> #+begin_src emacs-lisp
> (add-to-list 'cdlatex-math-modify-alist
> '(98 "\\boldsymbol" "\\textbf" t nil nil))
> 
> (add-to-list 'cdlatex-math-modify-alist
> '(115 "\\mathbb" nil t nil nil))
> #+end_src

Hi Rasmus,

you need to set these variables before cdlatex.el has been loaded, or you need
run (cdlatex-reset-mode) after you have changed them.  THis is not documented well,
unfortunately.

> 
> However, it does not work; should I do something else to add symbols to
> cdlatex?
> 
> Third, I would like to change the cdlatex-math symbol to something less
> annoying.  I have tried
> 
> #+begin_src emacs-lisp 
> (org-defkey org-cdlatex-mode-map "¨" 'cdlatex-math-symbol)
> #+end_src 
> 
> However, this does not catch all cases, and for example "¨ ¨" will not
> go to the second page.  Is there an easy way to change '`'.

You also need to change `cdlatex-math-symbol-prefix'.

HTH

- Carsten

> 
> –Rasmus
> 
> -- 
> Sent from my Emacs
> 
> 

  reply	other threads:[~2011-10-19  7:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-17 19:55 Cdlatex questions Rasmus
2011-10-19  7:30 ` Carsten Dominik [this message]
2011-10-19 20:14   ` Rasmus Pank Roulund

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=031A7D1E-5785-46B9-9727-AC7168AD01A6@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /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).