Skip to content

Commit 31e28c1

Browse files
Merge pull request #21 from michaelroland/mathastext14-improvements
Improvements and fixes for mathastext
2 parents 7f38489 + 7d068eb commit 31e28c1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

jkureport.sty

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,19 @@
695695
%%
696696
697697
\ifbool{jkureport@mathastext}{%
698-
\usepackage[italic,defaultmathsizes,eulergreek,nosmalldelims]{mathastext}%
698+
\ifxetex%
699+
% As of version 1.4, mathastext no longer compiles with XeLaTeX unless we
700+
% the (deprecated) everymath option or the nominus option. Bug has been
701+
% acknowledged by mathastext author. Until then, we are safe to use everymath:
702+
\PassOptionsToPackage{everymath}{mathastext}
703+
% In the future, we may also want to consider to use nominus (and use the
704+
% standard math font for it). In that case, we should do this for at least
705+
% the three basic operators +/-/= to achieve consistent operator alignment.
706+
% Actually, this looks very promising in combination with FiraMath and we
707+
% might want to consider always doing that in future (not just for XeLaTeX):
708+
%\PassOptionsToPackage{noplus,nominus,noequal}{mathastext}
709+
\fi
710+
\usepackage[italic,defaultmathsizes,eulergreek,nosmalldelims,unicodeminus]{mathastext}
699711
}{}
700712
701713
%%

0 commit comments

Comments
 (0)