Вы находитесь на странице: 1из 2

Syntax for postscript enhanced option

enhpost is the product of David Denholm and Matt Heffron.


This guide is the product of Dick Crawford.
text

result

Superscripts are denoted by ^:

10^{-2}

10-2

Subscripts are denoted by _:

A_{j,k}

Aj,k

e^x

ex

x@^2_k

x2k

Put the shorter of the two first:

x@_0^{-3/2}y

x-3/2
0 y

...rather than:

x@^{-3/2}_0y

x-3/2
0y

Font changes are enclosed in braces:

{/Helvetica m}

...size, too:

{/=8 m}

...or both:

{/Helvetica=18 m}

Characters can be specified by code:

{\120}

...which is how to get nonkeyboard characters:

{\267}

{/Symbol p\271 22/7}

22/7

P = {/Symbol r}kT

P = kT

<junk>

<junk>

Braces are not needed for single characters:


Use @ to align sub- and superscripts:

Use keyboard characters or codes for other fonts:


Everything outside braces is in the default font:
Space of a given size can be inserted with &:

<&{junk}>
Special characters (^,_,{,},@,&,\) can be escaped by \:
...or \\ if within a double-quoted string:

<

>

f\{x,y\}

f{x,y}

"f\\{x,y\\}"

f{x,y}

Everything can be done recursively:


the text

{/Symbol=18 \362@_{/=9.6 0}^{/=12 \245}}

{/Helvetica e^{-{/Symbol m}^2/2} d}{/Symbol m = (p/2)^{1/2}}


2
produces the result:
0 e- /2 d = (/2)1/2
Note how font sizes and definitions are preserved across pairs of braces.

The default font for this page is /Times-Roman=12. These and other options may be changed
on the command set terminal postscript. See the manual or help postscript for details.

PostScript Character Codes


T = text (here Times-Roman) S = Symbol Z = ZapfDingbats E = ISO Latin-1 encoding
(the "E" character set is accessed via an option on "set encoding" )
T S Z E
040
041
042
043
044
045
046
047
050
051
052
053
054
055
056
057
060
061
062
063
064
065
066
067
070
071
072
073
074
075
076
077
100
101
102
103
104
105
106
107
110

!
"
#
$
%
&

(
)
*
+
,
.
/
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
@
A
B
C
D
E
F
G
H

%
&

(
)

+
,

.
/
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?

!
"
#
$
%
&

(
)
*
+
,

.
/
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
@
A
B
C
D
E
F
G
H

T S Z E
111
112
113
114
115
116
117
120
121
122
123
124
125
126
127
130
131
132
133
134
135
136
137
140
141
142
143
144
145
146
147
150
151
152
153
154
155
156
157
160
161

I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_

a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q

I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_

a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q

T S Z E
162
163
164
165
166
167
170
171
172
173
174
175
176
220
221
222
223
224
225
226
227
230
232
233
235
236
237
240
241
242
243
244
245
246
247
250
251
252
253
254
255

r
s
t
u
v
w
x
y
z
{
|
}
~

'

{
|
}

r
s
t
u
v
w
x
y
z
{
|
}
~

T S Z E
256
257
260
261
262
263
264
265
266
267
270
271
272
273
274
275
276
277
300
301
302
303
304
305
306
307
310
311
312
313
314
315
316
317
320
321
322
323
324
325
326

fi
fl

















`




















T S Z E
327
330
331
332
333
334
335
336
337
340
341
342
343
344
345
346
347
350
351
352
353
354
355
356
357
360
361
362
363
364
365
366
367
370
371
372
373
374
375
376
377

Вам также может понравиться