LaTeX – acronyms

Below is a BASH command which will find all undefined acronyms used in a LaTeX text.

The result can be pasted into the appendix which lists the used acronyms.

cat temp.txt |grep -oe "([A-Z]*\!)"|tr -d '\!()'|sort|uniq|xargs -i echo '\acro{'{}'}{'{}'}'

Exemplary result:

\acro{TRM}{TRM}
\acro{VM}{VM}
\acro{WML}{WML}
\acro{XP}{XP}

Be the first to like.
Share and Enjoy:
  • Print
  • Digg
  • Facebook
  • Twitter
  • Google Bookmarks
  • DZone
  • Wykop

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*