【问题标题】:LaTeX font in Postscript documentPostscript 文档中的 LaTeX 字体
【发布时间】:2010-02-24 00:16:05
【问题描述】:

我开始使用 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

有什么想法吗?

【问题讨论】:

    标签: latex fonts tex postscript


    【解决方案1】:

    \LaTeX 徽标只是通过字距调整稍微移动的普通字母。因此,如果您已经在破解原始 postscript 命令,您应该只复制 latex.ltx 中定义的尺寸,并在 postscript 中的字母之间发出相同的移动命令。同上选择 CM 字体,或任何你想要的。

    【讨论】:

    【解决方案2】:

    如果目标是将 Postscript 和 Latex 混合在一个文档中,您可以使用 Metapost。 Hans Hagen 的 Metafun manual 是我所知道的对 Metapost 的最佳介绍,但请注意:

    1. 他假设您将使用 Tex 或 Context 而不是 Latex。如果你想在 Metapost 中使用 Latex 宏,你需要一些额外的样板;
    2. Metafun 是常规 Metapost 的轻微超集;和
    3. 他或多或少地忽略了 Metapost 嵌入原始 Postscript 的能力 - Metapost 语言的核心是 Knuth 的 Metafont 的扩展,与 Postscript 完全不同。

    参照。还有 Troy Henderson 的 Embedding fonts in MetaPost output,它解释了如何在 Metapost 生成的 Postscript 文件中嵌入 Tex 字体。

    【讨论】:

      猜你喜欢
      • 2010-10-27
      • 1970-01-01
      • 1970-01-01
      • 2011-02-27
      • 2014-04-25
      • 1970-01-01
      • 2010-10-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多