unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Joe Corneli <jcorneli@math.utexas.edu>
Subject: Re: autofill for tex modes
Date: Fri, 15 Apr 2005 12:31:46 -0500	[thread overview]
Message-ID: <E1DMUfS-0005cK-00@lab45.ma.utexas.edu> (raw)
In-Reply-To: <85sm1sm1li.fsf@gnu.org> (message from David Kastrup on Fri, 15 Apr 2005 18:44:25 +0200)

   Joe Corneli <jcorneli@math.utexas.edu> writes:

   > Does anyone know of an autofill (or `fill-individual-paragraphs' type
   > of function, alternatively & maybe preferably) that works in LaTeX
   > modes?  I might have written a question about this a couple years ago.
   > The issue is to avoid messing up the formatting of e.g. large arrays,
   > while still having "most" lines be 70 characters long or less.  I
   > think I can write this pretty easily, but if it exists already, that's
   > even easier.

   AUCTeX <URL:http://www.gnu.org/software/auctex>

Is there an easy way to get LaTeX-fill-buffer from AUCTeX to ignore
comment blocks whenever they are encountered?

Currently, running it on a file with this header:

%%% This file is part of PlanetMath snapshot of 2005-02-15
%%% Primary Title: order of operations
%%% Primary Category Code: 00A99
%%% Filename: OrderOfOperations.tex
%%% Version: 3
%%% Owner: akrowne
%%% Author(s): akrowne
%%% PlanetMath is released under the GNU Free Documentation License.
%%% You should have received a file called fdl.txt along with this file.        
%%% If not, please write to gnu@gnu.org.

Gave me a file with _this_ header:

%%% This file is part of PlanetMath snapshot of 2005-02-15 Primary Title: order
%%%  of operations Primary Category Code: 00A99 Filename: OrderOfOperations.tex
%%%  Version: 3 Owner: akrowne Author(s): akrowne PlanetMath is released under
%%%  the GNU Free Documentation License.  You should have received a file called
%%%  fdl.txt along with this file.  If not, please write to gnu@gnu.org.

The rest of this function's behavior seems to be just what I want.

  reply	other threads:[~2005-04-15 17:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1660.1113582894.2895.help-gnu-emacs@gnu.org>
2005-04-15 16:44 ` autofill for tex modes David Kastrup
2005-04-15 17:31   ` Joe Corneli [this message]
2005-04-15 17:54     ` Joe Corneli
2005-04-15 16:32 Joe Corneli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1DMUfS-0005cK-00@lab45.ma.utexas.edu \
    --to=jcorneli@math.utexas.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).