-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # 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 |
Thanks for your feedback on the approach to update the version. As I don't have any experience in installing LaTeX packages manually (yet), I looked it up when writing our update guide and found this guide for Ubuntu on the official
I'm not sure I understand this correctly. I'm used to semantic versioning where major, minor or patch versions indicate whether I can update a software without any breaking changes in a backwards compatible manner. So by
do you mean users of
Unfortunately, I couldn't find any download statistics for Ubuntu packages like And to be honest, if in 2024 I see a website like the TeX Live website with install instructions in plain HTML as it we were still in the last century, I don't blame anybody if they leave the site very quickly and consider other options where the user guide is more pleasing to the eye and where you only have to do a simple That's all to say that I'm now more uncertain than before with regards to how to set up things for our \qty[uncertainty-descriptors={customlabel1,customlabel2}]{1.2 \pm 0.1 \pm 0.05}{\m} But I'm afraid that for many users this won't work since they have an older version of So thanks again for your work on |
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: