
このコードをOverleafでレンダリングすると次のようになります。
\documentclass{beamer}
\mode<presentation> {
\setbeamertemplate{footline}[page number]
\setbeamertemplate{navigation symbols}{}
}
\usepackage{appendixnumberbeamer}
\usepackage{stix2}
\usepackage{url}
\usepackage{media9}
\usepackage[croatian]{babel}
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
\usepackage{amsmath}
\def\DJ{{\fontencoding{T1}\selectfont\char208}}
\begin{document}
\begin{frame}
\frametitle{some text}
\begin{itemize}
\item $ \mu_0 M = \chi_p\left(B_a + B_E \right)$
\item $\chi_p= C / T$
\item lalalaal:
\begin{equation}
\chi = \frac{M}{B_a} = \frac{C}{T-C\lambda}.
\end{equation}
\end{itemize}
\end{frame}
\end{document}
(最初の式では「)」が抜けており、2 番目の式では「/」が抜けており、3 番目の式では「-」が抜けています)。
何を間違っているのか分かりません。
答え1
あなたが投稿したスクリーンショットでは、数学フォントがないTimes Roman クローンは、パッケージが適切にロードされなかったことを示す明らかな証拠です。を実行する前にstix2
指示を与える必要があります。\usefonttheme{professionalfonts}
\usepackage{stix2}
\documentclass{beamer}
\mode<presentation> {
\setbeamertemplate{footline}[page number]
\setbeamertemplate{navigation symbols}{}
}
\usepackage{appendixnumberbeamer}
\usepackage{xurl}
\usepackage{media9}
\usepackage[croatian]{babel}
\usepackage{graphicx} % Allows including images
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
\usepackage{amsmath}
\def\DJ{{\fontencoding{T1}\selectfont\char208}}
\usefonttheme{professionalfonts}
\usepackage{stix2}
\begin{document}
\begin{frame}[t]
\frametitle{some text}
\begin{itemize}
\item $\mu_0 M = \chi_p(B_a + B_E )$
\item $\chi_p= C / T$
\item lalalaal:
\begin{equation}
\chi = \frac{M}{B_a} = \frac{C}{T-C\lambda}.
\end{equation}
\end{itemize}
\end{frame}
\end{document}
補遺\usefonttheme{professionalfonts}
: それが何なのか、なぜ必要なのか疑問に思っている方のために、beamer
ユーザー ガイドの 196 ページ以降からの抜粋を以下に示します。
最後の指示に注意してください。パッケージのメンテナーに連絡して、実行をstix2
自動的に求めるフォント パッケージのリストに追加するように依頼してください。beamer
\usefonttheme{professionalfonts}