5 /* RGB -> PostScript color mapper function. */
6 sub map_color (r, g, b)
8 return sprintf ("%f %f %f", r div 255.0, g div 255.0, b div 255.0);
11 /* No language special characters. */
12 LANGUAGE_SPECIALS = 0;
14 sub language_print (str)
21 print ("\0font{Symbol", ptsize, ":ps}", sym, "\0font{default}");
24 sub language_symbol (sym)
28 if (strcmp (sym, "rightarrow") == 0)
30 else if (strcmp (sym, "le") == 0)
32 else if (strcmp (sym, "ge") == 0)
34 else if (strcmp (sym, "ne") == 0)
36 else if (strcmp (sym, "equiv") == 0)
38 else if (strcmp (sym, "land") == 0)
40 else if (strcmp (sym, "lor") == 0)
42 else if (strcmp (sym, "lnot") == 0)
62 print ("\0font{", name, "@", ptsize, "}");
67 print ("\0color{", name, "}");
72 print ("\0bgcolor{", name, "}");
77 font (face[fontname]);
78 if (face[fg_color] || face[bg_color])
81 color (face[fg_color]);
83 bgcolor (face[bg_color]);
89 print ("\0font{default}");
90 if (face[fg_color] || face[bg_color])
93 print ("\0color{default}");
96 print ("\0bgcolor{default}");