Re: [O] CDlatex
Hi Nick, You are correct it is still there, but I can’t start cdlatex-mode via the org-mode-hook (i.e., include add-hook 'org-mode-hook 'turn-on-org-cdlatex in my .emacs file). It only works when it type M-x cdlatex-mode in the buffer. Maybe it is clashing with something. Best wishes, M
Re: [O] CDlatex
"Doyley, Marvin M."writes: > I just upgrade my org-mode, and it seems that the function > turn-on-org-cdlatex is no longer available, or maybe I am messing > something. It's still there in org.el, line 18812 or thereabouts. -- Nick
Re: [O] Cdlatex and ELPA
Rasmus ras...@gmx.us writes: Perhaps AUCTeX is a too heavy dependency which might 'talk' in favor of distributing textmathp.el separately. However, I'm not sure if package.el supports some kind of either (i) an or statement in 'Package-Requires' or (ii) a 'Package-Provides' for people who have AUCTeX installed. Of course texmathp.el could be required by AUCTeX, but that's a bit imposing. . . BTW: I more or less choose a random minimum version for AUCTeX. Probably an older version could be specified. In other words, I don't know the true minimum version. –Rasmus -- Hvor meget poesi tror De kommer ud af et glas isvand?
Re: [O] Cdlatex and ELPA
Rasmus writes: Since I use multiple computers I'd like to cdlatex in GNU ELPA. An outdated version is currently on Marmelade, but I think that version doesn't work with current Org (v4.0 vs. v4.6). Also, cdlatex deserves to be in GNU ELPA IMO. Don't you think that emacs-devel would be a better place for this discussion? Regards, Achim. -- +[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+ Wavetables for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables
Re: [O] CDLaTeX in Org document
On 26.10.2013, at 08:47, Vladimir Lomov lomov...@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.
Re: [O] CDLaTeX (4.0) not working in Org mode (8.0.3)?
On Mon, May 20, 2013 at 11:14 AM, Omid omidl...@gmail.com wrote: I see the following strange behavior from Org-CDLaTeX (OCDL). Outside a * heading it works. Inside a * heading (or anything under that) it does NOT work. What can be causing this? Here is a minimal example: # Org CDLaTeX (OCDL) works here (at least does not issue an error) \[ x^2 \] * heading ** subheading # Org CDLaTeX (OCDL) does NOT work here. Pressing ^ (caret) or _ # (underscore) causes the following error to appear in *Messages* # buffer: # # call-interactively: Symbol's value as variable is void: # last-command-char \[ x \] # Same error here. \begin{align*} x \end{align*} last-command-char should be changed to last-command-event in cdlatex.el. -- Longmin Wang (http://wanglm.droppages.com/) Nankai University, 94 Weijin Road, Tianjin 300071, P. R. China http://math.nankai.edu.cn/~wanglm/
Re: [O] CDLaTeX (4.0) not working in Org mode (8.0.3)?
Thanks. I confirm that this in fact solves the problem. On Mon, May 20, 2013 at 3:57 AM, Longmin WANG longminw...@gmail.com wrote: On Mon, May 20, 2013 at 11:14 AM, Omid omidl...@gmail.com wrote: I see the following strange behavior from Org-CDLaTeX (OCDL). Outside a * heading it works. Inside a * heading (or anything under that) it does NOT work. What can be causing this? Here is a minimal example: # Org CDLaTeX (OCDL) works here (at least does not issue an error) \[ x^2 \] * heading ** subheading # Org CDLaTeX (OCDL) does NOT work here. Pressing ^ (caret) or _ # (underscore) causes the following error to appear in *Messages* # buffer: # # call-interactively: Symbol's value as variable is void: # last-command-char \[ x \] # Same error here. \begin{align*} x \end{align*} last-command-char should be changed to last-command-event in cdlatex.el. -- Longmin Wang (http://wanglm.droppages.com/) Nankai University, 94 Weijin Road, Tianjin 300071, P. R. China http://math.nankai.edu.cn/~wanglm/
Re: [O] Cdlatex questions
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
Re: [O] Cdlatex questions
Carsten Dominik carsten.domi...@gmail.com writes: 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. Thanks Carsten. For the reference I use the following snip now which and it works as I want it to work. #+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)) (org-defkey org-cdlatex-mode-map ¨ 'cdlatex-math-symbol) (setq cdlatex-math-symbol-prefix 168) ;;(cdlatex-reset-mode) (require 'cdlatex) #+end_src –Rasmus -- Sent from my Emacs