Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I feel "uncomfortable" with the existing constants below (which are already defined in PSTricks)

Euler = 2.718281828
Pi = 3.141592654

because I think using e and π is much more natural.

My question is : How can I use unicode characters as identifiers in PostScript? Is it impossible?


    /e {2.718281828} def 
    /π {3.141592654} def 


share|improve this question

1 Answer 1

up vote 2 down vote accepted

I think the answer is no, you can't do this. According to page 25 of the Postscript Language Reference Manual

There are three encodings for the PostScript language: ASCII, binary token, and binary object sequence.

share|improve this answer
Sorry, Is π (ALT+227) ASCII? –  please stop stalking Jul 14 '14 at 19:53
@Pleasedon'ttouch --- I don't think so. –  Ian Thompson Jul 14 '14 at 19:59
@Pleasedon'ttouch Alt 247 is presumably some input convention in your system but pi is unicode U+03C0 (decimal 960) which isn't in the 0-127 ASCII range. –  David Carlisle Jul 14 '14 at 20:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.