Skip to content

Commit

Permalink
Use ISO maths styles (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanlukasczyk authored May 8, 2024
1 parent 532f66e commit 1a17eae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to

## [Unreleased]

### Changed

- Set the maths style and bold-maths style to ISO for the maths fonts.

### Removed

- The option `fmode` was removed from `se2fonts`; it was already deprecated
Expand Down
7 changes: 5 additions & 2 deletions se2fonts.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,14 @@
%
% Define a warning message of users of \pdfLaTeX{} that not all features of the
% fonts are available and that they should consider using \LuaTeX{} instead.
\msg_set:nnnn { seiifonts } { pdflatex-used }
% \begin{macrocode}
\msg_new:nnnn { seiifonts } { pdflatex-used }
{ You~ are~ using~ pdfLaTeX~ with~ the~ se2fonts~ packages.}
{
While~ this~ works~ some~ font~ features~ are~ not~ available,~ consider~
using~ lualatex~ instead.
}
% \end{macrocode}
%
% \begin{macro}{\pdftexengine, \xetexengine, \luatexengine}
% We define several alias macros to identify which engine the user is running.
Expand Down Expand Up @@ -203,7 +205,7 @@
% \begin{macrocode}
\ifengineT { \xetexengine }
{
\msg_set:nnnn { seiifonts } { xetex-not-supported }
\msg_new:nnnn { seiifonts } { xetex-not-supported }
{ XeTeX~ is~ not~ supported~ by~ the~ se2fonts~ package. }
{ Switch~ to~ pdfTeX~ or~ (preferably)~ LuaTeX. }
\msg_error:nn { seiifonts } { xetex-not-supported }
Expand All @@ -222,6 +224,7 @@
% If the user uses \LuaTeX{}, load \pkg{fontspec} and \pkg{unicode-math}.
% \begin{macrocode}
\RequirePackage{fontspec}
\PassOptionsToPackage{math-style=ISO,bold-style=ISO}{unicode-math}
\RequirePackage{unicode-math}
% \end{macrocode}
%
Expand Down

0 comments on commit 1a17eae

Please sign in to comment.