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: Sun, 17 Oct 2021 20:28:54 +0800 Message-ID: References: <834k9ggofc.fsf@gnu.org> <87ilxw7xt7.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2323"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 17 14:29:50 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 1mc5IU-0000Nv-G4 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Oct 2021 14:29:50 +0200 Original-Received: from localhost ([::1]:57160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mc5IS-0006vu-Jy for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Oct 2021 08:29:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mc5Ho-0006vW-93 for help-gnu-emacs@gnu.org; Sun, 17 Oct 2021 08:29:08 -0400 Original-Received: from mail-vk1-xa32.google.com ([2607:f8b0:4864:20::a32]:33386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mc5Hm-0003s1-Od for help-gnu-emacs@gnu.org; Sun, 17 Oct 2021 08:29:08 -0400 Original-Received: by mail-vk1-xa32.google.com with SMTP id t200so7368472vkt.0 for ; Sun, 17 Oct 2021 05:29:06 -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; bh=WWysMrnapYa6sG3rTo749uhQex2GoUJPoA4kmvkZUHQ=; b=EKH/PagxxnD7RVjDHMfSHsz+oOFa7ePA0DuAprfO9JR+ORySeoSEa6AD4LpPQmxgtl M2JrzwOrVQ/SMaPqLgIhRLeCwmat4IMsJk6d11hnWh8U62Cy5TkBVXpVvj+NR335DuCh aN0WqAUIB65RnD9Y6VhvvMPtGDzRnDLKYL5kt0gWwdAc/lvPLp0DPbWNUPSpz65MJRRu 8kKrIrBrK8BevpsbByYI83Eox3C07fdDOKY1n0KZvS3XFW55gaHtB0Vp4xptBbj5zVSm qvTdcJYIIFFrsaqfaf89XbhHeVMhLYkAmDG3pyvWnns7mF3hlruYQM7EXJx9Zl81r6Th 0ZOQ== 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; bh=WWysMrnapYa6sG3rTo749uhQex2GoUJPoA4kmvkZUHQ=; b=RhZfA8fc1AQf+5QigSzrVpdrnFcBpuHkaGA+8NI77jyyxTvvz+sbrefO9zwkhHLE+4 HLfeOoZ9PlCjB0ILC4bao0VJFTRLYWgEzmmywp3VulB0cz6gHx1D3xa7twJpiHtaQVJ1 26OYh9peD/2MqBLlIV6EdewLa4nSwnf4YjwiIS1TaE3wBmZz7PuT08q2jtkDSAOcSTbv 9F6Yp7zgZtuKgP6fTlJU5ynoNGwfakz1Hsg6rz69USxFGhminSU25jXPyCUShupSslot ywLRmXM3lrFR/Zpt2scSesg/kVETeumHmpN9EFPrBFQi0PUUq6n6oRPEtHJWw02otSbN YVTA== X-Gm-Message-State: AOAM531/XO+GBUycLBXYfU5/gFlVVYDhXnGztX+PwJ2DLx9YsG/GL2yO yA7TrVt4XGluL6qWKWIxCGmGjD7UFGpZRdNgdxGTn1GPTQduWkCL X-Google-Smtp-Source: ABdhPJw2dfHh5ygc6GfibdmN2pEHLuj0zWevlmg1xaDr+bNh/ErMNqJRzrkQYn1Kj2MpAS2a0DToIqMum9web642xPo= X-Received: by 2002:a1f:2408:: with SMTP id k8mr20688067vkk.11.1634473745683; Sun, 17 Oct 2021 05:29:05 -0700 (PDT) In-Reply-To: <87ilxw7xt7.fsf@zoho.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::a32; envelope-from=hongyi.zhao@gmail.com; helo=mail-vk1-xa32.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, 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:133835 Archived-At: On Sun, Oct 17, 2021 at 6:26 PM Emanuel Berg via Users list for the GNU Emacs text editor wrote: > > Hongyi Zhao wrote: > > > I only want the real text paragraphs to be filled without > > disturbing other LaTeX typesetting commands, say, avoiding > > running this command on the following text block > > > > %%%%%%%%% > > \documentclass[twocolumn,showpacs,preprintnumbers,amsmath,amssymb,prb,aps]{revtex4-1} > > \usepackage{epsfig}% Include figure files$ > > \usepackage{epstopdf} > > \usepackage{graphicx}% Include figure files > > \usepackage{dcolumn}% Align table columns on decimal point > > \usepackage{bm}% bold math > > \usepackage{textcomp} > > \usepackage{array} > > \usepackage{caption} > > \usepackage{xfrac} > > \usepackage{mathtools} > > \usepackage{amsmath} > > \usepackage{subfigure} > > %%%%%%%%% > > Naah ... it is a bad idea to adapt the code to the editing > command, better to adapt the command to the code! > > So drop the %%%%%%%%% is step one ... > > Step two is to - _think_ ... > > Will it be enough to not fill lines that start with \ (REVERSE > SOLIDUS or BACKSLASH)? > > And fill everything else? How to select/mark/narrow-to all the lines that don't start with `\'? HZ