3

I use LuaLatex

I want this style: (0 for italic and 1 for upright)

      a A \gamma \Gamma
math  0 0    0      1
bold  0 0    0      1

but style=TeX provides:

      a A \gamma \Gamma
math  0 0    0      1
bold  1 1    0      1

and style=ISO provides:

      a A \gamma \Gamma
math  0 0    0      0
bold  0 0    0      0

I want to know how to set a style between these two.

\documentclass{article}

\usepackage{unicode-math}
\unimathsetup{mathbf=sym,math-style=ISO,bold-style=ISO}
\begin{document}
\[
    a A \gamma \Gamma
\]
\[
    \mathbf{a} \mathbf{A} \mathbf{\gamma} \mathbf{\Gamma}
\]
\end{document}
1
  • Provide a small but complete minimal example that can be used for a test. Commented Sep 19, 2022 at 7:26

2 Answers 2

4

There is no official interface, but the styles are controlled by simple internal booleans:

\documentclass{article}

\usepackage{unicode-math}
\unimathsetup{mathbf=sym,math-style=ISO,bold-style=ISO}

\ExplSyntaxOn
\bool_gset_true:N\g__um_upGreek_bool
\bool_gset_true:N\g__um_bfupGreek_bool
\ExplSyntaxOff
\begin{document}
\[
    a A \gamma \Gamma
\]
\[
    \mathbf{a} \mathbf{A} \mathbf{\gamma} \mathbf{\Gamma}
\]
\end{document}

enter image description here

3

You didn't specified what macro over TeX you are using. If you are using OpTeX, then you can use \_rmgreek and \_rmGreek declarations in Unicode math:

\fontfam[lm]

% default: \_itvariables \_rmdigits \_itgreek \_rmGreek

$a, A, \gamma, \Gamma$,
$\boldmath a, A, \gamma, \Gamma$

\_itgreek \_itGreek  % ISO style

$a, A, \gamma, \Gamma$,
$\boldmath a, A, \gamma, \Gamma$

\_rmgreek \_rmGreek  % what you want:

$a, A, \gamma, \Gamma$,
$\boldmath a, A, \gamma, \Gamma$

\bye
4
  • 1
    Sorry, I use Lualatex Commented Sep 19, 2022 at 3:28
  • 2
    I hope that somebody else will help you with LaTeX.
    – wipet
    Commented Sep 19, 2022 at 5:13
  • Does _ have character code “letter” in OpTeX?
    – Gaussler
    Commented Sep 20, 2022 at 12:37
  • 1
    Yes. It is letter and no catcode changes are needed, i.e. we needn't commands like \makeunderletter, \makeunderother. The control sequences started by _ are internal OpTeX sequences, they can be re-defined only if you know what you are doing.
    – wipet
    Commented Sep 20, 2022 at 14:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .