New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade guide for versions prior to 3.1.11 (2022-12-05)
to a more recent version
#726
Comments
Upgrading Even without that particular issue, manually updating packages used by many others is always risky: try it with something like |
Not directly related, but some comments on
There are a few oddities here plus one really rather questionable thing. I'm not sure why you ask people to download using |
Note that for this reason I don't step the requirements very often: mainly when there is a deprecation in |
Wouldn't it be easier to clone a specific commit (the one tagged v3.1.11) and run |
In our python library
ResultWizard
, we give users the following advice on how to upgrade to a newer version of siunitx. The problem is that if you installed siunitx viasudo apt install texlive-science
, it will be an outdated version. Here's our current upgrade guide:siunitx upgrade guide
In version
v3.1.0 (2022-04-25)
,siunitx
introduced "support for multiple uncertainty values in both short and long form input". We make use of this feature inResultWizard
when you specify multiple uncertainties for a result.Unfortunately, it may be the case that you're using an older version of
siunitx
that doesn't ship with this feature yet. Especially if you've installed LaTeX via a package manager (e.g. you installedsiunitx
viasudo apt install texlive-science
). To determine yoursiunitx
version, include the following line in your LaTeX document:Then, compile your document and check the log for the version of
siunitx
.If it's older than
v3.1.0 (2022-04-25)
, don't despair. You can upgrade as follows:How the update process works depends on your LaTeX distribution and how you installed it. E.g. you might be using
TeX Live
onUbuntu
and installed packages viaapt
, e.g.sudo apt install texlive-science
(which includes the LaTeXsiunitx
). These pre-built packages are often outdated, e.g. for Ubuntu 22.04 LTS (jammy), thesiunitx
version that comes with thetexlive-science
package is3.0.4
. Therefore, you might have to updatesiunitx
manually. See an overview on how to install individual LaTeX packages on Linux here.A quick solution might be to simply install a new version of
siunitx
manually to your system. There's a great and short Ubuntu guide on how to install LaTeX packages manually here. The following commands are based on this guide. We will download the version3.1.11 (2022-12-05)
from GitHub (this is the last version before3.2
where things might get more complicated to install) and install it locally. Don't be scared, do it one step at a time and use the power of GPTs and search engines in case you're stuck. Execute the following commands in your terminal:🙌 Done. Try to recompile your LaTeX document again. You should see version
v3.1.11
ofsiunitx
in the log file. And it should build. Don't forget to remove the\listfiles
from your LaTeX document to avoid cluttering your log file (which is ironic for LaTeX, we know).In case you don't wan't the new siunitx version anymore, just run the following command to remove the
.sty
file. LaTeX will then use the version of siunitx it finds somewhere else in your system (which is probably the outdated one you had before).rm ~/texmf/tex/latex/siunitx/siunitx.sty
Unfortunately, this is only working fine up to version
3.1.11 (2022-12-05)
. Inv3.2.0 - 2023-01-03
, a version ofexpl3 - 2022-11-09
or later is required. Efforts to manually update expl3 (with a procedure similar to the one described in our guide) failed, see this error. Related issues might be this and this.Of course, one could argue: "Why don't you update your entire LaTeX distribution to a newer version and use
tlmgr
, then you wouldn't have to deal with issues like this"? While that might be true, we want to acknowledge the reality where many people will only install LaTeX and packages via theapt
package manager (me included). It's just very convenient if you want to get things done. This answer might be very helpful to find out different ways to install LaTeX.So, what we're looking for is a hopefully "easy" way for users to upgrade to a more recent version of siunitx without having to revamp their whole LaTeX setup. This is what our "upgrade guide" intended to do by compiling and installing a
.sty
file just forsiunitx
on their system -- which unfortunately only works up to3.1.11 (2022-12-05)
.The text was updated successfully, but these errors were encountered: