diff --git a/genex/pdf.c b/genex/pdf.c index a464007..f61609b 100644 --- a/genex/pdf.c +++ b/genex/pdf.c @@ -90,13 +90,20 @@ static void print_path(FILE *file, const struct node *node) static void make_title(FILE *file, const struct node *node, int unit) { + const struct name *name; + fprintf(file, "gsave %s 0 setgray\n", format.overlay_setup); fprintf(file, "/%s findfont %d scalefont setfont\n", format.name.font, format.name.size); fprintf(file, "%d %d moveto\n", format.left, -format.name.y); - ps_string(file, node->names->s); - fprintf(file, " show\n"); + for (name = node->names; name; name = name->next) { + if (name != node->names) + fprintf(file, "(, ) show 0.5 setgray\n"); + ps_string(file, name->s); + fprintf(file, " show\n"); + } + fprintf(file, "0 setgray\n"); if (node->units > 1) fprintf(file, " ( \\(%c\\)) show\n", 'A'+unit);