Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postscript文档中的LaTeX字体_Latex_Fonts_Tex_Postscript - Fatal编程技术网

Postscript文档中的LaTeX字体

Postscript文档中的LaTeX字体,latex,fonts,tex,postscript,Latex,Fonts,Tex,Postscript,我从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 show

我从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徽标只是通过字距稍微移动的普通字母。因此,如果您已经在破解原始postscript命令,那么您应该从latex.ltx中的定义中复制尺寸,并在postscript中的字母之间发出相同的移动命令。同上,选择CM字体或任何您想要的字体。

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

  • 他假设您将使用Tex或Context,而不是Latex。如果您想在Metapost中使用Latex宏,则需要一些额外的样板文件
  • Metafun是常规Metapost的一个轻微超集;及
  • 他或多或少忽略了Metapost嵌入原始Postscript的能力——Metapost语言的核心是Knuth的Metafont的扩展,与Postscript非常不同

  • 参见Troy Henderson的,它解释了如何在Metapost生成的Postscript文件中嵌入Tex字体。

    。有关更多代码示例,您可以查看
    蓝皮书
    和/或
    绿皮书