Only in transfig.3.2.3d-hp: Makefile Only in transfig.3.2.3d-hp: Makefile.bak diff -r -u transfig.3.2.3d/fig2dev/Imakefile transfig.3.2.3d-hp/fig2dev/Imakefile --- transfig.3.2.3d/fig2dev/Imakefile Thu Apr 19 19:19:38 2001 +++ transfig.3.2.3d-hp/fig2dev/Imakefile Wed Aug 1 21:26:37 2001 @@ -47,7 +47,7 @@ XCOMM inline functions. With the "INLINE" keyword, you should notice that XCOMM the display will be a bit faster in complex figures -XCOMM USEINLINE = -DUSE_INLINE +USEINLINE = -DUSE_INLINE XCOMM **************** XCOMM Change RGB if necessary, to point to your rgb.txt color database @@ -104,8 +104,10 @@ #ifdef USEJPEG #ifdef USEINSTALLEDJPEG -JPEGLIBDIR = /usr/local/lib -JPEGINCDIR = /usr/include/X11 +XCOMM JPEGLIBDIR = /usr/local/lib +XCOMM JPEGINCDIR = /usr/include/X11 +JPEGLIBDIR = /usr/lib +JPEGINCDIR = /usr/include #else JPEGLIBDIR = ../jpeg JPEGINCDIR = $(JPEGLIBDIR) @@ -114,7 +116,7 @@ XCOMM **************** XCOMM Uncomment the following to set paper size to A4 -XCOMM DDA4 = -DA4 +DDA4 = -DA4 XCOMM **************** XCOMM Uncomment the following to set IBM Graphics Enhancement Cartridge @@ -154,7 +156,7 @@ XCOMM **************** XCOMM Uncomment the next line if you want use Japanese (i18n) in transfig. -#define I18N +XCOMM #define I18N #ifdef I18N I18N_DEFS = -DI18N Only in transfig.3.2.3d-hp/fig2dev: Makefile Only in transfig.3.2.3d-hp/fig2dev: Makefile.bak Only in transfig.3.2.3d-hp/fig2dev: arrow.o Only in transfig.3.2.3d-hp/fig2dev: bound.o Only in transfig.3.2.3d-hp/fig2dev: colors.o Only in transfig.3.2.3d-hp/fig2dev/dev: Makefile Only in transfig.3.2.3d-hp/fig2dev/dev: Makefile.bak Only in transfig.3.2.3d-hp/fig2dev/dev: genbitmaps.o Only in transfig.3.2.3d-hp/fig2dev/dev: genbox.o Only in transfig.3.2.3d-hp/fig2dev/dev: gencgm.o Only in transfig.3.2.3d-hp/fig2dev/dev: genepic.o Only in transfig.3.2.3d-hp/fig2dev/dev: genge.o Only in transfig.3.2.3d-hp/fig2dev/dev: genibmgl.o Only in transfig.3.2.3d-hp/fig2dev/dev: genlatex.o Only in transfig.3.2.3d-hp/fig2dev/dev: genmap.o Only in transfig.3.2.3d-hp/fig2dev/dev: genmf.o Only in transfig.3.2.3d-hp/fig2dev/dev: genmp.o Only in transfig.3.2.3d-hp/fig2dev/dev: genpdf.o Only in transfig.3.2.3d-hp/fig2dev/dev: genpic.o Only in transfig.3.2.3d-hp/fig2dev/dev: genpictex.o Only in transfig.3.2.3d-hp/fig2dev/dev: genps.o diff -r -u transfig.3.2.3d/fig2dev/dev/genpstex.c transfig.3.2.3d-hp/fig2dev/dev/genpstex.c --- transfig.3.2.3d/fig2dev/dev/genpstex.c Tue Jul 11 23:51:27 2000 +++ transfig.3.2.3d-hp/fig2dev/dev/genpstex.c Wed Aug 1 20:25:45 2001 @@ -35,6 +35,12 @@ * Jose Alberto. */ +/* added hyperlink support for BOXes in pstex_t */ +/* similar to genmap.c and partly based on genlatex.c */ +/* actually, the min/max bounding box of a POLYLINE is used ... */ +/* use e.g. "\href{audio/i15.wav}" as comment of a POLYLINE: Box */ +/* 08-Sep-2000 Heiko Purnhagen */ + #if defined(hpux) || defined(SYSV) || defined(SVR4) #include #endif @@ -71,6 +77,11 @@ static char pstex_file[1000] = ""; +static char buf[2000]; + +#define TRANS(x,y) (*translate_coordinates)(&x,&y) +extern int (*translate_coordinates)(); + void genpstex_t_option(opt, optarg) char opt, *optarg; { @@ -127,12 +138,59 @@ if (opt != 'p') genlatex_option(opt, optarg); } +static char *is_href(comment) + F_comment *comment; +{ + char *cp; + int i; + + buf[0] = '\0'; + if (comment != NULL) { + cp = comment->comment; + while (isspace(*cp)) + cp++; /* ignore leading spaces */ + i = 0; + while (isgraph(*cp)) + buf[i++] = *(cp++); /* href */ + buf[i] = '\0'; + return buf; + } + return NULL; +} + +void genpstex_t_line(l) + F_line *l; +{ + char *href; + int x, y, xmin, xmax, ymin, ymax; + F_point *p; + + href = is_href(l->comments); + if (href != NULL) { + x = l->points->x; + y = l->points->y; + TRANS(x,y); + xmin = xmax = x; + ymin = ymax = y; + for (p = l->points->next; p != NULL; p = p->next) { + x = p->x; + y = p->y; + TRANS(x,y); + if (x < xmin) xmin = x; + if (xmax < x) xmax = x; + if (y < ymin) ymin = y; + if (ymax < y) ymax = y; + } + fprintf(tfp,"\\put(%d,%d){%s{\\makebox(%d,%d){}}}\n",xmin,ymin,href,xmax-xmin,ymax-ymin); + } +} + struct driver dev_pstex_t = { genpstex_t_option, genpstex_t_start, gendev_null, gendev_null, - gendev_null, + genpstex_t_line, gendev_null, genpstex_t_text, genlatex_end, Only in transfig.3.2.3d-hp/fig2dev/dev: genpstex.o Only in transfig.3.2.3d-hp/fig2dev/dev: gentextyl.o Only in transfig.3.2.3d-hp/fig2dev/dev: gentk.o Only in transfig.3.2.3d-hp/fig2dev/dev: gentpic.o Only in transfig.3.2.3d-hp/fig2dev/dev: libtransfig.a Only in transfig.3.2.3d-hp/fig2dev/dev: psencode.o Only in transfig.3.2.3d-hp/fig2dev/dev: readeps.o Only in transfig.3.2.3d-hp/fig2dev/dev: readgif.o Only in transfig.3.2.3d-hp/fig2dev/dev: readjpg.o Only in transfig.3.2.3d-hp/fig2dev/dev: readpcx.o Only in transfig.3.2.3d-hp/fig2dev/dev: readpics.o Only in transfig.3.2.3d-hp/fig2dev/dev: readpng.o Only in transfig.3.2.3d-hp/fig2dev/dev: readppm.o Only in transfig.3.2.3d-hp/fig2dev/dev: readtif.o Only in transfig.3.2.3d-hp/fig2dev/dev: readxbm.o Only in transfig.3.2.3d-hp/fig2dev/dev: setfigfont.o Only in transfig.3.2.3d-hp/fig2dev: fig2dev Only in transfig.3.2.3d-hp/fig2dev: fig2dev.1x.html Only in transfig.3.2.3d-hp/fig2dev: fig2dev.man Only in transfig.3.2.3d-hp/fig2dev: fig2dev.o Only in transfig.3.2.3d-hp/fig2dev: fig2ps2tex.1x.html Only in transfig.3.2.3d-hp/fig2dev: fig2ps2tex.man Only in transfig.3.2.3d-hp/fig2dev: free.o Only in transfig.3.2.3d-hp/fig2dev: getopt.o Only in transfig.3.2.3d-hp/fig2dev: iso2tex.o Only in transfig.3.2.3d-hp/fig2dev: latex_line.o Only in transfig.3.2.3d-hp/fig2dev: pic2tpic.1x.html Only in transfig.3.2.3d-hp/fig2dev: pic2tpic.man Only in transfig.3.2.3d-hp/fig2dev: psfonts.o Only in transfig.3.2.3d-hp/fig2dev: read.o Only in transfig.3.2.3d-hp/fig2dev: read1_3.o Only in transfig.3.2.3d-hp/fig2dev: trans_spline.o diff -r -u transfig.3.2.3d/transfig/Imakefile transfig.3.2.3d-hp/transfig/Imakefile --- transfig.3.2.3d/transfig/Imakefile Wed Mar 21 20:32:22 2001 +++ transfig.3.2.3d-hp/transfig/Imakefile Wed Aug 1 20:21:02 2001 @@ -26,7 +26,7 @@ XCOMM \\usepackage{} command for LaTeX2e. XCOMM The default is to use \\documentstyle{} for LaTeX209. -XCOMM USELATEX2E = -DLATEX2E +USELATEX2E = -DLATEX2E XCOMM ******* DON'T CHANGE ANYTHIN BELOW THIS POINT ******* Only in transfig.3.2.3d-hp/transfig: Makefile Only in transfig.3.2.3d-hp/transfig: Makefile.bak Only in transfig.3.2.3d-hp/transfig: fig2dev.man Only in transfig.3.2.3d-hp/transfig: fig2ps2tex.1x.html Only in transfig.3.2.3d-hp/transfig: fig2ps2tex.man Only in transfig.3.2.3d-hp/transfig: mkfile.o Only in transfig.3.2.3d-hp/transfig: pic2tpic.1x.html Only in transfig.3.2.3d-hp/transfig: pic2tpic.man Only in transfig.3.2.3d-hp/transfig: sys.o Only in transfig.3.2.3d-hp/transfig: transfig Only in transfig.3.2.3d-hp/transfig: transfig.1x.html Only in transfig.3.2.3d-hp/transfig: transfig.man Only in transfig.3.2.3d-hp/transfig: transfig.o Only in transfig.3.2.3d-hp/transfig: txfile.o