当前的问题是对一些先前提出的问题的后续,例如:可以使 Latex 的 pdf 输出中的字体显得更重(更暗)吗?和这个:使用 pdfrender 使整个文档变得更重和这个:LuaLaTeX 中的假粗体。所有这些问题都与整个文档有关(文本和数学都一样)。就我而言,我只需要让数学字体稍微粗一点(更暗一点)。我分别用于times
文本和CM
数学。前者比后者重得多,而且看起来很糟糕。我的目标是让CM
数学字体稍微暗一点,以缩短这个差距。有办法解决这个问题吗?谢谢。
编辑:
我在这里添加了一个不太简单的工作示例,展示了一些评论者要求的实际用法。我在 Windows 上使用 MiKTeX,然后pdflatex
直接运行以获取pdf
文件:
\documentclass[a4paper,oneside,12pt,table]{book}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{textcomp}
\renewcommand{\rmdefault}{ptm}
\usepackage[scaled=0.92]{helvet}
\usepackage{pdfpages}
\usepackage{csquotes}
\MakeOuterQuote{"}
\usepackage{moresize}
\usepackage{caption}
\usepackage[indention=10pt,position=top,margin=0pt,font=small,
labelformat=parens,labelsep=space,skip=6pt,hypcap=false,
labelfont=bf,list=true,textfont=sf]
{subcaption}
\usepackage{graphicx,rotating,setspace}
\usepackage{array,booktabs,calc,longtable}
\usepackage{xcolor,multirow}
\usepackage{tocbibind} % Show all lot, lof, loa, refs. in TOC
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{microtype}
\usepackage[colorlinks=false, pdfborder={0 0 0}]{hyperref}
\usepackage{cleveref}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\addtolength{\headheight}{2.5pt}
\lhead{\itshape \chaptername ~\thechapter}
\rhead{\itshape \leftmark}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}% remove "Chapter N." prefix
\cfoot{\thepage}
\renewcommand{\contentsname}{Table of Contents}
\renewcommand{\bibname}{References}
\begin{document}
\begin{titlepage}
Title Here and authorship
\end{titlepage}
\frontmatter
\pagestyle{plain}
\chapter{Dedication}
\chapter{Acknowledgments}
\chapter{Abstract}
\clearpage
{%
\singlespacing
\tableofcontents
}%
\clearpage
%========================= List of Figures =============================
\listoffigures
\clearpage
%=========================== List of Tables ============================
\listoftables
\clearpage
%======================= List of Abbreviations =========================
\chapter{List of Abbreviations}
\clearpage
%================================ List of Symbols=======================
\chapter{List of Symbols}
\clearpage
%================================ Main Chapters ========================
\pagestyle{fancy}
\mainmatter
\chapter{Introduction}
\section{First Section}
Some text which is OK! and some math which is so light:
\begin{equation}\label{e:barwq}
\begin{split}
H_c &=\frac{1}{2n} \sum^n_{l=0}(-1)^{l}(n-{l})^{p-2}
\sum_{l _1+\dots+ l _p=l}\prod^p_{i=1} \binom{n_i}{l _i}\\
&\quad\cdot[(n-l )-(n_i-l _i)]^{n_i-l _i}\cdot
\Bigl[(n-l )^2-\sum^p_{j=1}(n_i-l _i)^2\Bigr].
\end{split}
\end{equation}
%========================== Additonal Appendices ======================= Appendices
\appendix
\clearpage
%====================== References Section =============================
\setstretch{1}
\begin{thebibliography}{199} % 199 is a random guess of the total number of references
\end{thebibliography}
\end{document}
答案1
Comptuer Modern 刻意设计得较浅。最好选择与您的正文对应的数学字体。
psnfss 软件包中有一个软件包mathptmx
,可将主文本设置为ptm
并伪造一些相应的数学字体。使用这个软件包可以获得比您看到的更好的结果。但是,更好的方法是切换到newtxtext
和newtxmath
软件包提供的更现代的解决方案。下面是每个软件包的示例。
mathptmx
\documentclass[a4paper,oneside,12pt,table]{book}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{textcomp}
\usepackage{mathptmx}
\usepackage[scaled=0.92]{helvet}
\usepackage{microtype}
\begin{document}
\chapter{Introduction}
\section{First Section}
Some text which is OK! and some math which is the same weight:
\begin{equation}\label{e:barwq}
\begin{split}
H_c &=\frac{1}{2n} \sum^n_{l=0}(-1)^{l}(n-{l})^{p-2}
\sum_{l _1+\dots+ l _p=l}\prod^p_{i=1} \binom{n_i}{l _i}\\
&\quad\cdot[(n-l )-(n_i-l _i)]^{n_i-l _i}\cdot
\Bigl[(n-l )^2-\sum^p_{j=1}(n_i-l _i)^2\Bigr].
\end{split}
\end{equation}
\end{document}
newtxtext
和newtxmath
\documentclass[a4paper,oneside,12pt,table]{book}
\usepackage[T1]{fontenc}
\usepackage[helvratio=0.92]{newtxtext}
\usepackage{newtxmath}
\usepackage{microtype}
\begin{document}
\chapter{Introduction}
\section{First Section}
Some text which is OK! and some math which is the same weight:
\begin{equation}\label{e:barwq}
\begin{split}
H_c &=\frac{1}{2n} \sum^n_{l=0}(-1)^{l}(n-{l})^{p-2}
\sum_{l _1+\dots+ l _p=l}\prod^p_{i=1} \binom{n_i}{l _i}\\
&\quad\cdot[(n-l )-(n_i-l _i)]^{n_i-l _i}\cdot
\Bigl[(n-l )^2-\sum^p_{j=1}(n_i-l _i)^2\Bigr].
\end{split}
\end{equation}
\end{document}
答案2
您还应该看看 mathtime (mtpro2) 字体。这些字体是商业字体,但只需为全套字体付费,而大多数人并不需要。这些字体在某些方面(例如字距调整)比某些替代字体更好。