- I wanted to create a
beamer
presentation in which Japanese and English are mixed. - According to my Google-Fu, the
luatexja
package is good for that. - In principle, it was surprisingly easy to use. I even don't know which Japanese font is used – it just worked.
- My problem is that the non-bold text is serif and the bold text is sans-serif (for Japanese).
- The goal is to have it all sans-serif.
- In case it is relevant, I use TeXLive 2021 on Windows 10.
\documentclass[t]{beamer}
\usepackage{fontawesome}
\usepackage{luatexja}
\begin{document}
\begin{frame}{Test}
Test (sans-serif \faThumbsUp)\\
\textbf{Test} (sans-serif \faThumbsUp)\\
ォテ (serif \faThumbsDown)\\
\textbf{ォテ} (sans-serif \faThumbsUp)
\end{frame}
\end{document}
Remark: I tried the match
option from the luatexja
package but this does not seem to change the output.
Remark: Just for completeness, in the article
document class it is like this:
\documentclass[t]{article}
\usepackage{fontawesome}
\usepackage{luatexja}
\begin{document}
%\begin{frame}{Test}
\noindent
Test (serif)\\
\textbf{Test} (serif)\\
ォテ (serif)\\
\textbf{ォテ} (sans-serif)
%\end{frame}
\end{document}
Best Answer
As documented in section 2.4 of the manual:
By default this will give you bold text, but you can load a fontfamily supporting multiple weights of gothic using the
luatexja-preset
package. You have to pass thedeluxe
option if you want multiple weights:You can read the documentation for all the supported presets, here I will use Noto (on Windows you might want to replace
noto-otf
with e.g.yu-win10
to avoid performance issues):