2. 字体
所在版块:求学狮城 发贴时间:2008-01-24 00:03  评分:

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
上一次用了很大篇幅讲ConTeXt的特性,几乎编程ConTeXt的广告了。这次讲些更有普遍性的。

先从字体开始讲起。长久以来我一直都是用LaTeX的默认字体(所有TeX系统的默认字体)Computer Modern系列。严格讲,Computer Modern是Knuth制作的一系列配套的字体。我们先得介绍一些关于英文字体的术语:
1.serif/sans-serif Serif就是比划顶端的衬线。典型的serif字体有
Times New Roman:

Computer Modern:

如果仔细看的话,computer modern字体横向的比划特别细,纵向比划特别粗。这是所有modern字体相对于old style或transitional(e.g. times new roman)的特点。
sans-serif就是没有衬线的字体。典型的sans-serif字体有
Helvetica

Optima

serif和sans serif的对比接近于汉字中宋体和黑体的对比。


2. roman/slanted/italic:
roman也叫normal或者regular,有人翻译作“正体”。italic和slanted都被人叫做斜体。slanted又叫oblique,通常只是把roman字体倾斜一下而已。而italic则是完全不同的字型。
先看roman和italic:

再看slanted




3. typewriter,bold, small cap, old style numeral, etc
typewriter也叫monospace,就是等宽字体。err,大家应该已经注意到前面所有的字体里,每个字符的宽度都不一样吧。typewriter字体既有serif的也有sans-serif的。典型的例子是Courier

bold是粗体,所有的字体都可以bold,不仅限于sans-serif。
small cap:

old style numerals:




4. pt, em, ex
传统的pt是一英寸的 1/72.27,TeX里的pt也是这个定义。现在新法的pt是1/72英寸,网页设计里讲的pt用的是这个定义。TeX里,1/72英寸叫做big point,或者bp。
em是当前字体中大写M的宽度。ex是当前字体中小写x的宽度。


5. ligature, kerning 找一本正规出版的书,可以发现有些字母组合,比如fi,ff,fl的字形是特制的,并不是简单地把f和i拼在一起。这样的组合叫ligature,TeX可以自动识别很多这样的组合。

另有些字母组合,比如A和V,因为字形的空白互相错开,应当排得紧一些,让A的底部和V的顶部有一点重合。这个叫做kerning。TeX可以kern很多这样的组合,也允许用户进一步调整kerning:




市面上字体多如牛毛,但是大部分LaTeX用户还是在用Computer Modern。原因是大部分字体都没有考虑数学公式中的符号,要配一套风格谐调的正文字体和数学字体不是一件容易的事。 但是选择还是有的,Stephen G. Hartke就此写了篇总结文章:A Survey of Free Math Fonts for TeX and LaTeX1。我们看几个典型的例子

1. computer modern

2. computer mrdern bright

3. concrete + Euler
4. palatino + Euler

Euler math是Knuth和字体设计大师Zapf,根据Euler的手稿的书写风格,合作设计的一种手写风格的字体。Knuth后来出版了他和Zapf的通信,详细描述了他们设计这款字体时的思路,很有趣。
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

 相关帖子 我要回复↙ ↗回到正文
毕业论文写完了,小节一下用TeX的经历 hash   (605 bytes , 3816reads )
想问一下,用这个跟用Word比起来,哪个轻松些?? 工力夫熊猫   (0 bytes , 445reads )
太牛了,红桃伺候 icky   (0 bytes , 613reads )
公式中的符号 hash   (4964 bytes , 2689reads )
In math mode do you use \left( and \right), or just ( and )? Bird   (67 bytes , 742reads )
err... there are a lot of fine details here hash   (610 bytes , 629reads )
are "inner" and the adjustion desirable? Quite cumbersome to write \left Bird   (0 bytes , 680reads )
personally i avoid using \left when I know the size hash   (166 bytes , 582reads )
ic...Thanks Bird   (0 bytes , 541reads )
在最后一点上LyX做的还很差 Bird   (0 bytes , 1150reads )
It should be LyX's strength, wonder why it isn't even on todo list hash   (0 bytes , 574reads )
1.6.0 will have this feature Bird   (0 bytes , 521reads )
这个一定要顶一下!辛苦了 鱼片粥   (21 bytes , 586reads )
2. 字体 hash   (4198 bytes , 1786reads )
cm系列有otf格式的了,被我拿来做浏览器默认字体了。。 Bird   (62 bytes , 736reads )
其实是latin modern,cm的扩展 Bird   (0 bytes , 543reads )
最下面的应该只是palatino,没有用euler Bird   (0 bytes , 576reads )
latin characters are from palatino, greek letters are euler hash   (0 bytes , 535reads )
choosing a font has a lot of psychology in it Bird   (1526 bytes , 902reads )
我平时看的期刊多数是用times做正文字体的 hash   (183 bytes , 593reads )
咦?写论文不是应该有标准字体的么? 香陵居士   (0 bytes , 756reads )
la(tex) is not only for publication Bird   (0 bytes , 556reads )
911纪念碑上用刻着遇难者的名字,每个字母有十厘米高,用的字体 hash   (39 bytes , 666reads )
嘎,这个字体放大点还蛮好看的说 sarah   (30 bytes , 609reads )
大哥有没有使用svn + latexdiff 跟踪修改? cigar   (13 bytes , 852reads )
习惯了用cvs和rcs了,没有换成svn。latexdiff很好用 hash   (0 bytes , 616reads )
先说说软件的选择 hash   (3400 bytes , 1510reads )
楼主,可以分享你的Thesis 模板吗? 山水小小   (0 bytes , 883reads )
看了感觉context主要用户是 Bird   (161 bytes , 637reads )
如果用别人现成的format file,写起文章来跟LaTeX差不多 hash   (699 bytes , 752reads )
说起大四的HYP,我是用docbook xml写的 吴永铮   (319 bytes , 1226reads )
再帖两个ConTeXt做的文档 hash   (359 bytes , 842reads )
幻灯片是自己写的class? Bird   (0 bytes , 617reads )
hash   (0 bytes , 502reads )
extarticle设成landscape,section/subsection处自动分页,20号字,也可以当幻灯片 Bird   (0 bytes , 664reads )
you tried beamer? hash   (0 bytes , 572reads )
I know its good Bird   (213 bytes , 658reads )
期待楼主更新 rochester   (10 bytes , 651reads )
很漂亮! materialist   (60 bytes , 742reads )
是叫 "The Not So Short Introduction to LaTeX2e" hash   (0 bytes , 566reads )
:-) thank you for the correction materialist   (0 bytes , 619reads )