From 8eb3e8838587cd1f67b9630a4be859ecaf7df44b Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 17 Apr 2012 08:51:26 -0300 Subject: [PATCH] genex/pdf.c: output aliases also to PDF --- genex/pdf.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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);