sanctus Posted March 7, 2008 Report Posted March 7, 2008 At work I just turned to xubuntu and emacs is installed with auctex I think; the consequence is that all shortcuts changed...for example I was used to type for compiling: ctrl-c ctrl-fnow it is (after a long search I figured this out): ctrl-c ctrl-c. I would like to go back to the usual comands , so is this due to auctex as I guess? Is there any use for auctex on linux (I thought it was only for compiling latex documents on emacs installed on windows)? Thanks very much for any hints and/or elucidations (is this english?)! Quote
alexander Posted March 7, 2008 Report Posted March 7, 2008 no no, auctex is an emacs package, so it matters not what platform it is on, it's an emacs package. it does change shortcuts, because it creates a load of them.... here is all the shortcuts that auctex creates: AUCTeX 11.85 here's auctex manual, detalied about everything it does:AUCTeX 11.85 compiling latex documents is done with the latex package auctex alows you to have latex syntax highlighting, and to preview your documents, and stuff Quote
sanctus Posted March 10, 2008 Author Report Posted March 10, 2008 Great link thanks! But to my question, why do I compile at home with C-c C-f and now at work with C-c C-c Latex Enter? Quote
alexander Posted March 10, 2008 Report Posted March 10, 2008 hold on, are you saying that same setup, you have latex at work and you compile it in emacs using C-c C-c and at home on the same setup you compile it with C-c C-f...? Quote
sanctus Posted March 10, 2008 Author Report Posted March 10, 2008 No I never said same setup: at home I installed fedora core 6 and no updates since at least 6 months at work I installed Xubuntu a few weeks ago with all updates... Quote
alexander Posted March 10, 2008 Report Posted March 10, 2008 oh, the packages that emacs comes with are different in FC6, and it is likely that auctex will have different shortcuts, based on which emacs packages are installed. but if you have auctex on one, and no auctex on the other machine, then auctex is what changed the shortcuts :P Quote
sanctus Posted March 10, 2008 Author Report Posted March 10, 2008 So back to my original question do you need auctex? i will check one of these nights at home if I have auctex installed... Quote
alexander Posted March 10, 2008 Report Posted March 10, 2008 not really, as i said, auctex does synthax highlighting and preview functions for emacs, but it has nothing to do with latex as a package. you can insert this in custom.el to have cool latex highlighting: (custom-set-faces ; only one 'custom-set-faces' entry must exist in custom.el '(default ((t (:foreground "white" :background "black" :size "12" :family "courier"))) t) '(cperl-array-face ((t (:foreground "orangered" :bold t)))) '(cperl-hash-face ((t (:foreground "Red" :bold t)))) '(cperl-nonoverridable-face ((t (:foreground "orange" :bold t)))) '(custom-button-face ((t (:bold t :foreground "#3fdfcf")))) '(custom-group-tag-face ((t (:underline t :foreground "blue")))) '(custom-saved-face ((t (:underline t :foreground "orange")))) '(custom-state-face ((t (:foreground "green3")))) '(custom-variable-button-face ((t (:bold t :underline t :foreground "white")))) '(dired-face-permissions ((t (:foreground "green")))) '(font-latex-bold-face ((((class color) (background light)) (:bold t)))) '(font-latex-italic-face ((((class color) (background light)) (:italic t)))) '(font-latex-math-face ((((class color) (background light)) (:foreground "green3")))) '(font-latex-sedate-face ((((class color) (background light)) (:foreground "gold")))) '(font-lock-comment-face ((t (:foreground "orange3")))) '(font-lock-doc-string-face ((t (:foreground "Wheat3")))) '(font-lock-function-name-face ((t (:foreground "blue" :bold t)))) '(font-lock-keyword-face ((t (:foreground "gold")))) '(font-lock-preprocessor-face ((t (:foreground "red" :bold t)))) '(font-lock-reference-face ((t (:foreground "orangered")))) '(font-lock-string-face ((t (:foreground "green3")))) '(font-lock-type-face ((t (:foreground "#886fff" :bold t)))) '(font-lock-variable-name-face ((t (:foreground "yellow" :bold t)))) '(font-lock-warning-face ((t (:foreground "Violetred" :bold t)))) '(highlight ((t (:foreground "red3" :background "white"))) t) '(isearch ((t (:foreground "red" :background "white"))) t) '(list-mode-item-selected ((t (:foreground "green"))) t) '(message-cited-text ((t (:bold t :italic nil)))) '(secondary-selection ((t (:foreground "white" :background "red"))) t) '(text-cursor ((t (:foreground "black" :background "green"))) t) '(zmacs-region ((t (:background "RoyalBlue"))) t) ) but yeah auctex allows you to do inline preview, thats about it... Quote
sanctus Posted March 10, 2008 Author Report Posted March 10, 2008 Actually where is it said to use the package auctex? I mean if I want to use the package amsmath I say at the beginning usepackage {amsmath}... I guess is hidden in some .el file loaded...but where? Quote
alexander Posted March 10, 2008 Report Posted March 10, 2008 it's an emacs package, not a latex one :P Quote
sanctus Posted March 10, 2008 Author Report Posted March 10, 2008 But somewhere (like .emacs?) you should be able to say to use it or not, no? Quote
alexander Posted March 10, 2008 Report Posted March 10, 2008 most likely ok, look at this: 1.1 Installation Read the section Installing AUCTeX, or Installation under MS Windows, respectively for comprehensive information about how to install AUCTeX. The installation routine tries to make the modes provided by AUCTeX the default for all supported file types. If this does not happen in your case, add (load "auctex.el" nil t t) to your init file and consult the section Loading the package. If you want to change the modes for which it is operative instead of the default, use M-x customize-variable RET TeX-modes RET If you want to remove a preinstalled AUCTeX completely before any of its modes have been used, (unload-feature 'tex-site) should accomplish that. those lines in your .emacs are likely the cause of auctex loading ;) try to comment them out Quote
alexander Posted March 10, 2008 Report Posted March 10, 2008 rather add (unload-feature 'tex-site) at the top, then comment out the (load "auctex.el" nil t t) line Quote
sanctus Posted March 11, 2008 Author Report Posted March 11, 2008 The only thing I have my .emacs file that refers to auctex is: (setq reftex-plug-into-AUCTeX t) So it have to be in another hidden file I guess... Quote
alexander Posted March 11, 2008 Report Posted March 11, 2008 wait, it refers to "to your init file" whatever file that is, you have to find it... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.