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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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? – kiss my armpit 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.