brain initiation

This commit is contained in:
2025-11-05 09:18:11 +01:00
commit 933aa8a985
191 changed files with 6203 additions and 0 deletions

48
20230522124931-auctex.org Normal file
View File

@@ -0,0 +1,48 @@
:PROPERTIES:
:ID: 3dfde3f4-2cc0-4356-a147-d4afd599e731
:END:
#+title: auctex
#+filetags: :EMACS:latex:
Auctex is an [[id:5f1df0e1-384f-4685-ae1e-fec2431b04e5][emacs]] [[id:b7c4f849-d1b1-4837-8634-82f6976a1473][package]] from [[id:4e30f168-3601-4b99-9daa-790161c03901][elpa]] or [[id:79bae242-a2b4-4753-9960-1f929c8c6300][melpa]] that can be installed as an [[id:d3e11792-af05-4213-9ef8-b680c12ce81c][IDE]] for [[id:345d5300-432c-4f6f-98a4-4527e955927f][latex]]. With this the text editor detects the ending ~.tex~ of the latex scripts and uses a [[id:57fcd48a-de61-4ced-8a4c-943cb78595db][major-mode]].
* implementation into emacs
To activate the auctex package install it from elpa or melpa using ~M-x package-install~
#+begin_src elisp
;;LATEX (AUCTEX)
(setq LaTeX-electric-left-right-brace t)
(setq TeX-auto-save t) ;autosave
(setq TeX-save-query nil) ; Keine Abfrage nach Speichern
(setq TeX-parse-self t) ;parsen
(setq-default TeX-master nil) ;(fragt jedes mal nach dme Master
(add-hook 'LaTeX-mode-hook 'visual-line-mode)
(dolist (hook '(text-mode-hook))
(add-hook hook (lambda () (flyspell-mode 1))))
;;(add-hook 'LaTeX-mode-hook 'flyspell-mode)
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)
(add-hook 'reftex-load-hook 'imenu-add-menubar-index)
(add-hook 'reftex-mode-hook 'imenu-add-menubar-index)
(setq TeX-PDF-mode t)
(require 'tex)
(setq-default TeX-PDF-mode t)
(TeX-global-PDF-mode t)
;;ac-tex-ref
(add-hook 'tex-mode-hook
(lambda ()
(require 'ac-tex-ref)
(make-local-variable 'ac-sources)
(add-to-list 'ac-sources 'ac-source-tex-ref)
(add-to-list 'ac-sources 'ac-source-tex-cite)))
;LAtex Normal Mode
(setq latex-run-command "pdflatex")
(add-hook 'latex-mode-hook ;; guessing
'(lambda ()
(local-set-key "M-TAB" 'TeX-complete-symbol)))
#+end_src