[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Latex, Auctex und Emacs



roman.kennke@t-online.de (Roman Kennke) writes:
> Ich benutze eben diese Kombi um Latex Files zu erstellen. Da gibts ein
> kleines Ärgernis: immer wenn ich " tippe kommt '' oder `` bei raus. Mag

In TeX gehen Umlaute mit:

\usepackage{german}
\usepackage[latin1]{inputenc}

> ja nett sein für englischsprachige Umgebungen, aber wenn man mal "a oder
> "s braucht wird man fast blöde ein " aus Emacs rauszubekommen. Kann man
> das irgendwo abstellen (Ich bin nicht gerade der Emacs/Lisp Hacker, wie
> man sieht)?

Mit diesem Problem bin ich zum ersten mal mit
Lisp in Kontakt gekommen... und habs bis heute
nicht verstanden.

Dazu suchst Du die tex-mode.el und kommentierst
ein bissl rum (vorher die tex-mode.el und
tex-mode.elc kopieren!):

;;; 2 Bloecke komplett raus fuer dt.
;;;###autoload
;;; (defcustom tex-open-quote "``"
;;;   "*String inserted by typing \\[tex-insert-quote] to open a quotation."
;;;   :type 'string
;;;  :group 'tex)
;;;
;;;###autoload
;;; (defcustom tex-close-quote "''"
;;;  "*String inserted by typing \\[tex-insert-quote] to close a quotation."
;;;  :type 'string
;;;  :group 'tex)

[...]

;;; (define-key map "\"" 'tex-insert-quote)

[...]

;;; Block raus fuer dt.
;;; (defun tex-insert-quote (arg)
;;;   "Insert the appropriate quote marks for TeX.
;;; Inserts the value of `tex-open-quote' (normally ``) or `tex-close-quote'
;;; \(normally '') depending on the context.  With prefix argument, always
;;; inserts \" characters."
;;;   (interactive "*P")
;;;   (if arg
;;;       (self-insert-command (prefix-numeric-value arg))
;;;     (insert
;;;      (cond ((= (preceding-char) ?\\) ?\")
;;; 	   ((memq (char-syntax (preceding-char)) '(?\( ?> ?\ )) tex-open-quote)
;;;	   (t tex-close-quote)))))

Danach noch ein M-x byte-compile
und dann testen, da ich das hier
aus meiner Erinnerung gemacht habe,
und die Maschine ist zur Zeit nicht
verfügbar.

Frank


--
Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-request@lists.debian.org
mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)



Reply to: