2024 update: Note that etoolbox
itself, while not obsolete, has largely been superseded by better solutions developed by the people working on LaTeX 3. There are still some things you have to use etoolbox
for, but conditional expressions aren't among them. Using expl3
syntax and/or the new commands for creating commands and handling conditionals in LaTeX itself is now preferable to reliance on etoolbox
, ifthen
etc. These are (mostly) documented in usrguide
and clsguide
.
Terminological Caution
I think that a certain degree of caution is required here in the way we classify packages. While some people may consider ifthen
obsolete, it is certainly not marked officially as obsolete.
Compare ifthen's CTAN page with subfigure's.
This is not to say that there are not often better options, but the existence of better alternatives does not, just in itself, render a package obsolete.
Compare the case of packages for handling sub-figures. subfigure
is definitely obsolete, but this leaves several other options, including both subfig
and subcaption
. In very many cases, the latter is preferable to the former - certainly it is more powerful, it works well with the powerful caption
package etc. But that does not render subfig
obsolete.
Something being obsolete means, to me, that there is good reason for me to update existing code (e.g. packages or classes for which I'm responsible) even if there are no obvious problems with it. If my code includes the use of things like \sf
in a LaTeX document, or loads subfigure
, I really should do something about that if it is at all practical to do so.
But there is not the same kind of reason for me to update code which loads subfig
or ifthen
and so it would be misleading to describe these packages as 'obsolete'. They are not. Not yet, anyway.
xifthen
? Same thing? Obsolete, too?\if...
,\else
,\fi
TeX primitives are not obsolete. The packages mentioned here are based on these primitives. The good concept is to use only these TeX primitives, no useless macro packages.