TransWikia.com

How to migrate/upgrade your acronyms from acro v2 to acro v3? (2019 to 2020)

TeX - LaTeX Asked on April 6, 2021

The acro package has recently been upgraded to v3 (doc) – e.g. TexLive 2019 still includes acro v2, TexLive 2020 includes acro v3, which is a complete rewrite with many new features.
The question I’d now have is whether there is some kind of migration script, that allows you to migrate at least the DeclareAcronym listing, so you don’t have to go through a lot of them hand by hand.

Does not have to be included in acro itself or does not have to be a LaTeX solution – a simple shell or Python script could probably also help – or even a web interface/service, as you only need to run that once.

Some examples on how they differ:

  • foreign-lang is now foreign-babel e.g.

Cross-posted in the acro issue tracker.

One Answer

Possibly not the best answer in the long-term, but I've noticed acro v3 does have an option to continue using the v2 syntax even when you load v3.

Just load the package as this in your preamble:

usepackage[version=2]{acro}

Of course, this is no real solution and only a time-limited workaround, I guess, but I have not heard of deprecation plans. The doc of version 3.2 page 4 (section 4.1) still lists that as an option, you can use and makes no note of whether and when this may be removed. (@cgnieder may be more likely to know the details here. :) )

Answered by rugk on April 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP