help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Run `fill-paragraph' on all the paragraphs in the currently opened L


From: Hongyi Zhao
Subject: Re: Run `fill-paragraph' on all the paragraphs in the currently opened LaTeX document.
Date: Mon, 18 Oct 2021 08:22:01 +0800

On Sun, Oct 17, 2021 at 11:30 PM Yuri Khan <yuri.v.khan@gmail.com> wrote:
>
> On Sun, 17 Oct 2021 at 12:30, Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> > The `fill-paragraph' will fill a paragraph at or after the point. But
> > I want to `fill-paragraph' on all the paragraphs in the currently
> > opened LaTeX document. Is there a convenient way to do this?
>
> Why do you even want that?

I use SyncTeX to do the forward and backward search, which is based on
linefeed separated line to locate the position in the source LaTeX
document. If a paragraph is arranged in one line, the backward search
will always jump to a very inaccurate location.

> When you compile,
> LaTeX will lay out your text by typographic rules.
> Meanwhile, you’ll have better experience
> treating your LaTeX source as source code —
> keep it in a VCS
> and format using semantic linefeeds[1].
>
> [1]: https://rhodesmill.org/brandon/2012/one-sentence-per-line/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]