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

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

Re: How to alphabetasize sections?


From: Robert Thorpe
Subject: Re: How to alphabetasize sections?
Date: Sat, 13 Sep 2014 00:20:55 +0100

Thien-Thi Nguyen <ttn@gnu.org> writes:
> One way is to add (or augment) the local variables block
> in the file to read:
>
>  % Local variables:
>  % paragraph-separate: "\\section"
>  % End:
>
> then save, then revert, then mark the region around all the
> \section (and text), and type ‘M-x sort-paragraphs RET’.

Another way is to do search and replace (M-%):
        \\section
with
        ^L
        \\section

Then use sort-pages.  Finally M-% again to get rid of the ^Ls.

BR,
Robert Thorpe



reply via email to

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