views:

64

answers:

2

Hello,

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?

A: 

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.

Kilian Foth
exactly. for further code examples you can take a look into the `bluebook` and/or `greenbook`:http://www-cdf.fnal.gov/offline/PostScript/BLUEBOOK.PDFhttp://www-cdf.fnal.gov/offline/PostScript/GREENBK.PDF
mropa
A: 
Charles Stewart