For simple meson names, never enclose them completely in \mbox because you lose the italicized particle symbols (which are conventional for flavor). Instead, use \mbox only for descriptive text.
Correct:
Consider the \( D_s^*+ \) meson.
Incorrect (loses math italics):
Consider the \( \mboxD_s^*+ \) meson.
project('example', 'c')
executable('myapp', 'main.c', dependencies : dependency('glib-2.0'))
| Command | Package | Use Case for Meson Reference |
| :--- | :--- | :--- |
| \mbox... | Built-in | Short pieces of text inside math; does not adjust font size in subscripts. |
| \text... | amsmath | Preferred for multi-word text (e.g., "meson ref"); adjusts size in sub/superscripts. |
| \mathrm... | Built-in | Upright math symbols; good for unit labels (e.g., \mathrmMeV) but not for full phrases. | mbox meson ref
Recommendation: For "meson ref", use \textmeson ref from the amsmath package. For simple meson names, never enclose them completely
\usepackageamsmath
...
\[
E = \textmeson ref. \Lambda_c^+
\]
mbox_lib = library('mbox', sources, include_directories : inc, install : true ) Incorrect (loses math italics): Consider the \( \mboxD_s^*+