From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Cdlatex questions Date: Wed, 19 Oct 2011 09:30:53 +0200 Message-ID: <031A7D1E-5785-46B9-9727-AC7168AD01A6@gmail.com> References: <87lisjpf4o.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGQcA-00053Q-UL for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 03:31:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGQc9-0006tG-DX for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 03:31:02 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:56732) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGQc9-0006so-8y for emacs-orgmode@gnu.org; Wed, 19 Oct 2011 03:31:01 -0400 Received: by wwj40 with SMTP id 40so1595037wwj.30 for ; Wed, 19 Oct 2011 00:31:00 -0700 (PDT) In-Reply-To: <87lisjpf4o.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org On 17.10.2011, at 21:55, Rasmus wrote: > Hi,=20 >=20 > I would like to add to cdlatex. However, it does not seem to work. > This is probably the best place to ask.=20 >=20 > First, I want to add \mathbb{=B7} to cdlatex-math-modify-alist.=20 >=20 > Second, I want to change \mathbf{=B7} to \boldsymbol{=B7}, which is = nicer > and works with greek letters. >=20 > I have tried to add the following code: >=20 > #+begin_src emacs-lisp > (add-to-list 'cdlatex-math-modify-alist > '(98 "\\boldsymbol" "\\textbf" t nil nil)) >=20 > (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. >=20 > However, it does not work; should I do something else to add symbols = to > cdlatex? >=20 > Third, I would like to change the cdlatex-math symbol to something = less > annoying. I have tried >=20 > #+begin_src emacs-lisp=20 > (org-defkey org-cdlatex-mode-map "=A8" 'cdlatex-math-symbol) > #+end_src=20 >=20 > However, this does not catch all cases, and for example "=A8 =A8" 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 >=20 > =96Rasmus >=20 > --=20 > Sent from my Emacs >=20 >=20