[经过编辑,包含我从答案中了解到的内容。]
我在 Mac 上的 TeX Live 中使用 Latex,通过 TeXLive。我使用 Pdflatex 编译 .pdf 文件。我使用默认字体。[这些字体称为 Computer Modern。]
我喜欢这些字体的外观,但我希望 Latex 生成的 .pdf 文件中的字体比现在更重(或更暗)。
注意:我谈论的是纯文本和数学。
看来这个问题与编译器无关,并且如果不更改所使用的字体包就不可能“微调”.pdf 输出。
因此,解决方案是更改使用的字体包。对于像我这样使用数学公式的人来说,有“支持数学”的字体。您可以在此处找到列表。
在上面的字体包列表中,有不少比 Computer Modern 更重的字体包。例如 Times 或“Utopia Regular with Fourier”。在上面链接的页面上单击它们,会发现需要在 Latex 文档中插入两行代码才能调用特定的字体包。
[另请参阅此问题从中可以提取几乎相同的信息,甚至更多信息。
答案1
您可以使用 Heiko 的出色软件包让文本变得更重一些pdfrender
。只需使用LineWidth
参数即可。
\documentclass[paper=a4]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{pdfrender,xcolor}
\begin{document}
\pdfrender{StrokeColor=black,TextRenderingMode=2,LineWidth=0.2pt}
A wonderful serenity has taken possession of my entire soul, like these sweet
mornings of spring which I enjoy with my whole heart. I am alone, and feel the
charm of existence in this spot, which was created for the bliss of souls like
mine. I am so happy, my dear friend, so absorbed in the exquisite sense of
mere tranquil existence, that I neglect my talents. I should be incapable of
drawing a single stroke at the present moment; and yet I feel that I never was
a greater artist than now. When, while the lovely valley teems with vapour
around me, and the meridian sun strikes the upper surface of the impenetrable
foliage of my trees, and but a few stray gleams steal into the inner
sanctuary
\[E = mc^2 \]
I throw myself down among the tall grass by the trickling stream;
and, as I lie close to the earth, a thousand unknown plants are noticed by me:
when I hear the buzz of the little world among the stalks, and grow familiar
with the countless indescribable forms of the insects and flies, then I feel
the presence of the Almighty, who formed us in his own image, and the breath
of that universal love which bears and sustains us, as it floats around us in
an eternity of bliss.
\end{document}
通过极端设置LineWidth=1pt
你可以得到这个美丽的输出: