From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Run `fill-paragraph' on all the paragraphs in the currently opened LaTeX document. Date: Mon, 18 Oct 2021 08:22:01 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27484"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 18 02:22:39 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mcGQJ-0006yh-DJ for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 18 Oct 2021 02:22:39 +0200 Original-Received: from localhost ([::1]:49568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcGQH-0002r2-Rm for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Oct 2021 20:22:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcGPv-0002qr-9M for help-gnu-emacs@gnu.org; Sun, 17 Oct 2021 20:22:15 -0400 Original-Received: from mail-ua1-x935.google.com ([2607:f8b0:4864:20::935]:39436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcGPt-0003R6-Ge for help-gnu-emacs@gnu.org; Sun, 17 Oct 2021 20:22:14 -0400 Original-Received: by mail-ua1-x935.google.com with SMTP id f3so4634810uap.6 for ; Sun, 17 Oct 2021 17:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=DOQ4f6BCLKX0tw+ZRmLJolJz6muYI9A+OZ19v09d2Gk=; b=PM+IvsErSaKLEp0KFVDiYDpjhL015m8r3ikl6i6pnAuzPlRSHWddIYrNNJaNeW6BDX rd18F9dFek+WcibV2tDRndpe21ePa0J4Hx96UhR5x0HAH4kh2AV7e2Ki4Ex/78vuaL3+ 7dp+0H4vtvGS/C3eEmZtaL/jz4Mh3wWkQpU6SvW+RB7bceK+Lr3hAOEr4qR7/Rb7SIKx /7lwg5exi3YQZCjO+OKIqUHOtUDPp0lnmSzSshE7/08meki0rZ+tT3+awK0BtoqFs9Na /h5WpV3oT+v3NHXDApRQ+zJtlQ8kWHD//95W/bmV10DMoherbUfT1Nd/uJOBTrIbfU84 AwHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=DOQ4f6BCLKX0tw+ZRmLJolJz6muYI9A+OZ19v09d2Gk=; b=3MyGIkmjVbs05e1GRWf9roeyePUlvIJl7TGT13bzi2nrCPP8Qykv8GPHxw9ItZJOZM uhi3WJZAdkolQRdzJFGqihszLJ09XbeHMs9zBc5kNDpn/fq8SUr4/VhuFNxONQP0wc6o 7VYXoPJDWKNGcaNRmhAVlUf8kbC+5Xxq7DZ+OlRzfH60HgcjrUkEPVCIWO7CmCgL6BUj ifuBpo12y6XFJb4tCbUVl5U59kAZGaK6ujxMbBHr4r3xkMUVjzCel+IBo7wJbEPPlnLY JNsPORlFnZNBaOfNkCtHz7o7GtnAeSkjt5PQuPDFfk7vAtiXDOx+kaSHCKMlE0Bu3/hU ZO+g== X-Gm-Message-State: AOAM53138sfZz7Fbh8mxYqd1stTzl5fjnt5oq3ge4t49PW06Hsm+FEn5 CpiyY5JJJ5Tv6a4H14BwBzQqTyKsXDNjj9I+4MA= X-Google-Smtp-Source: ABdhPJyje69/oWl4xmSpjMoFHNKvFwEs2SsUiKAuCY63ZZtpfQ1tA0C7GcHtSBT1+z4dLau5b7M04KhqSHaOWkhsxpo= X-Received: by 2002:a67:c31c:: with SMTP id r28mr24664382vsj.10.1634516532538; Sun, 17 Oct 2021 17:22:12 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::935; envelope-from=hongyi.zhao@gmail.com; helo=mail-ua1-x935.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133848 Archived-At: On Sun, Oct 17, 2021 at 11:30 PM Yuri Khan wrote: > > On Sun, 17 Oct 2021 at 12:30, Hongyi Zhao 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=E2=80=99ll have better experience > treating your LaTeX source as source code =E2=80=94 > keep it in a VCS > and format using semantic linefeeds[1]. > > [1]: https://rhodesmill.org/brandon/2012/one-sentence-per-line/