
我正在編寫數學文檔,我想在數學模式下更改字體
這就是我目前所得到的
這就是我想要的
我該如何改變?以下是我的乳膠代碼。
\documentclass[10pt]{article}
\usepackage{amsmath, bm, listings, pxfonts, enumitem, geometry, titlesec, array, makecell}
\geometry{margin=0.8in}
\title{Statistics Notes}
\author{}
\date{}
\begin{document}
\maketitle
\[\left(\bar{x}-\frac{z_{1-\alpha/2}\sigma}{\sqrt{n}},\bar{x}+\frac{z_{1-\alpha/2}\sigma}{\sqrt{n}}\right)\]
\end{document}
答案1
如果您想要在文字中使用 Palatino(風格)字體,同時保留數學中的 CM,並且擁有最新的 TeX 發行版,請使用 newpxtext 套件。