Ok, Luis!!<div><br></div><div>Thanks, I'll try it!!. <br><br><div class="gmail_quote">On 12 March 2010 10:48, Luis Sequeira <span dir="ltr"><<a href="mailto:lfsequeira@gmail.com">lfsequeira@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">> hi everybody!!,<br>
><br>
> I must to do a list of abreviatures ({description}) and I looked for a way<br>
> to automatically order the list alphabetically... I didn´t find anything..<br>
> Is there any way to order a list of items?? or.. Is there any package to<br>
> perform this kind of lists (abreviatures, list of chemical reactives...)??<br>
><br>
<br>
</div>It is very easy to sort anything alphabetically, at least in Snow Leopard.<br>
Here is what I do in my mac to sort lines:<br>
1- select the lines I wish to sort (in TeXShop, Mail, or whatever)<br>
2- press a keyboard shortcut<br>
3- there is no step 3<br>
<br>
The way to achieve this magic is to use, or create, a very simple Service, using Automator.<br>
You may create something like this (a quick hack, but good enough; it seems to add a blank line before the sorted lines, but that is not a huge deal):<br>
<br>
Open Automator<br>
Choose to create a Service<br>
In the upper right, set it to "Receive text" in "any application"<br>
Mark the checkbox that says "replace text"<br>
Add a single action of kind "Run Shell Script" (it is within the group "Utilities")<br>
In the content part, just write the following (without the quotes): "sort"<br>
Save it and give a reasonable name (say, sort)<br>
(optionally) in System Preferences->Services, give it a keyboard shortcut<br>
<br>
Now, you can sort as I do :-)<br>
<br>
HTH<br>
<font color="#888888"><br>
Luis Sequeira<br>
</font><div><div></div><div class="h5"><br>
----------- Please Consult the Following Before Posting -----------<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>
List Reminders and Etiquette: <a href="http://email.esm.psu.edu/mac-tex/" target="_blank">http://email.esm.psu.edu/mac-tex/</a><br>
List Archive: <a href="http://tug.org/pipermail/macostex-archives/" target="_blank">http://tug.org/pipermail/macostex-archives/</a><br>
TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" target="_blank">http://mactex-wiki.tug.org/</a><br>
List Info: <a href="http://email.esm.psu.edu/mailman/listinfo/macosx-tex" target="_blank">http://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Atte: Sr. Sur<br><br>
</div>