Postscript 文档中的 LaTeX 字体
我从 Postscript 开始,想做一些非常简单的事情:在我的 Postscript 文档中包含一个 LaTeX 符号。例如:
%!
/FontSize 12 def
newpath
0 0 moveto
("Hello \LaTeX") show % This is where I would like
% the rendering of \LaTeX
% with actual LaTeX font
showpage
有什么想法吗?
I am starting off with Postscript, and would like to do something very simple: include a LaTeX symbol within my Postscript document. For example:
%!
/FontSize 12 def
newpath
0 0 moveto
("Hello \LaTeX") show % This is where I would like
% the rendering of \LaTeX
% with actual LaTeX font
showpage
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果目标是将 Postscript 和 Latex 混合在一个文档中,您可以使用 Metapost。 Hans Hagen 的 Metafun 手册 是我所知道的对 Metapost 最好的介绍的,但请注意:
比照。还有 Troy Henderson 的 在 MetaPost 输出中嵌入字体,它解释了如何在由 Metapost 生成的 Postscript 文件。
If the aim is to mix together Postscript and Latex in one document, you can use Metapost. Hans Hagen's Metafun manual is the best introduction to Metapost I know of, although note that:
Cf. also Troy Henderson's Embedding fonts in MetaPost output, which explains how to embed Tex fonts in the Postscript files generated by Metapost.
\LaTeX 徽标只是通过字距调整稍微移动的普通字母。因此,如果您已经在破解原始 postscript 命令,则只需从 Latex.ltx 中的定义复制尺寸,并在 postscript 中的字母之间发出相同的移动命令。同上选择 CM 字体,或任何您想要的字体。
The \LaTeX logo is just normal letters moved slightly around via kerning. So if you're already hacking raw postscript commands, you should just copy the dimensions from the definition in latex.ltx and issue the same movement commands between the letters in postscript. Ditto to select the CM font, or whatever you would like.