TeX - LaTeX Asked by Pouya on March 8, 2021
Auctex has a nice feature that fills the paragraph (LaTeX-fill-paragraph
) based on emacs’ fill-column
. This as you know extends to environments as well (C-c C-q C-e
). This works fine for me when I write alone, however, when I work with colleagues who doesn’t use emacs necessary, it becomes problematic.
My coauthors often complains that my latex code dictates my column width to them. Other editors has a soft-wrap functionality that looks like a newline in the editor but there is no real newline.
Is there a way, that I could have Auctex to fill paragraph but doesn’t insert actual new lines?
Adding the following to the .emacs
file worked for me:
(require 'mode-local)
(defvar-mode-local tex-mode fill-column 1000000 "")
It basically increases the fill-column size to a large value (only in the tex-mode).
A minimal example using use-package
:
(use-package tex
:ensure auctex
:if (display-graphic-p)
:defer t
:mode
(".tex'" . tex-mode)
:config
;; Avoids column fill when formatting
(require 'mode-local)
(defvar-mode-local tex-mode fill-column 1000000 ""))
Answered by Jae on March 8, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP