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: Emanuel Berg
Subject: Re: How to alphabetasize sections?
Date: Sat, 13 Sep 2014 02:00:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Robert Thorpe <rt@robertthorpeconsulting.com> 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.

That's very creative, both of you, but isn't the best
way to move all the sections to separate files and then
put one-line references in the "motherfile", and simply
sort those with `sort-lines'?

-- 
underground experts united


reply via email to

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