Skip to content

Commit

Permalink
Require LaTeX release 2018-04-01 or later
Browse files Browse the repository at this point in the history
This means we can rely on \DeclareRelease being available:
more widely the aim is to ensure users see that they will need
a somewhat up-to-date system with newer siunitx releases.
  • Loading branch information
josephwright committed Oct 1, 2024
1 parent 7ab3a9d commit 5bbe47b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to

## [Unreleased]

### Changed
- Require LaTeX release 2018-04-01 or later

## [v3.3.22] - 2024-09-30

### Fixed
Expand Down
13 changes: 10 additions & 3 deletions siunitx.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,17 @@
%
% \subsection{Initial set up}
%
% Set up a couple of commands in recent-ish \LaTeXe{} releases.
% \begin{macrocode}
\providecommand\DeclareRelease[3]{}
\providecommand\DeclareCurrentRelease[2]{}
\IfFormatAtLeastTF { 2018-04-01 }
{ }
{%
\PackageError{siunitx}{LaTeX kernel too old}
{%
You need a newer LaTeX to use this release of siunitx.\MessageBreak
Loading~siunitx~will~abort!%
}%
\endinput
}
% \end{macrocode}
%
% Allow rollback to version~$2$: if we need to, version~$1$ could eventually
Expand Down

0 comments on commit 5bbe47b

Please sign in to comment.