Changed russian description a little bit
[gnuplot] / demo / fontfile_latex.dem
1 #
2 # $Id: fontfile_latex.dem,v 1.3 2003/10/28 05:35:54 sfeam Exp $
3 #
4 # This file demonstrates new features in gnuplot 3.8i
5 # -1- loading fontfiles for postscript output
6 print "\n This file demonstrates how to use postscript type 1 font"
7 print " files with gnuplot."
8 print "\n Please note that this demo runs only on postscript terminal,"
9 print " because fontfile inclusion is only supported by this terminal."
10 print "\n In addition, this demo needs two font files which are not"
11 print " included in the gnuplot distribution."
12 print " On unix systems with a teTeX installation at least \"cmmi10.pfb\" should be"
13 print " found automatically."
14 print " If not, they can be downloaded from the net:"
15 print " ftp://ftp.dante.de/tex-archive/fonts/ps-type1/cm-super/pfb/sfrm1000.pfb"
16 print " ftp://ftp.dante.de/tex-archive/fonts/cm/ps-type1/bluesky/pfb/cmmi10.pfb"
17 print " Please put the files \"sfrm1000.pfb\" and \"cmmi10.pfb\""
18 print " somewhere they are found, e.g. into the working directory."
19 pause -1 "Hit return to continue"
20 #
21       xmin=-270.
22       xmax=270.
23       ymin=-1.1
24       ymax=1.1
25 #
26 reset
27 set terminal push
28 set terminal postscript enhanced linewidth 2 'SFRM1000' 22 \
29     fontfile 'sfrm1000.pfb' fontfile 'cmmi10.pfb'
30 set output 'fontfile_latex.ps'
31 unset autoscale
32 set xr [xmin:xmax]
33 set yr [ymin:ymax]
34 #
35 set encoding iso_8859_1
36 set format y '%.1f'
37 set label 'Times-Roman: {/Times-Roman abcdefghABCDEFGH äöüß}' at graph 0.05,0.6 left
38 set label 'SFRM1000: {/SFRM1000 abcdefghABCDEFGH äöüß}' at graph 0.05,0.5 left
39 set label 'CMMI10: {/CMMI10 abcdefghABCDEFGH} {/CMMI10 \013\014\015\016\042}' at graph 0.05,0.4 left
40 set xlabel '{/CMMI10 \013} / °'
41 set ylabel '{/CMMI10 y}'
42 plot sin(pi/180.*x) title '{/CMMI10 y} = sin {/CMMI10 \013}'
43 print "\n Now have a look at the file fontfile_latex.ps"
44 print "\n If you have installed TeX, you can generate a table with the"
45 print " encoding of CMMI10 by typing \"tex testfont\""
46 print " answering \"cmmi10\","
47 print " and then typing \"\\table\\bye\"."
48 print " Or have a look at the file \"ps_fontfile_doc.ps\" in the directory"
49 print " docs/psdoc of the Gnuplot source distribution
50 print " If the text \"SFRM1000\" looks like Helvetica you may have an old version"
51 print " of the cm-super fonts. Then you will have to use lowercase font names or"
52 print " download a new version."
53 set output
54 set terminal pop
55
56 reset
57