Skip to content

Commit

Permalink
Force std math mode for \Omega with kmath (fixes #728)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Apr 23, 2024
1 parent d276a87 commit a3ced95
Show file tree
Hide file tree
Showing 5 changed files with 728 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/tl_packages
Expand Up @@ -53,6 +53,7 @@ hyphen-german
hyphen-portuguese
hyphen-polish
hyphen-spanish
kmath
koma-script
libertine
listings
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,10 @@ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to

## [Unreleased]

### Fixed
- Appearance of ohm symbol with `kmath` package (see
issue [\#728](https://github.com/josephwright/siunitx/issues/728))

## [v3.3.14] - 2024-04-15

### Fixed
Expand Down
12 changes: 11 additions & 1 deletion siunitx-symbol.dtx
Expand Up @@ -237,7 +237,17 @@
\@ifpackageloaded { fontspec }
{ \exp_not:V \l_@@_tmpb_tl }
{
\@ifclassloaded { beamer }
\bool_lazy_or:nnTF
{
\@ifclassloaded { beamer }
\c_true_bool
\c_false_bool
}
{
\@ifpackageloaded { kmath }
\c_true_bool
\c_false_bool
}
{ \exp_not:V \l_@@_tmpb_tl }
{ \exp_not:V \l_@@_tmpa_tl }
}
Expand Down
19 changes: 19 additions & 0 deletions testfiles/siunitx-pkg-kmath.lvt
@@ -0,0 +1,19 @@
\input{regression-test}

\documentclass{article}

\ExplSyntaxOn
\debug_on:n { check-declarations , deprecation }
\ExplSyntaxOff

\usepackage{siunitx}

\usepackage{kmath}

\begin{document}

\START

\input{siunitx-symbol-tests}

\end{document}

0 comments on commit a3ced95

Please sign in to comment.