emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* R: Re:  How to install CDLaTeX in emacs24, on Windows 7?
@ 2016-01-20 12:26 vendo.libri
  0 siblings, 0 replies; 2+ messages in thread
From: vendo.libri @ 2016-01-20 12:26 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2055 bytes --]

Rasmus, 
Thank you for your suggestion. 
I'm not very good at emacs so when you say "load path" do you mean <C:\home\.emacs.d\elpa\>? My .emacs configuration file is in <C:\home\>, so where do I put cdlatex.el? Do you know if yasnippet and cdlatex are compatible or not?Please refer to the screenshot at this link for Emacs my path file: http://stackoverflow.com/questions/34884310/emacs-org-cdlatex-mode-where-do-you-put-the-cdlatex-el-script

>----Messaggio originale----
>Da: Rasmus <rasmus@gmx.us>
>Data: 20-gen-2016 11.15
>A: <emacs-orgmode@gnu.org>
>Ogg: Re: [O] How to install CDLaTeX in emacs24, on Windows 7?
>
>"vendo.libri@libero.it" <vendo.libri@libero.it> writes:
>
>> Hello, I'm having trouble understanding in which directory to download
>> the cdlatex.el script that Mr. Dominik wrote. I'm on Windows 7, emacs
>> 24, my AUCTEX version is 11.88 and I also have Org-mode 8.2 and
>> yasnippet installed.
>> When I give the command M-x org-cdlatex-mode, Emacs responds "Cannot
>> open load file: no such file or directory, cdlatex". I've also tried
>> adding the following lines into my .emacs file but to no avail.
>> <pre>(autoload 'org-cdlatex-mode "cdlatex.el" "Enter org-cdlatex mode"
>> t)(add-hook 'org-mode-hook 'turn-on-org-cdlatex)</pre>
>> I'm not the only person experiencing this odd behavior, infact please
>> check this stackexchange thread:
>> http://emacs.stackexchange.com/questions/19614/org-cdlatex-doesnt-work.
>> Can someone please confirm that yasnippet and org-cdlatex-mode are not
>> incompatible?Do I need to download the script from ELPA as I did with
>> other packages? I cannot find this script in the list of packages that
>> come up if I type M-x list-packages. How can I fix this problem, I
>> really would like to use org-cdlatex-mode under Org-mode. Thanks in
>> advance!
>
>You can download it here:
>
>    https://raw.githubusercontent.com/cdominik/cdlatex/master/cdlatex.el
>
>Add it to your load path.
>
>Hope it helps,
>Rasmus
>
>-- 
>There are known knowns; there are things we know that we know
>
>
>


[-- Attachment #2: Type: text/html, Size: 2461 bytes --]

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

* R: Re:  How to install CDLaTeX in emacs24, on Windows 7?
@ 2016-01-20 16:09 vendo.libri
  0 siblings, 0 replies; 2+ messages in thread
From: vendo.libri @ 2016-01-20 16:09 UTC (permalink / raw)
  To: emacs-orgmode

Hello Rasmus, 
I did as you told me and finally CDLaTeX works in Org mode!
The command C-h v RET load-path RET revealed I had many load-paths, among 
them: 
"c:/home/.emacs.d/elpa/auctex-11.88.8/" 
"c:/Program Files/emacs-24.4/share/emacs/site-lisp" 
"c:/Program Files/emacs-24.4/share/emacs/24.4/lisp" 
"c:/Program Files/emacs-24.4/share/emacs/24.4/lisp/org" 

...just to name a few! I inserted it in "c:/Program Files/emacs-24.4
/share/emacs/24.4/lisp", restarted the machine and tried it out on an *.org 
file. It immediately recognized it!

However I now have a new problem -- when I enable CDLaTeX the backtick doesn't 
work! This is really annoying since many commands of CDLaTeX absolutely need 
the backtick symbol, ( ` ). When I press the key while in CDLaTeX mode, emacs 
says "Wrong type argument: characterp, 134217782". But if I disable CDLaTeX and 
press that key again, Org gives no problem and prints it on screen.

I should point out that I use Colemak keyboard layout (not sure if it's 
relevant) and I have redefined the backtick key and the tilde (Shift+backtick) 
in my .emacs configuration file, in the following way:

<pre>
;;; a key for tilde symbol
(define-key key-translation-map (kbd "M-2") (kbd "~"))
;;; a key for backtick symbol
(define-key key-translation-map (kbd "M-6") "")
(define-key key-translation-map (kbd "M-9") (kbd "`"))
</pre>

I suppose I must find a way to tell CDLaTeX that that key is backtick and it 
should accept it in order to execute the commands I'm typing. How do say that 
in e-lisp? 

>----Messaggio originale----
>Da: Rasmus <rasmus@gmx.us>
>Data: 20-gen-2016 15.25
>A: <emacs-orgmode@gnu.org>
>Ogg: Re: [O] How to install CDLaTeX in emacs24, on Windows 7?
>
>"vendo.libri@libero.it" <vendo.libri@libero.it> writes:
>
>> I'm not very good at emacs
>
>Don’t worry.  It will come!
>
>You could check (info "eintr"); it’s a pretty cool book.
>
>> so when you say "load path" do you mean <C:\home\.emacs.d\elpa\>? My
>> .emacs configuration file is in <C:\home\>, so where do I put
>> cdlatex.el? Do you know if yasnippet and cdlatex are compatible or not?
>
>It’s configurable.  Check the folders in the variable load-path
>(hint: do C-h v RET load-path RET; RET is Enter, C is Ctrl)
>
>Try to add something like this to your init.el:
>
>    (add-to-list 'load-path (expand-file-name
>                             (concat user-emacs-directory "lisp")))
>
>And evaluate it in the session (C-x C-e at last closing parenthesis).
>Then look up the value of load-path.  It will probably be something like
>C:\home\.emacs.d\lisp (I don’t know windows very well, sorry).  Now put
>the cdlatex.el in this folder.  It’s now in the Emacs load path and you,
>or Org, can require it.  If you want to be fancy, you can byte-compile
>cdlatex.el (M-x byte-compile-file).
>
>> Please refer to the screenshot at this
>> link for Emacs my path file:
>> http://stackoverflow.com/questions/34884310/emacs-org-cdlatex-mode-where-do-
you-put-the-cdlatex-el-script
>
>I did not check this.
>
>Hope it helps,
>Rasmus
>
>-- 
>The right to be left alone is a human right
>
>
>

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

end of thread, other threads:[~2016-01-20 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-20 16:09 R: Re: How to install CDLaTeX in emacs24, on Windows 7? vendo.libri
  -- strict thread matches above, loose matches on Subject: below --
2016-01-20 12:26 vendo.libri

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