如何更改 LaTeX 字体样式?

如何更改 LaTeX 字体样式?

如何更改 LaTeX 中的字体?

我想要创建如下所示的字体:

好字体

但 TeXShop 给了我这种字体:

糟糕的字体

如何让底部图片中的字体看起来与顶部图片中的字体一样?文本看起来比第一个文本更粗、更暗。

第二段由以下人员撰写:

\documentclass[12pt]{article}

\usepackage[ left = 23mm, right  = 23mm, top = 24mm, bottom = 24mm ] {geometry}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{pgfgantt}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{arrows,matrix}
\usepackage{amssymb, amsmath, mathptmx}
\usepackage{pstricks, pst-node, pst-plot, pst-circ}
\usepackage{moredefs}
\usepackage{verbatim}
\usepackage{subcaption}
\interlinepenalty=10000

\begin{document}
\begin{titlepage}
\noindent
This is a simple and traditional approach involving storage of the piece positions, in 
a 64-bit word, to represent each of the 64 positions on the chess board. Representing a 
piece on the board implies turning on that bit. There are 12 bit-boards to encode the 
6 white and 6 black pieces (king, queen, rook, bishop, knight, pawn). Figure 2.6 
illustrates the bit-board of the white queen corresponding to the position h5.
\end{titlepage}
\end{document}

答案1

CW 来自评论:

代替

\usepackage{amssymb, amsmath, mathptmx}

mathptmx是 Times 的克隆版),使用

\usepackage{amssymb, amsmath, lmodern}

lmodern是更新的计算机现代)。

\documentclass[12pt]{article}
\usepackage{amssymb, amsmath, lmodern}

\begin{document}
\noindent This is a simple and traditional approach involving storage of the piece positions, in 
a 64-bit word, to represent each of the 64 positions on the chess board. Representing a 
piece on the board implies turning on that bit. There are 12 bit-boards to encode the 
6 white and 6 black pieces (king, queen, rook, bishop, knight, pawn). Figure 2.6 
illustrates the bit-board of the white queen corresponding to the position h5.
\end{document}

在此处输入图片描述

相关内容