Packages can specify that they need a specific version of LaTeX using \NeedsTeXFormat
, which takes something like LaTeX2e
, and an optional release-date which the latex-version used must be newer than.
Since packages cannot specify an exact release date or an "older-than" release date, can I download the newest release of the specified LaTeX-version (e.g. LaTeX2e
) and have a guarantee that all packages that NeedTeXFormat LaTeX2e
work with this?
In other words, do releases of LaTex-versions have backward compatibility?
Also, according to this answer here, when I compile a document with say pdflatex, it uses a file latex.ltx
. Am I right in assuming that the latex-version and release date one can specify in \NeedsTeXFormat
refers to the version and release date of the latex.ltx
file?
latexrelease
can be used to do a rollback of the LaTeX release. And also some packages allow a rollback using[=<version>]
as optional argument to\usepackage
after the package argument. BTW: Because of version dependencies it is often not a good idea to update only one package, instead of the whole distribution. But sometimes it is. ;-/\patchcmd
(etoolbox package) to replace code that no longer exists, it may or may not generate an error depending on the arguments used.