使用微缩字体避免短划线突出文本主体

使用微缩字体避免短划线突出文本主体

使用 时microtype,如果短划线出现在行首或行末,它们似乎会超出文本主体。我该如何解决这个问题?

梅威瑟:

\documentclass{article}

\usepackage{mathpazo}
\usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,factor=1100,stretch=10,shrink=10]{microtype}

\begin{document}

Hello, here is some text without a meaning. This text should show
what a printed text will look like at this place. If you read this text,
you will get no information. Really? Is there no information? Is there
a difference between this text and some nonsense like “Huardest gef-
burn”? Kjift – not at all! A blindinginng -- enter text here -- text like this gives you information
about the selected font, how the letters are written and an impression
of the look. This text should contain all letters of the alphabet and it
should be written in of the original language. There is more text in this line until it happens and we need more -- this is important -- no need for
special contents, but the length of words should match the language.
This is the second paragraph. Hello, here is some text without a
meaning. This text should show what a printed text will look like at
this place. If you read this text, you will get no information. Really? Is
there no information? Is there a difference between this text and some
nonsense like “Huardest gefburn”? Kjift – not at all! A blind text like
this gives you information about the selected font, how the letters
are written and an impression of the look. This text should contain
all letters of the alphabet and it should be written in of the original
language. There is no need for special contents, but the length of
words should match the language.

\end{document}

在此处输入图片描述

帕拉蒂诺似乎让这个问题更加明显。

初步回复后更新:

我根本不想消除突出部分。但是,在我看来,仪表板确实放错了位置。我尝试了以下方法,但找不到真正有效的方法:

\SetProtrusion
 { encoding = {T1,OT1},
   family   = {ppl,pplx,pplj} }
   {-- = {0,0}}

答案1

启用此功能是软件包的主要功能之一microtype,因此加载软件包时会有点奇怪,但是你可以通过以下方式关闭边缘突出

\usepackage[activate={true,nocompatibility},
protrusion=false,
final,tracking=true,kerning=true,factor=1100,stretch=10,shrink=10]{microtype}

在此处输入图片描述


我认为定制单个角色应该是

\SetProtrusion
 { encoding = OT1,
   family   = ppl }
   {\textendash = {0,0}}

但那没有用,但有效的是复制 ppl 配置(您的日志文件将显示您系统上的路径)

对我来说

/usr/local/texlive/2017/texmf-dist/tex/latex/microtype/mt-ppl.cfg

并将其保存到包含文档的文件夹中,然后将两个设置更改为\textendash0,0,而不是 300,300

$ diff mt-ppl.cfg~ mt-ppl.cfg
85c85
<      \textendash       = {300,300},   \textemdash        = {200,200},
---
>      \textendash       = {0,0},   \textemdash        = {200,200},
154c154
<      \textendash       = {300,300},   \textemdash        = {200,200},
---
>      \textendash       = {0,0},   \textemdash        = {200,200},

相关内容