I haven't been able to look up an answer for this.
The idea is to use the acronym with the greek letter alpha or gamma for example, while using the regular unicode greek character in the text.
The issue with acronym is that putting the unicode character in the acronym will not make it appear in the acronym section but only in the text.
Currently my solution makes it appear as a math alpha in the text :
I'm using Quarto with pdf output, thus using latex :
---
title: "quarto-test-env"
format: pdf
header-includes:
- \usepackage{acronym}
- \usepackage{upgreek}
keep-tex: true
mainfont: "Times New Roman"
---
Acronyms
\begin{acronym}
\acro{ifng}[IFN-$\mupgamma$]{interferon gamma}
\acro{tnfa}[TNF-$\mupalpha$]{tumor necrosis factor alpha}
\acro{nfkb}[NF-κB]{nuclear factor-kappa B}
\end{acronym}
Regular text
- \ac{tnfa}
- \ac{ifng}
I want TNF-α and not \ac{tnfa} ; IFN-γ and not \ac{ifng}.
When I use unicode characters in acronym such as \ac{nfkb}, it doesn't display in the acronym but in the regular text only.
I want to make it appear using unicode characters like : TNF-α ; IFN-γ
I'm using Times News Roman as the font.
Is there a solution for that or do I have to scrap the idea ?
Thanks for the help.
With this minimal example the acronyms do work, however they are displayed in math mode in the text and not the unicode. I don't know how to make a separate "math for acronym and then unicode for text". Ultimately my problem would be fixed if I could use unicode inside the acronyms.
– Minh-Anh Huynh Jun 22 '23 at 14:31$\mupgamma$produce the γ glyph that you want or not? – Dai Bowen Jun 23 '23 at 11:38If I used "IFN-γ" in unicode as my acronym, it would appear in the text but not in the acronym (it seems the package doesn't support unicode). So I have to use math mode (
– Minh-Anh Huynh Jun 26 '23 at 12:52$\mupgamma$), but another problem appears.