Tag Info

Hot answers tagged

6

Add the following code to your initialization file and restart Emacs (eval-after-load "latex" '(progn (defun LaTeX-indent-calculate (&optional force-type) "Return the indentation of a line of LaTeX source. FORCE-TYPE can be used to force the calculation of an inner or outer indentation in case of a commented line. The symbols 'inner and ...


2

The insertion of environment labels is controlled by the LaTeX-label-alist variable. If you don't want environment labels, theoretically you would need to make that variable nil: (setq LaTeX-label-alist nil) Unfortunately, this setting will be overridden for the environments provided by the amsmath package and the longtable environment. A much more ...


1

Following and using the magnificent answer from @giordano, as base, to a follow up of the question, I made the changes directly in the file latex.el, and later configured and compiled AucTeX. The changes were mostly to try out \( instead of \[. ;; Items. (+ (LaTeX-indent-calculate-last force-type) LaTeX-item-indent)) ((looking-at "}") ...



Only top voted, non community-wiki answers of a minimum length are eligible